--- In flexcoders@yahoogroups.com, "richmcgillicuddy" <[EMAIL PROTECTED]> wrote: > > I have a component that has 4 different skin parts, I want to change > the skin image of one of those parts in actionscript code. My code > looks like: > > > var tmpImage:Image = new Image(); > tmpImage.load("/device/images/personnel.png"); > myUIComp.setStyle("bodyskin", tmpImage); > > I can change the image via CSS and it works great but if I run the > above code, it does not seem to change the image. any ideas? > > > Rich >
Additionally, I can setup style sheets in the format of: .builderSkin { BodySkin: Embed(source="/skins/builder_male.png"); HatSkin: Embed(source="/skins/Builder_Hat.png"); } and the above only works if I use the Embed function with the skin. What I would like is to be able to remotely update the available body and clothing skins and allow the user to select one for that item or for a police officer "person" to be able to dynamically pull the police officer form and uniform in case it changes. Are skins the right way to go here or having a UIComponent with a number of image variables that are loaded dynamically? Rrich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/