No one told me you could put svg in swf's, I do XAML for a few months and everything in the flash world has changed!!
I finally got the flex3 sdk mxmlc to compile as3 from textmate unsing the as3 and flex bundles, with an embeded svg graphic created in inkscape and then still from textmate I open the index.html to display it.
Might be old news to some but to me my mouth is wide open.
package
{
//import flash.display.Sprite;
import flash.text.TextField;
import flash.display.Sprite;
import flash.display.DisplayObject;
[SWF( backgroundColor='0xFFFFFF', frameRate='30', width='200', height='200')]
public class Main extends Sprite
{
private var textField: TextField;
[Embed(source='circle.svg', mimeType='image/svg')]
protected const EmbeddedSVG:Class;
public function Main()
{
textField = new TextField();
textField.text = "Test2.";
var svgisplayObject = DisplayObject( new EmbeddedSVG() );
addChild(svg);
addChild(textField);
}
}
}
Usefull links:
partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf
blog.flexexamples.com/tag/embed/
livedocs.adobe.com/labs/flex3/html/help.html?content=compilers_14.html (Flex-config info)
livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000970.html#176435
thanks to 'the real me' for some more links on getting textmate bundles working which covered as3/flex bundles zips and info setting up variable in textmate.
isplayObject = DisplayObject( new EmbeddedSVG() );