ActionScript 3.0 :: NavigateToURL Error #2148: Swf Cannot Access Local Resource?
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
Similar Posts:
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
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
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
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
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
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
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
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
Oct 23, 2009
I'm attempting to compile a Flex application from an ANT script, inside of Eclipse (CFBuilder, based on Eclipse), and I've run into this error:
Could not load definitions from resource flexTasks.tasks. It could not be found.
I haven't been able to find anything that gives directions on where this file (flexTasks.tasks) should be copied to, if it's needed at all. Some places indicate that it should be part of the flexTasks.jar file. I've tried two different things:
Copy the jar file into the ant/plugins/lib folder (and restart my CF Builder instance)Specify the path to the jar in the classpath attribute, as suggested by the comment on this page Neither helps me get past this error.Here's my build script, for reference:
<project name="Tagging" default="compile-tagging" basedir=".">
<!-- setup flex compilation capability -->
<taskdef resource="flexTasks.tasks" />
<property name="flex.src" value="./src" />
[code]....
View 5 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
Oct 26, 2010
I try to make an intro animation inside a website, and when the animation is done or when you push the Skip button, it navigates to the index.html file from the site root.So I have in my site root the folder Flash, where the intro.swf is, and within the intro.swf I called the navigateToURL(new URLRequest("..index.html"), "_self"); method. Now it's not working.
View 3 Replies
Jan 1, 2009
I am getting an error which says
"ArgumentError: Error #1063: Argument count mismatch on bingo_game9_AS3_fla::MainTimeline/get_link(). Expected 0, got 1."
When trying to access a web page from Flash. The movie clip on the stage is called "link_mc" btn_over, btn_out etc. works fine. It just changes the size of the mc when mouse is over using functions elsewhere.
View 3 Replies
Jul 19, 2011
I'm learning AS3 and getting a null error on my navigateToURL code. The URL is being pulled from XML. The source file is attached as a .zip and it's a great carousel if I can get it to work.
View 2 Replies
Nov 13, 2009
Is it possible for Flash or possibly Adobe AIR to have access to a local Access database?
I will have either a Flash EXE or AIR application running on a local PC (WinXP). The PC will also have a local Access database. I need my Flash application to get the data from this Access database. How would I do this?
I doubt it can be done with Flash or AIR alone (someone prove me wrong or right), but is there an option for some middle-man application to access the data base and send it on to Flash? How would this work?
Or could I read the MDB file into Flash and parse it myself? is there a library for this?
View 2 Replies
Apr 22, 2010
I'm working on a website in php made for local Thai people. The website somehow uses links with Thai characters in them. The problem is when I click the link in flash it navigates to instead of "http://localhost/THAI TEXTS-108-0-region-3.html". When I tested this with Internet Explorer, it understands the unicode text in a link and navigate me to the correct link. In fact the flash understands the thai unicode characters because when I tried to create a dynamic text field, it could print out the correct thai characters on the flash.So it seems to be that this is the problem with flash failing to talk to Firefox API. I'm guessing either URLRequest object or navigateToURL function does not take unicode texts
btn_north.addEventListener(MouseEvent.CLICK, eventLink_btn_north);
function eventLink_btn_north(event:MouseEvent):void {
var url:String = "/THAI TEXTS-108-0-region-3.html";
[code].....
View 1 Replies
May 20, 2011
I'm trying to get a couple of buttons to work on my simple Flash slideshow. However, ActionScript 3 is giving me this error:
1126: Function does not have a body.Here is my script:
more_btn.addEventListener(MouseEvent.CLICK,clickHa ndler1);
more2_btn.addEventListener(MouseEvent.CLICK,clickH andler2);
function clickHandler1(event:MouseEvent):void{[code]......
View 3 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
Mar 30, 2011
I have moved our project from SDK 2.0.1 to 3.5 because I'm using TLF. This has compiled OK in flex builder 3 IDE but I am now using command line compilation for our build system and getting errors for all the standard Flex resource bundles: Sharedresources, collections, containers, controls etc. I can see this is because of the improvements in Flex 3 and the SDK local folder doesn't have these as .properties files but now has a framework_rb.swc.
View 1 Replies
Mar 18, 2010
I'm using flash.display.Loader to load this example SWF as a use-case for loading SWFs that uses flex charting components in an application I'm working on.
[Code]...
View 1 Replies
Mar 21, 2012
I'm making an iOS app using AIR 3.1 and Flex 4.5.1, and if I package it using -target ipa-test-interpreter the ipa file installs with no problem, it just runs kind of slow. If I use -target ipa-debug or -ipa-ad-hoc then the install fails with the error message "A signed resource has been added, modified, or deleted."
View 1 Replies
Apr 11, 2010
How to access a local variable from another class? I have this powerup class that changes the speed value of the enemy in enemy class(it's a game). For instance, if player hits the powerup it changes the local variable 'speed's value inside enemy class.
View 3 Replies
Nov 22, 2011
We have been purchased a training course made with Flash. When we received the course (a SWF file with external files inside a "data" directory, images, videos, etc), we realized that it was necessary to explicity give permissions to Flash Player to access the content in the CD drive. We think that is not a good idea to distribute a CD where the user have to do "extrange things" to make it work.
So, we talked with the developer and he sent us an .EXE file with the course, that obiously works fine (al the content in the CD is readed without user interaction), but it only works in Windows machines.
The question is: is it possible to publish an SWF that can access to the CD content without user interaction? We are almost sure that the answer is "yes" because we have a lot of "magazines" cds with SWF files that load the contents from CD (text and images) and they work perfectly "as is".
View 1 Replies
Apr 4, 2009
just wondering how AS3 can do this. I'm writing in Flash CS3, I just need to know the length of a directory which is in the same location as the flash file. For example there is
/flash/flash.swf
and then
/flash/images/
and I need to know the length of /images
View 7 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
Apr 21, 2010
Ok this one has confused me since I touched flash and AS3.0. 90% of the time, when I am trying to access a URL, or connect to anything on the internet through AS3, it doesn't work and tells me that it can't find the URL, or w/e I am trying to access. When I upload it to a server, any server, it works fine, but testing it from within the IDE, it doesn't, maybe 10% of the time it might actually work. I don't get this? How come it can't access these external connections while trying to run it locally?
View 1 Replies
Apr 14, 2011
I get the following error when running my ANT script:
Error: Unable to resolve resource bundle "data" for locale "en_US"
I have tried to implement all the answers I've found about this question (and there were a lot); forcing to compile to flash player 10, including all libraries, etc.. but nothing is working.
Here is my code:
<mxmlc
file="${PALM_SRC_DIR}/PALM.mxml"
output="${SHELL_DIR}/PALM.swf"
[Code].....
what could I possibly be missing? Aren't I including all libs that I need?
I've removed the last 2 compiler.library-path options and replaced it with this: It's still not working but I feel like I'm coding it correctly because it's looking for the framework SWC as run-time shared library, which it really is.
View 1 Replies
Oct 3, 2009
I can access local webcam using Flash app but I wanna use as public so anyone can access via local network to be able to open the viewer, but this script only uses a local cam to the computer
localCamera = camera.get ();
camview.attachVideo (localCamera);
Is there a way to get the server ? , to output a file that a viewer can access else where on the LAN?
View 2 Replies