Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
Okay, first thing's first: Let's make a few movie clips(it doesn't matter what's in them, but they should all have the same width and height) Now that you've made those, give them linkage names. Once you do that, type in the Actions panel the following script:
stop()
myArray = ["clip1", "clip2", "clip3"]
Note that you should type in the linkage names you gave them, not clip1 or clip2. Now, type in the following script to attach them to the screen(this may not be too useful now, but with 100 movie clips, it could hurt your fingers to attach all of them)
This script does a loop that occurs for as many times as the items in myArray. The .length property is just how many items are in the array. Then we set a variable called movieToAttach that is equal to the number item in myArray that a is minus one(because arrays start with one) Then we attach that movie and set it's name to be the same thing. Then we set it's depth to a times 10. OK, now we have to set the position(can't have movie clips stacked over each other!) We use dynamic naming to set the x position of whatever movie we attached to a times 100. Then we do the same thing with the y position except it is set to equal 100 every time. Now let's check to see if the player clicks on them.