A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Why isn't this working???

  1. #1
    if(i>$){i=:);} falshdancer's Avatar
    Join Date
    Nov 2003
    Location
    NYC
    Posts
    546

    Why isn't this working???

    var W:Number = Stage.width;
    var H:Number = Stage.height;
    trace("Height: "+H+" Width: "+W);

    The Stage.height is reading 0????

    (Im on Flash 8 OSX)
    la la la la laaaaaaa

  2. #2
    Retired SCORM Guru PAlexC's Avatar
    Join Date
    Nov 2000
    Location
    NJ
    Posts
    1,387
    Because...your stage height is 0?

    Just copied/pasted and that script ran fine.
    "What really bugs me is that my mom had the audacity to call Flash Kit a bunch of 'inept jack-asses'." - sk8Krog
    ...and now I have tape all over my face.

  3. #3
    if(i>$){i=:);} falshdancer's Avatar
    Join Date
    Nov 2003
    Location
    NYC
    Posts
    546
    Flash won't let you make the stage height 0. Minimum is 1.

    I wonder if theres a prob with the stage class? I don't get it?
    Last edited by falshdancer; 09-22-2005 at 01:24 PM.
    la la la la laaaaaaa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center