TwelvestoneFlash

textmate + inkscape = swf!!


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
JLM
 
2008-01-05

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 svg![k](/images/smilies/grin.gif)isplayObject = DisplayObject( new EmbeddedSVG() );
        addChild(svg);
        addChild(textField);

    }        
}

}

Usefull links:

http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf http://blog.flexexamples.com/tag/embed/ http://livedocs.adobe.com/labs/flex3/html/help.html?content=compilers_14.html (Flex-config info) http://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.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

textmate + inkscape = swf!!