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




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 05-03-2001, 02:39 PM
tyard tyard is offline
Registered User
 
Join Date: Jan 2001
Posts: 95
Rep Power: 13
tyard is on a distinguished road
Hi. I've been having some trouble transferring multidimensional arrays from a custom interface for a smart clip into the code for the smart clip itself. Tracing the arrays in the interface returns values as I expect, and everything works properly, but then when I trace the same values in the smart clip (after they've been created in the interface) it returns a one dimensional array with long strings in each position.

For instance, if my array in the interface was :

xch.myArray[0][0] = 2,
xch.myArray[0][1] = 5;
xch.myArray[0][2] = 3;
xch.myArray[1][0] = 5;
xch.myArray[1][1] = 7;
xch.myArray[1][2] = 8;

The array comes into my smart clip as:

myArray[0] = "2, 5, 3";
myArray[1] = "5, 7, 8";

Anyway to quickly return this into its multidimensional form? Is there something I'm doing incorrectly? Any help would be appreciated.


--tyard

http://www.27bobs.com
Reply With Quote
  #2  
Old 05-11-2001, 09:30 AM
Gargoyle's Avatar
Gargoyle Gargoyle is offline
Moderator
 
Join Date: May 2000
Location: germany
Posts: 3,471
Rep Power: 17
Gargoyle is on a distinguished road
Rolleyes

a multidim array is an array containing arrays.
here is a simple tut i made once just to check out how it works u need to run it in the environment for it only contains traces and has no real output.
http://www.8th-continent.net/multidimarray.zip
__________________
---
if TCPA is the answer,
how stupid then was the question?

There is a diffrence in knowing the path and walking the path.

if u found this thread usefull, then rate it.
this way we all save a lot of time, searching for the good ones.

Reply With Quote
  #3  
Old 05-11-2001, 05:46 PM
tyard tyard is offline
Registered User
 
Join Date: Jan 2001
Posts: 95
Rep Power: 13
tyard is on a distinguished road
Thanks for the help, Gargoyle. I'm actually fine with the concept of multidimensionsal arrays and use them often within my Actionscripting (although I could have used your help a few months ago when I was struggling through!). My problem was that my arrays within arrays would not export as such from my custom UI back into my smart clip. I would get plain ol' arrays containing strings. I never did figure out how to fix it, I ended up creating sixteen single arrays to house the second dimension and writing a function to take the long strings and put them back into array form. I appreciate the help, though.

--tyard

http://www.27bobs.com
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behavior - creating, loading movie clips works only for first function call clem_c_rock Advanced Flash 0 09-03-2007 02:21 AM
Smart Clips misospimr General Flash 1 10-04-2001 10:12 AM
Bob's Bone Animator smart clips available! tyard Advanced Flash 1 05-15-2001 01:49 AM
Pleas Help with Smart Clips andie General Flash 2 11-23-2000 12:37 AM
Arrays and Smart Clips codepimp Flash 5 Actionscript 2 11-14-2000 03:16 PM




All times are GMT. The time now is 04:54 AM.