Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author Miguel Panos
»  Title: Tarta
»  Description: It is a circle graph or pie chart that takes the data entered by user
»  More by Miguel Panos


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4839 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  AuthorDeft Creative Ltd
»  Link: Home Page
»  Description: Portfolio site for .DeftCreative Ltd. A UK based web design studio specialising in flash websites, games and interactive CDROMs. With an emphasis on making things different.


Random Links | Add your own Flash Related Links
Flash Tutorials 1484 Tutorials 7 New Tutorials Added!
What's New | Top100

» Making Automatic Training Screen Capture Easily
» Create Undersea Life Animation
» Making Deinterlace Video with a low bitrate Easily
» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting/Basic

Categories Advanced Crosshair
Author: Scott Productions | Website: http://www.xtreme-flash.com |

 
Page 4
«prev 1 2 3 4

Tying it all together

Adding the script to the bullet hole.

Click the bullet hole, press F9, and put these actions into the box.
onClipEvent(mouseDown) {
 i++;
duplicateMovieClip(this, "bulletnew" + i, i);
_root.aimer.gotoAndPlay(2);
}
onClipEvent (load) {
 this._x = _root._xmouse;
 this._y = _root._ymouse;
}

What the hell is that?

Pretty much all that says is : Every time the mouse is clicked, the variable (i) increases by 1, thus duplicating movie clip by an additional 1. The GotoAndPlay(2) tells the crosshair to play it's shot animation. <%brk%>

Done!

Any problems?

Consult the .FLA. There is some stop actions and things that are optional but work for optimum performance. FINISHED PRODUCT:

«prev 1 2 3 4

» Level Intermediate

Added: : 2003-05-29
Rating: 7.97 Votes: 37
Hits: 2123
» Author
None..
» Download
Download the files used in this tutorial.
Download (1865 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments