[flexcoders] Setting width/height not affecting visual display?

2010-07-13 Thread Roy Pardi
Probably really dumb question here: I was setting the width/height of a SpriteVisualElement and was not seeing the change reflected visually. I made a quick test file (code below) to isolate this from the rest of the app I am developing. Same thing - when the 'testSprite' receives a mouse event,

Re: [flexcoders] Setting width/height not affecting visual display?

2010-07-13 Thread Oleg Sivokon
These properties may be overridden. My gut feeling says there should be something like commitProperties / validate or some similar method to apply all changes to the changed display object.

Re: [flexcoders] Setting width/height not affecting visual display?

2010-07-13 Thread Mayur Bais
Two things 1) Try setting the height and width of the container. 2) I tried to read the adobe docs and it says The SpriteVisualElement class is a light-weight Sprite-based implemention of IVisualElement. and there are no height and width property available for this class. where are there are

Re: [flexcoders] Setting width/height not affecting visual display?

2010-07-13 Thread Roy Pardi
At 3:14 PM +0200 7/13/10, Oleg Sivokon wrote: These properties may be overridden. My gut feeling says there should be something like commitProperties / validate or some similar method to apply all changes to the changed display object. Thanks for the reply. Still tinkering here - I changed the