Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- buttons


pepe - 12:42 pm on Dec 18, 2007 (gmt 0)


Hi all, I am new to the forum, and even newer to Flash. I am writing an e-book for kids, and on each page there is a home, help, next and back button. I figured out how to do the back and next buttons, but how do you do the actionscript for the home button? I named the instance
home_btn, so I thought you could just do it like a function for the next and back buttons,

stop();

home_btn.onRelease = function(){
if (_root._currentframe ==?) {
gotoAndStop(1);
}
}

this is obvoiusly not working. If I have 14 frames, what do you put in the currentframe= #, 1-14?,
why cant I say

home_btn.onRelease = function(){
what do I put here?

Sorry this is not so concise, I am up agianst a deadline, and freaking out. any help would be greatly appreciated if any of this makes sense, thanks!


Thread source:: http://www.webmasterworld.com/flash/3530189.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com