1 Reply Latest reply on Oct 13, 2006 11:32 AM by ntsiii

    Embed swf

    TigerLittle Level 1
      Hi,
      I need do clicking a button, open a new window and show a swf file. I did like this:

      <mx:LinkButton click="showSWF(event);"/>

      private function showSWF(event:Event):void{
      var swfPlayWindow:IFlexDisplayObject = PopUpManager.createPopUp(this, swfPlayView, true);
      PopUpManager.bringToFront(swfPlayWindow);
      }

      and my popup window swfPlayView.mxml :
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Image xmlns:mx=" http://www.adobe.com/2006/mxml"
      source="@Embed('newSWF.swf')">
      </mx:Image>

      it gives me this error:
      exception during transcoding: couldn't read 2098800
      I can't google out any information about this error. if I change to source="@Embed('red.png')"> , it works fine. Is this meaning my swf has problem?

      Thanks