Down at the bottom of the commitProperties() routine, add an extra else clause to the big if statement: Else if (newSource is DisplayObject) { _content = newSource; } That should in theory take care of it. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn - Sent: Wednesday, September 19, 2007 7:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How would you go about to make SuperImage support .swf? SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ I need it to support .swf's - but I don't worry about the cache part - as long as it shows the swf. I guess it would have to be done in the commitProperties() function - somewhere here: if(newSource is Class) { // if it's a class, instantiate it. newSource = new newSource(); } // if it's bitmap or bitmap data, we know how to render that. if(newSource is Bitmap) { _content = newSource; } } .. an embedded swf would be a class. Is there a way to convert this to Bitmap so that SuperImage behaves as normal? Bjørn -- ======================== http://www.juicability.com - flex blog http://www.43min.com - funny movies
<<image001.jpg>>
<<image002.jpg>>