Cannot access the Stage.stageWidth

with this:

trace (stage.stageWidth)

I get this error:

1119: access of property may be undefined stageWidth through a reference with static type class.

the stage class is accessible through any object on the stage.

whether you have a movieclip on the stage named myMC. Then the width of the stage is accessed like this...

MovieClip (myMC).stage.stageWidth;

Flash is no longer in AS3, cares about the depth of the loaded movies. There is that one step in AS3 to get to the scene from a responsible external movie is the same as access a clip that you place on the stage of your library.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Y470p, video driver and error 126 * SOLVED *.

    * think about it. I had to manually set the gpu to high performance in the opposite case, adobe would continue to use Intel Hi I have a problem opening the Adobe programs that I have - I get the error code 126. I guess this is a video driver issue? D

  • Installation of the service pack is never completed, also any recovery points

    My computer is a Lenovo Thinkpad W500, running only the provider installed Windows Vista Ultimate Edition. I tried to install service pack 2 on 27 May. Since then, whenever I stop the system indicates that it initializes the updates. Then when I rest

  • Why are my planes and buildings black when I played Microsoft Flight?

    Sometimes when I Aerocache hunt buildings all will be black.  And other times, I'll go for a free flight and the plane is black which is originally It?  Happens to the plane once in a while not all the time.  But the building still remain black in th

  • my computer is reading is no longer my sd picture card

    Im trying to download some photos from my sd card on my computer... it worked without problem and now it won't let me... its as if its reading is no longer my sd no card, no AutoPlay or upload shortened appears more.

  • Sharing files between Windows Vista and Windows 7

    Have a PC running Windows Vista wired that you can share files on the remote laptop running Windows 7, but the laptop cannot see the main Vista PC.  So he can't share files or printers.  The laptop has no problem to access internet.