Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

Step by step simple flash game development

Game: Random heart 1

Problem 1:  We learned how to use random to generate whole number random numbers. Then we learned how to use the random number to set _x and _y position as a frame action on a 3 second, 36 frame movie. 

 

  1. Draw a heart and make it into a button.
  2. Set the button instance name in the properties inspector
  3. Assign a random script to your button with an event handler (on) and the event (release or rollover) to activate the moving of your heart symbol to a new random location on the stage based on _x and _y.

 

Examine the script below. What size stage is this script written for if it is mean to place the heart all over the stage?

Go to Random Project 1 Part 1B



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2026 All Rights Reserved
Privacy and Legal