Skip to main content
Participant
April 25, 2008
Answered

load vars from root into mc

  • April 25, 2008
  • 5 replies
  • 631 views
in AC2
globvar="myvalue"
i use _root.attachMovie("edit_actives","active_editor",0) to attach mc on the root
then from within this mc i use
mcvar=_root.globvar
how to do this in AC3
This topic has been closed for replies.
Correct answer kglad
use:

MovieClip(root).rootvar;

5 replies

kglad
Community Expert
Community Expert
April 27, 2008
you're welcome.
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 27, 2008
use:

MovieClip(root).rootvar;
kglad
Community Expert
Community Expert
April 27, 2008
sorry, i don't download files unless i'm hired or when i initiate the request to download.
kglad
Community Expert
Community Expert
April 27, 2008
MovieClip(root).globar;
onlymadeAuthor
Participant
April 27, 2008
thanks for your interest
my be i cant explain what i want clearly
my proplem is in this file
http://www.zshare.net/download/11182477ada95de9/
onlymadeAuthor
Participant
April 27, 2008
this code on the root
var rootvar="flash"

in a mc
/*in AC2 i use trace(_root.rootvar)
in Ac3 i try
trace(rootvar)
trace(stage.rootvar)
trace(root.rootvar)
trace(this.rootvar)
all fail
*/
kglad
Community Expert
Community Expert
April 25, 2008
:

onlymadeAuthor
Participant
April 26, 2008
iam sorry
i need help how to acses var on the root from withen mc attached to the root at runtime