Reputation: 1238
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
Upvotes: 0
Views: 2511
Reputation: 39408
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.
Upvotes: 2