View Full Version : simple path variable!!
texbala
04-03-2003, 04:42 PM
i have a 'circle_mc' movieclip inside that 'circleInside_mc' and the code on that is...
onClipEvent (enterFrame){
var test;
test = 100;
}
code on _root frame 1
var c = _root.circle_mc.circleInside_mc.test;
trace(c);
why the value is not displayed. it says undefined.
thnx!!
magicwand
04-03-2003, 06:12 PM
it should work.
post fla.
texbala
04-03-2003, 06:13 PM
here is the fla...
magicwand
04-03-2003, 06:18 PM
it is because in flash, frame action is excuted first.
you have traced var before it load them.
ok?
texbala
04-03-2003, 06:22 PM
still no luck.. i used a btn to get the trace action :confused: :confused:
magicwand
04-03-2003, 06:25 PM
defining c in the frame will not work
if you put
var c = _root.circle_mc.circleInside_mc.test;
inside the button it will work
good luck
texbala
04-03-2003, 06:54 PM
thnx.. magicwand...
I was trying to access a variable in a similar situation in another project.
I have a loaded mc which has a value of centerPoint equal to numeric value.
I wanted to change that dynamically when I press the btn on a main movie.
I was trying to change the centerPoint value of the loadedmc when the user scrolls it right or left. (the code which uses the centerPoint value is on the _root.holder.mask.mainimage
file at: http://www4.ncsu.edu/~bjagann/holder.zip
thnx.. i will have to think about a different solution.
thnx!!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.