Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Help! Get variables from other movie clips?
From: Muzak
Date: Tue, 9 Jan 2001 12:38:44 GMT

Most of the time, when I need loaded variables in different places (MC's) I load them in the main timeline and call them for the
MC's themselves.

So, if the main timeline has these loaded variables:

var1="blah"
var2="more blah"
var3="lotsa blah"

and you have 3 MC's (mc1-mc2-mc3) with 1 textfield each:

mc1 textfield = called varText1

action in mc1:
vartext1=_root.var1
-----------------------
mc2 textfield = called varText2

action in mc2
varText2=_root.var2
----------------------
mc3 textfield = called varText3

action in mc3
varText3=_root.var3

---------------------
To sort of automate this, if all MC's are in the main timeline at the same time, you could have an action like this (in the main
timline)

for (i=1; i<=3; i++){
_root["mc"+i]["varText"+i]=_root["var"+i]
}

hth,
Muzak

----- Original Message -----
From: <jmerrillatelftech [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Monday, January 08, 2001 10:04 PM
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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpatchinwag [dot] com


Replies
  FLASH: Help! Get variables from other m, jmerrill

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]