Do you have the <mx:SWFLoader> element wrapped inside the <mx:Application>. Please see the documentation here for more information http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
Does putting flashGame.swf in the src folder help?
Thanks for the help. Unfortunately neither adding the <mx:Application> tags nor putting the game in the "src" folder worked. It may just be a problem with my computer, I'm going to try it on another computer to see if that helps.
Try putting this code in your main MXML file:
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:SWFLoader id="loader1" source="flashGame.swf"/> </mx:Application>
Make sure flashGame.swf is in the src folder. This should do the trick.
If it still does not work, a possibility to think of is whether flashGame.swf runs by itself or if it has code in it that prevents it from being loaded via a swfloader.