Skinning Components - Themes and Styles

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Skinning Components with Style

Free Members Tutorial


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

 

Step Five: Changing Style Properties

  1. Select the Frame one of: Actions Layer
  2. If the Actions Panel is closed, open it: Window > Actions (F9)

    For Flash MX04: Window > Development Panels > Actions (F9)

  3. In the Actions Panel, enter the following code:

    _global.style.setStyle("themeColor", "haloOrange")

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

    Example: Download the Flash file Com 608c


    All four Components now have an orange theme

The ActionScript Explained:

For an explanation on the two parameters refer back to Styling Individual Halo Theme Components: Step Three

_global.style.setStyle("themeColor", "haloOrange")
This time we have replaced the reference to the Component's instance name with "_global.style". This in effect makes a global statement that any Components inside the Movie will have its themeColor property changed to haloOrange. This can be overridden if another style property comes afterwards. To see this in action:

         

Step 5    <<   Previous      Intro   1   2   3   4   5   6     Next   >>       >>   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

4612 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.