0

I'm compiling an .as file using fcsh, which uses it mxmlc.

I use the following shell:

mxmlc /Users/johannesjensen/Desktop/Doodler.as -static-link-runtime-shared-libraries=true

But when I get the .swf on my desktop it's dimensions are 500x375 and framerate is 24 when I told it that it needs to be 550x400 and framerate needs to be 120 using

[SWF(width="550", height="400", frameRate="120", backgroundColor="#FFFFFF")]

High framerate because it's a drawing app

Any ideas why it ignores the [SWF()] thing?

I'm using Flash Player 10.1 on a Mac OS X 10.6.4 Snow Leopard

Johannes Jensen
  • 1,228
  • 2
  • 18
  • 28

1 Answers1

2

A quick Google search reveals that the SWF Metadata tag need to be before the class definition, but after the imports. It sounds like you're putting it before the imports.

Source:

http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/

Keep in mind this is an undocumented metadata tag. I had never heard of it before now. So I can't guarantee that this information is accurate.

JeffryHouser
  • 39,401
  • 4
  • 38
  • 59
  • It works! Thanks a lot! Pretty weird rule though, but nonetheless, it works. :) – Johannes Jensen Aug 09 '10 at 06:34
  • Aha. Thanks. Perhaps an errata for the book I was trying to learn from (O'Reilly's ActionScript 3 Cookbook) which said it can go either before or after the imports is in order. :) – Jules Aug 10 '12 at 12:59