Coder Profile - Show off your skills, get a coder profile.
 
 
 
code pin board Create A New Random Line Upon Entering Frame Download Source Code
Author Details Code Information
Rummy0 ( Mariah Wong )

Pinned 6 Codes
Posted 0 Coding Articles

Send A Message
View Coders Profile
Language ActionScript 1 & 2
Expires Never
Length 515 Characters (8 Lines)
Password no password
Description

Creates A Random Line when you enter the frame.
  1. // Picks random Line thickness (Limited to 10), Random Colour (#000000 to #FFFFFF)
  2. // and random Alpha (from 0 to 100)
  3. _root.lineStyle(Math.random() * 10, Math.random() * 0xFFFFFF, Math.random() * 100);
  4. // Picks random point between 0-550 (default width)
  5. // Picks random point between 0-400 (default height)
  6. _root.moveTo(Math.random()*550, Math.random()*400);
  7. // Draws a random line from that point between 0-550 (default width) and 0-400 (default height)
  8. _root.lineTo(Math.random()*550, Math.random()*400);
code pin board Back To Code Pin Board Post New Code
Please login to post comments.
Page 1 of 1
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved