views:

64

answers:

1

i want to add a SWF metadata tag to an ActionScript Project in Flash Builder 4, that denotes the default size and background color of the swf.

i can do this in Flash Professional, but it doesn't work with ActionScript projects in FB4? can i not include this tag? i know i can set these properties in the properties panel, but i'd like to have them in my code.

alt text

A: 

oh, never mind. dumb move on my part. this metadata tag needs to be place just before the class declaration.

[SWF(width="1800", height="600", frameRate="60", backgroundColor="#0")]
public class Test extends Sprite
     {
     ...
     }
TheDarkInI1978