View Full Version : quick question about accessing a movieclip!
panopticon_
07-14-2008, 07:39 PM
so im inside my movieclip called "blah" (instance name the same), and i'm writing some code in the timeline of "blah".
with this code i want to tween a movieclip (called "info", instance name also "info") which is directly on the stage (not in the movieclip "blah")
i tried
TweenLite.to(_root.info, 3, {alpha:0});
and
TweenLite.to(stage.info, 3, {alpha:0});
but i cant get it to work. how do i do it? its quite urgent, thank you for your help ;)
DiamondDog
07-14-2008, 07:51 PM
You could write what I know about TweenLite on the back of a small postage stamp, but have you triedTweenLite.to(parent.info, 3, {alpha:0});?
panopticon_
07-14-2008, 07:56 PM
aah sorry i forgot something
actually its a bit more "nested" (right word?)
my stage with info movieclip on it -> scrollbox_main (MovieClip) -> blah (MovieClip)
or
|------my stage with info movieclip on it
|--------scrollbox_main (MovieClip)
|----------blah (MovieClip)
i'm writing my code inside of blah movieclip
so parent.info doesnt work, out ouf curiousity i tried parent.parent.info but that doesnt work either :(
DiamondDog
07-14-2008, 08:53 PM
If 'blah' is a child of scrollbox_main which is a child of info then I must admit I would have expected parent.parent.info to work.
What about parent.stage.info ? :eek:
panopticon_
07-14-2008, 09:40 PM
If 'blah' is a child of scrollbox_main which is a child of info then I must admit I would have expected parent.parent.info to work.
What about parent.stage.info ? :eek:
blah is a child of scrollbox_main (which is a child of the stage obviously) but scrollbox_main is not a child of info. info is a seperate movieclip on the stage
i guess i confused you a bit with my little diagram :D
|------my stage
|--------scrollbox_main (MovieClip)
|----------blah (MovieClip)
|--------info
"info" is on the same level as "scrollbox_main" and i want do access it out of "blah"
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.