Numerous errors attempting to output simple AS3 app to HTML/JS--what am I doing wrong?

43 views
Skip to first unread message

Josh

unread,
Jun 19, 2012, 3:54:15 PM6/19/12
to realax...@googlegroups.com
Hello,

I am using Realaxy 1.1 Beta, Build 9164.

I watched this video which demonstrates generating a simple HTML5 Application with AS3 and Realaxy Editor 1.1.

Seemed like a neat idea, and just what I wanted to do.  So I tried to do exactly what is done in the video.  However, when I attempt to run my app, I get a number of JavaScript errors:

Uncaught TypeError: Cannot read property '3' of null joo-nativebootstrap.js:213
Failed to load resource: the server responded with a status of 404 (Not Found) http://caerulus.net/misc/joo/jangaroo-runtime.joo.js
Uncaught TypeError: undefined is not a function joo-nativeinit.js:1
Uncaught TypeError: Cannot read property '3' of null joo-nativebootstrap.js:213
Uncaught TypeError: Cannot set property 'MAGIC_GRADIENT_FACTOR' of undefined jooflash.flash.geom.js:131
2Uncaught TypeError: Cannot read property 'prototype' of null joo-nativebootstrap.js:217
Uncaught TypeError: Cannot read property '3' of null joo-nativebootstrap.js:213
Uncaught SyntaxError: Unexpected token ! jooflash.flash.display.js:981
Uncaught TypeError: Object #<Object> has no method 'run' index.html:39

First thing that jumped out at me is that jangaroo-runtime.joo.js is not found.  If I look in the joo subfolder, I see jangaroo-runtime.trace.info, but not jangaroo-runtime.joo.js.

The cannot read property '3' of null errors are on these lines:

var classMatch = classDef.match(/^\s*((public|internal|final|dynamic)\s+)*class\s+([A-Za-z][a-zA-Z$_0-9]*)(\s+extends\s+([a-zA-Z$_0-9.]+))?(\s+implements\s+([a-zA-Z$_0-9.,\s]+))?\s*$/);
var className = classMatch[3];

What's happening is that classDef is a string like "public interface Arguments" and the regular expression isn't matching, I think because it doesn't have "class" in it anywhere.  So then classMatch[3] is throwing an error because classMatch is null.

Uncaught SyntaxError: Unexpected token !  is for this line:

if(<!TextGen not found for 'realaxy.js.structure.JSExpression'!>){ 

Is this a token replacement error?  It looks like there was something else supposed to go there, but instead we've got error text inside the if() condition.

And let's not forget this: this:

Object #<Object> has no method 'run'  

The entire thing won't run, because Object #<Object> has no method 'run'  


You can see this app here:

Any help?  What's going on here?

  -Josh

Евгений Потапенко

unread,
Jun 20, 2012, 7:30:06 PM6/20/12
to realax...@googlegroups.com
Hello, Josh

Mechanism generation as-> js is now at the stage of refactoring.
A lot of that broken.
Download a more recent build tomorrow.
The final version of the new generator JS will be available during the week.

Eugene


Евгений Потапенко

unread,
Jun 21, 2012, 6:11:51 PM6/21/12
to realax...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages