Archive
Archive for the ‘SWF’ Category
Alter the properties of the SWF
July 20, 2009
Leave a comment
Did you know that we can alter the properties of the output SWF of Flex.
The can be done like this:
In a Flex project the application class:
</mx:Metadata>
[SWF(width="500", height="500", frameRate="30", backgroundColor="#FFFFFF")]
</mx:Metadata>
and in an actionscript project , the code should be like this:
package
{
[SWF(width="500", height="500", frameRate="30", backgroundColor="#FFFFFF")]
public class MyClass
{
}
}
I found it handy inorder to fix a problem I encountered in one of our projects. This might not be used quite often, but it is worth knowing….

