Flex :: Load A Local File Without Having To Ask The User To Browse To It First In An AIR Application?

Jul 22, 2011

I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data without having to use the typical FileReference browse() method as it would just be annoying to do every time I use the application.

The code below seems to find the file fine as the file.exists method below and most of the other attributes seem to be correct but the file.data is always null.I'm guessing this is a security issue and that's why I'm running into this problem but I thought I'd ask and see if there is in fact a way around this problem.

var file:File = new File(fullPath + "\" + currentFolder + ".txt");
if(file.exists) {
var byteArray:ByteArray = file.data;
}

View 2 Replies


Similar Posts:


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

Flex :: PlayBook - Create A File Browser To Allow Users To Load Images From The Local System Into The Application

Mar 24, 2011

I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.

View 2 Replies

Professional :: Save And Load The Swf-file To A Local Disk Of Any User?

Sep 28, 2010

I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)

View 3 Replies

Browse And Select Video From Local File System?

Mar 20, 2010

I'm building an application in Flash CS3 to be deployed on CD as a Projector file. Is there any way to enable the user to browse to and play video files from their local file system.

View 3 Replies

Flex :: AIR: Load Local Xml Files Outside The Application Folder?

Apr 22, 2011

I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:

fault(mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"

[code].....

View 1 Replies

Actionscript 3 :: Flex Swf Write To Local File If Given Authorization By The End User

Feb 2, 2012

Is it possible to write to a local file 'example.txt' from a Flex swf? FileStream class is available in Adobe AIR, not in Flex. I want to write to from a swf,not AIR application. I am developing a kiosk type application which has to log user interaction data to a text file on the machine. Is there a code example for doing this? [URL]

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

Adobe - Access Local File System From Flex Web Application?

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

ActionScript 3.0 :: Open A Browse Dialog For User To Select A File?

Dec 8, 2009

How can I open a browse dialog for user to select a file ;after selecting file, the address to be passed into a variable for later use?I mean I want btn1 to open a browse dialog and var1 to get the address of the selected file on my local drive.

View 6 Replies

Flex :: Fix Choppy Video Playback Of Local Flv File In Adobe Air Application?

Aug 17, 2011

I have made a application that plays videos that are stored in a assets folder of the air application but when ever I run it on an hp slate the videos are really choppy. Is there a way to preload the video or does it have to do with the processing power? the videos are 1.72mb or smaller. They are flv format and they auto play when that application is started. I am using flash builder.

View 1 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

Actionscript 3 :: Load A Local External SWF, The Application Load-unload Infinitely?

May 6, 2011

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.

[Code]...

View 2 Replies

ActionScript 3.0 :: User To User File Transfer Via FMS Or RED5 In AIR Application?

Jun 25, 2009

It is possible to make file transfer from air application via server?I think need to create like byte array streaming or somethink like this from sender and write the destination file on receiver user pc.

View 2 Replies

ActionScript 2.0 :: [CS3] Load External Png/jpg Chosen By User From Local Computer

Feb 7, 2009

how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limit.

I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.

View 2 Replies

ActionScript 2.0 :: Load External Png/jpg/gif Chosen By User From Local Computer?

Feb 7, 2009

I'd like to know how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limits, and to check that the file to be uploaded is actually a JPG/PNG/GIF and not another else.

I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.

View 6 Replies

Flex :: Load A Swf File After Application Creation?

Mar 22, 2011

Is it possible to load a swf file after application creation in flex? If so how?

View 2 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

Flex :: Flash - Dynamically Load Two Different CSS File Into An Application?

Jul 1, 2009

i used blue.css and also beige.css in flex .i have theme combobox for user changed theme dynamically so i stroed

[Bindable]
private var pickcss:Array=["blue.css","beige.css"];
private function css_initializeHandler(event:Event):void

[code]........

View 2 Replies

ActionScript 3.0 :: FileRef.browse Local Only Same Folder?

Oct 19, 2010

I manage to get fileRef.browse working locally to load some picture but it only works for pictures in same folder/directory as the .swf.

View 8 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

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 3 :: Flex Web Application Resize Method(and Scale X / Y) Not Working On Server But Works On Local Flex Builder

Oct 18, 2011

I have a quite different problem with resizing. I have a Flexbook component which uses the middle part of screen (center) with a html header menu and footer. The problem: The scaling works perfectly when we run in the local machine ( Flexbuilder). But when we deploy it to the server its like scaling never existed.. The requirement: when user maximizes the window or minimizes it, the Flexbook should be resized to fit the screen.

[Code]....

View 1 Replies

Flex :: Test Vkontakte Application With Local WS?

Sep 23, 2009

I've developed a Vkontakte application by using Adobe Flex technology with WCF as my server side. The whole thing works perfectly on localhost, but after uploading it to Vkontakte - the WS doesn't seem to work and I get this error[code]...

View 1 Replies

Flex :: Security - Running Application/swf In Local Mode?

Oct 12, 2010

We are using flex for same. (Although I know flex is meant for web application and air application is best suited for desktop clients, but due to some build issues we can't go for air applications). Now according to our use case we required to read file from local file system which is not allowed in flex application due to sandbox policy. To override it we had planned to use it in local mode (i.e. running from local file system instead of deploying in web container). So after running application in local mode it bypasses sandbox policy and allows to read local file. Eventually we requires remote services call (either using web services or blaze ds) also in our application. To avoid sandbox restriction for network access in local mode we are planning to explicitly grant network access permission to our flex application.

View 2 Replies

Java :: Flex - AIR - Build An Application To Run In Local Mode

Dec 20, 2011

I don't know really well the diference between AIR and FLEX, i do with Java tought, My question is that I want to build an application to run in local mode, but maybe in the future I want it to be available trought the web, The basic sequence diagram is the following: So I want the client to connect to a server for login information, and for storing some data, and I don't know wich one of the three technologies is the best..

View 2 Replies

ActionScript 3.0 :: Use A Series Of Icons Which The User Can Browse With Arrows

Jul 9, 2009

I have a menu that use a series of icons which the user can browse with arrows. When the user browse on this menu, it cycle through icons. The cycling have an animation, and it use the Tween function.

[Code]...

View 4 Replies

IDE :: FLV Player - Allow User To Browse Folders For Uploaded Files

Jan 30, 2009

1) I am working on a custom FLV player for a website. The users will upload various FLV files onto folders on the server and I would like the users to have the ability to browse those folders and select a video to play.

2) Also, as I will be having the users upload their videos via fileReference in Flash, as soon as their upload of a particular video is complete, I would like the video they just uploaded to begin playing or be loaded and ready to be played. Is there a good way to pass the video name directly into the FLV player on the completion of the download so it can begin playing or at least be ready to play?

View 1 Replies

Flex :: Upload Local User Image And Overlay Onto Flash Video/animation?

Sep 2, 2011

I want to create a custom video like the videos on jibjab, i.e allow a user to upload an image of their face and superimpose this onto a video of a character's face.

View 1 Replies

Flex :: Show A Local Html Content In Adobe Air Application?

Apr 19, 2011

I want to show a local html file into my application but I could't find to do that.

I used <mx:HTML> component with using its location property but it is not working when I try to do it with a local file which is in applicationdirectory.

EDIT: Here is my code :

<fx:Script>
<![CDATA[
private function init():void {

[Code].....

View 2 Replies







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