View Single Post
05-29-2007, 10:30 PM
#8
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

you guys have made this problem so much harder than it is.

* make a button
* select it & go to the properties panel (bottom of flash);
* give it an instance name (play?)
* bring your movie clip into the frame.
* go to the properties panel (bottom of flash)
* give it (the movie clip this time) an instance name
* make an actions layer
* open the actions panel (f9, optionF9 on mac)
type this code

Code:
buttonName.onRelease = function() {
	movieClipName.play();
}
putting the code on the button itself like on(release) is back from the kayframe days of flash 5. with the advances in action script and the many, many tiers of movie clips by action script driven files finding the symbol with the code on it is an utter nightmare.

i don't know why you need = function() on the end, you just do. you get used to it.

i attached the zip to show you how easy it really is.

Attached Files
File Type: zip noob.zip (13.0 KB, 311 views)

Reply With Quote
Thanked by:
hamid3pnn (02-03-2013)