I've spent a lot of time researching this issue within flexcoders, Google, and iteration::two book and still no luck.
I'm basically trying to replicate what the Flex Style Explorer (http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html) does where a user can choose their own background and styles. I cannot get this to work for the life of me. I've read everywhere that once you declare a theme, that's it. You can't dynamically swap in a new one. In my code below, I'm basically trying to swap background images but it won't work. Any ideas? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > <mx:Script> <![CDATA[ function changeStyle() : Void { mx.styles.StyleManager.styles.global.setStyle("background-image", 'backgrounds/redStripe.swf'); } ]]> </mx:Script> <mx:Style> global { background-image: 'backgrounds/industrial.swf'; font-family: Helvetica; font-size: 12pt} </mx:Style> <mx:Panel> <mx:Button label="Change Image!" click="changeStyle();"></mx:Button> </mx:Panel> </mx:Application> I also tried in my method passing in the following 'myRedBG' embedded image var and that didn't work either. [Embed(source="backgrounds/redstripe.swf")] var myRedBG:String; Thanks in advance for any help. I even tried this with basic background coloring changes and couldn't get it to work so I feel I'm missing something fundamental here. -- 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/

