5 Replies Latest reply on Jun 15, 2008 6:07 PM by slaingod

    flex-swf communication / flashvars?

    philax Level 1
      Is there a good way in Flex to communicate with a swf that reads flashvars ?
      (I didn't find any information anywhere, is that a good practice anyway ?)
      I wanted to use an external media player, this is how i do :

      var loader:SWFLoader = new SWFLoader();
      loader.addEventListener(Event.COMPLETE,complete);
      loader.source="assets/mediaplayer.swf?file=assets/myVideo.flv&width=300&height=250";
      container..addChild(loader);

      But the source can't be changed (in cache i suppose), and sure i have no control on the media (can't stop playing or remove content object etc..). The only thing i can do is stopping the sound and removing the loader's parent container.

      Thanks,
      Phil