blood « Effects « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Flex
Flash / Flex / ActionScript
Flash Tutorials » Effects » blood 

1. Attaching blood through Actionscript - Awesty Productions    awestyproductions.com

Attaching blood through Actionscript - Awesty ProductionsLine 1: This is making a new object. This will be a mouse listener to check if the mouse button is pushed. Line 2: Just making a variable called 'i' that increases everytime the blood is made. This is so each blood MC has a different name. blood1, blood2 etc.. Line 3: This is saying is the mouse button is down then to run the script between the curly braces. Line 4: Here the blood MC is attached to the stage using the 'attachMovie()' function. It is giving the MC an instance name of blood+i, so if blood is equal to 6 then its name will be blood6. Lines 5-7: This is making the blood MC's _x and _y coordinates equal to the mouses. Line 7 is increasing i by 1. Line 9: This is attaching the makeBlood listener to the mouse.

java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.