|
-
I have noticed that flash seems to be very slow at splitting a long string into an array. Anyone else noticed that?
I am pulling a list of files into flash using SWF Studio and into the flash varible called ssfilelist. ssFileList would then look something like this: ("myfile1.txt,myfile2.doc,myfile3.ini,etc...") for 80 files.
myfilearray = _parent.ssFileList.split(",");
The above code takes nearly 15 seconds to run with 80 files in it. Worse of all, it stops everything while is splits the string into an array. All movies stop. If there are 150 files in the directory, flash thinks it crashed with the pop up message, do you want to continue!!
Anyone know of a faster way to do it?
I am using a win 98SE on a p400.
BTW, i have split the code out into different frames and SWF studio grabs the files from the folder and populates the flash varible very fast, it is when flash gets to splitting the string into an array that everything stops. Also, SWF studio is a 3rd party application for flash and for cdrom deployment. However, this question was unanswered on the Standalone forum. I thought maybe the actionscript code might be more familiar to this group.
__________________
Jim Booth
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
|