Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Help! Get variables from other movie clips? |
From: | Paul Willoughby |
Date: | Tue, 9 Jan 2001 16:34:43 GMT |
And I replied last week, but none of my posts seemed to make it to the list!
If you have mc_A with a text field in it called text_A containing a value,
but you also want that value to display in text_B, which is in mc_B you'd
need something like:
_root.mc_B.text_B = _root.mc_A.text_A
//assuming this code and all the clips are on the main timeline
If you want it constantly updated while the movie is playing, put the code
in either of the MC's object actions. e.g if you wanted mc_B to constantly
update its text field to what was in the text field in mc_A you could put
this code on the object actions of mc_B:
onClipEvent(enterFrame){
this.text_B = _root.mc_A.text_A
}
BTW if you happen to be using Flash 4, the target paths to variables are
slightly different. The equivalent of my first example would be:
Set Variable: "/mc_B:text_B" = /mc_A:text_A
hth
paul
> -----Original Message-----
> From: jmerrillelftech [dot] com [jmerrillelftech [dot] com (mailto:jmerrillelftech [dot] com)]
> Sent: 08 January 2001 21:05
> To: flasherchinwag [dot] com
> Subject: FLASH: Help! Get variables from other movie clips?
>
>
> I posted this last week, without a response, so I apologize for the
> re-post:
>
> How do I get a variable from another movie clip?
>
> For example, I have loaded some variables from a text file
> into Movie Clip
> "A". There is a dynamic field there displaying them. Works
> fine, but how
> do I display some of those variables in dynamic fields in
> movie clips "B"
> and "C"?
>
> Thanks!
>
> Jason Merrill
> Multimedia/Courseware Developer @ ELF, Issaquah, WA
> 425.369.5214
> SerengetiUS.com - "Where Law Does Business"
>
> Seattle Macromedia Authorware User's Group
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]