Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 6th, 2004, 02:06 PM
bundokbiker bundokbiker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 bundokbiker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 6th, 2004, 02:36 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,418 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 5 Days 23 h 56 m 43 sec
Reputation Power: 496
Facebook MySpace
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;
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Two dynamically loaded movies to talk


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway