4358 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 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?

1537 posts
  • Bought between 1 and 9 items
  • Europe
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Sold between 50 000 and 100 000 dollars
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 …..

4358 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 more
digitalscience says

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

Normal

TL

1389 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
  • Has been a member for 5-6 years
  • Microlancer Beta Tester
  • Referred between 10 and 49 users
+3 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
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
  • Has been a member for 5-6 years
  • Microlancer Beta Tester
  • Referred between 10 and 49 users
+3 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…

4358 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 more
digitalscience says

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

755 posts
  • Beta Tester
  • Bought between 100 and 499 items
  • Croatia
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
djankey says

TL ++

905 posts
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
  • 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?

4358 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 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
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
  • 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