ActionScript 3.0 :: Read Xml File From Local Disc In Flex?

May 31, 2010

I want to read data from an xml file (say located in c: drive of my computer)I am programming in flex 4.0. Normally when I take data from a Url I use http service. I do not want to use AIR.

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Read Local File System With Flex SWF?

Oct 23, 2009

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

Json :: Flex - Flash Builder Will Not Read Local File?

Jan 11, 2012

So I've tried to build a small utility to view the contents of a JSON file in an easy-to-understand manner (for non-tech people).I have Googled far and wide, high and low, but every example that shows how to consume a JSON file in Flash Builder uses the HTTP service, pointing to a file on the web.Here I am, sitting in front of my MacBook, wondering why I can't make this work. In the documentation I've found (sort of relating to this issue), they always show Windows examples, and they seem to work fine:That doesn't work. I've tried some "resolve to path" syntax, but the HTTP service does not seem to allow for anything but file paths in quotes.

View 1 Replies

Actionscript 3 :: Read Only Part Of Local File?

Nov 22, 2010

How read only part of local file? So that not to load the whole file into memory.

View 1 Replies

Can Flash Read And Write Local File System

Nov 28, 2009

I think it can only access the network but not local file system, but from internet some people said it can in the newest version, can anybody confirm? It can reach arbitrarily file or just a specific location?

View 2 Replies

Read A Local Text File Using Flash Or Javascript?

Feb 23, 2010

Is there any hook to react to a user drag and dropping a text file onto a browser? If the user drops a text file onto the browser with my page loaded, I'd like to be able to open the contents of the text file using javascript. I don't think this is possible, but just checking.

Is something like this possible in flash?

As an alternate, the user could specify a file path for me, then I could open the text file and read it. Seems like this is a security risk and probably won't be allowed, but just checking. It looks like this is possible with flash 10?

View 5 Replies

Actionscript 3 :: Read A Local Excel 97-2003 File (.xls) In A Flash Application?

Feb 14, 2012

I'm exploring the feasibility of reading data from a local Excel file in a Flash application.

XLSX READER [URL], it's possible to read Excel 2007 files.

It works beautifully.

However, that function doesn't read Excel 97-2003 files.

I found this:

[URL]

Which should read Excel files in Flex, but I'm working on a Flash application, and it looks like as3xls relies on a number of Flex only functions and types (ArrayCollection, NumberFormatter, etc.)

Since I'm not familiar with Flex, I'm having a difficult time making the adjustments myself.

Has anyone built a Flash app that reads Excel 97-2003 files, and is willing to share tips or code?

View 1 Replies

ActionScript 2.0 :: Force A Pdf File To Save To Disc Rather Than Open In A Browser Window?

Nov 27, 2009

I would like to force a pdf to be saved to disc rather than opening in a browser window? I am actually executing the command in flash in a button instance like this

on (release) {
getURL("http://website.com/pdfs/pdf_document.pdf", "_blank", "GET");
}

So how can I do this so it gives the pop up window of save to disc option?

This may be an ASP.NET issue too?

View 0 Replies

Linux :: Intercept A Request To Read A Particular File And Instead Generate The Apparent Output Of That File Read Programatically

Mar 31, 2010

A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'

View 3 Replies

Flex :: Flash - Browse And Get The Full Path Of A File On Local Machine's File System?

Mar 29, 2010

I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this?

View 3 Replies

Actionscript 3 :: Swf File Can't Read Data From Config.xml File In The Same Flex Directory

Feb 28, 2012

I have a main swf file and config.xml located in the same directory. My .swf file uses config.xml to fetch config variable which it does with success.The problem appears when I put those files into Flex directory. I embed .swf file like this.

<mx:Image id="loading" source="@Embed('/blobs/visualLogo/mySwfFile.swf')"
visible="true" horizontalCenter="0"/>

I also place config.xml into /blobs/visualLogo/

This time I get an error in Flex:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mySwfFile_fla::MainTimeline/frame1()

View 1 Replies

Flex :: Executing A Local File From An Intranet Flex Application

Apr 12, 2010

I am creating a Flex application for intranet use.I need the application to execute files, with different file types (txt, emails, etc.) at specific known locations on the clients computer.Is it possible to give permissions to the Flex application to execute local files? (I have administrative rights on the clients computer)

View 1 Replies

Actionscript :: Read A String From A Local App?

Jan 11, 2010

I am looking for a way that can be used in my flash app to read a string from my local application, currently I am using activex to communication with the app and then pass that to flash. But I am wondering is there any alternatives that use pure flash techniques.

View 1 Replies

XML :: Flex - How To Add Data Into Local File

Dec 30, 2009

I want to save XML data into a XML file. So I can load it on the next startup.

View 2 Replies

Flex :: Play Local Mp3 File?

Feb 23, 2010

I'm testing Adobe AIR with flex, and I wanted to play a mp3 via an open file dialog, I did that [code]...

I can't find anything related to that on Google or another documentation, all the docs I find is related to play a sound using URL and not Local files

View 1 Replies

Actionscript 3 :: Read A Xml File In Flex?

Feb 7, 2010

I want to read an xml file placed in the same folder as the swf. Note however there is no webserver running.

<![CDATA[

private var my_req:URLRequest = new URLRequest("assets/GmetadOutput.xml");
private var loader:URLLoader;
public function startup():void {
output.text="CheckPoint1"; //This is the only output that displays!

[code]...

So on the on CreationComplete event i call startup(); The Checkpoint1 output displays but none of the other checkpoints are reached? how to read a file placed in the same folder as the swf file!

View 2 Replies

Flex :: Read Object From File?

Feb 9, 2010

I write object in a file. first i convert the object to bitmap data then i write it in a file. Now I want to read object from the file so that it returns the original object. How can i do this?

View 1 Replies

Read Local Shared Object With A Servlet?

Sep 16, 2009

read a local shared object with a servlet even if there is no flash present on a page? I want to set a local shared object like a cookie, and then access it again from a page that doesn't have a flash movie.If I can't do this, is it standard to have the initial flash movie call an external javascript to set a traditional cookie that can later be read?

View 1 Replies

ActionScript 3.0 :: FlashPlayer10 Able To Read Local Images?

Jan 21, 2010

I want to make a system that can edit local images (like adding some beautiful decorations) and save the edited image on the server. In FlashPlayer9, I have to upload the image to the server, and load the image back to flash. But I wonder whether in FlashPlayer10, I can directly access the data of a local picture.

View 4 Replies

Flex :: Encrypt A Local File Using / Actionscirpt , AIR?

Aug 28, 2009

I want to encrypt a local file using Adobe Flex, Actionscript or Air.

...or I would like to know of other options but not vc++ or activeX.

View 2 Replies

Flash :: Flex Loading Local File?

Dec 6, 2009

i'm pretty new to flex 3 but it's really cool so far. now in the center of the screen when i try to load an swf file using the SWFLoader object i get the following error:

Error #2044: Unhandled securityError:. text=Error #2140: Security sandbox violation: file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/GamePage.swf cannot load file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/crazy_counting.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.

[Code]...

View 4 Replies

Flash :: FDT Flex And Cannot Access Local File

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

Flex :: Save A File On A Local Machine From A Web App?

Aug 24, 2010

is there a way to save, not save as, from an online flex app onto someone's local machine?asically, if a user opens a file local to their machine in an online flex app, is there a way to allow them to save it locally without going through dialog boxes and picking file names?

View 2 Replies

Flex :: Adobe AIR - Write A File And Specify As Read-only

Apr 20, 2010

Another Adobe AIR question for you: Can we write files to the file system and leave them as read-only in Adobe AIR? In the future, we would overwrite these files (or delete them and write a new one).

Update: I tried the following approach, but I was still able to open the file, edit, and save to the file system after the process executed.

[Code].....

View 2 Replies

Flex :: Possible To Read And Write Text File Using AS3?

Jun 6, 2011

I want to make a registration page with Flex. The data will be stored to text file. Is it possible?

View 4 Replies

Flex :: Read Embedded Bytarray File?

Sep 9, 2011

I created a tile map editor for my game and it will generate a file when the user is done with the design. The file will store the assets used and other information.this is the code on how i generate the file

var ba:ByteArray = new ByteArray();
var masterData:Object = { map:Data.instance.mapLayerArr,
asset:assetCollection,

[code].....

View 2 Replies

Flex :: Read Binary Content Of A File?

Feb 7, 2012

I want to retrieve file's binary content using flex but failed. Here is the code so far:

// ActionScript file
package source.fileApi{
import flash.display.Sprite;
import flash.external.ExternalInterface;

[Code].....

But this did not give me the binary content of the file.. how to retrieve the full binary content of the given file using Flex (I am using FP 10.0).....

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

Flex :: Sending A File Between AIR Applications Using Local Connection?

Feb 2, 2011

How do i send a text file between air applications using local connection?Sender AIR

private var conn:LocalConnection;
public function init():void
{

[code]......

View 2 Replies

Flex :: Load Local File As JSON Source?

Nov 29, 2011

In a very simple first AIR application (I'm using Flash Builder 4.5), I am trying to accomplish the following on my MacBook:

Read a local file (JSON format) into the AIR app. Parse through the file. Display some selected contents in a grid.

That's it.

I've found an example that does some simple JSON parsing in Flex, but the problem is that it loads the JSON source from a remote web site.

So do I need to load any file-specific libraries to make this work in AIR? Or can I simply refer to the file by using the Mac file-path? I just want the local file to be the JSON source. The parsing is already taken care of.

View 1 Replies







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