4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 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?

1561 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+3 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 …..

4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

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

Normal

TL

1389 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+7 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+7 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…

4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

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

755 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
djankey says

TL ++

905 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in 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?

4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 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
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by