
Welcome Guest
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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 |
«
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 |
| 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 |





