It's easy to do with vector or bitmap graphics.  For bitmap, make your
buttons color free transparent PNGs, using semi-transparent greyscale
shading and shaping.  Under the button, mask a movieclip with a rectangle in
it - have the button shape be the mask (usually works, you might need to
play with it to get it just right).  Have that movieclip listen to a style
class - just make one movieclip in the library to do this.  Do not make
components out of these unless you want your movie to run slow. Assign said
movieclip to a particular style group, and then send the event onStyleUpdate
or whatever, passing the color and the group which that color belongs to,
which you then apply using standard movieclip color transform scripts.
Done.

HTH,
Steven

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Chad Royer
> Sent: Thursday, January 19, 2006 11:23 AM
> To: [email protected]
> Subject: [Flashcoders] how to deal with user-choosable skinning
> 
> Hi all,
> I've been planning a flash ria for a while, and there are a few  
> things I'd like to do with the interface that I still haven't quite  
> figured out, maybe you can help.
> 
> The main puzzle I'm trying to work out is how I can set up a  
> selection of alternate graphical "skins" for the entire site 
> that the  
> end user can choose at runtime.  Ultimately, I'd want to have all of  
> my base graphic elements (button over and under states, arrows,  
> whatever) externalized in a library/movieClip that I can duplicate  
> and alter, then import based on a userPrefs variable on the  
> initialization of the site, and apply the graphic elements to the  
> rest of the movieclips in the app.  Has anyone done this sort of  
> setup before?  It seems like it should be easy enough, but I can't  
> find anything about it.
> 
> any help is mucho appreciated.
> chad
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to