Flash Animations in HaxeFlixel

137 views
Skip to first unread message

Marcelo Frau

unread,
Jul 1, 2014, 6:56:55 PM7/1/14
to haxef...@googlegroups.com
Hello,

I am starting to develop in HaxeFlixel, and want to know if there is a way to play movieclips from a SWF, I was wondering if I can make the cutscenes of my game in flash, and import them on a FlxState. I haven't found any documentation if this is possible. I think that in OpenFL I was able to do this, but I'm not sure..

Anyone can help with this?

Thanks!

Gama11

unread,
Jul 2, 2014, 8:15:11 AM7/2/14
to haxef...@googlegroups.com
You can definitely use movieclips by just adding them to the stage - that doesn't really work with the flixel display list though (i.e. will show up on top of everything, but I guess this is perfectly fine for a cutscene?)
For working with the regular flash display list, there are two helper functions in FlxG: addChildBelowMouse() and removeChild().

Pretty sure you can also use svgs with FlxSprites by using OpenFL's swf lib to rasterize them, but I'm not sure if that'd work with animations.
Reply all
Reply to author
Forward
0 new messages