Groups | Blog | Home
all groups > flash actionscript > april 2006 >

flash actionscript : movieclip hierarchy


JanPer
4/2/2006 6:51:43 PM
i'm having main movieclip (MAIN) with two blank movieclips called (TOP and
BOTTOM). I'm loading different .SWFs into these blank movieclips. the SWF
loaded in TOP has another movieclip (PICT) with pictures in it. I'm trying to
access PICT from BOTTOM. i'm using a relative path _root.TOP.PICT, but it
doesn't work. any idea? thx
abeall
4/2/2006 7:38:23 PM
most likely you are trying to access _root.TOP.PICT before it has been fully
loaded. You'll need to make sure the loadMovie has finished loading before you
try and access... one way is to use the movieClipLoader class with the method
onLoadInit

Hope that helps
JanPer
4/2/2006 10:44:04 PM
oh, i've got it...
the mvoieclip WAS fully loaded, the problem was that i put the actionscript
into a wrong keyframe = means too soon.
i didn't expect such a stupid reason, so i was inspecting the addressing. now
i know ;)

thank you anyway!
AddThis Social Bookmark Button