3 Replies Latest reply on Feb 8, 2008 11:04 AM by Gaurav J

    Problem with embed assets in Mac OSX

    rakuto.furutani
      Hi,
      The mxmlc compiler in Flex 3 SDK can't handle the embed meta data in AS3.
      The source code and error code is as follows:

      Source:
      package {
      import flash.display.*;
      import flash.geom.*;
      import flash.filters.*;
      import flash.media.Camera;

      public class Bulge extends Sprite
      {
      [Embed(source='sample.jpg')]
      private var Sample:Class;

      public function Bulge()
      {
      addChild(new Bitmap(new Sample));
      }

      }
      };

      Output
      [ERROR:129]% mxmlc Bulge.as
      Loading configuration file /Users/furutanirakuto/src/flex3sdk_b3_121207/frameworks/flex-config.xml
      Loading configuration file /Users/furutanirakuto/workspace/flex/Bulge-config.xml
      This beta will expire on Sat Mar 15 00:00:00 GMT+00:00 2008.
      2008-02-09 02:34:39.017 java[3859] CFLog (0): CFMessagePort: bootstrap_register(): failed 1100 (0x44c), port = 0x16e03, name = 'NSApplication-MainThread-f13-61996096230320#'
      See /usr/include/servers/bootstrap_defs.h for the error codes.
      2008-02-09 02:34:39.018 java[3859] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (NSApplication-MainThread-f13-61996096230320#)
      2008-02-09 02:34:39.019 java[3859] *** Assertion failure in -[NSApplicationAWT _createWakeupPort], AppKit.subproj/NSApplication.m:3578
      2008-02-09 02:34:39.019 java[3859] *** NSThread: ignoring exception 'CFMessagePortCreateLocal returned NULL port' that raised during delayed perform of target 0xabfa48a0 and selector 'startAWT:'

      The source code of Flex also can't compied.
      [ERROR:129]% mxmlc Bulge.mxml
      Loading configuration file /Users/furutanirakuto/src/flex3sdk_b3_121207/frameworks/flex-config.xml
      Loading configuration file /Users/furutanirakuto/workspace/flex/Bulge-config.xml
      This beta will expire on Sat Mar 15 00:00:00 GMT+00:00 2008.
      2008-02-09 02:40:40.047 java[3880] CFLog (0): CFMessagePort: bootstrap_register(): failed 1100 (0x44c), port = 0x18d03, name = 'NSApplication-MainThread-f28-62357125844908#'
      See /usr/include/servers/bootstrap_defs.h for the error codes.
      2008-02-09 02:40:40.048 java[3880] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (NSApplication-MainThread-f28-62357125844908#)
      2008-02-09 02:40:40.050 java[3880] *** Assertion failure in -[NSApplicationAWT _createWakeupPort], AppKit.subproj/NSApplication.m:3578
      2008-02-09 02:40:40.050 java[3880] *** NSThread: ignoring exception 'CFMessagePortCreateLocal returned NULL port' that raised during delayed perform of target 0xabfa48a0 and selector 'startAWT:

      My environment:
      Mac OSX: 10.4.11
      Flex 3 SDK: flex3sdk_b3_121207

      Are these my mistake or mxmlc's bug?
      Let me know.

      Thanks,
      Rakuto