Getting a movie clip to play in reverse
I have this script to play a movie clip.
What do I write to get it play in reverse?
function fadeUp(event:MouseEvent):void {
buttonFadeOver_mc.play()
You need to use an enterframe event listener to continuously call prevFrame() until you see that you have reached the starting frame (by checking the currentFrame property). Once you detect you are at the start you remove the event listener.
Similar Messages
-
How do I get a movie clip to play fully in an iphoto slide show.
How do I get a movie clip to play fully in an iphoto slideshow. Right now it only plays for a few seconds, while the complete clip is 22 seconds.
Bring up the Settings pane for the slideshow and click on the movie clip in the tray at the top. Then in the Settings pane click on This Slide button and set the play time to the actual length of the movie clip.
OT -
Can't get nested movie clip to play
Hi everyone,
I have a movieclip on one of the frames on the maintimeline.
Within this movieclip is a nested movieclip which itself is
contained by another clip. The first movie clip plays to a certain
frame where I've got some code telling the nested movie clip to
play at that frame but this nested clip doesn't play. I'm not sure
if I'm targetting the nested clip incorrectly or whether something
else is wrong with the code.
The .fla file can be downloaded at:
http://www.officelinkonline.com.au/Ad/
if someone would take a look. The movie clip in question is
on the layer called text5, and within this mc on frame 15 is the
code I'm trying to use to get the nested movieclip to play at that
point. The code used on that frame is:
this.innerText5_mc.free_mc.play();
stop();
pauseAnim = setInterval (this, "nextFrame", 4000);
I wondered if someone could take a look and see what I might
be doing wrong? Basically the free_mc clip just makes the word
"FREE" scale up.
Would really appreciated any advice.
ThanksThanks again. I'm a bit worried that you weren't able to see
the font that I used. All of the text used in the animations are
static text fields. I don't seem to have the option to embed these
characters since it's static text. It'll only let me embed if the
text fields are dynamic. Does this mean I have to change them all
to dynamic text fields, and if so do I need to embed the font in
every text field in every frame of the animation or can you do this
in one place?
Appreciate your continued help. -
*Class Project - Please help: Why does my movie clip keep playing over and over?
I am desperate for help on this one as its my Final Flash
class project and I just can't get my scenes/movie clips to play in
the order I want them to.
I have Scene 1 (movie clip 1) that plays and then Scene 2
(movie clip 2) plays. The problem is that Scene 2 (or movie clip 2)
repeats itself over and over again. I can't get it to go back to
Scene 1 (movie clip 1) to play that again.
I want it go to to this Scene 1 and actually start at a
certain frame to continue on with the story.
I have named my movie clip instances.
What am I doing wrong? I went into movie clip 2, into
actions, and movie clip control, and I don't really see a way to
tell it to go back and play movie clip 1. Trying to see how to
refer back to the instance name of the movie clip and get it to
play.
Ideas? Please please? I would be forever greatful.
Angiequote:
Originally posted by:
computerkitten
I wonder if I should just take that movie clip out of the
scene completely.... and not have the second scene at all. Maybe I
should just have 1 scene and these 2 movie clips. Wonder if that
would work better?
As Nickels55 said, above, scenes add unnecessary complexity.
So the answer to this is: YES. Scenes are awkward in Flash. Never
use them in any final project. Put everything on a single timeline
in a single scene, and you will have much better control of the
project. -
how do i get the movie sound to play through the TV speakers when watching a movie from Itunes, It is connected to my macbook pro but the sound only comes through my macbook pro.
ThanksTransfer the movie from your iPad to your MacBook then. =)
iOS: How to transfer or sync content to your computer
http://support.apple.com/kb/HT1296 -
I would like a movie clip to play repeat itself everytime a button is pressed
Hello,
I am new to actionscripting but not Flash, I am using Flash
MX 2004 for a college project at the moment. I have created an
interface which features four buttons, each button activates a
different movie clip. This works fine but only on the first time to
press the button if you press the button again the movie clip does
not play again, I would like the movie clip to play EVERY time the
button is pressed. Here is the script that I have created in a
seperate layer called actions, if that helps:
ellaimage._visible = false
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
boxmovie._visible = false
Betabox._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false
pellabutton.onRelease = function () {
stop ();
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = false
Yakuzabox1._visible = false
boxmovie._visible = true
textboxmc._visible = true
Pellaimage._visible = true;
Pellaimage.gotoAndplay(1)}
Betabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false
Betaimage._visible = true
Betabox._visible = true
boxmovie._visible = true
Betaimage.gotoAndplay (1) }
Yakuzabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Betaimage._visible = false
Pornopic._visible = false
textboxmc._visible = false
Pornobox1._visible = false
Betabox._visible = false
Yakuzabox1._visible = true
boxmovie._visible = true
Yakuzapic._visible = true
Yakuzapic.gotoAndplay (1) }
Pornobutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Betaimage._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = true
Yakuzabox1._visible = false
Pornopic._visible = true
boxmovie._visible = true
Pornopic.gotoAndplay (1) }
// this command stops the timeline
stop ();
Any help would be great.
Thanks in advanceNo that doesn't work, that isn't what I want to to be
repeated.
In the below script I want textboxmc (which is a movie clip)
to restart and play again everytime pellabutton is released.
pellabutton.onRelease = function () {
stop ();
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = false
Yakuzabox1._visible = false
boxmovie._visible = true
textboxmc._visible = true
Pellaimage._visible = true;
Pellaimage.gotoAndplay(1)}
Please can anyone help? -
I have a Flash movie that plays a movie clip called DR1 at
frame 113 using this code:
DR1.play();
There is nothing else going on in the movie for the length of
the clip, but when I play the movie, the clip does not play - I
just have a blank screen for those frames.
Also, if I try dragging an instance of the movie onto the
timeline at that point, the same thing happens - blank screen for
the amount of frames that the clip is present.
If I play the clip in the library it plays correctly.
What am I doing wrong?
Thanks,
BethOK - I realize now that I have to actually publish the movie
to have the clip play, whether by dragging an instance onto the
timeline or loading it via AS.
Now I have another issue. I'm sorry if these are stupid
questions, but I have a hard time finding things in the help file -
maybe I'm too much of a new Flash user to understand what to look
for!
Anyway, when I play the movie, I have three problems:
1) the clip starts playing immediately, even though I don't
issue the play() command until the middle of the movie. I do the
attachMovie in the first frame so that it has loaded by the time I
want to play it, but it starts playing right away even though I
don't tell it to play.
2) the clip seems to be centered on the upper left corner of
the screen when it plays. I have tried setting the _x and _y
properties of the instance to 0,0 but that doesn't seem to make a
difference. I want the clip to be centered on the screen (it is
sized to take up the whole stage) but can't seem to move it no
matter what values I plug into the _x and _y properties.
3) the clip loops continuously. I only want it to play once
but can't seem to find a property to control the looping.
Here is the code in the first frame:
var mc1:MovieClip;
mc1 = this.createEmptyMovieClip("DR1",
this.getNextHighestDepth());
this.attachMovie("DR1", "mc1", this.getNextHighestDepth());
mc1._x = 500;
mc1._y = 500;
mc1.stop(); (this was added to get it to not play until
later, to no avail)
And the code at frame 113:
mc1.play();
And finally at frame 412:
mc1.stop();
Help, please!
Thanks,
Beth -
Getting a movie clip to stop playing, when another one is activated.
Hello,
I have a file with 3 movie clips and three buttons that control them to play...with the script below It is working fine.
stop()
function startImageOne(Event:MouseEvent):void
imageOne_mc.play();
function startImageTwo(Event:MouseEvent):void
imageTwo_mc.play();
function startImageThree(Event:MouseEvent):void
imgThree_mc.play();
start1_btn.addEventListener(MouseEvent.CLICK, startImageOne);
start2_btn.addEventListener(MouseEvent.CLICK, startImageTwo);
start3_btn.addEventListener(MouseEvent.CLICK, startImageThree);
Then, I wanted to stop a movieClip, if another one was selected to play..so I inserted stop options to the function, which I thought would work, but doesn't. Does any one know why...See this code below..
thanks
stop();
function startImageOne(Event:MouseEvent):void
imageOne_mc.play();
imageTwo_mc.stop();
imgThree_mc.stop();
function startImageTwo(Event:MouseEvent):void
imageTwo_mc.play();
imageOne_mc.stop();
imgThree_mc.stop();
function startImageThree(Event:MouseEvent):void
imgThree_mc.play();
imageOne_mc.stop();
imageTwo_mc.stop();
start1_btn.addEventListener(MouseEvent.CLICK, startImageOne);
start2_btn.addEventListener(MouseEvent.CLICK, startImageTwo);
start3_btn.addEventListener(MouseEvent.CLICK, startImageThree);
thanks
BabsHi Ned,
I checked the names and they are all correct...(I named one of the instances img instead of image, but it is all fine.
The movie clips are simple...They have a stop action in the first frame, and then it is just an image that fads in and fades out..
Pretty simple?
The code looks fine, so I can't figure out, why the movie clip that is currently playing doesn't stop, when another button is activated.
It seems like is should work??
I'll keep playing .. thanks!!
babs -
Can't get movie clip to play on Mp3 player
I have a Coby mP3 player that works well with Mac, except movie clips must be in MTV to work. I have a Quicktime movie clip off the internet, i want to put on the Mp3 player, if possible. Any way to convert the movie so it functions??
Thankstaffers is right, especially since I have never heard of "MTV Format," so if this is a real thing, it is probably a proprietary Coby standard.
-
Movie clip stops playing for no reason
I am making a banner that has multiple movie clips sharing the same area, creating different rainbow effects when different areas (invisible buttons) are moused over.
First of all I couldn't figure out if there was a way to have one invisible button over the whole area that changed to a different colored effect with each mouse over (first mouse over the black and whites would change to reds, second would change it to blues, third would change it to browns, etc.). Since I couldn't figure this out I settled on creating three buttons covering a third of the banner each, so when the mouse passes over one button it changes to reds, over another button it changes to blues, over the third it changes to browns.
The effects are movie clips where each frame has another stripe changing color so it goes in a wave effect from one to the next, and then goes back to white and black in the same manner. The first frame of each movie clip I had to turn into a nested movie clip so I could turn the alpha to 0, since I was going to have these color effect movie clips on top of one another in the main timeline on different layers, and so you could see the effect even if that color layer wasn't on top. I used the same nested movie clip with zero alpha for the first frame of each color effect clip (reds movie clip, blues movie clip, etc), so I dont' know if that's an issue.
Anyway, it seemed to work fine for a while, but after working on it for a while longer (and not getting any further since I removed most of the changes I made), now when I test the movie the mouse over does not seem to work correctly. It works fine, seemingly, for the first time I mouse over each button, but in order to have it work again I have to mouse over the button twice, and then it will pause randomly during a part of the clip and I have to move my mouse back over for the movie clip to continue.
I can't tell if this is because of the overlapping movie clips, or because my buttons are messed up, or if my actionscript is messed up, or if the timeline has to be longer, or what. Currently the timeline is 55 frames, the same as each movie clip.
I put a movieclip_instance.stop(); command in the first frame of the main timeline, is there a better way to do this? Should I put the stop command in the movie clip itself?
Here is a section of my AS in the main timeline, this is my first time programming ever, in any language, and trying to learn from the internet is more difficult than I thought it would be.
redmovie.stop();
red_btn.addEventListener(MouseEvent.ROLL_OVER, playRed);
function playRed(event:MouseEvent):void
redmovie.play();I am not sure of what the problem is, so I don't know if this will help or not. One thing I might suggest is that you use gotoAndPlay(1) instead of play(). That way, if your movieclip is in the middle of playing it won't continue but will start from the beginning.
You could use one button to have the different movieclips play in sequence if you prefer that. You would just need to have some form of counter that keeps track of which is the next to play. Somethin like...
var mcCounter:uint = 0; // start at 0 since an array is being used to identify which movieclip to play
var mcs:Array = new Array(redmovie, bluemovie, brownmovie);
only_btn.addEventListener(MouseEvent.ROLL_OVER, playMC);
function playMC(event:MouseEvent):void
mcs[mcCounter].play(); // tell the current mc to play
mcCounter += 1; // increment for the next mc
if(mcCounter == 3) mcCounter = 0; // reset the counter if it exceeds the array -
How do I call a Movie Clip to play from within another MC?
Here's a simple one I'm sure but I can't get it to work or find a solution online.
I have a movie with 2 movie clips on the stage, the first clip is triggered to play on a button click (which works fine) but I want the 2nd clip to start playing when the first ends. I've tried putting MovieClip2.gotoAndPlay(1) script on the last frame of MovieClip1 but I get "1120: Access of undefined property".
I very much appreciate your help.Try using:
MovieClip(this.parent).MovieClip2.play(); -
Get a movie clip into a presentation
I am very new to Apple community and just purchased Keynote. I have a Knote presentation and want to use clips from movies i.e. "A Beautiful Mind" to help teach about psychiatric issues. Can this be done? I just read about CINEMATIZE 2, but I am not sure I understand the concept of encrypted and unencrypted DVD's. Thank you.
G5 Mac OS X (10.4.3)Well, if you can get past the issue that it's technically illegal to break the encryption from a DVD (meaning, though it might be legal to use the clip in class, it's not legal for you to actually get a usuable clip, except to just play the dvd in class and stop it when you need to).
Anyway, there's a Mac app called handbrake that rips dvds into Mpeg4 and iPod formats, and there's also a mac app that will decrypt a dvd, and copy it to your hard drive, where you can use other apps to rip it into DV or another format. It's called Mac the ripper.
Hope that helps -
Having trouble getting my movie clips to my Mac...
Hello!
I recently bought my first Macbook (Macbook Pro), my old notebook being a Vaio. My mom is using my old one, so to clear up memory for her, I'm trying to move all of my important files to the Mac. I burnt a bunch of pictures and documents to a disk and transferred them easily enough, but upon burning and attempting to transfer my movie clips, I had no such luck. It doesn't recognize the format of the movies...whatever that format may be. I can't find that either, but I recorded the clips with a Canon camera (it has FS100 written on it) and viewed and edited them with Windows Movie Maker. Now, I can't open any of my clips from the disk that I had burnt. They still play just fine on the old notebook. I have no idea how to move them to my Mac so that I can view and edit them into a polished little movie there. Please help if you can! Thanks in advance!
~Christina
P.S.: The operating system that I put is probably not correct, since I don't remember where to find it, but I remember seeing Mac OS X many times before.Hi Christina, belated welcome to Apple Discussions if nobody said it already.
I've had some experiences with these new flash memory recording camcorders, and I'll give you a quick rundown of what I've learned. Many of them (JVC, Panasonic, etc.) tend to record in a .MOD file format, which is non-standard, proprietary, and unrecognizable by most software. I thought Canon was usually a little more standards-compliant, but it appears they also use this .MOD format in your specific camera model. There are likely a couple ways we can get around this though!
In order to play the files, you will likely need to change their file format (.MOD) to .AVI manually. You'll have to locate the files on your Mac, and then manually change the file names so that the file extension (after the period) is .AVI
At that point, a video player application such as http://www.videolan.org/vlc/download-macosx.html>VLC should play the files fine!
You should be able to transfer new video files from the camera to the Macbook Pro with no problems as well. Just plug in the camera to the computer via USB, and also make sure the camera is plugged in to charge. Once it's plugged in, open iMovie (came with the MBP, in the Applications folder) and the MBP should take care of the rest.
Let me know if you have any success with any of this!
FYI, the thread that I got some of the above information from is here:
http://forums.macrumors.com/showthread.php?t=478326
--Travis -
Selecting a movie clip to play
Ok,
The following set of code is partially working for me. If the
randomNumber*100 is < 90, the clip "straight" plays just fine.
If it is >90, both the "slightbenddown", and "slightbendup"
clips go off at the same time.
var randomNumber:Number = Math.random();
if (randomNumber*100 <= 90)
straight.play()
if (randomNumber*100 > 90 && randomNumber*100
<= 91)
slightbenddown.play()
if (randomNumber*100 > 91 && randomNumber*100
<= 92)
slightbendup.play()
How can I make it so that "slightbenddown" only plays when
(90<randomNumber<=91) and "slightbendup only plays when
(91<randomNumber<=92)?
Thank you for any help that you can give.
BobRI tried the attached code, and still did not get what I was
looking for. If the else is included for all of the iterations, I
only get to see straight and slightbenddown. If I do the same
thing, except leave off all of the elses, I do get to see the other
movie clips, but almost always I see more than one at a time
(usually slightbenddown + any other one).
Any ideas would be appreciated.
BobR -
How do I export clip to play in reverse?
I have a short segment, in point to out point, that I would like to export to a stand alone quicktime movie that would play back to front, or, in reverse.
What is the best way to do this?
Is it just Modify>Speed. Check the reverse box?
TIA,
KenI don't have a copy of FCE here with me at this location to confirm, but if it's like FCP, you can make speed changes using the speed tool or by selecting the clip then hitting Command j and entering the value. Any value entered less than 100 would be slow motion. However, Final Cut's slow motion isn't always the best. Motion (part of Final Cut Studio) does a much better job with its 'Optical Flow' retiming.
But your are correct, the best slow motion is form cameras that can record higher than normal frames rates. For example, if you record at 100fps, then slow that down in post, the effect is very smooth.
-DH
Maybe you are looking for
-
Please Help - My iTunes library won't recognize my iPod classic
My iTunes library won't recognize my iPod classic 80gb. I try doing the trouble shooting steps on apple, but they still did not work. Any help would be greatly appreciated. I'd love to add some newer music to my old iPod for listening in the car or w
-
ID CS5 crashes when opening older ID file
I am attempting to open an ID file started in 2007 and edited in 2008. CS5 crashes after a few seconds in this attempt. Is there a magic bullet to fix this? This is not the first time, but I found an output pdf and used those compoments to rebuild th
-
I have a Mac Book pro that I purchased August of 2011 running 10.7.3 and I can't find iDVD. Anyone else have this problem?
-
Swap size issues-Unable to install DB!!
Unable to install DB. End part i am getting failed due to swap size issue .. FYI... [root@usr~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda2 5.9G 5.9G 0 100% / /dev/hda3 3.0G 848M 2.0G 31% /t
-
Hello, Let me start off by saying, I know nothing about programming in any language or Tomcat or Java. I downloaded the CiscoIPPS_SDK_v4.1.1 with hopes of getting the speeddials.jsp working on a little Windows 2003 machine. I've tried different versi