Re: [flexcoders] Re: Security sandbox violation
If you use relative paths, it might work when local, but I don’t think it will. Don’t test it with SWFLoader, it always converts relative paths to absolute which is guaranteed to be blocked when local. On 5/25/10 3:48 PM, Richard Rodseth rrods...@gmail.com wrote: Sorry :) That seems to happen a lot with my topics. Use case 1: Customer (a sales engineer) accesses a demo that is hosted on the web like any other Flex app. This demo makes no api calls, but does need to access an XML config file that lives in a data folder beside the SWF Use case 2: Sales engineer has a copy of the entire directory (swf, wrapper html, config file) and runs it locally I think your second point confirms that to support both use cases with one version of the application, the customer would have to add a trusted location so that the app could get to the config. That may be fine, I would have to check. Since this is all read-only stuff, I would have hoped I could do it with one SWF and no user-intervention, but I imagine there are good reasons for these restrictions. On Tue, May 25, 2010 at 3:26 PM, Alex Harui aha...@adobe.com wrote: I got lost trying to follow this topic. Whether it is browser or standalone shouldn’t matter. What matters is the url of the SWF (file:// or http://), the trust file settings on the computer, the use-network flag, and how you access the external resources. If you build a SWF to run locally then it cannot access the network. If you build a SWF to access the network, it cannot access the local files unless trusted. Even if trusted, you may run into issues using certain file paths. Be sure to use relative paths to subfolders of the trusted folder. On 5/25/10 2:42 PM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: Thanks. That sounds like a no for supporting my two use cases, unless the customer adds a trusted location or opens the SWF in the standalone player. On Tue, May 25, 2010 at 12:45 PM, Oleg Sivokon olegsivo...@gmail.com http://olegsivo...@gmail.com wrote: OK, it's like this: SWF launched in standalone player can interact with the system AND load remote content, just like the browser can do the same thing. SWF launched in browser plugin can only access permitted folders on your hard disc. To allow access to the folder you should either use the web interface (see my previous link), or read from the link Ami posted and try to figure out how to do that on Mac (you are not required to use web interface to establish local trust relationships between SWF and specific locations in file system, it's just that, I simply don't know how to do that on Mac...) There's yet another option for launching a SWF - that's how I usually do that - from the local HTTP server, in such case it acts more like as if it was deployed to the actual server and all the following rules apply. I would definitely recommend the later way of debugging as it is the most similar to the live situation. The loading of content other than SWF into another SWF is governed by policy files aka crossdomain.xml. You need these files if you are loading content from domains other than SWF origin. The loading of other SWFs by SWF is governed by two things: ApplicationDomain provided to the Loader when loading SWF with LoaderContext - by default it won't allow crosscripting. Security.allowDomain() doesn't define how classes are loaded into application domain, however, should prevent security errors related to crosscripting. Well, yes, it is complicated... -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Security sandbox violation
That's how I started I out and will most likely end up. But getting the error while debugging (which has since gone away) and reading the responses here indicated it shouldn't work. On Wed, May 26, 2010 at 6:06 AM, valdhor valdhorli...@embarqmail.comwrote: Why not just keep networking on and access the local file with a local URL? mx:HttpService url=test.xml ... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Thanks. That's good to know about. It seems, though, that one has to choose between allowing local access or network access. Can anyone tell me if it's possible to create a single SWF (plus companion wrapper html and config xml that can either be hosted on a web server, or unzipped and run locally? Or would the end user have to use that page you linked to? On Tue, May 25, 2010 at 6:18 AM, valdhor valdhorli...@...wrote: What I do for debugging purposes is to set my debug folder as a trusted source in http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html To do this... Click Edit Locations-Add Location Click Browse for Folder Browse to your bin-debug folder This allows you to debug locally - ie. from a file://location_of_bin-debug_HTML_file. If you have a local server running (Which I do) the you can set your run/debug settings to open the html file on your local server. ie. http://127.0.0.1/myproject/bin-debug/myproject.html. In this case, you would need a crossdomain.xml file. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Richard Rodseth rrodseth@ wrote: Not sure I follow that page, but it appears that the -use-network=false compiler flag may be helpful for this scenario. If only FB allowed you to set different compiler options for different applications within a project. On Mon, May 24, 2010 at 4:11 PM, Oleg Sivokon olegsivokon@ wrote: No, it is different. If the SWF is embedded in HTML page, it requires that you specify the trusted locations on your machine, so it could load content: http://macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html Read carefully the text in gray under the picture. But, if you launch it in standalone player, then, I reckon, it should be able to access local files.
Re: [flexcoders] Re: Security sandbox violation
I'm not sure we're all talking about the same thing, but there must be zillions of SWFs accessing external XML configurations without any user intervention. I haven't tested on a web server yet, but this -use-network=false seems appropriate. On Tue, May 25, 2010 at 8:49 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: No, it is different. If the SWF is embedded in HTML page, it requires that you specify the trusted locations on your machine, so it could load content: http://macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html Read carefully the text in gray under the picture. But, if you launch it in standalone player, then, I reckon, it should be able to access local files. No, I am pretty sure you (and all your users) will need to use the Settings Manager page in order to trust the directory with your XML in it. Apparently, you can provide a config file to get around this: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c95.html, but the directory where this is supposed to live doesn't even exist on my computer, and there is no clue of where to get one to use as a starting point. Good luck! Amy
Re: [flexcoders] Re: Security sandbox violation
I'm obviously thoroughly confused. Presumably -use-network must be true in order to run the folder from the server, because the swf will be local once it's trying to read the XML config file sitting beside the SWF on the server. I'm hoping I don't need a different SWF for the second scenario (unzipping a folder and opening the wrapper html locally. I just tried again, launching the debugger, even without setting -use-network to false, and this time it worked. On Tue, May 25, 2010 at 11:08 AM, Richard Rodseth rrods...@gmail.comwrote: I'm not sure we're all talking about the same thing, but there must be zillions of SWFs accessing external XML configurations without any user intervention. I haven't tested on a web server yet, but this -use-network=false seems appropriate. On Tue, May 25, 2010 at 8:49 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: No, it is different. If the SWF is embedded in HTML page, it requires that you specify the trusted locations on your machine, so it could load content: http://macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html Read carefully the text in gray under the picture. But, if you launch it in standalone player, then, I reckon, it should be able to access local files. No, I am pretty sure you (and all your users) will need to use the Settings Manager page in order to trust the directory with your XML in it. Apparently, you can provide a config file to get around this: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c95.html, but the directory where this is supposed to live doesn't even exist on my computer, and there is no clue of where to get one to use as a starting point. Good luck! Amy
Re: [flexcoders] Re: Security sandbox violation
Thanks. That's good to know about. It seems, though, that one has to choose between allowing local access or network access. Can anyone tell me if it's possible to create a single SWF (plus companion wrapper html and config xml that can either be hosted on a web server, or unzipped and run locally? Or would the end user have to use that page you linked to? On Tue, May 25, 2010 at 6:18 AM, valdhor valdhorli...@embarqmail.comwrote: What I do for debugging purposes is to set my debug folder as a trusted source in http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html To do this... Click Edit Locations-Add Location Click Browse for Folder Browse to your bin-debug folder This allows you to debug locally - ie. from a file://location_of_bin-debug_HTML_file. If you have a local server running (Which I do) the you can set your run/debug settings to open the html file on your local server. ie. http://127.0.0.1/myproject/bin-debug/myproject.html. In this case, you would need a crossdomain.xml file. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Not sure I follow that page, but it appears that the -use-network=false compiler flag may be helpful for this scenario. If only FB allowed you to set different compiler options for different applications within a project. On Mon, May 24, 2010 at 4:11 PM, Oleg Sivokon olegsivo...@... wrote: No, it is different. If the SWF is embedded in HTML page, it requires that you specify the trusted locations on your machine, so it could load content: http://macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html Read carefully the text in gray under the picture. But, if you launch it in standalone player, then, I reckon, it should be able to access local files.
Re: [flexcoders] Re: Security sandbox violation
OK, it's like this: SWF launched in standalone player can interact with the system AND load remote content, just like the browser can do the same thing. SWF launched in browser plugin can only access permitted folders on your hard disc. To allow access to the folder you should either use the web interface (see my previous link), or read from the link Ami posted and try to figure out how to do that on Mac (you are not required to use web interface to establish local trust relationships between SWF and specific locations in file system, it's just that, I simply don't know how to do that on Mac...) There's yet another option for launching a SWF - that's how I usually do that - from the local HTTP server, in such case it acts more like as if it was deployed to the actual server and all the following rules apply. I would definitely recommend the later way of debugging as it is the most similar to the live situation. The loading of content other than SWF into another SWF is governed by policy files aka crossdomain.xml. You need these files if you are loading content from domains other than SWF origin. The loading of other SWFs by SWF is governed by two things: ApplicationDomain provided to the Loader when loading SWF with LoaderContext - by default it won't allow crosscripting. Security.allowDomain() doesn't define how classes are loaded into application domain, however, should prevent security errors related to crosscripting. Well, yes, it is complicated...
Re: [flexcoders] Re: Security sandbox violation
Thanks. That sounds like a no for supporting my two use cases, unless the customer adds a trusted location or opens the SWF in the standalone player. On Tue, May 25, 2010 at 12:45 PM, Oleg Sivokon olegsivo...@gmail.comwrote: OK, it's like this: SWF launched in standalone player can interact with the system AND load remote content, just like the browser can do the same thing. SWF launched in browser plugin can only access permitted folders on your hard disc. To allow access to the folder you should either use the web interface (see my previous link), or read from the link Ami posted and try to figure out how to do that on Mac (you are not required to use web interface to establish local trust relationships between SWF and specific locations in file system, it's just that, I simply don't know how to do that on Mac...) There's yet another option for launching a SWF - that's how I usually do that - from the local HTTP server, in such case it acts more like as if it was deployed to the actual server and all the following rules apply. I would definitely recommend the later way of debugging as it is the most similar to the live situation. The loading of content other than SWF into another SWF is governed by policy files aka crossdomain.xml. You need these files if you are loading content from domains other than SWF origin. The loading of other SWFs by SWF is governed by two things: ApplicationDomain provided to the Loader when loading SWF with LoaderContext - by default it won't allow crosscripting. Security.allowDomain() doesn't define how classes are loaded into application domain, however, should prevent security errors related to crosscripting. Well, yes, it is complicated...
Re: [flexcoders] Re: Security sandbox violation
I got lost trying to follow this topic. Whether it is browser or standalone shouldn’t matter. What matters is the url of the SWF (file:// or http://), the trust file settings on the computer, the use-network flag, and how you access the external resources. If you build a SWF to run locally then it cannot access the network. If you build a SWF to access the network, it cannot access the local files unless trusted. Even if trusted, you may run into issues using certain file paths. Be sure to use relative paths to subfolders of the trusted folder. On 5/25/10 2:42 PM, Richard Rodseth rrods...@gmail.com wrote: Thanks. That sounds like a no for supporting my two use cases, unless the customer adds a trusted location or opens the SWF in the standalone player. On Tue, May 25, 2010 at 12:45 PM, Oleg Sivokon olegsivo...@gmail.com wrote: OK, it's like this: SWF launched in standalone player can interact with the system AND load remote content, just like the browser can do the same thing. SWF launched in browser plugin can only access permitted folders on your hard disc. To allow access to the folder you should either use the web interface (see my previous link), or read from the link Ami posted and try to figure out how to do that on Mac (you are not required to use web interface to establish local trust relationships between SWF and specific locations in file system, it's just that, I simply don't know how to do that on Mac...) There's yet another option for launching a SWF - that's how I usually do that - from the local HTTP server, in such case it acts more like as if it was deployed to the actual server and all the following rules apply. I would definitely recommend the later way of debugging as it is the most similar to the live situation. The loading of content other than SWF into another SWF is governed by policy files aka crossdomain.xml. You need these files if you are loading content from domains other than SWF origin. The loading of other SWFs by SWF is governed by two things: ApplicationDomain provided to the Loader when loading SWF with LoaderContext - by default it won't allow crosscripting. Security.allowDomain() doesn't define how classes are loaded into application domain, however, should prevent security errors related to crosscripting. Well, yes, it is complicated... -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Security sandbox violation
Sorry :) That seems to happen a lot with my topics. Use case 1: Customer (a sales engineer) accesses a demo that is hosted on the web like any other Flex app. This demo makes no api calls, but does need to access an XML config file that lives in a data folder beside the SWF Use case 2: Sales engineer has a copy of the entire directory (swf, wrapper html, config file) and runs it locally I think your second point confirms that to support both use cases with one version of the application, the customer would have to add a trusted location so that the app could get to the config. That may be fine, I would have to check. Since this is all read-only stuff, I would have hoped I could do it with one SWF and no user-intervention, but I imagine there are good reasons for these restrictions. On Tue, May 25, 2010 at 3:26 PM, Alex Harui aha...@adobe.com wrote: I got lost trying to follow this topic. Whether it is browser or standalone shouldn’t matter. What matters is the url of the SWF (file://or http://), the trust file settings on the computer, the use-network flag, and how you access the external resources. If you build a SWF to run locally then it cannot access the network. If you build a SWF to access the network, it cannot access the local files unless trusted. Even if trusted, you may run into issues using certain file paths. Be sure to use relative paths to subfolders of the trusted folder. On 5/25/10 2:42 PM, Richard Rodseth rrods...@gmail.com wrote: Thanks. That sounds like a no for supporting my two use cases, unless the customer adds a trusted location or opens the SWF in the standalone player. On Tue, May 25, 2010 at 12:45 PM, Oleg Sivokon olegsivo...@gmail.com wrote: OK, it's like this: SWF launched in standalone player can interact with the system AND load remote content, just like the browser can do the same thing. SWF launched in browser plugin can only access permitted folders on your hard disc. To allow access to the folder you should either use the web interface (see my previous link), or read from the link Ami posted and try to figure out how to do that on Mac (you are not required to use web interface to establish local trust relationships between SWF and specific locations in file system, it's just that, I simply don't know how to do that on Mac...) There's yet another option for launching a SWF - that's how I usually do that - from the local HTTP server, in such case it acts more like as if it was deployed to the actual server and all the following rules apply. I would definitely recommend the later way of debugging as it is the most similar to the live situation. The loading of content other than SWF into another SWF is governed by policy files aka crossdomain.xml. You need these files if you are loading content from domains other than SWF origin. The loading of other SWFs by SWF is governed by two things: ApplicationDomain provided to the Loader when loading SWF with LoaderContext - by default it won't allow crosscripting. Security.allowDomain() doesn't define how classes are loaded into application domain, however, should prevent security errors related to crosscripting. Well, yes, it is complicated... -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Security sandbox violation
Whether it is browser or standalone shouldn’t matter. Now I'm lost... I have ShockwaveFlash ActiveX sitting on the form and loading MP3 files from any place on my PC (well, this is the easiest way to have MP3 player in .NET :D ), it can playback MP3s just fine, I'm getting no warnings / errors, checked the logs and it says it's all good... how's that possible / should it be that way? This is an entirely clean install of Windows, and I haven't yet set any trust records...
Re: [flexcoders] Re: Security sandbox violation
BTW, this is what the code looks like if you want to try... // // flashMovie // this.flashMovie.Dock = System.Windows.Forms.DockStyle.Fill; this.flashMovie.Enabled = true; this.flashMovie.Location = new System.Drawing.Point(0, 0); this.flashMovie.Name = flashMovie; this.flashMovie.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject(flashMovie.OcxState))); this.flashMovie.Size = new System.Drawing.Size(279, 128); this.flashMovie.TabIndex = 1; this.flashMovie.Visible = false; . . . private void PreviewMp3Content(SamTreeNode node) { if (File.Exists(node.File)) { if (!this.flashMovie.Visible) this.flashMovie.Visible = true; this.flashMovie.Width = this.splitContainer1.Width; this.flashMovie.FlashVars = sound= + node.File; this.flashMovie.LoadMovie(0, this.pluginMain.MP3Player); } }
Re: [flexcoders] Re: Security sandbox violation
What is the use-network setting? I don’t know the rules for audio. Remember that you can load an image from just about anywhere, but you can’t access the pixels. Poke through the security white-papers on the Adobe site. On 5/25/10 3:49 PM, olegsivo...@gmail.com olegsivo...@gmail.com wrote: Whether it is browser or standalone shouldn’t matter. Now I'm lost... I have ShockwaveFlash ActiveX sitting on the form and loading MP3 files from any place on my PC (well, this is the easiest way to have MP3 player in .NET :D ), it can playback MP3s just fine, I'm getting no warnings / errors, checked the logs and it says it's all good... how's that possible / should it be that way? This is an entirely clean install of Windows, and I haven't yet set any trust records... -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
There should almost never be a preloadSWF entry in your mm.cfg. FlexBuilder is supposed to put it in and take out at the beginning and end of profiler sessions. If you clear that entry from mm.cfg do you still have problems? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nateross83 Sent: Thursday, April 02, 2009 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Glad that worked for you Tim. However, I am still having issues. I have had an mm.cfg file in my c:\users\username directory and have tried multiple things with it that I read online such as trying to specify a path to PreloadSwf, but I still keep getting the same error. Any other thoughts? I started out compiling my project under version 3.3 of the SDK, but recently compiled it under 3.2 to see if it would work, but to no avail. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.commailto:lexcoders%40yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems
RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular launch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateros...@... wrote: I am experiencing the same problems trying to profile an AIR 1.5 app. Here is my stack trace: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C|%2FUsers%2FNateR%2FDocuments%2FFlex%20Builder%203%2F.metadata%\ 2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost\ port=9998 cannot load data from localhost:9998. at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent\ .as:127] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry() I have tried changing the port from to other values without success, I disabled my firewall to try it (although I don't think localhost would be an issue). The strange thing is that a coworker of mine appears to have the same set up as I do and it works fine for him. Here is what I have: Flex Builder v 3.0.2 Flash Player 10 AIR 1.5.1 If you have solved the problem Tim, or anyone else for the matter, please help me out. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\ \ ofiler%2FProfilerAgent.swf?host=localhostport= file:///Cfile:///\\C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.p\ \ rofiler%2FProfilerAgent.swf?host=localhostport= cannot load data from localhost:. at ProfilerAgent()[C:\faramir\flex\sdk\modules\profiler3\as\ProfilerAgent.a\ \ s:127] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry()
RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems trying to profile an AIR 1.5 app. Here is my stack trace: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C|%2FUsers%2FNateR%2FDocuments%2FFlex%20Builder%203%2F.metadata%\ 2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost\ port=9998 cannot load data from localhost:9998. at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent\ .as:127] at runtime::ContentPlayer/loadInitialContent(! ) at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry() I have tried changing the port from to other values without success, I disabled my firewall to try it (although I don't think localhost would be an issue). The strange thing is that a coworker of mine appears to have the same set up as I do and it works fine for him. Here is what I have: Flex Builder v 3.0.2 Flash Player 10 AIR 1.5.1 If you have solved the problem Tim, or anyone else for the matter, please help me out. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: g! t; Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\ \ ofiler%2FProfilerAgent.swf?host=localhostport= file:///Cfile:///\\C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.p\ \ ! rofiler%2FProfilerAgent.swf?host=localhost! ;port=99 99 cannot load data from localhost:. at ProfilerAgent()[C:\faramir\flex\sdk\modules\profiler3\as\ProfilerAgent.a\ \ s:127] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry()
RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems trying to profile an AIR 1.5 app. Here is my stack trace: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C! ;|%2FUsers%2FNateR%2FDocuments%2FFlex%20Builder%203%2F.metadata%\ 2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost\ port=9998 cannot load data from localhost:9998. at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent\ .as:127] at runtime::ContentPlayer/loadInitialContent(! ) at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry() I have tried changing the port from to other values without success, I disabled my firewall to try it (although I don't think localhost would be an issue). The strange thin! g is that a coworker of mine appears to have the ! same set up as I do and it works fine for him. Here is what I have: Flex Builder v 3.0.2 Flash Player 10 AIR 1.5.1 If you have solved the problem Tim, or anyone else for the matter, please help me out. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: g! t; Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this ! and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044: Unhandled securityError:. text=Error #2048:
RE: [flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy
Did you try AS3 with CS4? There might be tighter security in AS3. Also check the code that does the load. You might need to set some security options in AS3 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jwebbsuccess Sent: Friday, January 16, 2009 4:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy I tested the video player SWF online... Just as I thought; it didn't make a difference. I need to figure out how the Flash CS4/AS2 demo is able to successfully get a snapshot and why the Flex/AS3 video player is not. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, jwebbsuccess jw...@... wrote: I am testing the video player Flex app over 'file:///C:/file:///C:\' but the Flash CS4 demo is technically on 'file:///C:/file:///C:\' as well. Both are in subdirectories of my desktop/document folder and both are trying to access the very same file over RTMP. Here's the official error from the video player: - Security sandbox violation: BitmapData.draw: file:///C:/file:///C:\.../bin- debug/BaseFLVPlayer.swf cannot access rtmp://.../vod/. No policy files granted access. at flash.display::BitmapData/draw() - I think I'm going test the video player SWF online instead of on my desktop. I don't think it will help but I've got no other ideas at this point. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Are you testing this over http:// or file:// If file:// crossdomain.xml may not be in play. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of jwebbsuccess Sent: Friday, January 16, 2009 11:50 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml Take a look at this video player; notice there is an image on screen before the video begins playback: http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration- you_n_157881.html I'm trying to create similar 'preview frame' functionality in my own custom-built Flex/AS3-based RTMP video player... I need my the player to seek ahead to a given point in video, grab a snapshot for display as a preview frame, then seek back to the beginning before the user initiates playback... Or something like that. I've already got demo code (AS2) for taking a snapshot of a video after it has started playing. The problem is when I try to write code to do the same thing in my AS3 player, I get sandbox violation error as if I were running the demo SWF and my video player SWF on different servers. Both SWFs are in document folders on my computer... The RTMP host and I have confirmed that the permissions for using 'BitmapData.draw( obj )' on a video stream are in place (the demo works) so I've got no idea why I'm getting the sandbox violation error. Can anyone help me to get a snapshot of a video stream and then return the stream to the beginning before the user initiates playback? I've included the FLA for the demo in Flash CS4 and CS3 format: http://www.futurewebstudios.com/bitMapViewer2.zip The demo code is attached separately: --- import flash.display.BitmapData; var nc:NetConnection = new NetConnection(); var ns:NetStream; var myBitmapData:BitmapData = new BitmapData( 160, 120, false, 0x00CC ); var mc_1:MovieClip = this.createEmptyMovieClip( mc, this.getNextHighestDepth() ); btnCap.addEventListener( click, captureVid ); nc.connect( rtmp://okojcizj1r.rtmphost.com/vod ); //nc.connect( rtmp://localhost/vod ); nc.onStatus = function( p_o ) { var code = p_o.code; trace( code ); if ( code == NetConnection.Connect.Success ) { playLive(); } }; function playLive() { trace( playLive ); mc_1._x = 195; mc_1._y = 15; ns = new NetStream( nc ); myVideo.attachVideo( ns ); myVideo.attachAudio( ns ); ns.play( kaye_400 ); ns.onStatus = function( p_o ) { trace( p_o.code ); }; mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() ); } function captureVid() { trace( captureVid ); myBitmapData.draw( myVideo ); } --- I've also attached a piece of the code in my video player app so you can see what I'm trying to do; if you need to see more of the code, let me know and I'll send it to you: --- public function getScreenCaptureData( seekTime:Number, vidWidth:Number, vidHeight:Number ):Bitmap { var startAt:Number = _netStream.time; trace( this + getScreenCaptureData -- startAt: + startAt + , seekTime: + seekTime + , vidWidth: + vidWidth + , vidHeight: +
Re: [flexcoders] Re: security sandbox violation in standalone player but not in browser
On Thursday 08 Jan 2009, Maciek Sakrejda wrote: Interesting; however I'm using Evolution against an Exchange server, Your 'From' address just changed from @gmail to something else... -- Tom Chiverton Helping to paradigmatically monetize distributed sticky granular infrastructures This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: security sandbox violation in standalone player but not in browser
On Wednesday 07 Jan 2009, maciek9billion wrote: Please ignore. I checked using the Yahoo! Groups interface, and the message showed up just fine. Must be something funky with either my mail or flexcoders mail. GMail wont show posts you send to mailing lists until someone replies. -- Tom Chiverton Helping to competently introduce fifth-generation best-of-breed experiences This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: security sandbox violation in standalone player but not in browser
Interesting; however I'm using Evolution against an Exchange server, and my previous posts have showed up fine. I haven't gotten any of my messages to the list from that thread, nor Alex's reply (though I can see them through the web interface), but I did get your reply now. Maybe there are goblins in the tubes messing with my mail. -Maciek -Original Message- From: Tom Chiverton tom.chiver...@halliwells.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: security sandbox violation in standalone player but not in browser Date: Thu, 8 Jan 2009 13:54:45 + On Wednesday 07 Jan 2009, maciek9billion wrote: Please ignore. I checked using the Yahoo! Groups interface, and the message showed up just fine. Must be something funky with either my mail or flexcoders mail. GMail wont show posts you send to mailing lists until someone replies. -- Tom Chiverton Helping to competently introduce fifth-generation best-of-breed experiences This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Alex Harui schreef: Please post the entire contents of the window that shows the exception. I would expect to see a call stack with line numbers if you are using a debug build -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Ward Loockx Sent: Thursday, November 20, 2008 8:30 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
By default, the Image/SWFLoader should not be setting the loaderContext's securityDomain. If trustContent=true it will and will cause this problem. If you supplied a custom loaderContext, you could also have this problem. I would try to find out how the loaderContext is getting set. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Friday, November 21, 2008 12:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Please post the entire contents of the window that shows the exception. I would expect to see a call stack with line numbers if you are using a debug build -Original Message- From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Ward Loockx Sent: Thursday, November 20, 2008 8:30 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help
Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you’ll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=”ldr” trustContent=”true” / Is SWFLOader id=”ldr” preinitialize=”if (Security.sandboxType==’remote’) ldr.trustContent=true else ldr.trustContent=false” / *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward I've been trying with trustcontent mx:Image id=image source={imageUrl} trustContent=true/ But this didn't worked out for me... still same error. Any suggestions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Please post the entire contents of the window that shows the exception. I would expect to see a call stack with line numbers if you are using a debug build -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Thursday, November 20, 2008 8:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward I've been trying with trustcontent mx:Image id=image source={imageUrl} trustContent=true/ But this didn't worked out for me... still same error. Any suggestions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Tuesday, November 18, 2008 12:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward
Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :(
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Monday, November 17, 2008 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :(
Re: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
Hi Ben, This is quite strange, can you acces your db through php without calling it from Flex? Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
Why have you set the mysql default port to 80? 80 is the port for web servers usually and I wouldn't recommend to have mysql at it. The mysql default port is 3306.Another question, have you tried to access your php script without Flex? Just to make sure it's working properly. Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
Well your setup sounds pretty straightforward so not sure why it isn't working. I'm assuming useProxy=false (or isn't specified) on your HTTPService. The port that you access the SWF is the same as the PHP? http://localhost:1234/myswf.swf http://localhost:1234/myphp.php Not much more I can ask I think, I assume you didn't do any funky compiler settings like -usenetwork... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lift69boy Sent: Monday, April 03, 2006 12:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL yes to all your questions...I'm calling the php script from my mxml both of which are on localhost, I am running my flex project in the web browser. It seems a pretty simple set up (based on Mike Potters exampleperhaps youve seen it)...flex project running on apache localhost, php querying mysql, both on localhost...I know nothing about we server architecture so maybe its some config I'm missing here... thanks again Matt Ben --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I guess I misunderstood, are you using HTTPService to hit your PHP? And the PHP is on localhost? Are you accessing the SWF using a web browser from localhost as well? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lift69boy Sent: Sunday, April 02, 2006 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL Cheers Matt Forgive my ignorance but could you please define main otherI've configured my project to run on localhost, my php script runs no probs on localhost, i've gone down the proxy route but still the same error. I've looked through Apache PHP config nothing obvious here. I'm certain I'm making a schoolboy error somewhere... Really appreciate your help Ben --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: What are you loading? Looks like the main SWF is on one domain and the other SWF is on another domain? You might need to do Security.allowDomain work? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lift69boy Sent: Friday, March 31, 2006 4:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation using PHP, APACHE MYSQL hi allnot a new question but still can't find the answer... i think this is more of a flash security issue but I get the following error when running my project... Error: code:Client.CouldNotDecode string:'Error #2070: Security sandbox violation: caller '%s' may not access Stage owned by '%s'.' detail:'null' architecture is flexphpmysql running on apache. i've tried the crossdomain file in many places but from reading this other forums, it is where it should be i.e. on the web server root. i've pulled all my hair out will soon progress to chopping my legs off in frustration any help greatly appreciated cheers ben -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
I guess I misunderstood, are you using HTTPService to hit your PHP? And the PHP is on localhost? Are you accessing the SWF using a web browser from localhost as well? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lift69boy Sent: Sunday, April 02, 2006 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL Cheers Matt Forgive my ignorance but could you please define main otherI've configured my project to run on localhost, my php script runs no probs on localhost, i've gone down the proxy route but still the same error. I've looked through Apache PHP config nothing obvious here. I'm certain I'm making a schoolboy error somewhere... Really appreciate your help Ben --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What are you loading? Looks like the main SWF is on one domain and the other SWF is on another domain? You might need to do Security.allowDomain work? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lift69boy Sent: Friday, March 31, 2006 4:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation using PHP, APACHE MYSQL hi allnot a new question but still can't find the answer... i think this is more of a flash security issue but I get the following error when running my project... Error: code:Client.CouldNotDecode string:'Error #2070: Security sandbox violation: caller '%s' may not access Stage owned by '%s'.' detail:'null' architecture is flexphpmysql running on apache. i've tried the crossdomain file in many places but from reading this other forums, it is where it should be i.e. on the web server root. i've pulled all my hair out will soon progress to chopping my legs off in frustration any help greatly appreciated cheers ben -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/