|
-
How to make an embedded SWF link to its main timeline from a movieclip
I am literally at the end of my wick with this one! 
-----
Here's the skinny, so to speak:
home.swf
products.swf
button line mc
animated button mc
When someone clicks on animated button mc a swf needs to load into container mc which sits on the main products.swf timeline.
Flash CS4 - Actionscript 2
-----
Now the full blurb:
I use Flash a bit for animation and not a lot with actionscript, although I am learning. I use AS2 and am currently producing a website. I'm using it as a learning curve really, but my normal searching of the forums and internet isn't helping with this one!
I have hit a snag with loaded swf's.
Here's what I have: A main movie (home) which then loads in a products swf (products) and within that products page is a movieclip (button line mc) which contains the first line of buttons as they animate in (animated button mc). What I would like to happen is that when someone clicks on a button instance it loads an external swf onto the main products timeline, into an mc called container mc.
What is currently happening when the button instance is clicked is nothing. I tried instead to make the button go to the main timeline on the products swf and play, then a loader component load the swf, but when I do this it goes back to the start of the home parent movie! I've tried the _lockroot thing, by putting it in the first frame on the loader, and I've tried adding _root.product.gotoandPlay to make it go to the products timeline and not the one products is sitting in, but it's not working!
I'm getting in a right mess with it and have forgotten what the code was I originally wrote in for the button to load a swf into a targeted mc (I did it from a tutorial and have since replaced it with a goto and play element!)
If anyone can offer any help or guidance I'd be very grateful!
Also, if anyone can recommend a good place/book/site to learn actionscript for things like this, I'd be all ears! Thanks again.
Adam
Last edited by flashman_y3k; 12-17-2009 at 09:31 AM.
Reason: Title change
adamoliver.com
Tags for this Thread
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
|