1 Reply Latest reply on Feb 28, 2008 12:06 AM by anirudhs

    FScommand interaction

      I have some old swf files without fla sources.
      They call fscommand like fscommand("close","yes").

      I am developing an AIR application and loading a swf using loader.
      How can I listen to fscommands by SWF?
      I need to perform actions based on these commands.
        • 1. Re: FScommand interaction
          anirudhs Level 2

          This is possible in an HTML AIR application where your swf is emdedded in the main application HTML file via the <object> tag. I have tried out both FSCommand & ExternalInterface and both works. The moviename_DoFSCommand(command, args) javascript function has to be present in the HTML file for FSCommand to work.

          I don't think there is a way to do it in a flex AIR application though.