I read somewhere that you can't pass a reference to an array element, just the array itself. Is this still the case?
What I would like to do is assemble and position on screen a few images that the user selects. Each time the user chooses the "Select Image" button I increase a value and then call the function. It works fine for a situation where I want only a single image, but not when I use the array element.
This one is what I'd like but doesn't work:
Code: Select all
local pImageArray
local pImageCount
on doSomething
add 1 to pImageCount
call "selectImage album,pImageArray[pImageCount],100,35,480" on card "Library" # does NOT work: the 2nd value passed is empty
end doSomething
Code: Select all
local pImage
on doSomething
call "selectImage album,pImage,100,35,480" on card "Library" # works fine: the 2nd value passed is "pImage"
end doSomething