Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Color Object To Set Sprite Dynamic Colors
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

3 STEP QUICK TUTORIAL

It is assumed that you have good (intermediate level) knowledge of Sprites
1.Create a simple rectangle and Group it as Srpite
2.Name the sprite Object "mySpr"
3.Create a simple button and insert following code in its script tab

on(press) {
//new Color object
c=new Color("mySpr"); //to change color ofsprite mySpr
colToSet=0xEEEEEE; //light gray color hex value EEEEEE
c.setRGB(colToSet);
}

0x tells that it is a hex value (same as in c++, flash mx).

Downwload the example attached


All rights reserved - swish-db.com