Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
Kevin Cannon wrote: Is it possible to publish a movie as Flash 6, but use the flash filters to add things like drop shadows for those with the Flash 8 or greater plugin? Cedric had a good tip on how to do this in a single file, and Peter discussed the split-file technique as well. But a reminder, too, of the counter-intuitive finding that very few people have Macromedia Flash Player 6 these days... back in June a consumer survey found that less than 2% had FP6 installed, while over 85% already had FP8, and over the past six months of YouTubey happiness that difference would have become even more radically pronounced. ... but maybe you have an audience which is partially locked down, where they don't have permission to change what's on their machines...? jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
Hey all, Is it possible to publish a movie as Flash 6, but use the flash filters to add things like drop shadows for those with the Flash 8 or greater plugin? My basic tests haven't resulted in it working, but I suspect there may be a way. Any ideas? Thanks, - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
We use a simple trick to perform this : Prepare all your assets to be compiled to Flash 6, you will apply filters only by code, then, in your code you need to create a local var called flash when flash version is not 8, like that (sorry for the ugly code, it's just for the demonstration): if(parseInt(System.capabilities.version.split( )[1].substr(0,1)) 8) { var flash = {}; } then you can know create filters like that without having any compiler error : var myFilter:Object = new flash.filters.BlurFilter(); You need to use the complete classpath when creating the object, in this way you don't have to add an import in your code (the compiler won't check that, and you have defined a local var called flash so it don't warn you for calling a non defined property) Then you can compile in flash 6 version without errors. But for the moment if you run your swf in flash player 8 you can't see the filters, you just have to modify the version directly in the bytecode of the swf, the the swf can run in flash player 6 (because the complete bytecode is targetted to version 6 except the version byte) and your filters is visible in player 8. I'll post you an example at that url : http://book.abe.free.fr/other/filters.swf Hope that could help you. Cheers, Cédric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
Wow - thanks a lot, seems perfect. Found one of those SWF changer utilities too to help with the conversion. http://www.orison.biz/blogs/chall3ng3r/?p=101 Do you know if there's any problems or caveats of using this method? - Kevin On 19/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We use a simple trick to perform this : Prepare all your assets to be compiled to Flash 6, you will apply filters only by code, then, in your code you need to create a local var called flash when flash version is not 8, like that (sorry for the ugly code, it's just for the demonstration): ... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
Hi Kevin, Do you know if there's any problems or caveats of using this method? We haven't see any problems at using this trick in our projects, but we use it only for small occasional swf in our site and only to have a better look, not for big game or critical point I think there's probably some bugs with some functions witch have a different behavior in Flash 6 than in greater version, but no example come to my mind at this time. A lot of people use that hack to test flash 8 functionalities when flash 8 ide wasn't even released. Some googling will give you more information about that (search for blog post dated from that period) Cédric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com