Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-22-2004, 03:30 AM   #1
Registered User
Join Date: Feb 2004
Location: Devon, uk
Posts: 13
Default multi level arrays

Can anyone help me,
I have some arrays within arrays. I want to take an array out of one array and put it in another array. Also i need some way of exporting these changes to a shared object file or a text file, so that i can save the results of these changes.
Thank you.
panix is offline   Reply With Quote
Old 03-22-2004, 04:20 AM   #2
my pleasure
tost's Avatar
Join Date: Apr 2002
Location: gent.be
Posts: 792

Hi panix,

// from a text file: first load in the 2d array (eg seperated by |), and split it:

my2d_array = myLoadVars.my2d_array.split("|");

// now split the 2d array into my1d_array1, my1d_array2,..

for (i=0; i<my2d_array.length; i++) {
my1d_array[i] = my2d_array[i].split(";");

for the saving to a text file you'll need php or asp or what not, try the local object i'ld say. (hmm.. can you save an array in the SOL? i don't know)

tost is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Associative arrays Mortimer Jazz ActionScript 2.0 23 05-12-2004 05:11 AM

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

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.