Hi all,
 
I have declared a CSS definition, which defines the skin for my button, which doesn't need any labels. The skin is from symbols from an external SWF. The button is disabled, if I don't set the 'label' property for the button.
 
Here is the CSS, I wrote:
 
<mx:Style>
  .nextButton {
   disabledSkin: Embed(source="blazeSkin.swf", symbol="nextButtonDisabled");
      upSkin: Embed(source="blazeSkin.swf", symbol="nextButtonUp");
      overSkin: Embed(source="blazeSkin.swf", symbol="nextButtonOver");
      downSkin: Embed(source="blazeSkin.swf", symbol="nextButtonDown");
  }
  .prevButton {
   disabledSkin: Embed(source="blazeSkin.swf", symbol="prevButtonDisabled");
      upSkin: Embed(source="blazeSkin.swf", symbol="prevButtonUp");
      overSkin: Embed(source="blazeSkin.swf", symbol="prevButtonOver");
      downSkin: Embed(source="blazeSkin.swf", symbol="prevButtonDown");
  }
  .navigationPanel {
   backgroundImage: Embed(source="blazeSkin.swf", symbol="navigationPanelBG");
  }
 </mx:Style>
 
Here is the code for the button:
 
    prevButton = new Button();
   prevButton.id = "PREV";
   nextButton = new Button();
   nextButton.id = "NEXT";
   //prevButton.label = "Previous";
   //nextButton.label = "Next";
   addChildAt(prevButton, 0);
   addChildAt(nextButton, 1);
   prevButton.x = 360;
   nextButton.x = prevButton.x+80;
   nextButton.y = prevButton.y = 4;
   prevButton.styleName = "prevButton";
   nextButton.styleName = "nextButton";
   setEvents();
 
Please help...
 
Thanks & Regards
Subbu
 
 
Subramanian "Subbu" Sundaram :: Sr. Software Developer - Engineering ::  Mentorware India Pvt Ltd.,
[EMAIL PROTECTED]
w +91-80-26593526 :: c +91-98860 23553

Inform:: Inspire:: Interact

Looking for the punch in your eLearning courses. Call (408) 441-8444 now!
http://www.mentorware.com/solutions/eLearning.html

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to