PDA

View Full Version : Passing flash Array to JavaScript


prince_kalyan
08-02-2007, 10:55 PM
Hello,

Can someone plz help me out with this problem?

I am doing a flash page in which a user clicks on some items and these items are to be sent to the next web page(non-flash) for display of the users selection.

I declared a global array by the name myArray and stored all the selected items in 'myArray'.
I was asked to add a javascript function in flash to a button click which i did as follows : (i dont know javascript)

on (release) {
getURL("javascript:window.desktop.closeIntro()");
}

Later.. I was asked to add a params as {interest:[]}. Which I did as follows :

on (release) {
getURL("javascript:window.desktop.closeIntro({interests:[]});");
}
(interests is an array which will consist of selected items passed on from flash)

Now.. I have to pass 'myArray' to {interests:[]}

Can anyone plz tell me how to do that?