A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Random Color Change for Symbols

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    1

    Exclamation

    Any idea on how I can randomly change the specified color of over 50 objects? Maybe group them to change groups together?


    ------------------

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    597

    Post

    There is no way to change colors as a flash movie plays other than to animate it or use a dirty and not too neat solution. It does, however, have its uses!

    Create 3 instances of a movie clip and modify their properties so that

    instance 1 : tint 100%, red 255, green 0, blue 0
    instance 2 : tint 100%, red 0, green 255, blue 0
    instance 3 : tint 100%, red 0, green 0, blue 255

    Align all three together and you can change the transparency of each and they combine like an RGB display. Well almost, you can't get all the colours - but you will certainly get a wide variety! You can use a totally black and a totally white clip as well for even more variations.

    Like I said, not very neat but you can create some nice effects using action script that would take ages to do using standard animation.

    Be careful though, if you need to do lots of animation this will slow things because you are moving more objects and transparency seems to hit Flash hard.

    Hope this helps,

    Rich.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center