Ok, I got it working. There are 2 files, that caused problems:

M       kernel/swf9/LzPreloader.as
M       kernel/swf9/LzSprite.as
There are some calls in the files which are made to ExternalInterface
without checking if ExternalInterface is available. In LzSprite#init()
you check for the existence of DojoExternalInterface before making the
calls, but in the listed spots you don't. Commenting out those lines
add least let me load the application.
pandora:lfc rajubitter$ svn diff kernel/swf9/LzPreloader.as
Index: kernel/swf9/LzPreloader.as
===================================================================
--- kernel/swf9/LzPreloader.as (revision 16505)
+++ kernel/swf9/LzPreloader.as (working copy)
@@ -53,7 +53,7 @@
             var percload:Number =
Math.floor(root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal *
100);
             var id = stage.loaderInfo.parameters.id;
             if (id) {
-                ExternalInterface.call('lz.embed.applications.' + id
+ '._sendPercLoad', percload);
+                // ExternalInterface.call('lz.embed.applications.' +
id + '._sendPercLoad', percload);
             }
         }
     }
pandora:lfc rajubitter$
pandora:lfc rajubitter$ svn diff kernel/swf9/LzSprite.as
Index: kernel/swf9/LzSprite.as
===================================================================
--- kernel/swf9/LzSprite.as (revision 16505)
+++ kernel/swf9/LzSprite.as (working copy)
@@ -176,8 +176,8 @@
      * @access private
      */
     public static function setRootX (v) {
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'position', 'absolute')
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'left', LzKernelUtils.CSSDimension(v))
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'position', 'absolute')
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'left', LzKernelUtils.CSSDimension(v))
     }

     /**
@@ -187,7 +187,7 @@
      * @access private
      */
     public static function setRootWidth (v) {
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'width', LzKernelUtils.CSSDimension(v))
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'width', LzKernelUtils.CSSDimension(v))
     }

     /**
@@ -197,8 +197,8 @@
      * @access private
      */
     public static function setRootY (v) {
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'position', 'absolute')
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'top', LzKernelUtils.CSSDimension(v))
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'position', 'absolute')
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'top', LzKernelUtils.CSSDimension(v))
     }

     /**
@@ -208,7 +208,7 @@
      * @access private
      */
     public static function setRootHeight (v) {
-        DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'height', LzKernelUtils.CSSDimension(v))
+        // DojoExternalInterface.call('lz.embed.__swfSetAppAppendDivStyle',
null, id, 'height', LzKernelUtils.CSSDimension(v))
     }

     /**

On Sat, May 29, 2010 at 10:09 AM, Raju Bitter
<[email protected]> wrote:
>
> No, not at all. As a starter I'm just trying to get a mixin working to
> enable gestures like zoom and rotate in views. Imagine how fancy an
> app like LzPix would be if it would be touch enabled. Does anyone own
> a Windows 7 notebook/computer with touchscreen? I thought about
> getting one, but opted for an iPad for testing, which of course
> doesn't support Flash.
>
> On Sat, May 29, 2010 at 4:50 AM, Henry Minsky <[email protected]> wrote:
> > Out of curiosity, what is the app you're building with AIR? Does it
> > take advantage of
> > having greater access to the OS resources (e.g., file access, network, etc)?
> >
> >
> > On Fri, May 28, 2010 at 6:57 PM, Raju Bitter
> > <[email protected]> wrote:
> >> @Henry: The question came up before, I think. I've been testing to
> >> deploy an OL app in Adobe Air 2.0 Beta. On application launch I run
> >> into the following error:
> >> #2067: The ExternalInterface is not available in this container.
> >>
> >> Adobe AIR doesn't have support for ExternalInterface, and to get any
> >> OL SWF9/10 app running in Air we'd have to get rid of any call to
> >> ExternalInterface. I saw some code in LzBrowserKernel.lzs where there
> >> are alls made into JS, to test if the JS bridge is initialized. Is
> >> there any simple way to suppress these API calls?
> >>
> >> Thanks,
> >> Raju
> >>
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > [email protected]
> >

Reply via email to