Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox align shuffles after loading?

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Hi all - I have a flash that sets itself up with :

Stage.scaleMode = "noScale";

Then reads in variables from an xml and positions objects, including a textbox for image titles called imageTitle_txt which uses a container called image_mc for size purposes and says this :

imageTitle_txt._x = image_mc._x + 3;
imageTitle_txt._y = image_mc._y + 3;
imageTitle_txt._width = image_mc._width - 6;
imageTitle_txt._height = image_mc._height - 6;
imageTitle_txt.swapDepths = 10000;
imageTitle_txt.autoSize = imageTitles;

The problem is, though I can set which side it appears on using imageTitles (which is set to be "left" "center" or "right", if it's on left or right it starts off slightly inset. Then once I resize the window slightly it jumps right upto the edge where it should be. Or worse, at runtime it appears in the slightly inset position but sort of chopped up :( But still snaps to the right place on window resizing

Any thoughts?

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
I've done more testing but still can't find why this is happening or how to stop it. Anyone? :/

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top