|
-
Flash Gordon
3MB textFile
I am trying to read a 3mB Text(CSV) File into an offline Flash Application.
This is needed for a search engine within flash.
The problem:
When trying to load that cvs via LoadVars the player crashes.
I then escaped thext within the cvs and loaded it as an xml.
Works much faster but still it needs ~20 seconds for parsing.
After the first load i can store and retrieve the data really fast
to and from a Shared Object.
Does any of you know a faster way how to get the csv file
into the flash application? I just can think of XML.load and LoadVars.load....
I am currently thinking of copying a prerendered .sol file into
the documents and settings folder of the user before starting the
flash-app from CD..
My letters on the F1 key have faded, how are yours today?
-
Senior Member
- The right of the People to create Flash movies shall not be infringed. -
-
Flash Gordon
Not really.. firstly it is an offline application running from CD,
and secondly the 20 seconds are needed by flash for parsing the
file....
Did you ever try using 3mB xml/text files?
I'd be really happy with any possibility to get a file into a string without flash
trying to parse it, but the only chance i currently see is using a "preparsed"
.sol file...
[edit]
As the bloody sol files are located in a cryptic subfolder, that i suspect
to be different on each computer, we will discuss chunking it down to
smaller pieces tomorrow...
Last edited by McUsher; 02-12-2006 at 09:52 PM.
My letters on the F1 key have faded, how are yours today?
-
Senior Member
One of my clients has used large files, several thousand nodes in a offline data base application. There all files are automatically loaded when the movie is opened. Even offline the files need to be preloaded when you push the button.
Put this right when the movie loads within the same script you use prior to parsing the xml file:
var myXML:XML = new XML ();
myXML.load ("xml_file.xml");
This is doing the preload job.
- The right of the People to create Flash movies shall not be infringed. -
-
FK's Official Mac Hater
The only way that I can think to fo it would be to use one of the many 3rd party projector tools out there but they will cost you.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
Hmm strange, i didn't believe in the preloading thingy and it didn't change anything.
But when testing around with it, i found the cause of the long time...
I escaped the csv table because i didn't want < and > in it, as that would
make the xml invalid...
And the unescape() function in flash was the cause of the huge computing time..
I was so fixated, that the cause is the internal flash processing of the
xml, that i didn't had a look at the obvious.. quite stupid of me...
Thanks for your input cancer, it indirectly helped me a lot 
And @jason, how could a 3rd party took help in this case?
Last edited by McUsher; 02-13-2006 at 05:55 AM.
My letters on the F1 key have faded, how are yours today?
-
FK's Official Mac Hater
 Originally Posted by McUsher
And @jason, how could a 3rd party took help in this case?
I know that the 3rd party tools give you a lot more freedon and work a lot faster at loading files in than using Flash alone...maybe I misunderstood your problem?
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
That sounds interesting, jason.
May i ask which 3rd party took you had in mind?
My letters on the F1 key have faded, how are yours today?
-
FK's Official Mac Hater
I personally prefer SWF Studio. The one drawback to it is that it doesn't yet have Mac support so if you are needing cross platform it wouldn't be usable for you. If you are looking for PC only support then it is really nice. There is a free trial and some examples on there site which are really nice so you could even try it out to see if it fixes your problems before buying it.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
Ah i heard about that one.. but as i mostly need swfs that play in in the standard
player i will stick to FDT+Flash8...
But i will have a closer look nevertheless...
My letters on the F1 key have faded, how are yours today?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|