Skip to main content
Participant
March 22, 2007
Question

changing colour and size

  • March 22, 2007
  • 2 replies
  • 235 views
I have a very easy question about changing the colour and shape of an object using action scripting. I've created a slider and activated control of the size using action script attached and I just need to know what script to add to make it change colour as it slides as well. Can anyone help me. Thanks
This topic has been closed for replies.

2 replies

Participant
March 23, 2007
Thankyou for your quick response. I have to admit I'm a bit of a dummy when it comes to actionscript . I grabbed this script from a tutorial and it seemed to work changing the size. Could you direct me as to where I would implement this new code to change the colour as well. I need it to change colours gradually from onme colour to the next and to the 3rd colour. I can figure out the hex colours I need to make those transitions I just need to know what part of the code I need to apply it to. If you could fwd an example that would be great. Thanks Tuula
kglad
Community Expert
Community Expert
March 23, 2007
to make a decent color blend you can use the following code. just copy the code below the dotted line (which adds a new method to movieclips) and paste it into your fla before you use the new method:

kglad
Community Expert
Community Expert
March 22, 2007
you can use your movieclip's color object (co=new Color(shape)) which is the easiest to use but gives the least control of the classes for controlling movieclip color.