11 Replies Latest reply on Dec 25, 2010 11:03 AM by cheftimo

    Embed Flash SWF file in Flex



      I'm new to flex. I'm trying to embed flash swf file into mxml. What I learned so far is that we can use SWFLoader tag to do this


      Here is the code i have right, which throws an error:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.


           source="@Embed(source='gameObj.swf')"     width="
      550" height="400" id="game" />                



      I researched on various sites about this error message, but couldnt come up with the solution. I would appreciate any help. Thanks!



      Flex 4.5

      Win 7

      Mobile App