0 Replies Latest reply on Apr 21, 2013 6:49 PM by hano3

    Flex 4.6.Change Busy Indicator Size,Position and Color

    hano3

      How would one change the  "Size"  "Position"  and "Color" for the element "bi:BusyIndicator" below?

       

       

       

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

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

                          xmlns:s="library://ns.adobe.com/flex/spark"

                          actionBarVisible="false" creationComplete="init()" overlayControls="false"

                          tabBarVisible="false" title="Content View">

                <fx:Declarations>

                          <!-- Place non-visual elements (e.g., services, value objects) here -->

                </fx:Declarations>

                <fx:Script>

                          <![CDATA[

                                    import flash.net.navigateToURL;

       

                                    import spark.components.BusyIndicator;

                                    import spark.events.ViewNavigatorEvent;

                                    protected var webView:StageWebView = new StageWebView();

       

                                    protected var bi:BusyIndicator ;

       

                                    protected function init():void

                                    {

                                              bi = new BusyIndicator ()

                                              webView.addEventListener(flash.events.Event.COMPLETE,htmlLoadDone);

                                              this.addElement(bi);

                                              bi.visible = true;

                                              webView.stage = stage;

                                              webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

                                              webView.loadURL(String(data));

                                              addEventListener(ViewNavigatorEvent.REMOVING, onRemove);

                                    }

                                    protected function htmlLoadDone (event:Event):void

                                    {

                                              bi.visible=false;

                                    }

       

                                    protected function onRemove(event:ViewNavigatorEvent):void{

                                              this.webView.dispose();

                                    }

                          ]]>

                </fx:Script>

       

      </s:View>

       

       

      Please Help Me Learn