As3 flixel - mouse issue with external swf

25 Views Asked by At

I finally got externally loaded swfs working (for menus) in my flixel game. Only problem is, I'm using FlxG.stage.addChild(mClip); which seems to place the movie clip on top of everything else... including FlxG.mouse. Anyone know of a fix for this?

1

There are 1 best solutions below

0
Gustavo Schmitt On

you can use this func to bring it to front.

    public static function bringToFront(obj:*):void
    {
        obj.parent.setChildIndex(obj, (obj.parent.numChildren - 1));
    }