View Full Version : action scrip to assign movies to buttons
fcut
August 9th, 2002, 12:57 PM
I can't figure out how to assign movies to buttons. Can anyone help me. I don't know how to do this in MX. In five I used to use tell targets to assign actions. Is it the same in MX.
Please help me:)
iceman
August 9th, 2002, 01:24 PM
I'm assuming your meaning movie clips and not movie but either way.
Code for movie clips:
on(release){
_root.square_mc.play();
}
code for swf's:
on(release){
loadMovie("load1.swf", 1);
}
This should work whether you want to load an external swf or just playing a movieclip after clicking a button.
Hope this helps, post again if you need help.
Kyle
:)
fcut
August 9th, 2002, 01:56 PM
Do I assign the script to the actual button in my main scene or do I assign the script to the button symbol.
iceman
August 9th, 2002, 02:18 PM
the button on the main scene.
Hope this helps
Kyle:)
fcut
August 9th, 2002, 02:45 PM
on (rollOver) {
_root.aboutmovie.play();
}
I used this for the roll over and it works, but how do i get it to go away on the roll over.
fcut
August 9th, 2002, 02:47 PM
nevermind
on (rollOver) {
_root.aboutmovie.play();
}
on (rollOut) {
_root.aboutmovie.gotoandplay(1);
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.