ActionScript 3.0 :: Playing Frames Forwards And Reverse Via Button

Jul 9, 2009

I have a image gallery where you can click a foward button or a backwards one. I have each image on every 15th frame. So when the person clicks the next button it plays from 1-15 where it stops if they click back it will go to 15-1 etc. I got it working with the 2 images so I can go between them but when I add a third it won't do anything. I execpt it's something to do with removing the event listener, but I'm not sure.

Code:
stop();
var bRewind:Boolean = false;
this.back_mc.addEventListener(MouseEvent.CLICK, onMouseOver);
this.forward_mc.addEventListener(MouseEvent.CLICK, onMouseOut);
function fireEvent(event:Event):void{
[Code] .....

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Movieclip Reverse Playing - Mc Goes Reverse Until The Stop()

Jun 18, 2009

So I have this mc: this.slidingMenu it's a mc of a ring shaped menu, which turn around when 2 button get clicked. When the button on the right, mc goes forward until stop(), when the button on the left mc goes reverse until the stop(). In the first case i use gotoanplay, and everything goes fine. For the second I use prevFrame, like this:

[Code]....

View 3 Replies

ActionScript 2.0 :: Playing A Movie Clip In Forward And Reverse With A Single Button?

Oct 5, 2010

i am new to this site and also to AS i am trying to create a an expand and collapse functionality in which i want a movie clip to shrink and disappear when i click on a button and reappear when i click it again the solution that i came up with was i animated the movie clip shrinking and disappearing and now i think playing the timeline in reverse will solve the other half and i also added the stop script at the 1st and last frame of the movie clip.

i tried a lot and a number tried and tested the no of scripting techniques posted on other threads

View 9 Replies

Flash8 :: Playing Movie Clips On Different Frames From A Button?

Apr 9, 2010

I have a button which when pressed I need it to play a frame on the main timeline which contains a movie clip. I also want the same button to play another frame with another movie clip after the previous frame has finished playing. I have attached a sample file of what I am looking to d

View 18 Replies

ActionScript 2.0 :: Reverse Through Frames?

Jun 28, 2005

how I reverse through frames.I can certanly have a loop that calls prevframe.But, what I want is to know when I have reached a certain frame.The only way I can think of how to do this is to know the exact number of frames, and then use a loop that loops the exact number of frames I need.

View 3 Replies

ActionScript 2.0 :: How To Reverse The Frames

Aug 4, 2004

how can i reverse the frames.what i mean is if for example u have a motion tween of a circle sliding to the right.what should i write in the last frame of the motion tween so the circle will go back..._current frame--?

View 9 Replies

ActionScript 2.0 :: When The Button Is Pressed It Forwards Onto An Email Address?

Jan 14, 2003

does anyone know the code/actions for buttons so that when the button is pressed it forwards onto an email address?

View 3 Replies

ActionScript 2.0 :: Play Frames In Reverse?

Jul 30, 2009

I'm trying to set up 2 buttons. 1 that plays 5 frames and stops each time it's released and 1 that does the same in reverse(goes back 5 frame and stops upon each release) I.E. a forward button and back button. I'm creating a flip through brochure.

View 9 Replies

ActionScript 2.0 :: Reverse Frames On Rollout?

Jul 25, 2006

I have a dropdown menu that animates into place. I have the main button triggering an animated drop down menu that slides into place. On rollout I would like that to animated back . Currently it just closes. Is there a way to have the actionscript reverse the animation from the current frame to the one it started on? Basically on Rollout, I would like the animation to just reset.Here is the FLA. Only the "Web Development" button is scripted yet.

View 3 Replies

ActionScript 2.0 :: Control A Movie Clip With A Backwards And Forwards Button?

Jun 28, 2010

I am looking to control a movie clip with a backwards and forwards button.

I need the clip to stop at every 5 second increment both backwards and forwards. my movie clip is 25 seconds long.

I have found script for playing a movie in reverse

I have basic knowledge of action script and have access to flash cs5 so could work with as2 or 3.

View 5 Replies

ActionScript 3.0 :: Control A Movie Clip With A Backwards And Forwards Button?

Jun 28, 2010

I am looking to control a movie clip with a backwards and forwards button. I need the clip to stop at every 5 second increment both backwards and forwards. my movie clip is 25 seconds long.

I have found script for playing a movie in reverse and have tried to change this so it will stop in the above points instead of playing to the beginning or end, but my knowledge in as3 is very limited.

Do i need to put some script that plays with percentage?

View 1 Replies

Playing In Reverse Order?

May 29, 2009

is it possible to play a movie clip (or simply, main timeline) in reverse order e.g. suppose, there is a movie clip, few frames in that, of course it will play from first frame to end frame, and also, i want them to play from end frame to first frame.

View 8 Replies

ActionScript 2.0 :: Playing In Reverse - Nearly There?

Jun 22, 2007

Its been a while since I last posted but I was hoping someone would be able to help me asap. I am so nearly there but something is not quite right. I have alot of faith in this forum so I'm hoping someone out there can help! Here we go:

I have various movie clips within movie clips, these all work fine. Within one of the MC's, i have a button with instance name "left" and one called "right". These are used to cycle through my work (this is for my portfolio). The right button works fine, just plays the timeline of the MC using frame labels. I built my site last year but its going through a complete overhaul on the structure and coding side cos quite simply, its a mess Last year, i placed this code ON the "left" button itself:

[Code]...

View 14 Replies

ActionScript 2.0 :: Flash8 - Reverse The Frames In A MovieClip By Buttons

May 14, 2009

My inquiry is, if I have a MovieClip with an animation, and I need to play this MovieClip by button, I know I need to use this action // on (rollOver) // telltarget() // play()

but if I want to rollout before the animation reach the last frame, for example the frames are 90 and I decided to rollout in 50.

How I can make the frames go backward to frame 0 after I rollout of the button ??

For your information I have MC flash 8 professional.

View 3 Replies

ActionScript 2.0 :: FMX04 - Extending Reverse Frames Script?

Feb 11, 2005

Almost 2 years ago I asked this question about reversing frames on mouseOut.Lets say my animation is 50 frames. Between 1-25 the clip is tweening down. So if a mouseOut occurs any where between 1-24 the clip reverses (which works with the script GParis hooked me up with 2 years ago). But now if the clip reaches 25 I want the clip to stop there then on a mouseOut from that point play the second half of my animation (the clip tweening back up) the at the end ill have a gotoAndStop on frame 1, to await another mouseOver. So basically anything from 25 on I dont want it to reverse frames. Here is the script I have been using for quite sometime. (unfortunately all other skills have advanced except AS)

Code:
onClipEvent (load) {
stop(); [code].....

View 11 Replies

ActionScript 2.0 :: CS3 Reverse Frames - Functions Works Fine In The First Part But In The End Does Not

Oct 24, 2009

I have attached a .fla file where i have some problems. The revers functions works fine in the first part but in the end i does not. What should i do?

View 1 Replies

ActionScript 3.0 :: Play Few Frames Of A Movie In Reverse But Stopping At Set Points

Feb 11, 2010

I'm very new to flash and even though i'm capable of using the search function and finding posts which look relevant i don't really understand them, most notably i am only familiar with controlling a movie clip with buttons within the movie clip symbol and i get confused by actionscript that seems to do otherwise.

Within a frame on my main stage i have a movie clip symbol of around 125 frames. To control this movie clip symbol i have 4 button symbols within the movie clip symbol. The actionscript code that runs throughout this movie looks like this[code]...

This leads to free frame by frame navigation using the buttons forward_btn and backward_btn and if you'd like to move to set points in the animation you can use the fastforward_btn which plays the movie clip forwards until it hits a stop command on one of my chosen frames.

What i'd like to do is have a button that plays the frames backwards until it hits these frames. Is there a combination of while loops and prevFrame() i can use or anything straight forward?

View 1 Replies

ActionScript 1/2 :: Playing Certain Parts Of Movie In Reverse?

Apr 27, 2009

I'm using Flash CS3 and ActionScript 2, and I'm wondering if there's a way of scripting certain parts of a movie to play in reverse when a button is pressed, I need it start reversing at the most recent, previous, frame and stop reversing 30 frames later.

View 3 Replies

Actionscript 3 :: Playing A Sound Object In Reverse ?

Feb 3, 2010

For a project I'm working on, it's necessary that I am able to play a sound object in reverse. How would I be able to do this in AS3?

View 1 Replies

ActionScript 3.0 :: Playing Sounds Backwards (reverse) In Flash?

May 5, 2011

I am looking anywhere to find a way to play sounds in reverse wih flash.

View 5 Replies

ActionScript 2.0 :: Playing A Timeline In Reverse Until A Specific Frame?

Jan 19, 2006

I have a movieclip that is comprised of multiple images.These images are used as the backdrops of various different pages of my portfolio.Every image is in a specific order, so if the user decides to go from page 1 to page 4, it will pan through the first three pages quickly before stopping on the 4th page. Simple Enough.The problem is I want them to be able to also do this while manipulating the timeline in reverse. So say if they're on page 4 and want to go back to page 2, it will 'rewind' the timeline and stop on page 2.know there are plenty of tutorials out on how to play a timeline in reverse, however none of which discuss stopping automatically when reaching a certain point that is before the beginning

View 8 Replies

ActionScript 2.0 :: Imported Video - Speed When Playing In Reverse

Jul 19, 2006

In my flash movie, I've imported a very small video file. When the video is done playing, I wanted the user to be able to click a button and the video would play in reverse. I've gotten this to work with the _currentframe and _nextframe properties, but when I play the movie in reverse it's not as smooth. Here's an example of what happens: [URL] Once the movie is done playing, click on it. When it's playing in reverse, you can see it gets a little choppy when the guy gets towards the top of the rail. Has anyone found a way to play the movies backwards without having the speed affected? Maybe I shouldn't use the _currentframe property??

View 4 Replies

ActionScript 2.0 :: Reverse Playing Nested Movie Clips?

Jan 29, 2011

I have 3 movie clips mainclip(_root),one_mc(inside _root),two_mc(inside one_mc). and i want to play the animation in reverse direction so that it has to play two_mc in reverse direction first then one_mc ,and _root all in reverse.

View 2 Replies

ActionScript 3.0 :: Timeline Won't Stop On Stop() Frames In Reverse?

Jan 29, 2010

my reverse button causes the timeline to ignore the stop() function on its keyframe and play backwards all the way to the start. Since it keeps trying to play the previous frame, it's frozen at frame 1.

Code:

stop()
// Reverse button //
var reverse:Boolean;
rev_btn.addEventListener( MouseEvent.MOUSE_DOWN, down );

[Code].....

View 12 Replies

ActionScript 3.0 :: Playing Specific Frames?

Apr 18, 2011

I am building a menu.. When I rollover the mouse over the menu, it opens sub menu Something like that...

(when rollover btn1)
(open submenu1)
(when rollover btn2)

[code].....

View 3 Replies

ActionScript 2.0 :: Playing Frames Backwards?

Jan 14, 2003

I remember reading one time that you can play frames backwards. I have this ball going along this line, and when it reaches the end I want it to go back exactly the same. Isnt there some kinda code to play the frames backwards? Also, the line is curved, so I cant just move it straight across real easy like. I had to do a lot of tweening.

View 7 Replies

ActionScript 2.0 :: Playing Backwards Through Frames?

Jun 23, 2007

I'm having a bit of a problem with getting the timeline to play backwards through frames.I've tried doing something like the following and thought it should've worked but it didn't,with this plz:

function onEnterFrame() {
gotoAndPlay(lastframe);
lastframe = _currentframe--;

[code]....

View 14 Replies

ActionScript 2.0 :: Playing Frames Only When Certain Criteria Are Met?

Jul 30, 2004

First, here's the movie in question: [URL]

the fla is here: [URL]

The concept is, you have this big picture and when you hover over a label the picture zooms in and you get a detail.

Problem is, say you're hovering over "Operations" then you just move your mouse down to "Customers". The movie sorta stutters over from Operations to Customers. What I would LIKE it to do is act as if I had removed my mouse from the button, THEN hovered over the next item.

Ie:

1. User sees big picture

2. User hovers over "Operations"

3. Movie Zooms In to Operations.

4. User hovers over "Customers"

key -->5. Movie zooms all the way back out, THEN zooms into "Customers"

so on...

So far I've tried to put a switch into the frames where the movie is zoomed all the way out. something saying "ok, we're ready to zoom in" then have the buttons say "if the frame says "we're ok" then we can zoom in". But that didn't work for me.

View 10 Replies

Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

Actionscript :: Flash - Load Frames While Playing?

Feb 12, 2011

I have a question about flash is it possible to load first 2-3 frames of a a clip and while those are playing to load the rest?

Also if the answer is affirmative at the first question id it possible to change the loading order considering what happened in the first part?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved