LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-03-2008, 01:12 PM
floody123 floody123 is offline
Registered User
 
Join Date: May 2007
Posts: 13
Rep Power: 0
floody123 is on a distinguished road
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)

    }
but what do I do when say I want a title on screen to read to be say, entry 3 in the loaded array... i don't want to have to put all of my script inside the "myLoadData.onData = function( success )".

Am I making any sense?!! Any help or useful links most welcome.

Cheers.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 08:39 AM.