- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 6-7 years
- Author had a File in an Envato Bundle
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- South Africa
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?
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 100 and 199 users
- Sold between 50 000 and 100 000 dollars
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 …..
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 6-7 years
- Author had a File in an Envato Bundle
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- South Africa
- Author was Featured
- Beta Tester
- Bought between 10 and 49 items
- Exclusive Author
- Grew a moustache for the Envato Movember competition
- Has been a member for 4-5 years
- Item was Featured
- Microlancer Beta Tester
- Referred between 10 and 49 users
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
- Author was Featured
- Beta Tester
- Bought between 10 and 49 items
- Exclusive Author
- Grew a moustache for the Envato Movember competition
- Has been a member for 4-5 years
- Item was Featured
- Microlancer Beta Tester
- Referred between 10 and 49 users
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…
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 6-7 years
- Author had a File in an Envato Bundle
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- South Africa
So Pdesignx what do you use then, TL or CC ?
TL ++
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?
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 6-7 years
- Author had a File in an Envato Bundle
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- South Africa
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.
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
