This content has been marked as final. Show 5 replies
Adding the attached override to the class that is connected to the Flash symbol seems to resolve this.
I've been away from the Flex Component Kit work for a while, but now I'm back into it, and I've still got an issue with the scaling of components coming from Flash (CS3). Ideally I'd like to be able to scale my components dynamically, and I understand that overriding the setActualSize will work, but is there a better way to scale the content based on the container the component is in (HBox, VBox, etc), perhaps some way to do percentage scaling (scaleX, scaleY).
By using setActualSize(), it seems like I would have to manage the listeners for the stage resizing, which seems like fly swatting with a hammer if you know what I mean. My goal is just to have my components resize, without distortion (maintaining the aspect ratio of the original) .
Many thanks in advance.
As far as I know either a BoundingBox (added in Flash) or setActualSize() enable scaling (or any other type of animation for that matter).
I've added a symbol named boundingBox to the symbol being converted, but I'm not sure how that affects scaling. I know it sets the bounds of the component so Flex knows where the components boundaries are, but other than that it doesn't seem to affect anything.
All I really want to do is emulate the StageScaleMode.SHOW_ALL that is in flash (scale up and down with parent container without distortion).
Am I missing something ? Thanks again for your time. I really don't mean to be a pest.
Then - as far as I know - you need to use setActualSize() in the class that is connected to the Flash symbol, as posted.
No time now, but I'll fiddle with it a bit and if I find something, will post here.