|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Two dynamically loaded movies to talk
I want to have two dynamically loaded movie clips talk to each other, but I can't figure it out because loadmovie() does not have a place to specify an instancename.
Here's exactly what's going on: 1) I'm making a tutorial which has two sides - the left side has a "tutor" and the right side has "content". 1) On the root level, I have two empty movie clips that act as placeholders. I've given them instancenames of emptyclip01_mc (where the "tutor" sits) and emptyclip02_mc (where the "content" sits). 2) I have many external swf files that I've paired up that I want to load into the previously mentioned empty clips. The following code is what I used on a button on the root movie that will load in the first pair: on (release) { loadMovie("content01.swf", "_root.emptyclip01_mc"); loadMovie("tutor01.swf", "_root.emptyclip02_mc"); } 3) Both movies end up loading fine. As I click through each frame of either movie clip (because I put "next" buttons), I want the other one to advance in unison. The way I planned on doing this is by putting script in each frame of both movies that will tell the other one to advance to that same frame as well. So therein lies my dilemna. How can one movie clip target the other without an instance name? If loadmovie() does not allow naming the instance, is there something else that does? Is there a way that I can have the movies synchronize frames so that they will always be on the same frame number? Last edited by bundokbiker : January 6th, 2004 at 02:11 PM. |
|
#2
|
|||
|
|||
|
Hi, when you load a movie the way you are i.e. into a target the target is your reference point. In your case you can use:
_root.emptyclip01_mc.domySpecialFunction(itsdata); _root.emptyclip02_mc.textToDisplay = _root.emptyclip01_mc.textToRead; |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Two dynamically loaded movies to talk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|