Random Colors in Flash
Published 3 years, 1 month ago in FlashWant to set something to a random colour in Macromedia Flash? Once upon a time I did, and I found this code which did the trick.
Call changeColor(<target>) to set the color of <target> to a random one
CODE:
-
function changeColor(targ)
-
{
-
myColor = new Color(targ);
-
myColor.setRGB(Math.random()*0xffffff);
-
}
If you have a website, consider joining the Money4Banners advertising network. They will pay you £10 + £5 each month for displaying a small advert on three of your pages, regardless of traffic. American webmasters are welcome, and since £10 == $20, you make more!
Search
Categories
- ASP (3)
- ASP Basics (3)
- Blogs (2)
- C# (1)
- Firefox (1)
- Flash (1)
- Google (6)
- Hacks (3)
- Java (1)
- PHP (12)
- Basics (8)
- Files (1)
- Image Handling (3)
- Puzzles (1)
- Ruby (1)
- Tips (10)
- Web Hosting (3)
- Web Hosting Articles (1)
- Web Hosting News (2)
- Windows (6)
- Wordpress (2)
No Responses to “Random Colors in Flash”
Please Wait
Leave a Reply
You must log in to post a comment.