Re: [Flashcoders] Bitmaps and Security
This is driving me absolutely nuts, hats off to the flash engineers who have outdone themselves.. with bitmap security. Not like any image can't be photoshop print screened right off the web and filtered in photoshop, some security risk, eh crap total crap I say. 1. Copying a bitmap from a loaded movieclip leaves me with a big friggin white box 2. Is it an error? did i code it wrong? Is it a security issue? we'll never know because as2.0 is so crappy it silently fails 3. Using a proxy server killed our apache server that sucks I don't know if my testing this is working because all i know is that the bitmap data object is not null. Has anybody created a loader class that successfully loads a bitmap into a movie clip and then returned the bitmap data object into a loaded swf from another server? I wish I could use AS3.0 to do this but I have to make this work on our old site temporarily. What's worse, is that this time investment could be spent making something in flash 9. Attention Adobe: I am about to quit my job and go deliver pizzas! Thanks for nothing On Mar 7, 2007, at 8:13 AM, Jobe Makar wrote: Hi Patrick, I'm interested to hear what others have to say about this as well. I too have encountered this. If you have the Flash 9 player installed (even though its a Flash 8 app) and you're using a crossdomain file, then it works. However, if you only use the Flash 8 player view this app then it fails. I had an idea of something else to try, but I didn't attempt it. Here is the idea: - put a tiny swf on that image server. tiny.swf - load tiny.swf into app.swf - tiny.swf does a security.allowDomain call to give its parent access That alone might do the trick. If not, then take it a step further. Have tiny.swf give app.swf security access, then tiny.swf actually does the bitmap loading and passes the bitmap data to app.swf. Stuff like this is a pain to test but I bet one of those will work. Please let me know if you try one and it works. Jobe Makar http://www.electrotank.com http://www.electro-server.com phone: 252-627-8026 mobile: 919-609-0408 fax: 919-341-8104 - Original Message - From: {reduxdj} [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 07, 2007 10:29 AM Subject: [Flashcoders] Bitmaps and Security Hello, I have a small problem. We're using some bitmap functions inside flash that scale thumbnails so appear to be smoothed out instead of jagged edges. However, we're changing our back-end systems to be stateless and our flash files and our images will be on different servers. Of course, if you have had any dealings with cross domain image loading and bitmap processing, you probably know what i am up against (images appear white because of security restrictions when trying to apply bitmap processing) Is it possible by a cross domain policy or other means to load the images from different servers where your flash swf files remain and then apply effects. I know it is possible with a php proxy, but that's computer processor expensive. Since our sub-domains are all the same, there should be a way to bypass this security. Thanks for your time, Patrick ___ 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@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@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] Bitmaps and Security
In Flash 8 you can add: System.security.allowDomain(www.domain.com); to your Flash app that does the loading. For the flash 9 player, you'll need a cross domain policy file. regards, Muzak - Original Message - From: Patrick Lemiuex [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, January 19, 2007 12:00 AM Subject: Re: [Flashcoders] Bitmaps and Security This is driving me absolutely nuts, hats off to the flash engineers who have outdone themselves.. with bitmap security. Not like any image can't be photoshop print screened right off the web and filtered in photoshop, some security risk, eh crap total crap I say. 1. Copying a bitmap from a loaded movieclip leaves me with a big friggin white box 2. Is it an error? did i code it wrong? Is it a security issue? we'll never know because as2.0 is so crappy it silently fails 3. Using a proxy server killed our apache server that sucks I don't know if my testing this is working because all i know is that the bitmap data object is not null. Has anybody created a loader class that successfully loads a bitmap into a movie clip and then returned the bitmap data object into a loaded swf from another server? I wish I could use AS3.0 to do this but I have to make this work on our old site temporarily. What's worse, is that this time investment could be spent making something in flash 9. Attention Adobe: I am about to quit my job and go deliver pizzas! Thanks for nothing ___ 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] Bitmaps and Security
i had that Porblem too... I solved it by copying the bitmap data to an empty movieClip when the onLoadInit() (and not onLoadComplete!!) handler invokes, this means u'll have to load the movieClip with the MovieClipLoader object. even working Offline, the draw() method wouldn't work as the MovieClip doesn't load instantially. Hope this helps On 3/10/07, Muzak [EMAIL PROTECTED] wrote: In Flash 8 you can add: System.security.allowDomain(www.domain.com); to your Flash app that does the loading. For the flash 9 player, you'll need a cross domain policy file. regards, Muzak - Original Message - From: Patrick Lemiuex [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, January 19, 2007 12:00 AM Subject: Re: [Flashcoders] Bitmaps and Security This is driving me absolutely nuts, hats off to the flash engineers who have outdone themselves.. with bitmap security. Not like any image can't be photoshop print screened right off the web and filtered in photoshop, some security risk, eh crap total crap I say. 1. Copying a bitmap from a loaded movieclip leaves me with a big friggin white box 2. Is it an error? did i code it wrong? Is it a security issue? we'll never know because as2.0 is so crappy it silently fails 3. Using a proxy server killed our apache server that sucks I don't know if my testing this is working because all i know is that the bitmap data object is not null. Has anybody created a loader class that successfully loads a bitmap into a movie clip and then returned the bitmap data object into a loaded swf from another server? I wish I could use AS3.0 to do this but I have to make this work on our old site temporarily. What's worse, is that this time investment could be spent making something in flash 9. Attention Adobe: I am about to quit my job and go deliver pizzas! Thanks for nothing ___ 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 -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ 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] Bitmaps and Security
Hi Patrick, I'm interested to hear what others have to say about this as well. I too have encountered this. If you have the Flash 9 player installed (even though its a Flash 8 app) and you're using a crossdomain file, then it works. However, if you only use the Flash 8 player view this app then it fails. I had an idea of something else to try, but I didn't attempt it. Here is the idea: - put a tiny swf on that image server. tiny.swf - load tiny.swf into app.swf - tiny.swf does a security.allowDomain call to give its parent access That alone might do the trick. If not, then take it a step further. Have tiny.swf give app.swf security access, then tiny.swf actually does the bitmap loading and passes the bitmap data to app.swf. Stuff like this is a pain to test but I bet one of those will work. Please let me know if you try one and it works. Jobe Makar http://www.electrotank.com http://www.electro-server.com phone: 252-627-8026 mobile: 919-609-0408 fax: 919-341-8104 - Original Message - From: {reduxdj} [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 07, 2007 10:29 AM Subject: [Flashcoders] Bitmaps and Security Hello, I have a small problem. We're using some bitmap functions inside flash that scale thumbnails so appear to be smoothed out instead of jagged edges. However, we're changing our back-end systems to be stateless and our flash files and our images will be on different servers. Of course, if you have had any dealings with cross domain image loading and bitmap processing, you probably know what i am up against (images appear white because of security restrictions when trying to apply bitmap processing) Is it possible by a cross domain policy or other means to load the images from different servers where your flash swf files remain and then apply effects. I know it is possible with a php proxy, but that's computer processor expensive. Since our sub-domains are all the same, there should be a way to bypass this security. Thanks for your time, Patrick ___ 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@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