Skinning Components - Overriding the Global Style

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Skinning Components with Style

Free Members Tutorial


Step 6    <<   Previous      Intro   1   2   3   4   5   6    >>       >>   Webwasp Mates

 

Step Six: Overriding the Global Style

  1. If the Properties Inspector is closed, open it: Window > Property (Ctrl F3)
  2. Select the: Button Component
  3. In the Instance Name field, enter: sampleButton
  4. Select the first frame of the Actions layer and add the following code after the line previously entered:

    _root.sampleButton.setStyle("themeColor", "haloBlue");

  5. Test your Movie: Control > Test Movie (Ctrl Enter)

    Example: Download the Flash file Com 608d


    Click the button to see the Blue Halo and the rest still have an Orange Halo.

Now all your Components have the orange theme except the button Component, which now has the Blue theme.

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 6    <<   Previous      Intro   1   2   3   4   5   6    >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

4593 visitors to this page since Sept 06 •

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.