Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Playing The Play Head In Reverse



Hello all making a menue bar that when you click on Navigation it will scroll out. But would like for it to scroll backwords if the visitor clicks on the menue button again. from the current fram in reverse. Here is the code that I am using.

on (release) {
do {
if (_root.NavMovie._currentframe >= 2) {
_root.NavMovie.prevFrame ();
prevFrame ();
}
} while (_root.NavMovie._currentframe.count >= 2)
}

What I have is a movie clip with the Word Nav as a button when I click on that I want it to control the actual content witch is in another movie clip.

As of now what it does is stop. It is as if my loop is not working. Can anyone see anything wrong or is their an easier way to do this.


Thanks,
Attila

For my website
http://www.glorynaspiration.com/
Email
attila@glorynaspiration.com



FlashKit > Flash Help > Flash MX
Posted on: 07-02-2002, 03:28 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Playing Music Via "stop - Play - Reverse - Forward Buttons"
Hello everyone,

I am working on a media player, and have received help from a member on here with how to set it up to have files play via clicking on a button in the flash file.

The problem I am having now is that I need to have the "stop" - "play" - "reverse" - "forward" buttons all work for each file that is currently playing. There is 4 audio files that can be clicked and played, but I am stuck on how to get the stop/play/fwd/rev buttons to work for each file as they are playing in the media player.

Here is the actionscript for the file.


Code:
play_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

my_media2_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

my-media3_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

mymedia_ap_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
I am sorry if this is such a newbie question, but I am taking everything I learn and applying it to projects and hoping that I can soon be able to give advice to others on this board.

Thanks in advance to anyone who can give me some insight.

Thanks.
- Robert DeVore
Cre8tiv Vision co-CEO / Lead Designer

Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
Ok. I've got more problems, now it involves Flash 4. I've got movie clip we'll call "the rock" well, I have a button to play "the rock" forward - that's easy - however, I want a back button to play the clip backwards, a "rewind" type effect ...

am I explaining well? if now feel free to email me doo_wrong@yahoo.com thanks for your help.

Ken
(an example of what I'm looking for can be found at http://www.ccmusic.com - there's a flash movie on the right with posters or something in it, when you RollOver and image it goes to it)

HOW TO PLAY A MOVIE CLIP IN REVERSE AND PLAY ANOTHER SIMULTANEOUSLY
I need to find out how to play a movie clip in reverse. As well how to play another movie clip, forward, at the same time... any help?

christianpalino@hotmail.com

Thanks,
Christian

[MX04] Click A Button Once To Play, Then Again To Play In Reverse
Alright, so I've got this MC that is set up to play 2 other Movie clips upon being clicked, and what I would like to have happen is; upon clicking this MC again, these 2 other movie clips will being playing in reverse, and if clicked again will play forward, and so on ad infinitum.

I've attempted to do this by having this code in the first frame of the "button" MC, in a separate actions layer.


PHP Code:



stop();

this.onRelease = function() {
    gotoAndPlay(2);
    this._parent.wing1.play();
    this._parent.wing2.play();
};




And this code on the second frame.


PHP Code:



stop();

this.onRelease = function() {
    gotoAndPlay(1);
    this._parent.wing1.prevFrame();
    this._parent.wing2.prevFrame();
};





As of right now, this will simply play the two movie clips upon clicking, stop them and reverse them a single frame, when clicked a second time, then begin playing them again from that point if clicked a third time.

Once the two MCs finish reach their final frames, the button does nothing.


Any help would be appreciated.

Having Troubles Creating Reverse Play And Forward Play =/
So i have looked at a lot of posts tryna get insight on how to do this but so far nothing . . . . I have an animation that i created in after effects, nothing to hard, just some icons going around in circles. so far it just plays in a continuos loop clockwise. what i would like it to do is when i hover over the left side of the SWF it reverses and plays (counter clockwise), the more i move to the left the faster it plays. . . . if i move to the right it plays clockwise, the more i move to the right the faster it plays. . . If i center my mouse on the swf is slows to a stop and i can select the icons to load the menu item. probably an external swf loaded into the main swf. . . Can someone guide me? I'd greatly appreciate it. I uploaded my FLA so you can check it out if you'd like. again, thanks in advance for all your help!
joseph

http://architectproductions.com/projects/draft2.fla

Play Head
Is there any way to see the play head move from frame to frame?

Ns.play Is Doing My Head In
Ok heres my code first of:
Code:

// creating the video player interface and backend
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
   if(info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
   }
   if(info.code == "NetStream.Buffer.Empty") {
      bufferClip._visible = true;
   }
   if(info.code == "NetStream.Play.Stop") {
      ns.seek(0);
   }
}

ns.play("http://jacksrambles.com/flv/episode1.flv");

playButton.onRelease = function() {
   ns.pause();
}

rewindButton.onRelease = function() {
   ns.seek(0);
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
   duration = obj.duration;
}

function videoStatus() {
   amountLoaded = ns.bytesLoaded / ns.bytesTotal;
   loader.loadbar._width = amountLoaded * 208.6;
   loader.scrub._x = ns.time / duration * 208.6;
}

var scrubInterval;

loader.scrub.onPress = function() {
   clearInterval(videoInterval);
   scrubInterval = setInterval(scrubit,10);
   this.startDrag(false,0,this._y,208.6,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
   clearInterval(scrubInterval);
   videoInterval = setInterval(videoStatus,100);
   this.stopDrag();
}

function scrubit() {
   ns.seek(Math.floor((loader.scrub._x/208.6)*duration));
}

function pauseIt() {
   ns.pause();
}

function stopIt() {
   ns.seek(0);
   ns.pause();
}

function restartIt() {
   ns.seek(0);
}

_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

so.setVolume(100);

mute.onRollOver = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("onOver");
   }
   else {
      this.gotoAndStop("muteOver");
   }
}

mute.onRollOut = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("on");
   }
   else {
      this.gotoAndStop("mute");
   }
}

mute.onRelease = function() {
   if(so.getVolume()== 100) {
      so.setVolume(0);
      this.gotoAndStop("muteOver");
   }
   else {
      so.setVolume(100);
      this.gotoAndStop("onOver");
   }
}
   
// creating the video thumbnails using xml
var videos:XML = new XML();
videos.ignoreWhite = true;

var thumbs:Array = new Array();

videos.onLoad = function() {
      var videos:Array = this.firstChild.childNodes;
      for(i=0;i<videos.length;i++) {
         thumbs.push(videos[i].attributes.thumb);
       v.vurl = videos[i].attributes.vurl;
         v = attachMovie('vHolder','vid'+i,i);
         v._y = 55;
         v._x = (i*135)+55;
         v.desc.text = videos[i].attributes.desc;
         v.onRelease = released;
       loadMovie(videos[i].attributes.thumb, v.holder);
      }
}
videos.load("xml/videos.xml");

function released() {
   ns.play(this.vurl);
}

and my xml:
Code:

<?xml version="1.0" encoding="iso-8859-1"?>
<videos>
<vid desc="Scuba Steve Ep 1" thumb="episode0.png" vurl="episode0.flv" />
<vid desc="Scuba Steve Ep 2" thumb="episode1.png" vurl="episode1.flv" />
</videos>

Ok heres the problem: My video list is being created on the stage with the appropriate thumbnails being displayed, but when the thumbnails are clicked on it refuses to play the damn video (referenced in the xml file) I've searched over the code and can't spot anything out of the ordinary! i have a feeling its something really obvious though!

heres the link to the fla and xml file:
http://www.jacksrambles.com/blog_v2.zip

cheers guys.
from JacoX

Timeline - Play/reverse-play Control
Hi everyone!

I've been searching for help in other sites but got some issues cause I don't know the function name I must search.
What I need its a way to control my timeline forward and rewind.

To make it easy to explain I will make a example:

Imagine that you have a movie (cars crossing a street - with trucks and buses too).
Sometimes there is just cars on the street, sometimes just trucks.
I should paste this movie into my timeline(like image sequence), in the background of my application.
In other layer will be informations, in this example, about trucks and cars.
Till this point ok. But I need to make de movie go to the frame that i choose to be the image of the movie that only have cars. Ok... this is in frame 15 of the movie. Then I click a button and go to show trucks info. I click and go to frame 30... at this point ok too. But now I click again to see about cars. Its in frame 15 and I don't want to "JUMP" (like gotoandstop)... I want the movie rewinds (in the speed that it plays) till i get frame 15.

How do I control the timeline like this?
(There will be at least 6 points in this movie that i want to stop by. And this movie begins stopped.)

Thx for any help! Cya!

How Do I Pause The Play Head?
Hi I need to pause the playhead in flash so the user has complete control of the movie. The movie has sound as well. Is it possible to pause the movie and unpause so audio and tweening is seemless?

Thank-you in advanced!

Vince

Getting Play Head To Stop
I'm creating a slide type presentation and when I insert an action to stop the play head, it won't stop. I insert a keyframe and go to actions>movie control>stop. It indicates the action on my timeline, but won't stop. Yes, I am a newbie. I've done some stuff in swish, but recently thought i would graduate to the big boy stuff and i got flash mx.

Play Head Indicator
I wanted to create something in flash that Macromedia uses in its Breeze package.

http://www.macromedia.com/software/b..._2326_d_071503


If you see on the bottom there is a green bar that follows along with the voice over. Does anyone know how I can go about doing that same thing for a flash movie. Or has anyone seen a movie like that floating around?

I am creating a cd rom using flash and it will have voice over, I think it would be great to see a bar that shows you how far into each section you are watching.

Thanks for the help

Play Head Backward
I have created scrolling text which moves one frame at a time up or down using the action script code:

on (release) {
tellTarget ("/text") {
nextFrame();
}
}

and

on (release) {
tellTarget ("/text") {
prevFrame();
}
}

but I need to make it play instead of advance one frame at a time so I changed the 'nextFrame' to 'play();' which works and stops at the next stop(); command, but how would I be able to have the playhead go in the reverse direction to scroll in the other direction?

Advancing Playback Head Once A Movie Clip Has Stopped Playing
I have 6 movie clips that each play a short annmation. I want to place these movie clips one after another into my main timeline. Once my first movie clip has ended, I want it to tell the main timeline to move the playback head forward and play the next movie clip or whatever else I have there.

Can someonle pleae tell me how to do this.

Thankyou so much!
Graham

Slowing The Play Head On Mouse Over
I have a movie clip as a button following a motion guide which go round in a circle within a movie, the idea is that i want the playhead to slow down to a lower frame rate so, that the button can be pressed easier.

Hope that you guys can help!

Thetoe

Targeting Play Back Head
hello, i'm having a problem controlling the playback head on the root level of my movie.
i have a button which is withing a clip that when clicked i would like it to move the playback head on the main timeline to a certain frame. what's the easiest way, if any, to accomplish this?



thanks!

Play Director Head Backwards?
hi there,

is it possible to make director 8.5 play forward using a button through the timeline, then stop at say frame 20 where another button can make the play-head play backwards, back to frame 1 and stop?

a bit like a game of tennis.

thanks

by the way, i know this is a flash forum, and i will always be loyal to flash kit, but does anyone know of a good forum for director?

Moving Play Head Backwards
hi there ..
.. using the AS i wanna move the play head in reverse, so that it goes from every frame and stops at a particular frame ..

.. actually doing so .. i would like my animation to run in reverse .. i tried using severl kinda loops but not much luck ..

Controlling Play Head Smoothly
Hello!

I'm creating a menu system to control the play head of my flash movie which is displaying an embedded .mov file

It seems to be working o.k. however whenever I press rewind, it takes ages for the play head to move back a few frames. Its faster when I press fast forward however still a bit jerky.

Does anyone have any tips/suggestions for how to create a menu system which can control the play head smoothly?

buttons i am using are:
play: works fine
stop: works fine
pause: works fine
fast forward: works, slightly slow
rewind: takes ages to move the play head back x ammount of frames.


Many thanks

Play Head Not Moving Through Tween
I have a flash movie I'm working on for a site which has a side menu that slides up when the site is opened... see http://www.graphicvisionsinc.com/web...ive-media.html for example. But I am doing some alterations to this movie, and now the menu to the side (which is it's own movie) only moves to the next frame instead of following the tween. I'm not sure why it won't work now, but any ideas would be great. The FLA files can be found at http://www.graphicvisionsinc.com/portfolio-website.fla and http://www.graphicvisionsinc.com/preloader-website.fla Thanks!

Rewind The Play Head In A Gallery.
Hello,

I have been looking at how to sey my playhead to rewind.
i have created a photogallery with pics sliding in when the right button is pressed.
i would like to know how i can get the playhead to rewind.
i have seen many examples using AS3 but i need to do this in AS2.

Thanks for your help in advance.

Dexs

Checking Play Head Position
Hi

I have a external swf that is already loaded on level 5 and playing, and I want to created a function that checks when the playing head stop in a particular frame (439) that has a stop(); on it.

So I could put the onRelease function bellow, inside the function that will be checking the level 5 and execute the if statement only when the play head is on frame 439; because as it is now when I release the movieclip button nothing happend and I'm asuming that is because the play head is not on frame 439 yet.


Code:

target_mc2.resumeBtn.onRelease = function(){

if(_level5._currentframe == 439){
_level6.gotoAndPlay("R_First");
_evel10.gotoAndPlay("LE_Down");
}
};
thanks

Alex

Pausing Play Head For A While On A Frame
Hello All:
I want to insert an action on a frame that stop the play head about 20 second on that frame ,I appreciate you .
Mohsena

Determining Play Head Location?
Hi guys

Can anyone tell me if it's possible to find out where the play head is?

I'm trying to do something like this


Code:
if(_root.movie.currentPlayHeadPosition == 1) doSomething();
Its been a long time since I last did any flash, can anyone jog my memory on how to get the current frame?

Controlling Play Head Smoothly
Hello!

I'm creating a menu system to control the play head of my flash movie which is displaying an embedded .mov file
It seems to be working o.k. however whenever I press rewind, it takes ages for the play head to move back a few frames. Its faster when I press fast forward however still a bit jerky.

Does anyone have any tips/suggestions for how to create a menu system which can control the play head smoothly?

buttons i am using are:

play: works fine
stop: works fine
pause: works fine
fast forward: works, slightly slow
rewind: takes ages to move the play head back x ammount of frames.

Many thanks

Check Wich Frame The Play Head Is At
I was sure i was able to use _currentFrame to check were the playhead was in a movie. Has macromedia dropped this with mx 2004?


ActionScript Code:
if(myuMc._currentFrame==5){
// Do something

}

Cheers

Paul

Can I Direct Play Head To Go To Two Positons In One Function?
I'm trying to make this script work in which two things should happen onRlease of a movie clip. The "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work.

I must be doing something wrong, maybe you can detect from this script. The script is on the clip itself.

_root.navbtns_mc.webnav.onRelease = function() {
_root.transMC.gotoAndPlay("transition");
_root.navbtns_mc.webnav.gotoAndStop(18);
}

Can I Direct Play Head To Go To Two Positons In One Function?
I'm trying to make this script work in which two things should happen onRlease of a movie clip. The "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work.

I must be doing something wrong, maybe you can detect from this script. The script is on the clip itself.

_root.navbtns_mc.webnav.onRelease = function() {
_root.transMC.gotoAndPlay("transition");
_root.navbtns_mc.webnav.gotoAndStop(18);
}

Playing In Reverse?
hello,

is it possible to play a clip from frame 0 to 10 and then on the click of a button get the clip to play in reverse from 10 to 0?

thanks for your help...

scott

Playing Reverse
How can i make a simple motion tween play in reverse
without having to animate it backwards.

Cheers
Br d

Playing In Reverse
I used the following piece of code from Iaskwhy


Assuming there are no stops along the way, use this catbert code.

On the clip itself, add:

onClipEvent (enterFrame) {
if (back) prevFrame();
}

On the play button, if you have one:

on(release){
_root.instanceName.back = false;
_root.instanceName.play();
}

On the rewind button:

on(release){
_root.instanceName.back = true;
}

Best used for a tween animation of a movie clip that opens and closes. This way, you only have to make half the tween.

It works fine BUT now i want it to stop at my stop actions along the time line.. how do i make it do this?

Playing In Reverse
Hi,

I am trying to make a text list that i made to scroll down and stop on select text and then possibly scroll back up to another piece of text. I think this would be easiest if i could play select frames backward. Is this possible?


Thanks,


Grtn316

Reverse Playing?
Hey...

Is there a way to have a flash movie switch up and play itself in reverse when it reaches the end?

Reverse Playing
Is there a way to have a movie play itself in reverse once it's finished playing thru normally?

Playing In Reverse
I know i've seen this topic before. I can't seem to find it though, I even looked through the tutorial sections. But how would I get a movie clip to play backwards on rollOut. I'm working with a button inside a movie clip that on rollover makes the movie clip play. What I need to add is on rollout, have the movieclip play backwards, starting on the frame its on. So if someone rolls on and then moves off at the 5th frame, instead of going to the tenth frame and playing backwards, it just plays backwards from the 5th frame.
(And by backwards I mean in reverse... sorry if I didnt do a good job in explaining.

Code:
on (rollOver) {
play();
}
on (rollOut) {
;
}

Any Help An Reverse Playing?
Hello everybody!
I am quite new to flash so any help on this would be much appreciated..
I am trying to create a movieclip where one can view a 360 panoramic image. To achieve this I created two transparent buttons on each side of the image. For the first one it’s easy to create, just a simple play function. The second one should reverse play. I found other threads on the subject, but have no idea of the use of this code. The problem is I don’t want the function to take place on a certain frame, but any time I roll over the button.
Here is what I found about it:

MovieClip.prototype.goBackwards = function(frames) {
this.onEnterFrame = function() {
this.gotoAndStop(this._currentframe - 1);
frames -= 1;
if (frames == 0) {
delete this.onEnterFrame;
}
}
}

or

MovieClip.prototype.goBackwards= function(frames){
this.startFrame = this._currentframe;
this.onEnterFrame = function(){
if (this._currentframe > (this.startFrame-frames) prevFrame();
else delete this.onEnterFrame;
}
}


and some others:

http://www.kirupa.com/forum/showthread.php?t=88789&
http://www.kirupa.com/forum/showthread.php?t=76387


Additionally, I want to insert some other images inside the panoramic image. Is there any way to make kind of a focus in/focus out on that image?

I attached the flash I am trying to create and I have already inserted an image there, which I turned into a button.

Any Help On Reverse Playing?
Hello everybody!
I am quite new to flash so any help on this would be much appreciated..
I am trying to create a movieclip where one can view a 360 panoramic image. To achieve this I created two transparent buttons on each side of the image. For the first one it’s easy to create, just a simple play function. The second one should reverse play. I found other threads on the subject, but have no idea of the use of this code. The problem is I don’t want the function to take place on a certain frame, but any time I roll over the button.
Here is what I found about it:

MovieClip.prototype.goBackwards = function(frames) {
this.onEnterFrame = function() {
this.gotoAndStop(this._currentframe - 1);
frames -= 1;
if (frames == 0) {
delete this.onEnterFrame;
}
}
}

or

MovieClip.prototype.goBackwards= function(frames){
this.startFrame = this._currentframe;
this.onEnterFrame = function(){
if (this._currentframe > (this.startFrame-frames) prevFrame();
else delete this.onEnterFrame;
}
}


and some others:

http://www.kirupa.com/forum/showthread.php?t=88789&
http://www.kirupa.com/forum/showthread.php?t=76387


Additionally, I want to insert some other images inside the panoramic image. Is there any way to make kind of a focus in/focus out on that image?

I attached the flash I am trying to create and I have already inserted an image there, which I turned into a button.

Playing In Reverse...
Hello,

so if you have a button that says play(); it advances the movie forward. is there a way to have another button play in reverse until it encounters a stop(); ?

Playing A MC In Reverse
I've been updating an AS2 script for running the timeline playhead in reverse. I have the AS3 on the root timeline with a single MC housing both buttons and the timeline I'm manipulating. Going forward is fine, it even stops at frames 1, 18 and 35 where I have stop actions. Only problem is when I try to reverse the timeline things get buggy, it just snaps to frame 17 or 18 and nothing works any more. I could use another pair of eyes to look at this for me, any help would be great.


ActionScript Code:
function ply (e:Event):void{

    addEventListener(Event.ENTER_FRAME, function(){
        //reverses the time line by 1 frame continually until the desired frame is reached
        if(rmv.currentFrame >1){
            rmv.gotoAndStop(rmv.currentFrame - 1);
        }else{
            rmv.gotoAndStop(1);//desired frame number
            removeEventListener(Event.ENTER_FRAME, ply);
        }
    }
)}



function ply2 (e:Event):void{

    addEventListener(Event.ENTER_FRAME, function(){
        //reverses the time line by 1 frame continually until the desired frame is reached
        if(rmv.currentFrame >18){
            rmv.gotoAndStop(rmv.currentFrame - 1);
        }else{
            rmv.gotoAndStop(18);//desired frame number
            removeEventListener(Event.ENTER_FRAME, ply2);
        }
    }
)}

function plycar (e:MouseEvent):void
{
    if(rmv.currentFrame ==1){
        //rmv plays and stops at frame 18
        rmv.gotoAndPlay(2);
    }
    if(rmv.currentFrame ==18){
        //rmv plays and stops at frame 35
        rmv.gotoAndPlay(19);
    }
    if(rmv.currentFrame ==35){
        //rmv plays and loops back, stopping on frame 1
        rmv.gotoAndPlay(36);
    }
}

function btn_fwd (e:MouseEvent):void{
    rmv.addEventListener(MouseEvent.CLICK, plycar);
}

function btn_bck (e:MouseEvent):void{
    if(rmv.currentFrame > 17){
    rmv.addEventListener(Event.ENTER_FRAME,ply);
}
if(rmv.currentFrame > 34){
    rmv.addEventListener(Event.ENTER_FRAME,ply2);
}
}
//button listeners
rmv.fwd.addEventListener(MouseEvent.CLICK, btn_fwd);
rmv.bck.addEventListener(MouseEvent.CLICK, btn_bck);

Playing FLV In Reverse
Seems that you can't play an flv in reverse? I've searched a lot but couldn't find a solid answer or any hints to overcome this. Is this simply impossible (without embedding and reversing the timeline) or is there a solution out there?

Any Help On Reverse Playing?
Hello everybody!

I am quite new to flash so any help on this would be much appreciated..

I am trying to create a movieclip where one can view a 360 panoramic image. To achieve this I created two transparent buttons on each side of the image. For the first one it’s easy to create, just a simple play function. The second one should reverse play. I found other threads on the subject, but have no idea of the use of this code. The problem is I don’t want the function to take place on a certain frame, but any time I roll over the button.

Here is what I found about it:



MovieClip.prototype.goBackwards = function(frames) {
this.onEnterFrame = function() {
this.gotoAndStop(this._currentframe - 1);
frames -= 1;
if (frames == 0) {
delete this.onEnterFrame;
}
}
}

or

MovieClip.prototype.goBackwards= function(frames){
this.startFrame = this._currentframe;
this.onEnterFrame = function(){
if (this._currentframe > (this.startFrame-frames) prevFrame();
else delete this.onEnterFrame;
}
}


and some others:

http://www.kirupa.com/forum/showthread.php?t=88789&
http://www.kirupa.com/forum/showthread.php?t=76387


Additionally, I want to insert some other images inside the panoramic image. Is there any way to make kind of a focus in/focus out on that image?



I attached the flash I am trying to create and I have already inserted an image there, which I turned into a button.

Playing A Flv In Reverse
so here is what i am trying to to accomplish. i want to playa flv forward in a normal timeline and then play it in reverse. when i try to do it by breaking it apart and then reversing the frames it comes upp choppy. does anyone have a action script that would call the flv up and then play it forward once wait 5 sec and then play it backward. any thoughts would be great. thank you all in advance. if this needs to be in a different forum could you please move it.

Playing In Reverse - Nearly There
Hi all,

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:
on (release) {
firstFrame = this._currentframe;
origFrame = this._currentframe;
reversespeed = 1;
newFrame = origFrame -18;
this.onEnterFrame = function() {

if(firstFrame == newFrame){
this.onEnterFrame = null;
stop();
}else{
this.gotoAndStop(firstFrame);
firstFrame = firstFrame - reversespeed;

}

}
}
This worked fine, i would change the number (18 in this case) as necessary and it was perfect. Now, this time round, I am using instanceName.onRelease = function() and so on in an actions layer, however this doesnt work:


Code:
left.onRelease = function() {
firstFrame = this._currentframe;
origFrame = this._currentframe;
reversespeed = 1;
newFrame = origFrame -18;
this.onEnterFrame = function() {

if(firstFrame == newFrame){
this.onEnterFrame = null;
stop();
}else{
this.gotoAndStop(firstFrame);
firstFrame = firstFrame - reversespeed;

}

}
}
I dont know what i could be doing wrong. The code works on my latest version of my site when I place it on the button itself but not when its on a frame in the actions layer. To be honest I dont really understand the cde very well but I understand it enough to make it work when placed on a button but I know this isnt a very good way of coding.

If someone could please modify that code so that it would work when placed in an actions layer I would really appreciate it. Or at least explain what I'm doing wrong because I thought it would be as simple as just replacing on (release) with instance.onRelease = function()

Thanks in advance for your help and advice

Theo

Any Help On Reverse Playing?
Hello everybody!

I am quite new to flash so any help on this would be much appreciated..

I am trying to create a movieclip where one can view a 360 panoramic image. To achieve this I created two transparent buttons on each side of the image. For the first one it’s easy to create, just a simple play function. The second one should reverse play. I found other threads on the subject, but have no idea of the use of this code. The problem is I don’t want the function to take place on a certain frame, but any time I roll over the button.

Here is what I found about it:



MovieClip.prototype.goBackwards = function(frames) {
this.onEnterFrame = function() {
this.gotoAndStop(this._currentframe - 1);
frames -= 1;
if (frames == 0) {
delete this.onEnterFrame;
}
}
}

or

MovieClip.prototype.goBackwards= function(frames){
this.startFrame = this._currentframe;
this.onEnterFrame = function(){
if (this._currentframe > (this.startFrame-frames) prevFrame();
else delete this.onEnterFrame;
}
}


and some others:

http://www.kirupa.com/forum/showthread.php?t=88789&
http://www.kirupa.com/forum/showthread.php?t=76387


Additionally, I want to insert some other images inside the panoramic image. Is there any way to make kind of a focus in/focus out on that image?



I attached the flash I am trying to create and I have already inserted an image there, which I turned into a button.

Bug? Playing In Reverse
Hi,
I've got a FlV file in my movie clip which plays just fine, but when I play it in reverse (via actionscript.. see below) it runs really choppy! Is this a flash bug, or am I doing something wrong?

Here is the code:

function vidRewind() {
this.onEnterFrame = function(){
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe-1);
} else {
this.onEnterFrame = null;
}
}
}

I really need to figure this out seeing that my project is due soon!!

Play Head Catching Sounds On Previous Scene
I seem to be having this problem with my flash file... I have a movieclip playing on all four scenes in my six scence movie... This movieclip has sound in it... The sound plays three time throughout the duration of the clip. I have the clip set to start on frame 10 and end on frame 20 in all six scenes. This works fine when going down through the scences in decending order but when you try to click up through the scenes it makes the sound from the previous! LOL I can't figure this out. Go to my site to see what I am talking about. http://www.accessdream.com

XML Return Hangs Flash Movie Play Head.
Hi all,

I'm wondering if anyone can offer me a way of housing an XML return in a seperate object, so that the flash movie in question doesn't hang around waiting for the feed to come back.

The problem is we have an asp app which is returning the status of about 1000 citrix terminals at once.... while this only takes 10-15 seconds to return, any kind of animated loader i build into the movie, stops playing while flash holds on the XML return, as the http response status never responds dead, but says "waiting" instead.

Any kind of way of adding the XML load script as an object listener maybe...?


Any help would result in me buying the solver a pint of bubbly alcoholic liquid, if i ever meet them randomly in my local bar...

Aggravations With Playing A MC In Reverse
heres the situation:
i have a MC that plays on a button release, but i want to have it play in reverse when another button is pressed.

i have tried placing a MC that uses _parent.prevFrame() inside the clip that i want to reverse, but i cant get it to work.
any ideas?

Playing Frames In Reverse
Hi all

Does anyone know how to add an action script to a button that plays a sequence of frames in reverse? At the moment I have one button that scrolls an image one way and I want to be able to have another button that reverses it the other way.
Probably something v. simple but am a bit of a Flash beginner!

Many Thanks

Mike

Playing A Movie In Reverse?
I want my movie to play in reverse for exactly 5 frames every time someone clicks on a button. How would I do this? thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved