So I just downloaded the Flex 4 SDK (flex_sdk_220.127.116.1115 - steaming hot off the press) and I compile a simple example:
<?xml version="1.0" encoding="utf-8"?>
<s:Application name="Hello World"
mxmlc HelloWorld.mxml -use-network=false
When I try to view the compiled swf file with the standalone player ( found in flex_sdk_18.104.22.16815/runtimes/player/10/lnx directory), I get the following error:
An ActionScript error has occurred:
SecurityError: Error #2028: Local-with-filesystem SWF file file:///home/user/work/examples/HelloWorld.swf cannot access Internet URL http://fpdownload.adobe.com/pub/swz/flex/22.214.171.12415/textLayout_126.96.36.19915.swf.
Actually I'm kind of curious this is happening since the above example is not explicitly asking for any resources although apparently the application certainly is - it's asking for fpdownload.adobe.com/pub/swz/flex/188.8.131.5215/textLayout_184.108.40.20615.swf.
Any help/advice/pointers/links would be most appreciated.
Okay, so this seems to be my luck - has happened to me before. I'll post, then to one last Google search and lo' and behold, found the solution which is to go to the following URL:
Which allows you to perform security settings changes (e.g. allow a file or even directory to have local access). This is good for development purposes. I also came across this page:
That shows how to statically link:
mxmlc -static-link-runtime-shared-libraries=true test.mxml
I'm really impressed by Flex 4. This framework/API/platform/environment is really starting to shape up like a real development playground.
Thanks you so much for your answer that's pretty cool, i was also facing this issue but your solution worked fine for me..