Hi
I'm trying to embed swf into HTML+JS AIR app with no luck.
First, I created flash library with this class in default package.
package{ import mx.controls.Alert; publicclass Utilities { public function Utilities() { //asdfasdf Alert.show("asdasd",""); } }}
Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
After this is added required code into my html:
<html><head> <script type="text/javascript" src="AIRAliases.js"></script> <script type="text/javascript" src="AIRIntrospector.js"></script> <script type="text/javascript" src="jquery-1.6.2.js"></script> <script src="library.swf" type="application/x-shockwave-flash"></script> <script type="text/javascript"> $(document).ready(function () { alert('loaded'); air.Introspector.logError("aaa"); var v = new runtime.Utilities(); }); </script></head><body></body></html>
Then after I run application, I get error that result of expression is not constructor, function etc.
Could you help me please? Thanks in advance.
Here is sample code:
http://depositfiles.com/files/jztpnlb3a