careful with mx:Text width in scriptingRT

We had a problem today that I want alert users to. A compiled scriptingRT study was somehow larger than it was supposed to be: Even though compiled with width and height set to 640 and 480 and embedded in an object of the same size, scroll bars appeared on the HTML page, and the flash object seemed to be “bigger”. We traced the error to a mx:Text object, for which width was set to “100%”. When we removed this width attribute, or set it to “640”, everything was fine. mx:Text‘s width attribute expects numbers of pixels, and does funny things with %. If you want to use percent, use the attribut percentWidth

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s