ActionScript 3.0 :: Xml Local Storage From Url?

Jun 27, 2011

i am hoping that someone can put me right on this question (apologies if this the wrong forum too)...i have an .ipa file that uses xml for it's content. i can load the xml/images etc... fine from both a url and also locally on the handset.but what i wanting/trying to do is for the .ipa to check to see if there is an updated xml doc/images from the url - if there is then it downloads/saves the xml doc and any associated images to a local folder/location - if there isn't (or the handset can not access the internet) it simply loads up the xml and images locally.i have seen a few methods of doing this - but am not sure how it all ties together with flash?

View 7 Replies


Similar Posts:


Flash :: Add Local Storage To Webapp

Jan 5, 2011

I would like to add local storage to an existing Flash webapp that up until now uses a web server to store data (database and media files). What are my options? I'd like to reuse the code of the Flash webapp and run it inside a browser if possible (which, if I'm not mistaken, is not possible with Adobe AIR).

View 1 Replies

IDE :: Flash Pro 8 - Local File For Variable Storage?

Mar 28, 2009

Presently I'm building an interactive CD-ROM based presentation for stand alone individual machines. I'm using AutoPlay Media Studio 7 to package a flash movie along with a licensed adobe reader and adobe flash player. One of the buttons on the autoplay package will install and create folders and files on a local machine.

I've uploaded a file for you flash gurus out there to look at, it may help to examplify what I'm trying to achieve. What I'd like to do, is to be able to use a file (perhaps XML?) that the flash movie can reference and make changes to. If this is possible then such file would be included in the AutoPlay package (see background info above) and installed on the local machine.Security is an extremely low key issue here and the username password is simply a means for flash to lookup and recognise an existing user (if there is one) and set the states of some variables.

Why? - The project is like an interactive training manual with questions and animated examples split into 8 modules. I would like to be able to provide users a means with the of not having to review previous modules by logging in at the login frame.

Code:
Assigned to 'signInUser' button
on (release) {
if (user_name == storedUserName) {
if (pass_word == storedPassword) {

[code].....

View 4 Replies

Flex :: Know If The User Allows Storage Of Local Shared Objects (LSO)

Nov 25, 2010

There is a small feature I have implemented that makes uses of the Local Shared Objects to work properly.

I wish to be able to help the user self-diagnose if he is unable to use the said feature because he refused access for this computer to writing local shared objects and give him instructions to work around the issue if it applies to him.

I'm looking for something similar to the muted property of the Microphone class [URL] or the Camera class.

View 1 Replies

Javascript :: HTML5 Local Storage Fallback Solutions

Jan 14, 2011

I'm looking for javascript libraries and code that can simulate localStorage on browsers that do not have native support.Basically, I'd like to code my site using localStorage to store data and know that it will still work on browsers that don't natively support it. This would mean a library would detect if window.localStorage exists and use it if it does. If it doesn't exist, then it would create some sort of fallback method of local storage, by creating its own implementation in the window.localStorage namespace.I understand that Flash and Silverlight can be used for local storage as well, but haven't found anything on using them as a fallback for standard HTML5 localStorage. Perhaps Google Gears has this capability too?Please share any related libraries, resources, or code snippets that you've found! I'd be especially interested in pure javascript or jquery-based solutions, but am guessing that is unlikely.

View 8 Replies

Javascript :: Use HTML5 Local Storage To Store A File?

Feb 9, 2011

How would one go about caching / managing many large files (videos) on a user's computer via browser mechanisms (plugins are acceptable solutions). From what I can tell, local storage is about database type data, not files.

View 2 Replies

ActionScript 2.0 :: Set The Local Storage Limit For Shared Objects?

Jul 23, 2006

Is it possible to set the local storage limit for shared objects using action script rather than the Flash Player context menu?

View 2 Replies

ActionScript 3.0 :: Detect If User Doesn't Allow Local Storage?

Mar 18, 2009

I have an actionscript app which needs to use SharedObjects. I see how if the user doesn't allow the Flash Player to access local storage, the security settings panel automatically pops up and asks for user input.

My problem is that my app runs with a 1x1 pixel stage, because it doesn't display anything. So the user will never see that panel and the program will seem to hang.

What I want to do is to somehow detect that the user doesn't allow the Player to access local storage so that I can open a new window large enough to display that panel.

The only way I've been able to detect this so far is to try to call SharedObject.flush() and check the return value, but that displays the settings panel.

View 2 Replies

ActionScript 3.0 :: Can Show 'Local Storage' Panel From AIR Application

Jan 15, 2010

Anybody happen to know how I can show the 'Local storage' panel in AS3 from an AIR application?[code]

View 3 Replies

ActionScript 3.0 :: Avoid Showing Local Storage Dialoge Box For SharedObject?

Nov 17, 2010

I'm doing a small webapp where I want to use a fairly small amount of Local Storage for SharedObjects.The challenge is to cater to all visitors, including those that might have turned down their local storage allowance to 0 bytes (inactivated).Now, what happens is that the first flush method call triggers the local storage dialog box.In the case that the user has inactivated local storage, I don't want to ask them to raise it - instead I want to avoid using SharedObjects for the remainder of the session.I haven't found a way to test for the capacity of the local storage. What I can find is the size property of the SharedObject class. This doesn't work however as it only reports a size greater than 0 if there has already been an object written to this application domain.

View 0 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 :: Best Practices For Data Storage

Feb 27, 2010

I've been working on a game the past few days where there is to be a LARGE amount of stored data. By a large amount, I'm talking something like 200+ entries of around 12 fields.The game is being designed with the intent of playing it online (per say), so I can't rely on storing specially made files on one's computer (Not that I think I could and do it in a way where players cannot modify it). I also do not want to rely on a stored XML file on the internet or on a database, because if the website that has this data goes down or if the person loses internet access, then the game becomes unplayable.So, I need to store this data in the game itself, but I am unfamiliar with the best way to go about doing this. I've normally worked with outside sources for data storage, as they were designed in closed environments (aka intranet) or the website that the SWF would be on would also be where the database used is stored. Neither apply to this game, as the game will likely be put up on Flash portals like Newgrounds.

View 17 Replies

Professional :: Temp Data Storage?

Apr 1, 2012

I'm exporting my video to Quicktime and there's an option that comes up while doing so. It asks where I want to store my temp data, either "In memory" or "On disk". Which should I choose?

View 3 Replies

Flash And Remote Data Storage

Apr 8, 2011

A few years ago I was up-skilling form AS2 to AS3. In the process I could have sworn I came across a resource that was all about using SQL and Flash AS3 together. It looked like native AS3 SQL communication.I remember thinking "That's cool, will use that one day" and then putting the book down. Well it is now one day and I need to remotely read and update data from a Flash file. The thing is I can't for the life of me remember where I saw it.Searching online has been a bit discouraging. All I can find is a lot of people saying there is no native Flash AS to SQL communication. Was I dreaming, or are all the posts I'm finding old and referring to AS2?If this is the case, is there a way to save shared objects or XML files to a remote server? Or is my only option calling php files from Flash?

View 2 Replies

Ruby On Rails :: Use The Fleximage Gem And S3 For Storage?

Mar 17, 2010

I have a rails app that I'm going to host on engineyard and want to store image files on s3.But I don't know if I want all developer machines to beusing s3 for storage of all our test and dev images. Maybe it's not an issue -- but it seems like a waste to have everyone storing all our images in s3.I've heard of some ppl who store images on s3 'hacking' dev environments to store images locally on the file system -- and then using s3 in prod only.

View 2 Replies

Actionscript 3 :: Can AIR Tell If A USB Storage Device Has Been Plugged In

Apr 26, 2011

How can I tell from an air app if a USB storage has been plugged in?

View 2 Replies

Actionscript 3 :: Adobe AIR System-wide Storage

Jun 30, 2011

I'm working on an AIR app that will have a free basic version and a more advanced paid version that's unlocked with a license key. Ideally once a license key is entered I'd like it to unlock the application for all users of the computer. However, I haven't been able to find a suitable system-wide location for storing the license key file. All of the preconfigured locations in the File class (e.g. File.applicationStorageDirectory) are either user-specific or read-only.

Is there a standard system-wide location in AIR where I can store things like this? If not the file system, maybe shared objects, or SQLite, or the encrypted local store? Failing that, are there standard locations on each system (Windows, Mac, Linux) that I could hardcode that are guaranteed to be writable by all users? The last option is made more difficult by the lack of access to any environment variables.

If all else fails I guess I could just require the application to be unlocked per-user, but that doesn't sound like a recipe for happy customers ("What do you mean I have to buy it twice for my wife to use it? We only have one computer!"). (Okay, yes, it it's per-user I'll probably let one key unlock the app 3 or 4 times to be nice about it, but it's still less convenient for the user to activate multiple times).

View 1 Replies

Flash :: Execute An External .exe From A Local .swf Using A Local XML Socket Server (C#)

Jan 7, 2012

I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.

I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.

My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."

The only way i know to fix this - is to change the security settings of flash - not very user friendly!

So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.

View 1 Replies

ActionScript 2.0 :: Launching A Local Html File From Local Swf?

Jan 16, 2007

i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

[code].....

View 4 Replies

Media Server :: DVR Storage When Using HTTP Dynamic Streaming

Nov 20, 2010

When using DVR with RTMP streaming the stream could/would be saved as single big file on the server, but when using HTTP streaming the stream will consist of numerous chuncked files; in this case how will the stream get saved, will FMS 4 assemble the chunks? unlikely, will the chunks of stream get saved? in this case I wonder which tool could be used to access it and make VODs of it. What is the exact behaviour of FMS4 when dealing with storage of DVR HTTP streaming?

View 9 Replies

Actionscript 3 :: Single Massive Class For All Data Storage?

Nov 14, 2011

I have created a class that I've been using as the storage for all listings in my applications. The class allows me to "sign" an object to a listing (which can be created on the fly via the sign() method like so):

manager.sign(myObject, "someList"); This stores the index of the element (using it's unique id) in the newly created or previously created listing "someList" as well as the object in a 2D array. So for example, I might end up with this:

[Code]...

View 1 Replies

Media Server :: Storage - Third-party Encoder To Provide A Way To Record?

Nov 2, 2011

I use third-party encoder to launch RTMP stream to FMS, but there is no way to record thestream, there is no third-party encoder to provide a way to record?

View 2 Replies

Flex :: Air - Cookie - Storage - Remember A Simple Value Like Date When The App Was Last Opened

Feb 14, 2012

Does an AIR app built with Flex have something similar to a browser cookie? I want the app to remember a simple value, like date when the app was last opened. I'd rather not create a SQlite database just for this.

View 1 Replies

Actionscript 3 :: Error #3002 In Writing To Application Storage Directory

Apr 2, 2012

So I'm trying to copy a file selected by the user into the AIR application storage directory, but when I attempt to resolve the path in the storage directory, I get:

Error #3002: File or directory exists.

I get this even when there is no possible way that the file already exists (I am pretty sure there is no "qqqqq.txt" there).

My code looks like this:

var saveFile:File = File.desktopDirectory;
saveFile.browseForOpen("Open File");
saveFile.addEventListener(Event.SELECT, function(e:Event):void

[Code]....

The error is thrown on the line where I try to set the destination as the applicationStorageDirectory, but I have no idea why.

Edit: So I commented out everything below var destination:File = File.applicationStorageDirectory; and it STILL throws the error.

View 1 Replies

Media Server :: Video Chat Archive / Storage With Multiple Users

Dec 6, 2010

I have developed a audio/video/text chat application with multiple users. I would like to store/save live session in to a single video so that we can manage archived live sessions, and make these sessions available for other users just like a normal video/FLV.

I know we can store single live streaming with DVR but I need to store all the live cams into single video. Note: I'm using FMIS for above application (with rtmp).

View 2 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally?

Feb 15, 2011

When running a flash application that I run locallyie I get to it from a browser but with a file pathNow, most of the time the shared objects are stored in%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNetBut occasionally, it reverts and thinks this application is running on localhost%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhostwhich means all previous saved settings are gone.I'm wondering if anyone knows how flash decides if the application is infact localhost or localWithNet (local with Network access)

View 4 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally

Jul 3, 2011

When running a flash application that I run locally i.e., I get to it from a browser but with a file path
file:///C:/Projects/test/bin-debug/Main.html#

Now, most of the time the shared objects are stored in
%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNet

But occasionally, it reverts and thinks this application is running on localhost
%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhost
Which means all previous saved settings are gone.

How flash decides if the application is infact localhost or localWithNet (local with Network access). Rebooting can sometimes make it revert, but I've also had it stay localhost for a few days then revert.

View 1 Replies

Actionscript 3 :: Crossdomain Issue With Loading Only SWF Files From Azure Cloud Storage Blob

Mar 27, 2012

I am having trouble loading .swf files to my flash app off my cloudstorage account on azure. images and videos load fine but .swf files return this error:

SecurityDomain 'http://localhost/' tried to access incompatible context 'http://[---].blob.core.windows.net/content/swf/Lib_En.swf'

[Code]...

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

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







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