-
[F8] External Buttons not working
I am having trouble figuring out how to have a loaded external swf with buttons, and have those external buttons go to different frames in my main timeline (by main timeline, I am referring to the flash calling up the external swf). I am currently using a Loader in my main timeline to load this external swf file. And within the external flash file I have the action script going to the frame I want in the main movie. Any suggestions?
Here is the script I have for my buttons now:
on (release) {
gotoAndPlay("home");
}
-
Senior Member
Hi.. heres a general rule..
When you load a .swf into a another (main.swf) any reference to )root in the loaded.swf code will mean the MAIN.swf timeline nd NOT the loaded.swf timeline anymore.
so if you want to targt the MAIN.swf timeline you can use _root.
this, however is NOT recommended... (using _root) and you shoudl use relative paths instead..
like
_parent._parent..etc
or
this._parent..
-
Thanks for replying!
Thanks for replying.
For a visual, please go to www.barakabaraka.com/aotl to see the web site I am building.
When you click on the "Projects" link a scrolling picture gallery shows up. This gallery is the loaded swf. file. Each picture is a button that I want to have navigate in certain label frames on the main web site. Where should I put the coding you suggested? I am very bad at action scripting.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|