[SWFObject] External Interface
Tiago Vale
tiago.vale at gmail.com
Fri May 19 08:49:27 PDT 2006
Fixed, where was cardchooser I've replaced with flashcontent
var so = new SWFObject("media/cardchooser.swf", "flashcontent", "945",
"550", "8", "#a6caf0");
so.write("flashcontent");
but now IE says
Object doesn't support this property or method
Although flash does comunicate with js and the functions are triggered.
On 5/19/06, Tiago Vale <tiago.vale at gmail.com> wrote:
>
> 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
>
--
Cheers Tiago Janz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060519/4c2c64aa/attachment-0005.htm>
More information about the Swfobject
mailing list