ActionScript 3.0 :: Allow Access To Both Local And Network Files?

Jul 27, 2009

The reason Ordinarily I would just host everything on the server, the swf file and images and serve them out using something like apache. However, we're working with an embedded device with hardware limitations. So we thought we could avoid this by hosting the images locally on a cd.But Flash player moans about the security settings. I know a way to overcome this would be to give the user instructions to change the global security settings- hence allowing both network and local access. But we feel that this would be too much to expect the end user to do.We want our model to work out of the box so to speak. Or as best as possible.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Access Both Network And Local Files?

Jul 13, 2010

Is it possible to access both network and local files, flash player 9/10?

Here is the situation:

I have an SWF which runs locally on the client's machine.

It communicates, via XML socket, to a C++ server.

It also needs to read some configuration files from the local file system...

c:config.xml <---> test.swf <---> C++ server

So I need the SWF to be fully trusted, as if it was ran from the Flash IDE.But I can't tell my clients to set it to be fully trusted using Adobe's Global Security Settings Panel

What I can do is alter my C++ server code, somehow granting permissions to the SWF.

View 3 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

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

ActionScript 3.0 :: Prevent Loaded Swf File From Accessing Local Network Files

Nov 2, 2009

I am creating a web page that allows users to upload their own swf files to my web page, which are then used by the main web page as components. This creates a security issue though because I don't want the uploaded swf files to access other files on the server.

when the main webpage starts, it loads whatever third party swf files the user specifies. Is there a way for my main web page to change the security settings of the loaded swf so that the loaded swf is treated like it was loaded from another domain? Or is there another way I can provent these uploaded swfs from accessing local files on the server.

View 5 Replies

ActionScript 3.0 :: Save / Load Files From Flash To Local User Space (Not Network)

Sep 16, 2010

I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.

View 1 Replies

ActionScript 3.0 :: Access Files Vs Access Network

Jul 2, 2010

My flash movie loads config.xml from the file system. Inside config.xml are urls and the base url to other xml files that I wish to load in to the flash movie.

These urls in config.xml are requested by the flash movie providing my flash movie with data. Again these are .xml files how ever they are being accessed using the network. EG " http domain dot com slash data dot xml"(i cant post links yet)

I know that I cant access both network and local files in the same movie so my question is this. What is the best way to pass in the base url dynamically to the flash movie so i can cut out config.xml?

View 0 Replies

ActionScript 2.0 :: Access Local Files From Website

Oct 25, 2010

without explaining why, I need to run a flash slideshow from a live web page and it is for a photo exibition: The problem is that the slideshow, while running on a love site, must read the image files from the local computer that it is browsed from. If the computer is always the same and the files are in the same directory when it was developed, how would I tell flash that the files are not on the server, but on the local computer?

View 1 Replies

Flash :: Adding A Folder On The Local Network To The List Of "local-trusted" Places

Jul 22, 2011

I have a SWF file located at the local network in the public shared folder that I do not control over trying to read the external file on the local network.

I am currently hitting instead an security violation

Error #2148: SWF file file://....mySWF.swf cannot access local resource file://...config.xml"

I've added the network path where SWF an XML file resides to "trusted locations" via Flash Player Global Settings.

The added network path is successfully displayed at the list of "trusted locations" within Global Settings Manager, but it does not look like Flash Player is able to really parse the local network path as a "trusted location"

FP 10.3.181.23, Win XP

View 1 Replies

ActionScript 2.0 :: Remote SWFs May Not Access Local Files

Feb 4, 2007

I have this situation (simplified):
MC-A.swf opened from local computer (C:/) and loads MC-B.swf which is hosted on a server.
When MC-B.swf is loaded, it tries to access file called "loader.swf" which is also on local computer (C:/).

When it tries to access the "loader.swf" I get the following error message:
*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from [URL]
-- Remote SWFs may not access local files.

I read discussions concerning this issue, and as I understood, I could use:
System.security.allowDomain("[URL]");
to solve this problem, but it didn't work.
I wouldn't like to change the loaded file to load it's resources also from the web, since it can find them on the local machine.

View 4 Replies

ActionScript 3.0 :: Remote SWFs May Not Access Local Files?

Aug 18, 2009

lod.load(new URLRequest(str2));how to unload the lod when second time i cal that function.how to over come this (*** Security Sandbox Violation ***SecurityDomain )

View 1 Replies

ActionScript 2.0 :: Access Local PC Files From Remote Flash Player?

Feb 7, 2010

I have a flash file located on a web server. When it's loaded, I want it to access the user's PC and display some data (such as file directories, files, etc)I know there are security rules about what a flash player can access, but so far all I can seem to find are rules regarding local flash players accessing the internet, but not much on the other way around, or how do go about doing that.

View 0 Replies

Can't Connect To FMS Inside Of Local Network

Jul 26, 2010

I'm FMS beginner (server side newbie in general)... I installed FMS 3.5 (Development) on my computer which is inside of local network. Now I try to connect to rtmp service from another machine in same network using my computer's IP as I used to while connecting to my apache, but it is worthless. Everything works fine on my computer.

View 2 Replies

ActionScript 3.0 :: Send String To Ip On Same Local Network?

Jan 7, 2011

I was wondering if it was possible to send a string to a flash application from a flash application on the same local network? Can i put the code requiered on a mobile (android) in air?

View 1 Replies

Media Server :: FMS Not Visible In Local Network?

Mar 18, 2011

I have a problem with FMS 3.5 installed on Windows 7. The problem is that FMS works only on my local machine, I am not able to use it from computers in local network. I turned off all windows firewalls and my machine is visible for other computers - I am able to connect to FMS Welcome site on apache on default port 8134, but streaming fails, and I cannot do the same on port 80.

View 8 Replies

Flex :: Adobe AIR. Local Network Error?

Apr 16, 2011

For example, in local network, when Adobe Air is reading files from local server (\Serverstorage) and network will be in down for a second, Air becomes eat a lot of memory and it is increasing up to 1GB (while normal memory use is 100 kb or less).Just reading file with File('file path on local server'); from unstable network can cause this error.
Have anybody seen that in projects?

private function init() : void
{
file = new File("\Serverdragracing

[code].....

View 1 Replies

Flex :: Accessing Video Content Over Local Network?

Jun 17, 2011

I am having a strange issue in my flex app. I have a Video element that loads an FLV file from the same directory as the SWF app. If I move my SWF and FLV to a local directory on my computer and load the SWF in my browser, the video plays without any issues. However, if I move the same collection of files (SWF, FLV, HTML) to a network share, the video no longer loads.

[Code]...

In my netStatusHandler() callback I get an event status of: NetStream.Play.StreamNotFound.

Again, I only have this issue when loading content from a network share.

View 1 Replies

ActionScript 2.0 :: Make A Button Map To A Local Printer On The Network?

Feb 9, 2010

I am making a floor map for the company I work for. And I want to make a button map to a local printer on the network...

View 1 Replies

ActionScript 3.0 :: Load A File Over The Local Network With Loader Class?

Aug 24, 2011

I try to load a file over the local network with Loader Class but I get the error "URL Not Found". I use a path like this  "file://///myPCnetID/pubilcFolder/pictures/mypic.jpg" which refers to a folder on the same PC I compile and run the Air flash file.
 
When I copy the adress into the browser the jpg-file ist displayed corretly.

View 6 Replies

Flash - Adobe Cirrus (Stratus) Doesn't Work If User Have Local Network

Aug 20, 2011

I am developing flash p2p chat. It works fine on my friends' computers (they can chat each other), but not on mine. The problem is that I have local network at home, and I think that Flash Player tries to make p2p requests to peers inside my local network.Can I check if user have local network in AS3 and up the level of network to the WWW?

View 1 Replies

ActionScript 3.0 :: SWF Can't Access Network

Feb 26, 2011

I've got a Flash Banner worked with AS3.0. It loads XML and then load the Jpegs. At the beginning, the SWF accesses the files under the same directory. So the code goes like

[Code]...

View 6 Replies

ActionScript 3.0 :: File Access With Network Off?

Nov 26, 2009

im testing out some AS3 and working on my first preloader. Ive run into the file access problem and looked about for a while and found that locally I can get files to load with the compiler flag -network=off. To put this online would I have to do a compile with the network on but with a Security.allowDomain("myDomain") line. Would this then work online so long as all the required files are in the same place.

View 3 Replies

Actionscript 3 :: Adobe Air: Save Files To A Network Path (osx)?

Apr 22, 2010

I was wondering if it would be possible to write a file, not to the local system, but to a connected server or other network path. Would i have to use an external php interface for this or can i entrust this to the AIR framework?

View 2 Replies

ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

Actionscript 3 :: Restrict Plugin Access To File System And Network

Feb 14, 2011

In a plugin context (a swf loaded by an another swf), is there any way to restrict access to file system and network in the same time to the loaded swf?Compiler option "-use-network=true|false" does not fit because you cannot restrict both file/network.[code]The loaded swf is in user's document folder, outside Air app folder. Currently, the loaded swf is abble to load "c:/Windows/regedit.exe" and I don't want it (neither sending informations on the network).

View 2 Replies

Javascript :: Access An Local Image (not In App Workspace) From A Local HTML File (in App Workspace)

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

Java :: Flex 4 IFrame Open Url Internal Network To An External Network?

Sep 6, 2011

I have the following scenario:

One application JEE / Flex 4 running on a tomcat, inside my Flex layer I have a iFrame passing a url to an ip of my internal network (http:url....) which is another application running within an industrial PLC.When access this app from within my internal network works fine, but when I try to access this iFrame to an external network in my home for example have a timeout error onhttp:[url].........

I believe this error occurs because the flex client is trying to run this url as I was in a internal network.Is there any way to run this url from an external network?

View 1 Replies

Flash :: Access Local Access Database From It (or AIR)?

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

ActionScript 3.0 :: Downloading Local Files?

Oct 1, 2008

I have wmv files that i need available for download from answf (both swf and .wmv's will be on a DVD or CD). The wmv files arein a folder named WMV which is at the same level as the swf. I justwant the user to be able to click on a button and select "Save As"and download the file. I've been trying to use the download()method but keep getting IO Errors and also tried usingnavigateToURL but it tries to download it through firefox (no "SaveAs" option, just tries to open with Windows Media Player) andwindows media player says it can't find the fil

View 7 Replies

Getting Error Opening URL-local Files-mac

Jun 8, 2010

I'm using a var and an Array code on an empty move clip. The code is set on an "Actions" layer. The code checks good. All files are on my desktop.When I test movie I get 'Error opening [url]...I'm on Mac running CS3. Flash setting is set to "Access local files only" I searched hours for a solution to this problem.[code]...

View 4 Replies

ActionScript 3.0 :: Lik The Images And Swf To Local Files?

Sep 24, 2010

I want to lik the images and swf to local files but I'm not able to do so. I took the code from an accordian menu tutorial

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved