5306 posts Interactive Design
  • Elite Author
  • Author Level 10
  • Trendsetter
  • Top Monthly Author
+11 more
digitalscience
says
Stage.align = "TL";

Friend or foe? Seems like a lot of files on here don’t use it but if you’re trying to load one swf that doesn’t use it into another swf that does , then you can run into issues if there’s a stage resize listener involved. What is good practice – should using TL be the norm?

1572 posts
  • Top Monthly Author
  • Weekly Top Seller
  • 7 Years of Membership
  • Affiliate Level 4
+4 more
dSKY
says

yes, “TL” is the default….. when you create movie clips in flash IDE or by code , they are also aligned to top left by default …..

5306 posts Interactive Design
  • Elite Author
  • Author Level 10
  • Trendsetter
  • Top Monthly Author
+11 more
digitalscience
says

But the difference comes in when your resize the swf, see the difference here:

Normal

TL

1389 posts
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
+9 more
Pdesignx
says
yes, “TL” is the default….. when you create movie clips in flash IDE or by code , they are also aligned to top left by default …..

that’s not true, default is “CC”
cheers

1389 posts
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
+9 more
Pdesignx
says

yes it places newly created movieclips to TopLeft of the stage (0,0 point) but, Stage.align means something different… it is about positioning the stage acording to the screen… as DS’s samples shows, in every contition (0,0) point will be at topleft of the stage, but that may or may not be at the very topleft of the explorer’s available screen… if you CC it, the (0,0) will be somewhere in the screen or outside of it because your stage size may be bigger than screen size…

5306 posts Interactive Design
  • Elite Author
  • Author Level 10
  • Trendsetter
  • Top Monthly Author
+11 more
digitalscience
says

So Pdesignx what do you use then, TL or CC ?

755 posts
  • 8 Years of Membership
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
+6 more
djankey
says

TL ++

905 posts
  • 8 Years of Membership
  • Collector Level 4
  • United States
unchartedrealms
says

is this the reason when I load some components into a full screen file when I resize the browser the component jumps all the way to the left out the screen?

5306 posts Interactive Design
  • Elite Author
  • Author Level 10
  • Trendsetter
  • Top Monthly Author
+11 more
digitalscience
says
is this the reason when I load some components into a full screen file when I resize the browser the component jumps all the way to the left out the screen?

Yup, then you would either take out Stage.align = “TL” or you would have to align the holder clip the component is being loaded into with a stage resize listener.

905 posts
  • 8 Years of Membership
  • Collector Level 4
  • United States
unchartedrealms
says

hmm interesting. what if I buy a fullscreen file that uses TL. And there is already a centered movie clip that has a stage listener in it. Then I put the file with no TL inside the center movie clip that is already set up with the listener. then i resize the browser and it jumps all to the left. that is what I am getting.

Thanks for the help digi

by
by
by
by
by
by