PDA

View Full Version : Apply skin to Component AS3 style! (programmatically)



BHBagadiya
June 23rd, 2009, 11:37 PM
Hi all kirupians!

I want to change look and layout of vertical ScrollBar of multilined TextField through AS3 and not from Flash IDE. I am able to do it using setStyle method for single scrollbar but, not which is within TextField. Please help...

Thanks in Advance :)

ahmednuaman
June 24th, 2009, 03:01 AM
Yes you can do it through code, here are some resources:

http://www.adobe.com/devnet/flex/quickstart/skinning_components/#programmatic

BHBagadiya
June 24th, 2009, 06:18 AM
Yes you can do it through code, here are some resources:

http://www.adobe.com/devnet/flex/quickstart/skinning_components/#programmatic

Thank for reply, but ScrollBar in TextField is read only and I want to skin it with different color at different places.

ahmednuaman
June 24th, 2009, 06:24 AM
Ah, I would suggest maybe looking at the text field class, seeing where it binds the standard scroll bar and maybe extending the class so that it can bind your custom scroll bar

BHBagadiya
June 24th, 2009, 11:28 PM
Ah, I would suggest maybe looking at the text field class, seeing where it binds the standard scroll bar and maybe extending the class so that it can bind your custom scroll bar

Hey my friends, I really cant figure it out how to achieve this. Can someone plz give me an example or upload it?

I am not using flex, I am developing a game using Flash CS3 for Art Work and ActionScript to put all art work together...

Thanks Kirupians!