Posted By

adrianparr on 04/21/10


Tagged

width tags swf height metadata as3 stage backgroundColor frameRate


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

tspitzr
mitien


AS3 SWF Metadata


 / Published in: ActionScript 3
 

URL: http://www.adrianparr.com/?p=36

Make sure you put the SWF Metadata AFTER any import statements.

  1. package {
  2. import flash.display.Sprite;
  3.  
  4. [SWF(width='800', height='600', backgroundColor='#ffffff', framerate='25')]
  5.  
  6. public class Test extends Sprite
  7. {
  8. public function Test()
  9. {
  10.  
  11. }
  12. }
  13. }

Report this snippet  

You need to login to post a comment.