Click to See Complete Forum and Search --> : Flash cs3 button help needed


pixmaniowa
03-26-2009, 11:13 AM
I am very new to flash and have been struggling. I can make a movie but have never been able to figure out the on-screen control thing. I need 3 simple buttons.
1. Play on mouse down with pause on mouse up
2. Play at same speed on mouse down with pause on mouse up
3. Jump to a designated frame.
Perhaps if I learn these buttons it will help me learn the controls.
Also, Whenever I try to add actionscript 2 or 3 to any button or symbol the program tells me it can't be added to the current selection so I need instructions to do that.
I am using flash from CS3

Eye for Video
03-26-2009, 03:18 PM
Speaking from a AS2 background and not knowing exactly how you are creating your buttons, here's my suggestion.
Create your button shape but instead of naming it a button symbol, name it a movie clip. Then be sure to give that mc an instance name. Now you can control that mc with AS placed in the Actions layer of the main timeline. If your "button" movie clip is inside another mc, remember to drill down to the second or third level mc (the button) in your AS with dot notation. So AS from main timeline might look something like this:
play15.pl1.art_btn.onRelease = function(){
gotoAndStop("ss11");
holder_mc.loadMovie("ss11/ss11.swf");
}
mc "play15" has mc "pl1" inside it with a button inside that, "art_btn", which has on onRelease function attached, including a gotoAnd Stop at a frame named ss11. After the jump to that frame, it loads a movie into a holder_mc from path shown.
Start out with the simple gotoAndStop or Play and get the basic button function working. Then work on the more complicated stuff. But it doesn't have to be a button symbol to respond to mouse events, movie clips will also... but either way, an instance name is required. Some of this may need to be translated to AS3, but hopefully you get the idea.
Good luck,
EfV