Groups | Blog | Home
all groups > macromedia flash sitedesign > january 2007 >

macromedia flash sitedesign : Online Porfolio


JulieLeanne
1/18/2007 12:45:27 AM
:confused;

First let me say, I am a print designer, so web is a bit foreign to me. I am
attempting to create an online portfolio website for my print design work, and
have run into a few problems.

Does anyone know how to make a button proceed to the next frame when it is
pressed, but not go past a certain frame number? I assume it requires an if
else statement, but I'm a bit lost.

Also, I need the same thing only going backwards. These buttons will be used
for a forward and back command while viewing images, basically I am trying to
create a loop for viewing my portfolio.
aniebel
1/18/2007 12:28:34 PM
If you are only stepping a frame at a time you can put a stop on each keyframe
and use this on the main timeline (assuming your buttons are also there):


next_btn.onRelease = function() {
this._parent.gotoAndPlay(this._parent._currentframe+1);
};
back_btn.onRelease = function() {
this._parent.gotoAndPlay(this._parent._currentframe-1);
};
JulieLeanne
1/19/2007 2:29:00 AM
Awesome, I figured it out! Thank you

aniebel
1/19/2007 1:37:45 PM
AddThis Social Bookmark Button