
Welcome Guest
|
#1
|
|||
|
|||
|
as 2 external text file into array accessing problems
This may be an old question, and I have tried searching for it, but unsuccessfully. I would like to load a string of text from an external text file and turn it into and array. All fine. But when I try accessing the array outside of the function to check whether its loaded I can't do it (even though by the time its being accessed it would have been loaded. I might not be being very clear, so I could post a file if that would help.
So this works... i.e. it traces my array okay: Code:
var scope:MovieClip = this;
var arr:Array = new Array();
var myLoadData:LoadVars = new LoadVars();
myLoadData.load( "posters.txt" );
myLoadData.onData = function( success )
{
scope.arr = success.split( ",");
trace(arr)
}Am I making any sense?!! Any help or useful links most welcome. Cheers. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Center dynamic external text that is linked | Patty5 | Newbies |
21 | 10-01-2008 04:10 PM |
| Loading a text file: loading delay problems | DenkouNova | Actionscript 2.0 |
4 | 03-13-2006 10:42 AM |
| Embedding swf that’s associated with a text file? | georock | Flash MX |
4 | 11-30-2005 09:54 AM |
| Loading external .txt files using links in external .txt files | JeremyToaster | General Flash | 2 | 03-01-2005 01:48 AM |
| loading variables from an external text file | stereomike | Flash 5 Actionscript |
6 | 09-05-2000 09:34 PM |

Programming Languages



