3 Replies Latest reply: May 18, 2009 4:35 AM by Ziggizag RSS

    AS3 sucks !!! Why can't access a simple movieClip ???

    Ziggizag Community Member

      Hi People,

       

      Please - it's as simple as that:

       

      I have a stageand there is a movieClip instance called "obiekt" in it. Inside "obiekt" movieClip there are two other clips. One instance is called "z1" and another one is called "z2".

       

      Presume I have a event listener in "z2" what in case of mouse rollover calls a function what is supposed to set "z1" movieClip 'visible' property to true.

       

      But why the hell when I code:

       

      root.obiekt.z1.visible = true;

       

      I get this error:

       

      1119: Access of possibly undefined property obiekt through a reference with static type flash.display:DisplayObject.

       

      Jesus - what's the hell - scripting a simplest thing in AS3 requires definig some bloody classes, extending other, importing whatever packages... Only to accesss a movieclip on the stage!!! If I were to do the thing this way I would rather learn C++ not Flash. Flash was supposed to simplify multimedia not making it worse!

       

      Can anybody help me here? It's really urgent !!!

       

      Rgs,

      Ziggi