You should probably try to post this in the flashcoders forum. A lot
more help available there.
[EMAIL PROTECTED] wrote:
There is 1 message in this issue.
Topics in this digest:
1a. Re: Set Visibility For Next/Prev Buttons
From: Bad Aegis
Message
________________________________________________________________________
1a. Re: Set Visibility For Next/Prev Buttons
Posted by: "Bad Aegis" [EMAIL PROTECTED] badaegis
Date: Mon Apr 2, 2007 3:17 pm ((PDT))
--- In [EMAIL PROTECTED], "Shara" <[EMAIL PROTECTED]> wrote:
I'm working on a flash project that scrolls through pages of text
pullef from an external source. I would like to have the next button
invisible once it reaches the last page. Similarly, I want the
previous button to be invisible on the first page. I've tried
creating a buttonVisibility function but I end up with one button or
the other (sometimes both) off or on permanently. Any help you can
offer would be greatly appreciated. Thanks in advance.
this.nxtBtn_mc._visible = true;
var totalPages:Number = n; //total number of pages, could be pulled from an array if this
Number is dynamic.
var currentPage:Number = n; //current page # pulled from ext. file
function hideNext():Void {
if(currentPage == totalPages) {
this.nxtBtn_mc._visible = false;
} else {
this.nxtBtn_mc._visible = true;
}
}
Hope that helps. My scripting leaves much to be desired...
Messages in this topic (3)
________________________________________________________________________
________________________________________________________________________
------------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Flash_ActionScript/
<*> Your email settings:
Digest Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Flash_ActionScript/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
------------------------------------------------------------------------
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com