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

    Embed swf

    TigerLittle Level 1
      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);

      and my popup window swfPlayView.mxml :
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Image xmlns:mx=" http://www.adobe.com/2006/mxml"

      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?