| | | ominous93 |  |
| Posted: Tue May 20, 2008 5:10 pm Post subject: Skinning a component with AS |  |
| |  | |
Hi all,
I'm trying to change the graphics on the UIScrollBar component (which is attached to a scrollpane). Problem is, any that I specify an alternate movieclip (skin) for are not showing up. For example, if I specify the mouse over clip for the scrollbars arrows, they disappear.
I opened the standard and halo theme provided FLA files and copied the entire ScrollBar Assets folder over to my project. I altered the graphics and just tried it like this (making sure asset MCs were export in first frame). That had no effect. I then specified some changes in the init portion of my createClassObject() (e.g. {ScrollUpArrowOver:"SomeValidLinkageID"}) but the clip just keeps disappearing. Since the change is global to my whole project I started adding it to the prototype (e.g. mx.controls.UIScrollBar.prototype.upArrowOverName = "SomeValidLinkageID" , and that does (you guessed it), the same thing.. disappears!
How can I change the graphics on a scrollpane components scrollbar that I'm dynamically adding via createClassObject()??
Thanks for any info! |
|