2 Replies Latest reply on Jan 11, 2010 3:14 PM by ZenForHire

    swfBridge is null for loaded sibling application

    ZenForHire

      Hi All,

       

      With multi version, found I had to load SWF as a sibling.

      Testing sending  an event over swfBridge but the property is null?

       

      compiled Parent with 4.0

      sub app is 3.2

       

      <!-- automatic load if in mxml -->
      <mx:SWFLoader id="testApp"
              loadForCompatibility="true"
              trustContent="true"
              width="100%" height="100%"
              source="TestAppWithPlayback.swf"
              complete="swfComplete();"/>
             
          <mx:Button id="buttonEvent"
                     label="Send Event"
                     click="sendLoad(event)" />

       

              public function sendLoad( event:MouseEvent ) : void
              {
                  trace( "sendLoad()" );
                 
                  // send event
                  var allowedToReadSibling:Boolean = testApp.childAllowsParent;
                  var loadEvent:LoadCaptureEvent = new LoadCaptureEvent();
                  testApp.swfBridge.dispatchEvent( loadEvent );
              }

       

       

      Thanks in advance