Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : Button effects another movie clip


name
12/3/2004 7:52:19 PM
I have a button on the root level and I am loading a movie clip (photos.swf)
into a blank clip. I want to be able to jump to labels inside photos.swf by
using the button. I remember reading about this but have no idea where. Any
help would be greatly appreciated. thanks.
it3
12/3/2004 8:31:42 PM
A .swf file is not called a movie clip. A movie clip is a type of symbol
within a flash file. Also, the .swf file is the uneditable file that is
produce. You would want to call or refer to frame labels within the .fla file.
When you want to cause an action when the button is pressed the general format
is below: on (press) { _root.gotoAndStop('framelabel'); } In the case of
_root. this refers to the root of the flash file (the main timeline). If you
wanted to refer to the timeline you are in (not the root) you would enter
_this. If you wanted to jump to another SCENE's frame labels you would enter
this: on (release) { gotoAndStop('Scene 2','frame label'); } You could try
calling the .fla file within the above code instead of scene 2 but you will
have to test it. I'm not sure if it will work. Hope this helps.
AddThis Social Bookmark Button