A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Stage.height = 0???

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    115

    Stage.height = 0???

    I'm making a 728x90 banner in Flash MX 2004 - publishing as Flash 6 AS 1.0

    trace(Stage.width) yields an output of 728 at all times

    I put trace(Stage.height) in an onEnterFrame function - the first iteration yeilds 0, the second and all following yield 90

    Any way I can fix this or do I just have to work with the fact that Stage.height isn't defined before my actionscript starts?
    ..[my site]..

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    move your script to frame 2 maybe?

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Posts
    115
    Yeah that would be under the category of "working with the fact that Stage.height isn't defined before my actionscript starts"

    Any way I can fix it?
    ..[my site]..

  4. #4
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    I seem to recall that the Stage properties are buggy when testing in the Flash environment...should work correctly in a browser though...

    K.

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