Trouble with FlashVars in AS3 + flixel

264 Views Asked by At

I'm building my first flixel app (a flash-based game engine) and I'm having trouble accessing the FlashVars from my html source. Flixel's root element is not derived from the top-level root, and I can't get a workaround in place. I've done some research and found a few promising solution here:

http://forums.flixel.org/index.php/topic,449.msg3101.html#msg3101

however none of these solutions have worked for me. I think the magicRoot implementation is the best offered there, but I still haven't been able to get it working properly. Any help would be appreciated!!

1

There are 1 best solutions below

2
On

You can get a reference to the stage from within a Flixel game by using FlxG.stage.