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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-06-2002, 02:13 PM
onlytoine onlytoine is offline
Registered User
 
Join Date: Feb 2002
Posts: 6
Rep Power: 0
onlytoine is on a distinguished road
Aid Question for a champion : "Global and local variables"

Hello !

I 've a problem : I defined an array, not in a function (global, so). I call a function which must modify this array. But when I write the array using trace() function, my array is NOT modify at all....

So, anybody can tell my how to do please ?

Regards,
Anthony.

Example :

function myFunction() {
toto[0] = "blabla000";
toto[1] = "blabla111";
toto[2] = "blabla222";
}


toto = new Array();

myFunction();

for(var i=0; i<toto.length; i++) {
trace(toto[i]);
}
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




All times are GMT. The time now is 11:07 AM.