I want to read filetext (.txt) and put it in to array. here is my sample text from my file.
22 33
11 22
45 56
How can I read file and put it in to array like a[0] = 22 a[1] = 33 a[4]=11 ... or I should use 2 dimension array ? Is flash AS3.0 has 2 dimension array ?
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'
Im having trouble getting flash to read mms.cfg file. This file only contains one line;
[Code]...
Where i believe it should be stored on a 64-Bit Machine. When ever we check the global settings on a flash video the setting still remains on "check for updates automatically).
I am now using FancyUpload to make an upload tool for my website, for the video module, so user can upload their video in FLV format with limited size and time
With the limited size i can handle it, but with the time . I dont know how to know the total length of FLV file
We are using flash player to play swf files in our java application.So we tried to play static video its working fine.But we tried to play from file system using java servlet but we are not able to play the video.My doubt is:
1.Can we read the swf file using java File I/O streams?
2.If yes for first question,please tell us how to get this done(if any one has idea please share with us)?
We are using same code in the following url:[URL]..
So I stick in this flash drive that me and some coworkers use regularly to transfer files to each other, open up a couple of .fla files and edit some text as neccessary for a project. I save, blah blah blah, get about half way done and hit save.Could not save I:folders]q5.fla.The file may be read-only or already open in another application.Save using a different name, or close the document and try again.Saved, saved, saved, saved, FAIL.What the hell, Flash? Did you forget to lock the document out for your use and something else is nabbing "first open" rights.
Edit:I can narrow down the failure to editing a single movieclip. All of the files I'm editing are based off the same source (they're questions to a quiz, and while not intelligently programmed, its what we have). As soon as I edit the contents of the "B" answer (instance name "choice2" movieclip name boxB) I can no longer save the file with the same name.
I need to be able to read an XML file from my flash application. I found this tutorial: republicofcode.com/tutorials/flash/xml/ But it doesn't seem to work even on their own examples. I can trace whole XML file, but when it comes to childNodes whatever I try to trace I always get "undefined". My XML is like a quiz DB with 25 <question>'s and 4 <answer>'s in each. So I need to operate with XML data as with an array.
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?
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?
[URL]I client want some thing like this. User will search a word and application searches that word in a opened page and highlight it. This is a Flash application and uses php at back-end to generate XML.
I am writing a process where users will need to select a file that far exceeds their availble RAM and have that file broken up into small chunks (for upload). I'm able to create a File reference to said file, but when I try to pass it to the fileStream, it appears to try to read the thing into memory before acting on it. Is there a way to get fileStream to just take the reference to the file and then utilize readBytes the way it's documented? it's called when the user selects the File in the browser dialogue.
I need to read data from a file after a user has selected a file using a file browser, for a Flex web app (NOT AIR). I know this is possible in Flash 10 using the FileReference class load and data methods. But using Flash 10 is not an option for me. So does anyone know of anyway I can do this in Flash 9?
I'm looking at how to read a file in flash 10 here:URL...is there a way to initiate the file read from a drag and drop? For example, the user drags and drops a text file onto my flash element in the browser - can I initiate the file read from that?
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.
I am kind of new to Flash and only really know really basic stuff. (Scenario) I have made a local game in Flash CS3 Professional for my Advanced Higher Computing project for school which is almost completely glitch free. But my teacher says it needs a file handling feature, such as a high score feature in it to make it AH standard. I want to make a simple high score feature where it takes the final score, asks the user to input their name, and add it to a .txt file. Since the computers at my school are very limited, I cannot use programs like Adobe AIR or PHP or anything like that so I need it to be simple. (Question) So I really need a full tutorial (where to put the coding, layout and everything) to:
Check if there is an existing .txt file called (for example) "High Score.txt" If there is, load it. If not, create a .txt file called (for example) "High Score.txt" to the desktop. Take the users input and place it with their final score after it. (Optional but not required) Arrange the scores in order of highest to lowest or display the top 5.
I'm trying to build a flash component for my upcoming website where I have to read data from a XML file and show these with a fading 5 second interval - I guess you could call it an image-fader/content-fader or some such :-) Before I post my code I would like to let you know that my experience with AS3 is quite limited as I've always been working with Silverlight (C#) instead.
I want to create music Visualization in flash by reading the musicXML file.Is there some sort of a class that reads it? or a help guide to understand the musicXML structure and how to use it in order to visualize its music?
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?
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.
I need a way to read the length of my array, automatically create that many frames in the main.fla and read each screen from my array and display it accordingly on each frame. How to do this?
E.g.. In A.xml, I calculated 10 screens, so Ii need to create 10 frames for A.xml....and in my B.xml, I have 25 screens, there Iit should create 25 frames.
I mean, I use dynamically changing xml-data in my app that I could get straight from the server but it is gzipped. So I was wondering is there a way to unzip it and read it as a xml file with actionscript?