all groups > flash (macromedia) > august 2007 >
You're in the

flash (macromedia)

group:

Buttons in Scrollpane



Buttons in Scrollpane DougBarron
8/13/2007 11:00:57 PM
flash (macromedia): Flash Pro CS3
I am not too stong with actionscript, but I have made some thumbnail buttons
with the code:
on (release) {

//Movieclip GotoAndStop Behavior
this.gotoAndStop("P02");
//End Behavior

}

I have 13 of these buttons. On a file let's call "picturebuttons.swf. I am
loading this into a scrollpane on a page named pictures.swf. It all loads fine,
scrolls, etc. But the buttons do not work. I currently am exporting this as
Actionscript 2, but that is not manditory. Is there some other way I should
accomplish this. Again I am not the strongest in Actionscript. So talk to me
like I'm a dummy.

All suggestions appreciated.
Thanks,
Doug

Re: Buttons in Scrollpane .:}x-=V!P=-x{:.
8/14/2007 6:35:52 PM
Re: Buttons in Scrollpane DougBarron
8/14/2007 7:55:17 PM
Thank you for getting back to me and helping me solve my error. I used the
following code on the button:
on (release) {

//load Movie Behavior
loadMovieNum("pic01.swf", 1);
//Movieclip GotoAndStop Behavior
}
//End Behavior

But if I did want it to: GotoAndStop at a particular frame how do I add that
to the following code:


on (release) {

//Movieclip GotoAndStop Behavior
pictures.swf.gotoAndStop("P01");
//End Behavior

}

Again thank you,
Doug
Re: Buttons in Scrollpane .:}x-=V!P=-x{:.
8/15/2007 4:03:10 PM
so you want pic01.swf to go to and stop on frame label P01? Since you loaded
the pic01.swf in level(depth) 1 the button code would look like:

on (release) {
//Movieclip GotoAndStop Behavior
_level1.gotoAndStop("P01");
//End Behavior
}
Re: Buttons in Scrollpane DougBarron
8/15/2007 5:53:39 PM
Thank you. This will be a big help.
Doug
AddThis Social Bookmark Button