A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Colour Changing

  1. #1
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478

    Colour Changing

    I can change the colour of a movie clip by clicking on a button but how do I program it to continually change colours through the spectrum e.g. yellow through to blue, preferably fading in each colour, say every five seconds?
    Please see my attached fla.
    Last edited by ivor1; 01-09-2008 at 05:55 AM.

  2. #2
    Senior Member ilive's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    195
    hi ivor1, i think this would help you, is not exactly what your are looking for but i hope it gives you an idea on how to do it.
    Last edited by ilive; 06-26-2008 at 05:16 AM.

  3. #3
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  4. #4
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Thanks to you both.
    Braingiants' colourshifter app. is interesting but what I am after is a continually changing background without user interaction. It strikes me that this thread deals with a popular but tricksy subject, (I have posted it before in a slightly different form), judging from the number of times it is viewed. Certainly, it provides a number of possibilities for creative use ( constantly changing colours in variously sized clips etc.).
    Ilve's code seems to be something of a breakthrough for me. I can tween the changing_bg fla's movie clip to include all the spectrum's colours, but I'm still wondering how all this could be generated in Actionscript, possibly by adding to Ilive's code.
    Many thanks again for your help.

  5. #5
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Quote Originally Posted by ivor1
    Thanks to you both.
    Braingiants' colourshifter app. is interesting but what I am after is a continually changing background without user interaction.
    If the functionality is already there to change colour on user-interaction then it will be quite simple to modify the code to make it automated using setInterval and an array of colours (or simply random colours)
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  6. #6
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Thanks for once again pointing me back in the right direction. Will investigate this setInterval/array solution.

  7. #7
    Senior Member ilive's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    195
    you're welcome ivor1

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