The size of the flash file?

Monkey Targets Forums/Flash/The size of the flash file?

Aman(Posted 2011) [#1]
I tried opening the as file and changing this: [SWF(width="800",height="480")]

It works! But the only problem is that the swf file properties shows up as 500x375


York(Posted 2011) [#2]
Did you changed also this part:

bitmap.bitmapData=new BitmapData( 800,480,false,0xff0000ff );


You can find it on the function:
public function MonkeyGameEx( event:Event ):void{



Aman(Posted 2011) [#3]
Yes I did. Still same issue


skid(Posted 2011) [#4]
You need to modify the trans tool or rebuild the .as file yourself with the following parameters passed to the mxmlc command (untested):

mxmlc -default-size 800 600 -static-link-runtime-shared-libraries=true MonkeyGame.as



York(Posted 2011) [#5]
Oh yeah now i can see what your problem ist.

But how can I see the property of my swf file? I didnīt have the Flex builder or anything else?


Aman(Posted 2011) [#6]
Thanks, I will try it today.


Aman(Posted 2011) [#7]
It does produce swf file with 800x480 but the file properties still shows up as 500x375. and yes, I tried a clean build


skid(Posted 2011) [#8]
After a quick google the answer here seems to fix it:

http://stackoverflow.com/questions/3432230/mxmlc-fcsh-ignoring-swfwidth-550-height-400

So ignore my first reply and edit the MonkeyGame.as file in your build folder so the [SWF line comes after the imports. If it works for you it would probably be worth posting in Bug reports to bring the issue to Mark's attention.


Aman(Posted 2011) [#9]
It worked! Thanks a million.


skid(Posted 2011) [#10]
Cool, I'll post the bug report now.


York(Posted 2011) [#11]
Yeah skid . You are my Flash-Hero :D