Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-12-2005, 11:14 PM   #1
cgallant
Space Ninja
 
Join Date: Aug 2005
Posts: 8
Question mc variable access...

I came across this the other day and it was really frustrating...

I've got a movie in the Library with a link name of "L_mClip" and the following code inside it's frame:
ActionScript Code:
this._myPlace = "Planet Earth";
This is in the _root timeline:
ActionScript Code:
stop(); //this will trace attachMovie("L_mClip", "i_mClip", _root.getNextHighestDepth()); _root.onMouseDown = function(){     trace("trace within _root.onMouseDown : " + _root.i_mClip._myPlace); } //...while this will not! trace("trace within _root actions = " + _root.i_mClip._myPlace);

Any thoughts? Why can't I access it outside of the onMouseDown? Am I taking crazy PILLS?!? It's gotta be something really stupid on my part...

Thanks,
-C
cgallant is offline   Reply With Quote
Old 08-12-2005, 11:24 PM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

see
http://www.actionscript.org/forums/s...d.php3?t=68966
__________________
(6)
senocular is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:30 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.