Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can the "playhead" play backwards?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0

I need a kind of go previous button that will
make the play-head run backwards, its for a photo-gallery
that has blends/fades between each photo- or is there an
easier way to do this?

any help will be great!
 
well there isn't a standard way of doing it, but there is some tricks.

you can create a external movie clip on the stage that just repeats a bit of code. Have the second frame say

gotoAndPlay(1);
this will make it just repeat and repeat the code in the first frame.

now on the first frame of that movie clip you would have
yourMovieClip.prevFrame();

that will make yourMovieClip (what ever you want to go backwards) to go back one frame. When this code is repeated everyframe you can then get yourMovieClip to play backwards.

You could control it buy telling this new external movieClip when to play and when to gotoAndStop(3); or whatever

defkon2012
 
for the button movie_clip :

onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.movie1.direction == "forwards") {
this.gotoAndStop(this._currentframe+1);
}
if (_root.movie1.direction == "backwards") {
this.gotoAndStop(this._currentframe-1);
}
}


for the rollover action :

on (rollOver) {
_root.movie1.direction = "forwards";
}
on (rollOut) {
_root.movie1.direction = "backwards";
}

compliments of ewan....
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top