[SWFObject] External Interface

Tiago Vale tiago.vale at gmail.com
Fri May 19 08:14:17 PDT 2006


Hi List,

I'm having a problem here.

Each time I try to get flash to call javascript the IE yelds an error

Line: 1
Char: 79
Error: 'cardchooser' is undefined
Code:0



heres my code

function addCard(_card)
{
    try{
    insert_card(cards_to_arr, _card);
    }
    catch(er)
    {
        alert("foooo")
    }
}


   var so = new SWFObject("media/cardchooser.swf", "cardchooser", "945",
"550", "8",   "#a6caf0");
   so.write("flashcontent");

Inside flash I have

var card:String = "a card";
ExternalInterface.call("addCard", card);



Browser is Internet Explorer 6.0.2900.2180 with SP2
With Firefox works as expected.


-- 
Cheers Tiago Janz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060519/7193f13a/attachment-0004.htm>


More information about the Swfobject mailing list