0 Replies Latest reply on Jul 15, 2011 7:03 AM by Shailen TJ

    How to access all Flash components?

    Shailen TJ Level 1

      Hello community,

       

      I have a main.mxml file which contains a tabNavigator. The tabNavigator opens different modules when different tabs are clicked. Outside this tabNavigator, I have a toggle button called BiggerText.

       

      When I click BiggerText, I want to change the fontsize in all the datagrids in all the modules.

       

      protected function biggerTextToggleBtn_clickHandler(event:MouseEvent):void

      {

           if(biggerTextToggleBtn.selected){

           s:DataGrid.setStyle("fontSize",14);

           biggerTextToggleBtn.label="Smaller Text";

      }

      else{

           spark.components.DataGrid.AS3.setStyle("fontSize",12);

           biggerTextToggleBtn.label="BIGGER TEXT";

      }

      }

       

      Anybody has a clue how to do that?

       

      Bold text are possibilities I tried, which of course did not work.