0 Replies Latest reply on May 16, 2013 7:33 PM by Sam205505050

    iFrame not loading inside Flex popup

    Sam205505050 Level 3

      I'm trying to load pdf inside of iFrame which open in a pop-up window. Pop up is showing but but its not loading pdf. Here is my code -Main.mxml

      <![CDATA[ import mx.controls.Alert; import mx.events.FlexEvent;

      import com.google.code.flexiframe.IFrame; import mx.managers.PopUpManager;

      protected function dgGrid_itemDoubleClick(event:Event):void

      { var win : Window = new Window();


      PopUpManager.centerPopUp(win); }

      Now Window.mxml

             <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"

      layout="vertical" width="742" height="452" title="PopUp Window" horizontalAlign="center"

      xmlns:flexiframe="http://code.google.com/p/flex-iframe/" xmlns:components="components.*"

      showCloseButton="true" close="closeWindow(event);" > 


      <![CDATA[  import mx.core.IFlexDisplayObject;

      import mx.events.CloseEvent; import mx.managers.PopUpManager; 

      private function closeWindow(e:CloseEvent):void

      { PopUpManager.removePopUp(e.target as IFlexDisplayObject); } ]]>

      </mx:Script> <flexiframe:IFrame id="iframe" source="C:\\test.pdf" backgroundColor="blue" width="100%" height="100%" visible="true"/>


      Can you please suggest whats wrong with it?