View Full Version : Falsh Remoting Question : CFML array vs Flash array
Obelisk
May 27th, 2003, 04:28 PM
Can anyone help me with this.
I have a CFML array which i am passing via a cfc to flash. Unfortunately in CFML (coldfusion) the first array index is 1 and not 0 as in flash. This is causing me an error.
Thanks
ahmed
May 27th, 2003, 04:36 PM
you probably need to use something like this:
for(i=0; i<myCFArray.length-1; i++) {
myFlashArray[i] = myCFArray[i-1]
}
Obelisk
May 27th, 2003, 04:40 PM
Unfortunately I get an error before i even get to the _results functions. I tried countering it by adding an extra "blank" entry at the begining of the array.
But if you have an array that contains 3 values from cfmx that is arrayVal[1] , arrayVal[2] and arrayVal[3] flash gives me the following error
arrayVal[0] undefined arrayVal[2], arrayVal[3]
The undefined throws the error.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.