RE: [Flashcoders] Bitmap.draw versus MovieClipLoader
I was using something like this for XML, but this gave me a really nice idea. I did find that Adobe had a much simpler version of the php file (two lines of code), that performed the same task. I decided to write an aspx page to perform the same task and to handle any type of page information. (A VERY slimmed down version of a reverse proxy server). So if anyone is looking for a similar solution, The link provided by Zeh is fine, also here are some others. A reverse proxy server in C# - perfect code to use as a blueprint or as-is. http://www.codeproject.com/cs/internet/reverseproxy.asp Adobe's scripts: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520&sliceId=2 If anyone else out there still has problems, I'll try to answer any questions. Thanks for the help all.. Frbuer. -Original Message- From: Zeh Fernando [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 12:47 PM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader > Is there a way to "proxy" image data? > I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP > object (in ASP/VBScript) and redirecting the information into the response object. > Anyone know the object for an image and/or other HTML page? (e.g. > Microsoft.HTML?? ) You can 'proxy' any kind of http file. It's a simple script on PHP, ASP, etc. For example, for a script that even forwards POST data, http://xmlrpcflash.mattism.com/proxy_info.php For images (or other type of data) you'd just need to change the content-type. Zeh ___ 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] Bitmap.draw versus MovieClipLoader
Is there a way to "proxy" image data? I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP object (in ASP/VBScript) and redirecting the information into the response object. Anyone know the object for an image and/or other HTML page? (e.g. Microsoft.HTML?? ) You can 'proxy' any kind of http file. It's a simple script on PHP, ASP, etc. For example, for a script that even forwards POST data, http://xmlrpcflash.mattism.com/proxy_info.php For images (or other type of data) you'd just need to change the content-type. Zeh ___ 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] Bitmap.draw versus MovieClipLoader
Is there a way to "proxy" image data? I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP object (in ASP/VBScript) and redirecting the information into the response object. Anyone know the object for an image and/or other HTML page? (e.g. Microsoft.HTML?? ) thanks - Fruber _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 11:18 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Cc: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader > It seems that calling bitmap.draw on a movieclip that has a downloaded image > forces another download - I haven't veified this via netmon (yet) - but > notice that a sandbox security violation occurs when call that function. To > me that doesn't make sense, If I already gave it permission to use that > image from that domain, why would some other component using that same > instance need to have the same permission (security line entries in the > class file)? > Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Parts&file=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Loade rContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Bitmap.draw versus MovieClipLoader
btw: I'm also not quite sure why all this works while running the swf locally (and of course adding it to the securities panel as trusted)? - I've tried adding http://localhost/test.swf , but that didn't work. Is there a simple workaround to load images (as data) from other domains? Otherwise, is there a method other than bitmap.draw for me to convert a movieclip (that has children) into pixel information that can be used to create an image? thanks - Fruber _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 11:18 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Cc: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader > It seems that calling bitmap.draw on a movieclip that has a downloaded image > forces another download - I haven't veified this via netmon (yet) - but > notice that a sandbox security violation occurs when call that function. To > me that doesn't make sense, If I already gave it permission to use that > image from that domain, why would some other component using that same > instance need to have the same permission (security line entries in the > class file)? > Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Parts&file=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Loade rContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Bitmap.draw versus MovieClipLoader
Perfect it told me exactly what I needed, but I'm not sure I understand why Macromedia (not adobe in this case) went in that direction - are they trying to protect pixel access for third party images? So I can load any image I want from anywhere, but the second I need to access the pixels (e.g. bitmap.draw) - I need to have that server (the source server for that image) allow me permission??!! But if I use anything earlier than 7 - It's ok?!! I guess I could proxy it like I do XML - but I'm not sure of the CreateObject type that I'd need to create in order to fill the Response. Any ideas on that? thanks for the help... Fruber _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 11:18 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Cc: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader > It seems that calling bitmap.draw on a movieclip that has a downloaded image > forces another download - I haven't veified this via netmon (yet) - but > notice that a sandbox security violation occurs when call that function. To > me that doesn't make sense, If I already gave it permission to use that > image from that domain, why would some other component using that same > instance need to have the same permission (security line entries in the > class file)? > Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Parts&file=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Loade rContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Bitmap.draw versus MovieClipLoader
> It seems that calling bitmap.draw on a movieclip that has a downloaded image > forces another download - I haven't veified this via netmon (yet) - but > notice that a sandbox security violation occurs when call that function. To > me that doesn't make sense, If I already gave it permission to use that > image from that domain, why would some other component using that same > instance need to have the same permission (security line entries in the > class file)? > Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/LoaderContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Bitmap.draw versus MovieClipLoader
I have a few copies of a downloaded image in memory to support various drag functions and would like to save some bandwidth. Obviously duplicateMovieClip won't work because it doesn't work on dynamically created clips that use LoadMovie. So I was thinking that I could use the new MovieClipLoader class and it would use the browsers cache or I could use the bitmap.draw function to create a bitmap and then attach that. Both of which I thought would work in the similar way. It seems that calling bitmap.draw on a movieclip that has a downloaded image forces another download - I haven't veified this via netmon (yet) - but notice that a sandbox security violation occurs when call that function. To me that doesn't make sense, If I already gave it permission to use that image from that domain, why would some other component using that same instance need to have the same permission (security line entries in the class file)? Am I better off using the MovieClipLoader class instead? - Will the MCL also try to download the image again and also need the sandbox settings? - or will it try to download it and load it from cache? Any insight would be helpful. 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