Embedding SWF/SWC in Air for non visual interaction


hi, simple question, it's leaving me little lost.

 

i have existing swf file uses as3/flex , i'm migrating air.  now, want access classes don't need presentation layer (we're doing in air/html).  what's best way air (html/javascript) application?

 

i thinking of creating swc classes, unsure how that.  i'm using applicationupdater_ui.swf successfully, trying same thing (with different namespace, using <script src=> tags in html air.applicationupdaterui object in javascript) saying variable 'com' isn't available.

 

any appreciated.

 

cheers

 

robbie

you create swc air using acompc utility (compc should work if there no references air-only apis). can't use swc directly. have "unzip" (you can change extension .swc .zip) , extract library.swf.

 

the error claiming "com" variable unavailable reference error. have provide qualified package name classes referenced. however, syntax package reference , variable reference overlap, if package name can't resolved, error reported undefined variable instead of unknown package.

 

if had libraryclass class defined in utilities package, reference follows:

 

var libraryobject = new window.runtime.utilities.libraryclass();

see http://help.adobe.com/en_us/air/1.5/devappshtml/ws5b3ccc516d4fbf351e63e3d118666ade46-7ed9. html.



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts