2 New Developments:

1. I figured out how to override width and height getters in a Button to a constant size.

2. I'm not sure if that's what I wanted to do! The button itself doesn't resize, never did. It's everything (the Flash animation) inside of it that resizes.
Any clues would be SO helpful!


Aurek Brillowski wrote:


Tomislav,

Thank you for your reply. Definitely understand what you are saying, however, my experience in overriding a class in Flex (or Flash) is very limited. Much more of a designer making my way into Flex/ActionScript.

To see the unwanted (and wanted) effects first hand check out www.cinemafest.org/flashButton.html

If you could state more detail of how to override the Button's width and height getters or direct me to a good website that shows something similar, that would be great. I do understand inheritance, and the concept of getters and setters, and have created my own AS classes where I override a method as more of a basic experiment. Connecting it all up with Flex will take me a bit more. In the meantime I will be searching the web and books on my own for how to do this.

Thanks much!

Aurek Brillowski


tpokrajcic wrote:

Hi,
I'm just having a similar issue when using Sprite as Papervision3D texture. Problem with scaling can be solved by overriding width and height getters to give you a constant value because size of Sprite and MovieClip is calculated based on sizes and positions of their children. However, I'm still trying to fix this further because if a Sprite child moves up I get only that child on a empty background (the rest of Sprite slides down) because the visible area is taken from the top-left corner with width and height defined in getters.
Cheers,

Tomislav

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>, "flexcoder1969" <flexcoder1...@...> wrote:
>
> I am trying to skin the overSkin of a Flex Button component with an animated Flash .swc component. (Actually, an Accordion Header, but for all practical purposes the same.)
>




Reply via email to