[flexcoders] Re: Security Sandbox Violation for module accessing localhost rest service in dev

2012-02-03 Thread Greg Lafrance
I got the answer from this web post:

http://stackoverflow.com/questions/1270347/unexpected-flash-security-exception-when-using-urlloader

Instead of setting the contentType like this:

request.contentType = "multipart/form-data;boundary=" + 
POSTUploadBuilder.boundary;

Set the contentType like this:

request.requestHeaders.push(new URLRequestHeader('Content-Type', 
'multipart/form-data; boundary=' + POSTUploadBuilder.boundary));

This is how I create the boundry in my POSTUploadBuilder class:

public class POSTUploadBuilder {
private static var _boundary:String = "";
private static var _mainBoundary:String = "";

public static function get boundary():String {
if(_boundary.length == 0) {
var i:uint = 0;
var len:uint = 0x20;

for(; i < len; ++i) {
_boundary += String.fromCharCode(uint(97 + Math.random() * 
25));
}
}

return _boundary;
}


--- In flexcoders@yahoogroups.com, "greg_lafrance"  wrote:
>
> I'm running within Flash Builder, to be able to set and hit breakpoints. How 
> can I do this and not run from file://  ?
> 
> Its strange that this is happening only for this one module. What could be 
> making a difference?
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > Use a testing server, don't run from file://
> > 
> > 
> > On 2/2/12 9:45 AM, "Greg Lafrance"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > Our app has a "main" module with link button, and clicking each link button 
> > loads different modules in the main content area.
> > 
> > For only one module, we get a Security Sandbox Violation when we try to do 
> > a multipart post of image data.
> > 
> > I can't find anything significantly different about this module, other 
> > modules do multipart posts fine.
> > 
> > I have added thre SWF and various folders (such as containing folder, its 
> > parent, etc.) to flash player global settings, but no luck. We added a 
> > liberal cross domain file but still no luck.
> > 
> > BTW, we are using ModuleLoader, should we try ModuleManager?
> > 
> > Please help.
> > 
> > *** Security Sandbox Violation ***
> > Connection to
> > http://localhost:PORTNUMBERHIDDEN/services/rest/mycompany/222/assetservice/asset?action=saveasset&objecttype=serviceOffer&objectid=5960&User-Agent=flex3.0&randomNum=1328144876976
> > 
> > halted - not permitted from
> > 
> > file:///C:/Perforce/Main/Portal/main/bin-debug/serviceOffer-2.4.0.18-SNAPSHOT.swf
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
>




[flexcoders] Re: Security Sandbox Violation for module accessing localhost rest service in dev

2012-02-03 Thread greg_lafrance
I'm running within Flash Builder, to be able to set and hit breakpoints. How 
can I do this and not run from file://  ?

Its strange that this is happening only for this one module. What could be 
making a difference?

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Use a testing server, don't run from file://
> 
> 
> On 2/2/12 9:45 AM, "Greg Lafrance"  wrote:
> 
> 
> 
> 
> 
> 
> Our app has a "main" module with link button, and clicking each link button 
> loads different modules in the main content area.
> 
> For only one module, we get a Security Sandbox Violation when we try to do a 
> multipart post of image data.
> 
> I can't find anything significantly different about this module, other 
> modules do multipart posts fine.
> 
> I have added thre SWF and various folders (such as containing folder, its 
> parent, etc.) to flash player global settings, but no luck. We added a 
> liberal cross domain file but still no luck.
> 
> BTW, we are using ModuleLoader, should we try ModuleManager?
> 
> Please help.
> 
> *** Security Sandbox Violation ***
> Connection to
> http://localhost:PORTNUMBERHIDDEN/services/rest/mycompany/222/assetservice/asset?action=saveasset&objecttype=serviceOffer&objectid=5960&User-Agent=flex3.0&randomNum=1328144876976
> 
> halted - not permitted from
> 
> file:///C:/Perforce/Main/Portal/main/bin-debug/serviceOffer-2.4.0.18-SNAPSHOT.swf
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




Re: [flexcoders] Re: Security sandbox violation

2010-05-26 Thread Richard Rodseth
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 wrote:

>
>
> Why not just keep networking on and access the local file with a local URL?
>
> 
> --- In flexcoders@yahoogroups.com , Richard
> Rodseth  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 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 
> > >  40yahoogroups.com>, Richard
>
> > > Rodseth  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  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.
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Security sandbox violation

2010-05-26 Thread valdhor
Why not just keep networking on and access the local file with a local URL?

 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 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 , Richard
> > Rodseth  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  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

2010-05-25 Thread Alex Harui
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"  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  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" 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 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

2010-05-25 Thread Alex Harui
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"  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

2010-05-25 Thread Oleg Sivokon
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

2010-05-25 Thread Oleg Sivokon
> 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

2010-05-25 Thread Richard Rodseth
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  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"  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 
> 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

2010-05-25 Thread Alex Harui
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"  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  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

2010-05-25 Thread Richard Rodseth
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 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...
>  
>


Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Oleg Sivokon
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

2010-05-25 Thread Richard Rodseth
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 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 , Richard
> Rodseth  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  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.
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Security sandbox violation

2010-05-25 Thread valdhor
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, Richard Rodseth  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  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

2010-05-25 Thread Richard Rodseth
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 wrote:

> 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  wrote:
>
>>
>>
>>
>>
>> --- In flexcoders@yahoogroups.com , Oleg
>> Sivokon  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

2010-05-25 Thread Richard Rodseth
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  wrote:

>
>
>
>
> --- In flexcoders@yahoogroups.com , Oleg
> Sivokon  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
>
>  
>


[flexcoders] Re: Security sandbox violation

2010-05-25 Thread Amy


--- In flexcoders@yahoogroups.com, Oleg Sivokon  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



[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-07-10 Thread valdhor
Caveat: This may or may not work.

Go to 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

Click Edit Locations... then Add Location... Click the Browse for folder... 
button then select your bin-debug directory. Try again.

This has worked for me in the past.


--- In flexcoders@yahoogroups.com, "zi or"  wrote:
>
> While I try to run my Flex Profiler I got this error message:
> 
> In the flash application I got the following exception:
> Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
> violation: 
> file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=
>  cannot load data from localhost:.
> at 
> ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]
> 
> 
> And in the flex Profiler console (at the eclipse) I got : Socket timeout.
> 
> I am run on windows vista,
> Flex builder: 3.2
> Flash debugger : 10,0,22,87
> 
> Things that I have done to resolve this issue:
> • Switch the connection port of the profiler to 9998 (and back)
> • Remove and reinstall the flash debugger player.
> • Install flex builder 3.2 (instead of 3.0)
> • Delete all the enters in the mm.cfg file
> • Add enter to the mm.cfg : 
> PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=
>  
> or
> PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998
> or
> PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=
> or with spaces:
> PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ 
> com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=
> or
> C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?
> or add all or some of the enters:
> TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash 
> Player\Logs\flashlog.txt
> ErrorReportingEnable=1
> MaxWarnings=0
> TraceOutputFileEnable=1
> ProfilingFileOutputEnable=1
> • Turn on and off the vista firewall
> • Add exception for port  in the vista firewall
> • Try to run the profiler SWF separately
> 
> Same result.
> 
> Try one last thing:
> 
> Because I have expreins problem little bit similar before with the flash 
> debugger , the resolution then was :
> 1.Right click on flash player (debugger),
> 2.choose "Debugger",
> 3.choose "other machine" 
> 4.add "127.0.0.1"
> 5.click ok
> then, it solve the issue (but apparently he connect to the debugger with host 
> 127.0.0.1 instead of localhost (which is a same )
> I now add to the mm.cfg file, the follow entry:
> PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=
> Then, after saving , I run the profiler, and its work!!
> 
> 
> And the resonse for all this was :
> Some program change the file:
> C:\Windows\System32\drivers\etc\hosts
> To:
> # Copyright (c) 1993-2006 Microsoft Corp.
> #
> # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
> #
> # This file contains the mappings of IP addresses to host names. Each
> # entry should be kept on an individual line. The IP address should
> # be placed in the first column followed by the corresponding host name.
> # The IP address and the host name should be separated by at least one
> # space.
> #
> # Additionally, comments (such as these) may be inserted on individual
> # lines or following the machine name denoted by a '#' symbol.
> #
> # For example:
> #
> #  102.54.94.97 rhino.acme.com  # source server
> #   38.25.63.10 x.acme.com  # x client host
> 
> 
> ::1 localhost
> 127.0.0.1   iDBO # LMS GENERATED LINE
> 
> 
> This means that localhost is not lead to 127.0.0.1!!!
> 
> Fixing is easy :
> 
> # ::1 localhost
> # 127.0.0.1   iDBO # LMS GENERATED LINE
> 127.0.0.1   localhost
> 
> Instead (remark the problem and fix the problem
> 
> 
> Thenks
> 
> Ziv
> 
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> > ofiler%2FProfilerAgent.swf?host=localhost&port=
> >  > rofiler%2FProfilerAgent.swf?host=localhost&port=>  cannot load

[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-07-10 Thread zi or
While I try to run my Flex Profiler I got this error message:

In the flash application I got the following exception:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
violation: 
file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=
 cannot load data from localhost:.
at 
ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]


And in the flex Profiler console (at the eclipse) I got : Socket timeout.

I am run on windows vista,
Flex builder: 3.2
Flash debugger : 10,0,22,87

Things that I have done to resolve this issue:
•   Switch the connection port of the profiler to 9998 (and back)
•   Remove and reinstall the flash debugger player.
•   Install flex builder 3.2 (instead of 3.0)
•   Delete all the enters in the mm.cfg file
•   Add enter to the mm.cfg : 
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=
 
or
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998
or
PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=
or with spaces:
PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ 
com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=
or
C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?
or add all or some of the enters:
TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash 
Player\Logs\flashlog.txt
ErrorReportingEnable=1
MaxWarnings=0
TraceOutputFileEnable=1
ProfilingFileOutputEnable=1
•   Turn on and off the vista firewall
•   Add exception for port  in the vista firewall
•   Try to run the profiler SWF separately

Same result.

Try one last thing:

Because I have expreins problem little bit similar before with the flash 
debugger , the resolution then was :
1.  Right click on flash player (debugger),
2.  choose "Debugger",
3.  choose "other machine" 
4.  add "127.0.0.1"
5.  click ok
then, it solve the issue (but apparently he connect to the debugger with host 
127.0.0.1 instead of localhost (which is a same )
I now add to the mm.cfg file, the follow entry:
PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=
Then, after saving , I run the profiler, and its work!!


And the resonse for all this was :
Some program change the file:
C:\Windows\System32\drivers\etc\hosts
To:
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#  102.54.94.97 rhino.acme.com  # source server
#   38.25.63.10 x.acme.com  # x client host


::1 localhost
127.0.0.1   iDBO # LMS GENERATED LINE


This means that localhost is not lead to 127.0.0.1!!!

Fixing is easy :

# ::1 localhost
# 127.0.0.1   iDBO # LMS GENERATED LINE
127.0.0.1   localhost

Instead (remark the problem and fix the problem


Thenks

Ziv


--- In flexcoders@yahoogroups.com, "Tim Hoff"  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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> ofiler%2FProfilerAgent.swf?host=localhost&port=
>  rofiler%2FProfilerAgent.swf?host=localhost&port=>  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()
>




[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-07-07 Thread zi or
While I try to run my Flex Profiler I got this error message:

In the flash application I got the following exception:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
violation: 
file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=
 cannot load data from localhost:.
at 
ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]


And in the flex Profiler console (at the eclipse) I got : Socket timeout.

I am run on windows vista,
Flex builder: 3.2
Flash debugger : 10,0,22,87

Things that I have done to resolve this issue:
•   Switch the connection port of the profiler to 9998 (and back)
•   Remove and reinstall the flash debugger player.
•   Install flex builder 3.2 (instead of 3.0)
•   Delete all the enters in the mm.cfg file
•   Add enter to the mm.cfg : 
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=
 
or
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998
or
PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=
or with spaces:
PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ 
com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=
or
C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?
or add all or some of the enters:
TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash 
Player\Logs\flashlog.txt
ErrorReportingEnable=1
MaxWarnings=0
TraceOutputFileEnable=1
ProfilingFileOutputEnable=1
•   Turn on and off the vista firewall
•   Add exception for port  in the vista firewall
•   Try to run the profiler SWF separately

Same result.

Try one last thing:

Because I have expreins problem little bit similar before with the flash 
debugger , the resolution then was :
1.  Right click on flash player (debugger),
2.  choose "Debugger",
3.  choose "other machine" 
4.  add "127.0.0.1"
5.  click ok
then, it solve the issue (but apparently he connect to the debugger with host 
127.0.0.1 instead of localhost (which is a same )
I now add to the mm.cfg file, the follow entry:
PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=
Then, after saving , I run the profiler, and its work!!


And the resonse for all this was :
Some program change the file:
C:\Windows\System32\drivers\etc\hosts
To:
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#  102.54.94.97 rhino.acme.com  # source server
#   38.25.63.10 x.acme.com  # x client host


::1 localhost
127.0.0.1   iDBO # LMS GENERATED LINE


This means that localhost is not lead to 127.0.0.1!!!

Fixing is easy :

# ::1 localhost
# 127.0.0.1   iDBO # LMS GENERATED LINE
127.0.0.1   localhost

Instead (remark the problem and fix the problem


Thenks

Ziv


--- In flexcoders@yahoogroups.com, "Tim Hoff"  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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> ofiler%2FProfilerAgent.swf?host=localhost&port=
>  rofiler%2FProfilerAgent.swf?host=localhost&port=>  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()
>




[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-02 Thread nateross83
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.com, Alex Harui  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.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=localhost&port=
> 
> 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  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.com<mailto: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
> >

[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-02 Thread nateross83
Yes, I've tried clearing out that line and even deleting the mm.cfg file (which 
is recreated for me automatically when I try to run the profiler), but nothing 
works.

Nate

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> 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.com<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui  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.com<mailto:flexcoders%40yahoogroups.com> 
> > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On 
> > Behalf Of Tim Hoff
> > Sent: Wednesday, April 01, 2009 9:01 PM
> > To: flexcoders@yahoogroups.com<mailto: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=localhost&port=
> >
> > 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<mailto:flexcoders%40yahoogroups.com>, 
> > Alex Harui  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:flexcoders%40yahoogroups.com> 
> > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] 
> > > On Behalf Of Tim Hoff
> > > Sent: Wednesday, April 01, 2009 6:23 PM
> > > To: flexcoders@yahoogroups.com<mailto: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
> > >
> >

RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-02 Thread Alex Harui
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.com<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui  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.com<mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On 
> Behalf Of Tim Hoff
> Sent: Wednesday, April 01, 2009 9:01 PM
> To: flexcoders@yahoogroups.com<mailto: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=localhost&port=
>
> 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<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui  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:flexcoders%40yahoogroups.com> 
> > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On 
> > Behalf Of Tim Hoff
> > Sent: Wednesday, April 01, 2009 6:23 PM
> > To: flexcoders@yahoogroups.com<mailto: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.com<mailto: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.com<mailto:flexcoders%40yahoogroups.com> 
> > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] 
> > > On Behalf Of Tim Hoff
> > > Sent: Wednesday, 

[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-02 Thread nateross83
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.com, Alex Harui  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.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=localhost&port=
> 
> 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  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.com<mailto: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
> >

RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread Alex Harui
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=localhost&port=

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  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.com<mailto: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:///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 w

[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread Tim Hoff

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=localhost&port=

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  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/ProfilerAge\
nt.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: 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.com<mailto: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:///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.com<mailto: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

RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread Alex Harui
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  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.com<mailto: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:///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.com<mailto: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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> \
> > > ofiler%2FProfilerAgent.swf?host=localhost&port=
> > >
> |%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()
> > >
> >
>



[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread Tim Hoff

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/ProfilerAge\
nt.swf - 17,476 bytes after decompression
[SWF] MyApp.swf - 2,472,578 bytes after decompression

-TH

--- In flexcoders@yahoogroups.com, Alex Harui  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 launch. I tried Alex's suggestion (mm.cfg) with
> no success yet.
>
> -TH
>
> --- In
flexcoders@yahoogroups.com<mailto: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:///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.com<mailto: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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.a\
dobe.flash.pr\
> \
> > > ofiler%2FProfilerAgent.swf?host=localhost&port=
> > >
>
|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.\
adobe.flash.p\
> \
> > > rofiler%2FProfilerAgent.swf?host=localhost&port=> 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

2009-04-01 Thread Alex Harui
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.com<mailto:flexcoders%40yahoogroups.com>, 
"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:///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.com<mailto: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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
\
> > ofiler%2FProfilerAgent.swf?host=localhost&port=
> >
|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.p\
\
> > rofiler%2FProfilerAgent.swf?host=localhost&port=> 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()
> >
>



[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread Tim Hoff

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.com, "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:///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.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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
\
> > ofiler%2FProfilerAgent.swf?host=localhost&port=
> >
 > rofiler%2FProfilerAgent.swf?host=localhost&port=> 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()
> >
>





[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-04-01 Thread nateross83
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:///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.com, "Tim Hoff"  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:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> ofiler%2FProfilerAgent.swf?host=localhost&port=
>  rofiler%2FProfilerAgent.swf?host=localhost&port=>  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 on Bitmapdata.draw( rtmpVid ) despite crosspolicy

2009-01-16 Thread Alex Harui
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.com<mailto:flexcoders%40yahoogroups.com>, 
"jwebbsuccess"  wrote:
>
> I am testing the video player Flex app over 'file:///C:/' but the
> Flash CS4 demo is technically on '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:/<...>/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.com<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui  wrote:
> >
> > Are you testing this over http:// or file://
> >
> > If file:// crossdomain.xml may not be in play.
> >
> > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>]
> On Behalf Of jwebbsuccess
> > Sent: Friday, January 16, 2009 11:50 AM
> > To: flexcoders@yahoogroups.com<mailto: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;
> >

[flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy

2009-01-16 Thread jwebbsuccess
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.com, "jwebbsuccess"  wrote:
>
> I am testing the video player Flex app over 'file:///C:/' but the 
> Flash CS4 demo is technically on '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:/<...>/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.com, Alex Harui  wrote:
> >
> > Are you testing this over http:// or file://
> > 
> > If file:// crossdomain.xml may not be in play.
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] 
> On Behalf Of jwebbsuccess
> > Sent: Friday, January 16, 2009 11:50 AM
> > To: flexcoders@yahoogroups.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: " + vidHeight );
> > 
> > _netStream.seek( seekTime );
> > var tempVid:Video = new Video( vidWidth, vidHeight );
> > tempVid.attachNetStream( _netStream );
> > var bd:BitmapData = new BitmapData( vidWidth, vidHeight );
> > bd.draw( tempVid );
> > _netStream.seek( startAt );
> > 
> > //to be continued...
> > 
> > return new Bitmap();
> > }
> > 
> > -

[flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy

2009-01-16 Thread jwebbsuccess
I am testing the video player Flex app over 'file:///C:/' but the 
Flash CS4 demo is technically on '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:/<...>/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.com, Alex Harui  wrote:
>
> Are you testing this over http:// or file://
> 
> If file:// crossdomain.xml may not be in play.
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On Behalf Of jwebbsuccess
> Sent: Friday, January 16, 2009 11:50 AM
> To: flexcoders@yahoogroups.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: " + vidHeight );
> 
> _netStream.seek( seekTime );
> var tempVid:Video = new Video( vidWidth, vidHeight );
> tempVid.attachNetStream( _netStream );
> var bd:BitmapData = new BitmapData( vidWidth, vidHeight );
> bd.draw( tempVid );
> _netStream.seek( startAt );
> 
> //to be continued...
> 
> return new Bitmap();
> }
> 
> ---
> 
> Thanks in advance for your help.
>





Re: [flexcoders] Re: security sandbox violation in standalone player but not in browser

2009-01-13 Thread Tom Chiverton
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

2009-01-08 Thread Maciek Sakrejda
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 
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 in standalone player but not in browser

2009-01-08 Thread Tom Chiverton
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.

[flexcoders] Re: security sandbox violation in standalone player but not in browser

2009-01-07 Thread maciek9billion
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.
--- In flexcoders@yahoogroups.com, Maciek Sakrejda  wrote:
>
> (sorry if this is a dupe, but the message I sent yesterday still hasn't
> posted to the list--they're usually up within minutes)
> 
> Our application has been working fine in various browsers. I'm trying to
> get it to work in the standalone player (version 9 debug and 10
> debug--same behavior--for Linux) for automated testing, but I'm hitting
> some security sandbox violations:
> 
> *** Security Sandbox Violation ***
> 
> Connection to http://localhost:8080/truviso/flex/main/../../foo halted -
> not permitted from http://localhost:8080/truviso/flex/main/main.swf
> 
> This relative URL works just fine when loading the .swf through Firefox,
> IE, Safari, and Opera. We're using relative URLs because we need to be
> able to rename the webapp without rebuilding it. There's a
> crossdomain.xml file in truviso/crossdomain.xml and in the root with
> wide-open access (for now).
> 
> Any ideas why the standalone player is unhappy with this relative URL?
> Anything I can do with respect to crossdomain.xml or other security
> configuration to get around this?
> 
> Thanks,
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>




RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-21 Thread Alex Harui
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.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: Thursday, November 20, 2008 8:30 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
>
> 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
> >
> > 
> >
> > Is
> >
> > 
> >
> > *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:* Tuesday, November 18, 2008 12:06 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
> >
> > 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%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com<mailto: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.com<mailto: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&g

[flexcoders] Re: "Security Sandbox Violation" message

2008-11-21 Thread Anthony DeBonis
A lot of people are having issues with this now:

Adobe implemented the stricter requirements in Flash Player in three 
phases. In Phase 1, which began with Flash Player 9,0,115,0, a small 
number of strict rules were enforced immediately, but most violations 
of the strict rules resulted only in warnings visible in Debug versions 
of Flash Player. In Phase 1.5, which began with Flash Player 9,0,124,0, 
the warnings of Phase 1 became errors in the specific case of socket 
operations. In Phase 2, which began with Flash Player 10.0, all of the 
warnings of Phase 1 became errors and the transition to stricter rules 
was complete.

Recommend you read this document
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html



Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-21 Thread Ward Loockx
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
> >
> > 
> >
> > Is
> >
> > 
> >
> > *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/hel

RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-20 Thread Alex Harui
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
>
> 
>
> Is
>
> 
>
> *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



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

2008-11-20 Thread Ward Loockx
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
>
> 
>
> Is
>
>  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



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

2008-11-18 Thread Alex Harui
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


Is


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>>)
> >
> > --- 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



Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-18 Thread Ward Loockx
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

2008-11-17 Thread Alex Harui
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.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 :(



Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-17 Thread Ward Loockx
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
>  
> )
>
> --- In flexcoders@yahoogroups.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 :(


[flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property

2008-11-17 Thread valdhor
Try adding your bin-debug directory to your Global Security Settings
Manager
(http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html)


--- In flexcoders@yahoogroups.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
>




[flexcoders] Re: "Security Sandbox Violation" message

2008-11-17 Thread valdhor
This may or may not help...

I get this error every time I create a new project (Don't ask me why;
It just started one day).

I found that I had to go into the Global Security Settings Manager
(http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html)
and add the bin-debug directory of my new project.


Best Regards



Steve

--- In flexcoders@yahoogroups.com, "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>  Anyone have any ideas as to why I would get this message:
> "Security Sandbox Violation?"  I googled it and came up with a listing
> where it said that if I was seeing it in Firefox browser to try it in
> IE browser.  I did that and did not get the message when using IE. 
> Note, this only happens when debugging an application.
> The thing is that what I was reading suggested that the
> problem could be that I don't have the plug-in for the Flash Player
> debugger version.  However, I do have that version of Flash Player for
> Firefox.  Any other ideas as to why it might show up when debugging an
> application locally?
> thanks,
> Bruce
>




[flexcoders] Re: Security sandbox violation 2048

2007-12-06 Thread sarah_e_boys
Thanks Tom.  I have a crossdomain.xml file.  The problem is that I 
misspelt the domain name in my code.  info-hrw should be info.hrw-
uk.local...


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 06 Dec 2007, sarah_e_boys wrote:
> > I was hoping someone could help me with this security violation 
error
> > I am getting.  I recently uploaded my image gallery application 
to a
> > server and when I try to download an image via a zip file I get 
this
> > error.  It was working fine locally.
> 
> You need either a crossdomain.xml or a way to get the correct 
domain at run 
> time (Application.application.url, maybe).
> You also want to read Adobe's Flash Player Security white paper.
> 
> -- 
> Tom Chiverton
> Helping to authoritatively supply killer relationships
> on: http://thefalken.livejournal.com
> 
> 
> 
> Please note, as of 10th December 2007 the registered office address 
of Halliwells LLP will be at 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB
> 
> 
> 
> 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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office.  Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP.  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 using PHP, APACHE & MYSQL

2006-04-06 Thread Oriol Gual



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.



  









[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-05 Thread lift69boy
Hi Oriol
I've reset to 3306. I've run my php script in the browser & it works 
fine. If I call a simple (no db read) php script from flex, no error 
is returned which indicates that the security is fine between flash & 
the php, both localhost:80/. This only leaves security issues in 
accessing my mysql db, but i've no idea what I need to change to allow 
access. For example, do I need a crossdomain file sitting somewhere in 
my db file structure ?
Many thanks for your help
Cheers
Ben 

--- In flexcoders@yahoogroups.com, "Oriol Gual" <[EMAIL PROTECTED]> wrote:
>
> 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

<*> 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/
 




[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-05 Thread lift69boy
Matt...we are definitely getting close !
I added entry mysql.default_port = 80 into my PHP config & run flex 
project & guess what, no flash error (but no data !). I run PHP 
query & it doesnt connect to db. I try http://127.0.0.1:80/mysql in 
the browser & no joy. 
I'm beginning to feel a twinge of excitement over here !!
cheers
Ben

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> 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"  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" 
> > & "other"I'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"  
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 flex<>php<>mysql 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-arch

Re: [flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-05 Thread Oriol Gual



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.



  









[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-05 Thread lift69boy
Matt...we are definitely getting close !
I added entry mysql.default_port = 80 into my PHP config & run flex 
project & guess what, no flash error (but no data !). I run PHP 
query & it doesnt connect to db. I try http://127.0.0.1:80/mysql in 
the browser & no joy. 
I'm beginning to feel a twinge of excitement over here !!
cheers
Ben

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> 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"  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" 
> > & "other"I'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"  
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 flex<>php<>mysql 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-arc

RE: [flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-03 Thread Matt Chotin
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" 
> & "other"I'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"  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 flex<>php<>mysql 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/
 




[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-03 Thread lift69boy
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" 
> & "other"I'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"  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 flex<>php<>mysql 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/
 





RE: [flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-02 Thread Matt Chotin
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" 
& "other"I'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 flex<>php<>mysql 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/
 




[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-04-02 Thread lift69boy
Cheers Matt
Forgive my ignorance but could you please define "main" 
& "other"I'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 flex<>php<>mysql 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

<*> 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/
 




[flexcoders] Re: Security sandbox violation using PHP, APACHE & MYSQL

2006-03-31 Thread Renaun Erickson
Can you create some sample code we can see?  Flex2 has a Publish
Application Source feature.

--- In flexcoders@yahoogroups.com, "lift69boy" <[EMAIL PROTECTED]> wrote:
>
> 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 flex<>php<>mysql 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

<*> 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/