should be fine, do you have any other elements with the same id as your movie ("mymovie") or is your swf inside a form?


On Jan 24, 2007, at 6:57 AM, Andreas R wrote:

I'm having some trouble catching EI calls when using swfObject, anyone else got this working?

<div id="flashcontent">
 This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("display.swf", "mymovie", "200", "100", "7", "#336699");
  function sayHello(){
   alert("hello");
  }
  so.write("flashcontent");
</script>

where display.swf has this:

testButton.onPress = function(){
   ExternalInterface.call("sayHello");
}
no go for me :(

- A
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to