HOLY CRAP!!!Quote:
Originally Posted by Chris_Seahorn
You did it...thanks for the help...this will make things MUCH easier for a project I'm working on.
Printable View
HOLY CRAP!!!Quote:
Originally Posted by Chris_Seahorn
You did it...thanks for the help...this will make things MUCH easier for a project I'm working on.
Wilbert,
So, if I wanted a hidden button to show I would do it like this?
code:
contentpane1.onScroll = function(hsPos,vsPos){
if (vsPos == 1) {
button1._visible = true;
}else{
button1._visible = false;
}
}
Yes, you got it.Quote:
Originally Posted by dniezby
Sorry Wilbert :) I figured you'd have a better way. Without knowing the contentpane code I did the best I could :)
Quote:
Originally Posted by w.brants
I'd leave out the entire Else that way once it's shown it stay showing.
Quote:
Originally Posted by dniezby
It's always nice to have people that do understand the internal code of the content pane. ;)Quote:
Originally Posted by blanius
As for my solution, the onScroll event is mentioned in the api specification of the content pane. The implementation was a suggestion of Peter Herbrick. It can also be used to synchronize scrolling with something else like a changing picture or an object that changes color depending on the position of the scrollbar.
As for you other reply, I'd also leave the else out.
That's a good idea. I will leave it out. I don't want the agreement checkbox to appear and disappear. Once they've scrolled down the agreement, it should be assumed they've read the agreement, then they check off the agree option and the next page nav button appears...
Thanks for helping me with two issues in one thread.