Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / October 2007



Tip: Looking for answers? Try searching our database.

Help With Building Menu Script

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raypalmer - 23 Oct 2007 01:01 GMT
New to Flash so excuse the basic quistion ...I?m building a menu driven project
which contains mainly slides and movies.

I?ve built a text menu and have figured out how to make the text a button f8
and then f9 however not sure how to code the script so when the text is
selected the slide I?m linking it to within the project appears.
Sketchsta - 23 Oct 2007 14:22 GMT
You have 2 options on coding buttons.
a) place the code on the button symbol itself.
eg..

on(release){
_root.gotoAndPlay("slide1");
}

what this will do is, when the button is Pressed and RELEASED, the playhead
will goto and play frame "slide1" (frame label is slide1)

b)  place the code on a frame (reccomended)
sg..

your_btn.onRelease = function(){
_root.gotoAndPlay("slide1");
}

this does the exact same thing, the only difference is that it is placed on a
frame instead of the button symbol its self.
This is a better way to code your flash work, because you can keep all your
code on the one frame which will keep the FLA clean, and verry easy to edit in
the future.

NOTES:
 - TO LABEL A FRAME, select the frame you wish to give a label to, then at the
bottom left of your screen in the properties inspector, you will see a text
field, this is where you specify a frame name of your choice.
 - _root  means your MAIN timeline. I suggest you make a new movieClip
(Ctrl+F8) make sure you chose Movie Clip as the type, and give it a NAME, then
place all your buttons inside that movieClip's time line.

Hope this helps you out abit.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.