SecurityError: Error #2148: SWF File XXXXXXXXXXXXX.swf Cannot Access Local Resource Xxxxxxxxxxxxxx.flv
Aug 25, 2009
For me FLASH is such a pain with security and javascripting...but, I am trying to upload a basic flash video and I keep getting this security warning and the video will not play.
SecurityError: Error #2148: SWF file XXXXXXXXXXXXX.swf cannot access local resource xxxxxxxxxxxxxx.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
I have not done anything different. It previews fine in Flash and Dreamweaver but not on the server.
View 1 Replies
Similar Posts:
Jul 25, 2009
I am having issues with a navigateToURL command in AS3. When I run it in flash i get no errors but when i publish the file i get the following error:
SecurityError: Error #2148: SWF file file:///C:/Users/jack bauer/Documents/Flash Projects/Banner2.swf cannot access local resource xml/links.xml. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::URLStream/load()[code]....
View 1 Replies
Jul 4, 2010
I'm trying to load a local xml file:
xmlLoader.load(new URLRequest("../xml/xmlData.xml"));
But I'm getting this security sandbox violation:
#2148: Only local-with-filesystem and trusted local SWF files may access local resources.
I don't get this error when I embed the XML file directly with the EMBED metadata tag.
View 3 Replies
Feb 7, 2012
i am fresher to the flash devekopment. i'm using Flash Develop IDE. i am creating a simple slide show. it works fine in FD when running. i'm moving that swf file ,required image folder and xml file to desktop.now we run that swf file it's working fine. it shows
[Code]....
View 1 Replies
Apr 20, 2009
I'm having trouble playing an swf file in my website and i cant work out whats wrong. I'm using Dreamweaver CS4 along with Flash CS4 after i've added the swf (in the root folder i have the .fla file, the .swf file and the flvplayback skin) but i keep getting the'SecurityError: Error #2148' error message. Im confused because when i test the published html file from flash, it works great, same when i double click the .swf, works great but testing the page from Dreamweaver i get the error message. What does this mean and how can i solve this?
View 15 Replies
Oct 13, 2010
Is there a way to set up an event handler for an xml request and it generates an error - SecurityError: Error #2148? I already have a listener like this one, but it is not getting triggered _urlLoader.addEventListener (SecurityErrorEvent.SECURITY_ERROR, _security);// function _security (e:SecurityErrorEvent):void {// do something}
View 6 Replies
May 29, 2011
I've created a small application that is loaded by a preloader. The preloader loads the app then loads some json data it passes the data to the application and then puts the application on stage. Everything works fine in FDT 4 but once I put it on a server it gives me this error - SecurityError: Error #2028: Local-with-filesystem SWF file. Does anyone know why its happening and what setting I need to change to stop it? I have set the load arrguments -use-network=true and false to no availe. The json data is coming from an external web address when I change and put it locally with the application I get SecurityError 2148.
View 1 Replies
Jul 31, 2010
I tried to deploy my otherwise working flex app on a web server (tomcat 6).It threw a Channel.Security.Error.After some research, I became aware that flash movie loaded from flash_movie_domain will not be able to load resource from any other domain.Some suggested adding a crossdomain.xml.However, the crossdomain.xml route doesn't quite make sense.In this case, I am loading resources from a third party web site.My understanding is that I need this third party website to include a crossdomain.xml on their root directory in order for app to function.The third party web service is provided as is. I will not be able to change what's given. Since the third party is providing public access, it already explicitly give permission to the general public. Adding a crossdomain.xml to their root seems to be a redundant act?
View 1 Replies
Jan 25, 2012
I am trying to load a swf file which contains xml based image gallery on 25th frame of the timeline inside flash professional cs5.5 using actionscript 3. while doing so i'm getting this error "SecurityError: Error #2000: No active security context". Below is the as3 code:
stop();
import flash.net.URLRequest;
import flash.display.Loader;[code]........
View 1 Replies
Jul 22, 2011
Trying to make an image appear by loading a .jpg from my project's folder on my computer.
This happens: SecurityError: Error #2000: No active security context.
Other topics for this error involve timers, wrappers and bugs. What I am wishing to do here seems so basic it couldn't possibly require such complication. By default my local playback security is checked to "Access local files only".
I spent 3 weeks reading about ActionScript so I can make a game and I can't even load an image from an assets folder onto the stage. All I can do is trace a note to myself in the output window. I may not have even structured this code effectively. A lot of examples have features I would rather avoid until I have this basic task accomplished.
Here is my code:
package {
import flash.display.Sprite;
import flash.display.Loader;
import flash.net.URLRequest;
[Code]....
View 8 Replies
Mar 12, 2011
I have a HTML box and load a local html file from the project. In this HTML file I use jquery and I want to load an image from my user directory. I see the image from my user directory but jquery doesn't works. I get this error:
[Code]...
But if I load an image from the app workspace, everything works fine (I see the image and Jquery works). Is this a policy problem? The error says that is a "null object reference" problem, but this can't be true...
View 2 Replies
Jul 16, 2009
I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill.
View 2 Replies
Mar 9, 2011
How to let my local running swf-file access a xml-file that is on a server?
I have been to the "Global Security Settings panel" but dont really understand.
View 2 Replies
Feb 10, 2011
Here is the case: Everytime that I clean eclipse project and restart Apcahe Tomcat server and run the application main MXML I got the following error "The requested resource (/{Main mxml file name}.html) is not available." To solve this everytime I should create a new MXML application,restart the server and then everything is fine.
View 1 Replies
Oct 16, 2008
am having a little trouble with a simple form on one of my flash websites. The form takes three pieces of information (name, email and description) and should submit this data to a php page in the same directory where it emails it to me.
When I run the swf from the Flash CS3 Pro program, the connection and submission goes smoothly and I receive the email.But when I load the swf and the php file onto my site and try it over the internet, it gives me the following error:
Error #2044: Unhandled securityError:. text=Error #2048:
Security sandbox violation:
http://MYSITE/test/theswf.swf
cannot load data from
[code]....
View 4 Replies
Feb 27, 2010
I have created a crosdomain policy file, I have added code to my flex app, and I still get security sandbox violation...have I done something wrong? Here are my errors and file snippets:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load data from http://mysite.com/folder1/folder2/media/locXML.xml.
swf_demo.swf is my flex application
The following lines have been added to my flex application:
Security.allowDomain("mysite.com");
Security.allowDomain("www.mysite.com");
Security.allowDomain("http://mysite.com/folder1/folder2/media/locXML.xml");[code]..
View 1 Replies
Nov 17, 2010
When i am running my file locally it runs well but when it runs from a server, it throws an error
[Code]...
I googled a lot. I found a solution of cross domain policy funda but i am not clear with it. Anybody has ideas of getting rid of this problem..?
View 2 Replies
Jun 16, 2009
I've written a SWF in FlashDevelop (using the open Flex stuff) and use it to load up a bunch of image files.
[Code]...
Now, this works fine in the debugger environment with, say, funcA("test1.jpg"), but when I try and copy the files into another directory, I get security errors, something about it not being 'Local with trusted' or some such. I assume local file access is possible via Flash if the SWF is on the harddrive too, right? I did try adding a Security.allowDomain("*"); to see if that made a difference, but seems not. If local file access isn't possible, do I have to find a server to copy everything onto even for just testing stuff?
View 1 Replies
Jan 23, 2010
I am using FDT for Flex development and when I compile, and it tries to access a flv file, I get the error "cannot access local file". This is obviously a security sandbox thing.Now I tried adding crossdomain.xml to the root and it still makes the same error. I know somehow I need to add to my project use-network=false, but i cant for the life of me work out where the flex compiler additional arguments area is. I know in eclipse how to do it, but with the slightly modified FDT, i havent got a clue
View 1 Replies
Sep 30, 2010
I have a Flash project that plays FLVs from (http://) sources and it works fine when I publish it as AIR 2. I want to save and access my FLVs locally, but I can't seem to get it to work. I don't know if it is a matter of the correct path syntax, I'm also not sure what an Air app sees as a relative path. This is what it looks like for http:
stream.play("[URL]")
How do I make this local?
View 1 Replies
Oct 23, 2009
Yes, you can access Local File System in Flex and that too with a standard SWF without resorting to Adobe Air.Check out the link below for full details and the SWF.
View 0 Replies
Jan 5, 2011
I'm trying to access local file system from Flex web application. I know it is pretty difficult, but I think there must be a way. Is there a way that Flex app can use AIR components or maybe web application can call some AIR module in order to choose files and upload?
View 2 Replies
May 25, 2010
This is really irritating me. In ruby it is very simple to load an mp3 file via its file class and manipulate it, even play it. (Yes, I am aware that this is as3 ).According to what the stdlib documentation says I should be able to use:
//assume I am irritated and have defined a public static variable called soundClip
Main.soundClip.load(new URLRequest("C:lo1.mp3"));
Main.soundClip.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
[code].....
View 1 Replies
Jan 24, 2011
My swf is being served via http protocol. I don't really see this being easily changed. There's a resource that a website has opened up via their api that I need to access but it is using https protocol. Because of this my swf can't access the resource because of security settings.
Option 1 would be to serve my swf via https. I can't do this at the moment.
Option 2 would be set secure="false" property of the cross domain policy file. I can't do this, I dont have access.
View 1 Replies
Feb 27, 2012
I'm having the following problem when I'm loading a swf inside a swfloader. That thing is that this subapp has a config file, and when this config file is being accessed by the subapp it throws an Security error (#2148).I thought it was the crossdomain.xml file, but it has no reestrictions:
I suppose that the subapp is trying to access a config file that is in the swf parent server insted of trying to access its own file in the server where it is installed; how to make this swfloader access its own data,
View 1 Replies
Jan 20, 2011
I've created an application that includes a number of Modules and uses Parsley framework. Ant is used to build the application.Recently I thought of using Resource Bundles and implemented it in the system by creating a locale/en_US folder under the src. I added a portal.properties file with all my strings defined.In my modules, I added the metadata
<fx:Metadata>
[ResourceBundle("portal")]
</fx:Metadata>
In the ant build file, I added the below lines within mxmlc.
<locale>@{locale}</locale>
<source-path path-element="${myapp.flex.app.locale}/{locale}"/>
<include-resource-bundles>portal</include-resource-bundles>
The build works fine and when I deploy the application and open it in my browser, I'm greeted with many errors thrown by the Flash player.But if I dismiss the messages, its working fine. My strings are replaced with the values in the property file, but how do I stop the runtime errors being thrown up?I get the below error.
Error: Unable to load resource module from portal at MethodInfo-637()at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()[code].....
View 1 Replies
Feb 26, 2012
I have two Flash files: pre-loader and application.
Pre-loader: (D:ProjectsFlashAppsddedd.fla) is doing basically this:
var mRequest:URLRequest = new URLRequest("http://localhost/flash/dd.swf");
mLoader.load(mRequest);
}
Application file: (D:ProjectsFlashAppsdddd.fla) is the real application and among other things is doing this:
_loader.load(_request); //where _request = "assets/html/style.css".
When debugging the pre-loader, at this point I am getting an error which says:
SecurityError: Error #2148 File SWF http://localhost/flash/dd.swf cannot access local resource file:///D|/Projects/FlashApps/dd/assets/html/style.css.
The application must be loaded by the pre-loader, it won't start when called directly. But apparently, the security settings are preventing such duo from being possible to debug. Normally when it is on a remote server, it is working ok.
What I have done so far to resolve it:
Added crossdomain.xml to my local i:xampphtdocs folder:
> <?xml version="1.0"?>
> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
[Code]....
Set File > Publish Settings -> Local Playback Security -> "Use local files only" in both files. It didn't work, so I set it to "Use network only" Also didn't work.
What else can be done to be able to debug these Flash files locally?
View 1 Replies
Dec 5, 2011
Iam try to load swf files from another directory. it is creating security error how can i solve this problam
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. app:/Main_Air.swf was attempting to load file:///E:/Main/images/background.swf.
at flash.display::Loader/_load()[code]......
View 1 Replies
May 13, 2009
I'm building a page flip catalogue that calls in individual swf's... everything working perfectly except for one thing... I'm trying to call in a net stream to a video object and I'm getting the following error.
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: [URL]cannot access null. No policy files granted access.
at flash.display::BitmapData/draw()
[code]....
There is a crossdomain xml file on the server so I'm not sure what else to try, Have tried all the normal checkPolicyfiles = true; etc but still no joy.
View 3 Replies
Oct 27, 2010
PHP Code:
public function ShowDialog (arg:String) {
dialogtimer.stop ();
[code].....
View 2 Replies