Groups | Blog | Home
all groups > flash (macromedia) > may 2007 >

flash (macromedia) : Button Help


chuckeymonkey123
5/9/2007 8:45:46 PM
This is my very first forum post, so please bare with me.

I am designing a flash website, and I am having trouble creating a special
button. I created a button, and inserted my 'up' and 'over' scenes. (Up= A
marble with a faded galaxy in the middle/ Over= the same as the up image,
except I used a tween to make the faded galaxy go to 100% alpha) I also created
a movieclip with the same marble and galaxy, but that the marble explodes and
the galaxy comes out. I inserted the exploding marble movieclip into the
button on the 'down' frame.

NOW... is there a way to make it so that when I click on the button, my
movieclip of the exploding marble plays, and I am sent to a new frame/scene/ or
website? Right now I have to hold the mouse button down in order to play the
whole clip. (Plus I seem to be unable to insert actions inside of a button, any
thoughts).

Any thoughts or suggestions would be greatly apprecated.
an example of what I have now can be found
http://www.chuckiesastropix.com/marble.swf
sly one
5/9/2007 9:10:36 PM
Yes but the problem is you can't do it by just putting animations inside each
of the button states. And you don't want to put actions inside the button (even
though this is possible).

Are you using CS3?
chuckeymonkey123
5/9/2007 9:14:23 PM
dzedward
5/9/2007 9:17:31 PM
id have to have your source to mess around with it. but you can try putting
your exploding mc underneath your button (im assuming they look alike at
beggining), then add in actions layer...
my_btn.onRelease = function(){
my_mc.gotoAndPlay(2);
}
assuming your button has instance name of 'my_btn' and movieclip has instance
name of 'my_mc'..also that you have a stop(); action on frame 1 of your
exploding movieclip
chuckeymonkey123
5/9/2007 9:43:53 PM
dzedward-
I tried your suggestion, it seemed to make sense, but it didn't work. There
is a link to my source file, and my attempt at your suggestion.

http://www.chuckiesastropix.com/CS3_source.zip

Thanks
dzedward
5/9/2007 9:46:09 PM
chuckeymonkey123
5/9/2007 9:58:05 PM
Heres Macromedia Flash 8 version
dzedward
5/9/2007 10:25:59 PM
chuckeymonkey123
5/10/2007 12:16:13 AM
I'm almost positive I know how to get it to go to another frame or website, my
main issue is getting it to play the explosion mc with one click, rather then
hold it down. I inserted the mc's in the button states; I don't know if that is
right or wrong. I'm very new to flash, and trying to learn it. Sorry if it is
sloppy. If you see something that could be done quicker, easier, or more
effectivly, let me know.

I really appreciate it.
dzedward
5/10/2007 1:04:42 AM
chuckeymonkey123
5/10/2007 1:29:57 AM
dzedward-

That is AWESOME!! Can I name my first-born after you? You got it exactly how
it was pictured in my head. Now I just have to break it apart and figure out
how you did that! If you ever need anything in the print media let me know (I
have a printer and am CS2 certified (photoshop, illustrator, indesign))

Thank you SO much!
AddThis Social Bookmark Button