Hi. 

Not sure if the topic goes under flexcomponent, but here goes....

Is it possible to pass an javascript associative array over to flex?

This is my failed test:

Javascript:

    var flexApp = FABridge.example.root();

                var matrise= new Array()

                matrise["cool"] = "Mustang";

                matrise["family"] = "Station Wagon";

                matrise["big"] = "SUV";

                flexApp.arraytest( matrise );

Actionscript:

      public function arraytest(matrise:Object):void{   

          tekst.htmlText = matrise.cool;

      }

 

I got a simple array strucure over to flex OK, but I'm not sure how
associative array are used in actionscript, so it may be some simple
error...

 

Thanks for your comments!

Thor

Reply via email to