4 Replies Latest reply on Sep 18, 2008 12:54 PM by Merlyn_MM

    button skin

    vikceo Level 1
      hie i have created a button in action script and set its style as:

      bt.label = row.getItemAt(6).toString();

      But when i hover mouse i see it changes the label color etc.. i dont want that... how to achieve it?
        • 1. Re: button skin
          Gregory Lafrance Level 6
          • 2. Re: button skin
            vikceo Level 1
            Thankx Greg... You Rock!!!
            • 3. Re: button skin
              Gregory Lafrance Level 6
              No you rock man, cause you're using Flex and are in this forum building the Flex community!
              • 4. Re: button skin
                Hi Greg

                I was trying to do something similar to this and this works great. Thanks!
                And I have another question now that I have created the buttons dynamically I want to add a click event that fires a webservice and the webservice returns subcategory buttons and I want to display them in accordion or sliding panel style. I need to send the CATID to the webservice. My cfc returns subcatids as returntype query.This is my first flex project and I actually am liking it!

                Here is my code

                public function handleStringResult(event:ResultEvent):void{
                catInfo = event.result as ArrayCollection;
                for each(var o:Object in catInfo){
                var b:Button = new Button();
                b.label = o.CATDESC;
                b.setStyle("fillColors",["red", "purple"]);
                b.setStyle("textRollOverColor", "red");