javascript - Can i have a flash movie communicate with Shadowbox jquery overlay? -


I want to adjust to my overlay size based on how much content is being shown in the flash movie. Besides, I want to change it in real time when the user adjusts the content.

Is this possible?

Sure, using the Flash Extension interface, you can call methods in JavaScript. Syntax is very simple, you have JavaScript in:

  function method INJS (name) {warning ("hello" + name); Return 17; }  

Then you will call in the Action Script:

  var myName: string = "David"; Var Results: number = ExternalInterface.call ("methodInJS", myName); Trace ("Results from JS Call:" result);  

Comments