dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: StageAlign to the top

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Location
    New York City
    Posts
    409

    StageAlign to the top

    I have a logo stageAligned like this:

    logo._x = Stage.width/2;
    logo._y = Stage.height/2;

    but now I want to move it 30pixels from the TOP of the stage...how can I script this ? I don't see any code for identifying the TOP of the stage...

  2. #2
    Senior Member
    Join Date
    Aug 2001
    Location
    New York City
    Posts
    409
    so I can get it a certain distance from the center, like this:
    logo._y = (Stage.height-400)/2;

    but I really need it relative to the top of the stage....can anyone help ?

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