swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] as3compile buggy output when compiling Sprite


From: Ludwig Weinzierl
Subject: [Swftools-common] as3compile buggy output when compiling Sprite
Date: Thu, 21 May 2009 23:34:17 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

The following piece of code compiles and runs without errors when compiled with mxmlc from flex_sdk_3 or flex_sdk_4.0.0.4021.

package{
  import flash.display.Sprite;
  public class Sitemap extends Sprite{
    public function Sitemap(){
      graphics.beginFill(0x00ff00, 1);
      graphics.drawCircle(100, 100, 40);
    }
  }
}

It compiles without errors with as3compile from swftools 0.9.0,
the swf does *not* run however.
It was compiled with:

as3compile -v -R -X400 -Y400 -MSitemap -oSitemap-as3compiler-0.9.0-Faulty.swf Sitemap.as

The Adobe Standalone Flash Debugger 10(10,0,22,87) says:

  An ActionScript error has occurred:
  ReferenceError: Error #1065: Variable is not defined.

Screenshot of the errormessage:
http://weinzierl.name/temp/2009/ScreenshotAdobeFlashPlayer10Error.png
Faulty swf:
http://weinzierl.name/temp/2009/Sitemap-as3compiler-0.9.0-Faulty.swf

I am running ubuntu 9.04 with kernel Linux 2.6.28-11-generic.

The following compiles and runs fine when compiled with any of the
mentioned compilers, including as3compile.

package{
  import flash.display.MovieClip;
  public class Sitemap extends MovieClip{
    public function Sitemap(){
      graphics.beginFill(0x00ff00, 1);
      graphics.drawCircle(100, 100, 40);
    }
  }
}

Compiled with:
as3compile -v -R -X400 -Y400 -MSitemap -oSitemap-as3compiler-0.9.0-OK.swf Sitemap.as

Good swf:
http://weinzierl.name/temp/2009/Sitemap-as3compiler-0.9.0-Faulty.swf

Can anyone confirm this?

Cheers,

Ludwig Weinzierl







reply via email to

[Prev in Thread] Current Thread [Next in Thread]