Re: [flexcoders] How would you go about to make SuperImage support .swf?
Alex: If you don't need the cache, why not just use SWFLoader? becuase I care about the cache in relations to images loaded from the web, but not when it comes to the .swf icons which I will embed. Ely - thanks, that worked like a charm :-) ... and also thanks for creating this great component! - Bjørn On 19/09/2007, Ely Greenfield [EMAIL PROTECTED] wrote: 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 -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
RE: [flexcoders] How would you go about to make SuperImage support .swf?
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.jpgimage002.jpg
RE: [flexcoders] How would you go about to make SuperImage support .swf?
If you don't need the cache, why not just use SWFLoader? 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/ 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 http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies