Hi Strk,
Per your suggestion, I am still trying to come up a simple test case
to test out gnash.
The problem is I can't get the following code to compile, and I can't
figure that out:
class Tuto {
static var app : Tuto;
function Tuto() {
trace( "start !");
}
// entry point
static function main(mc) {
app = new Tuto();
// trying to following player2.swf as close as possible:
_global.logic = new Object();
var v1 = function () {
super();
};
logic.Movie = v1;
logic.Movie extends MovieClip;
}
}
Here is the compile errors I get:
: parse error Unexpected extends
[EMAIL PROTECTED] mtasc]$ mtasc -swf player2.swf -main -header
800:600:20 player2.as
./player2.as:22: characters 20-27 : parse error Unexpected extends
I have posted this to mtas or other actionscript forum, but I did not
get any help....
On 2/26/07, strk <[EMAIL PROTECTED]> wrote:
Are you running gnash with the -v switch ?
If you're using MTASC, may I suggest you use the MTASC framework for
Gnash testsuite found in testsuite/misc-mtasc.all ?
For a start you could modify the existing hello.as file.
--strk;
On Mon, Feb 26, 2007 at 03:01:30PM -0600, Meryl Silverburgh wrote:
> Hi,
> i am trying to write simple test case for gnash.
>
> i start with this actionscript:
> class Tuto {
>
> static var app : Tuto;
>
> function Tuto() {
>
> trace( "Hello world !");
> }
>
> // entry point
> static function main(mc) {
> app = new Tuto();
> }
> }
>
>
> and compile it to a swf file
> but when I run it with gnash, I don't see the 'Hello world' as expected.
>
> Can you please tell me if I do something wrong?
>
> Thank you.
>
>
> _______________________________________________
> Gnash mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gnash
--
() ASCII Ribbon Campaign
/\ Keep it simple!
_______________________________________________
Gnash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash
_______________________________________________
Gnash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash