1 Reply Latest reply on Sep 3, 2009 8:55 PM by babo_ya

    unable to set effects in loaded application


      Hi All,


      I'm ABLE to get UIComponents from loaded app and set their properties. It's loaded as a child in same domain.

      I'm UNABLE to set any effects like Rotate or Glow on the same UIComponent.


      I have mxml definitions of the effect i need in the parent app.

      Have tried several ways to try to get it to work.


      glowPulse.target = [eventTarget];


      // TypeError: Error #1006: dispatchEvent is not a function


      eventTarget.setStyle("showEffect", rotate );

      // no effect


      Is it possible or are you stuck with just setting simple properties and using functions defined in sub app like a  remote object service call?



      Thanks in advance,


        • 1. Re: unable to set effects in loaded application
          babo_ya Level 3

          I don't quiet understand your question .. but, try this..


          <?xml version="1.0" encoding="utf-8"?>

          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute>



                  import mx.controls.Button;

                  import src.SharingComp;

                      import mx.controls.Alert;

                     import mx.managers.PopUpManager;


                     private function createPopUp(event:MouseEvent):void {


                          var button:Button = Button(event.currentTarget);

                          button.setStyle("showEffect", "Fade");

                          button.visible = false;

                          button.visible = true;      








              <mx:Button x="31" y="56" label="Button" click="createPopUp(event)"/>



          Hope this helps,