Ethic Solutions Free Webmaster Tools
     
Changing Colors for the Flash Movie Flash Tutorials : FlashAdvisor.com
Flashadvisor logo
:: Desktop Shortcut
:: Flash Help
Advices from Experts

 Submit Here! · Link to Us · Newsletter · Tell a Friend ·

      Add Tutorial |

 

Advertise here










 

Google

Search WWW   
FlashAdvisor.com

 Home > Tutorials  > ActionScript

Changing Colors for the Flash Movie

Author: Oleg Lazarenko | Email
Website : www.metamorphozis.com


Advertisement


You need you movie clip changed color? Piece of cake! This tutorial will show you how to change movie color using simple actions script technique.

Launch Flash MX 2004
Create new Flash file. Click File > New…



Select Flash Document in a new window



Create new layer and name it "rectangle". With the "rectangle tool" create simple rectangle shape as shown on the picture below



Convert this shape to movie and change its instance name to: "rectangle"



Create new layer, name it “button1”. Inside that layer draw the rectangle shape. Set the background color of that shape to blue.



Convert the shape you made to button. With the "Text Tool" make a text label for that button:"Click here to change to blue"



Select the button and add the following action script code to the "Action Panel"



on (release)
{
colorchange = new Color("/rectangle");
colorchange.setRGB(0x0000FF);
}





Download Source File

| 1 | 2 |

Rate This Tutorial :
We hope the information helped you. If you have any questions or comments, please don't hesitate to post them on the Forums section
Submit your Tutorial at Click Here
  

Home | About Us | Contact Us | Feedback | Advertise with us

Best viewed in 800x600 resolution with Internet Explorer.

Site Developed and Hosted by  ethicsolutions.com
All rights reserved with FlashAdvisor

Flash is a registered trademark of Adobe Systems, Inc.

37 users online