Movie Clip Play And Then Repeat Frames 15-20 Until Entire Movie Ends
please let me know how to have a movie clip (flash 5) play through once and then repeat frames 15-20 until the movie clip is removed thank you for your answers
FlashKit > Flash Help > Flash Newbies
Posted on: 10-17-2003, 05:49 PM
View Complete Forum Thread with Replies
Sponsored Links:
Play One Movie Clip When Another Ends
Hi all,
I was just getting used to AS2 and this is the first time using AS3 so I'm having a little difficulty getting used to it, so please bear with me if I'm missing something really obvious.
I have one frame one the main timeline with two movie clips, the first called 'logo' (contains an embeded .flv) and the second 'back' (contains two frames, one blank with a stop command; the second a static image with a stop command). What I want to do is have the movieclip 'back' advance to frame 2 once the movie clip 'logo' has finished playing. I have included my code below:
Code:
stop();
import caurina.transitions.*;
import caurina.transitions.properties.DisplayShortcuts;
DisplayShortcuts.init();
Tweener.addTween(logo,{_frame:178,time:6,transition:"easeOutQuart"});
if (logo.currentFrame==178) {
back.play();
}
Any help would be greatly appreaciated as I've been scanning forums for last two days and nothing I try is working.
Thanks
View Replies !
View Related
Load Entire Movie In Any Size Movie Clip?
Hi all. I was wondering. I want to make a static html page with a flash preloader. loading my entire movie into that preloader movie clip. Now I know I can load a movie into a movie clip but can i load it in and have the movie retain it's height and width (1024 by 768) after being loaded into a smaller movie clip (20 by 300). A movie clip placed on a static web page that is.
Well any advice will do, thanks in advance.
London
View Replies !
View Related
Go To Next Frame After Movie Clip Ends
I imported a movie clip into the second frame of my flash file (the first frame is a loader).
there are no controls on the movie because I want to treat it as an intro that leads you directly into the site.
in the properties of the movie clip it says:
instance of: FLVPlayback
and i simply gave it the same instance name.
My question is what is the code to make it go to frame (3) after the movie clip is finished playing?
currently there is a stop(); in the actions, but that of course just makes the movie play and then stop on the last frame of the movie.
can anyone give me the code to make this work?
thanks!
View Replies !
View Related
Detect When Movie Clip Ends. Flash MX
Hey,
I have an object that I have set to spin and deaccelerate when the movie loads. What I want to do is carry on from there. The object is made to spin using action scrip, not a tween.
onClipEvent (enterFrame) {
if (rotDest>0) {
this._rotation += (rotDest)*.16;
rotDest--;
}
}
Im after a way to detect when the object has come to rest and then load the next scene. Is this possible? Its either that or I have to wait 206 frames for the animation to stop and then put in my gotoandplay statement. Im sure this method is classed as 'scruffy'!
Thanks in advance
Chris
View Replies !
View Related
Stopping Movie Clip After My Sound File Ends
I Assigner 13 seconds sound to my entire movie. There are many animations in the movie. I would like to stop a particular animation(Movie clip) when my sound file completes..any help?wht action script do I need to assign for movie clip
Is this script anyway helpful?
"OnSoundComplete"
View Replies !
View Related
Unable To Play Entire Movie In Flash Doc
Hi I am new to flash development.
I am trying somethiiing easy. I want to embed a flash (flv) movie (encoded from Quicktime mov) into a web page and include a set of controls under the movie.
I create a Flash 2 doc in Flash CS3 and import the flv movie add the swf skin just fine. However, in both Flash (testng the movie) and on the web page, the movie plays to about 3/4 of the way through and then just stops. Movie is about 1.5 minutes long. If I move the playhead a bit further and click play, it continues to play.
OK, being a NOOB, this is probably *real* simple and some thing basic I'm missing.
Any ideas how to fix this?
View Replies !
View Related
Repeat A Movie Clip - Loop
Check this out http://users.rcn.com/rmkerr/test_roll
I'm trying to make this appear as a sort of film roll spinning. I figured I would repeat this animation at a steady interval to create that illusion. Can anyone recommend how I code that? Also, is that the best way to create what I'm going after? Thanks for any input.
View Replies !
View Related
Getting A Movie Clip To Repeat And Shift
http://www.mannymedia.com/caramia
k.. the link to illustrate is above....
im tying to get the A1 A2 and A3 blocks to shift over to the very left when clicked and have the A1 block to duplicate and shift in after the A3 block everytime....
if this makes sense... please please please direct me to a tutorial or something that will explain and walk me through this script...
thanks a MILLION
-manny
View Replies !
View Related
Nested Movie Clip Will Not Repeat
I am creating a mp3 player that gets info from an external XML file. I am trying to create a masked scrolling message that gets the text data from the XML file. I have succeeded doing this and was very happy until I found out the message only scrolls once. I do not understand why it doesn't loop.
The message is loaded into a movie clip called prompt_mc that has a dynamic text field named prompt_txt inside of it. In prompt_mc I moved the message across 200 frames from right to left and then I dropped the prompt_mc on the main timeline with a mask object above it. The mask is handled in the code and works great. Anyone know why my prompt_mc is not looping or have any ideas??
Here is part of my code if it's helpful:
// function to check if XML file is loaded and parse XML file
function loadXML(loaded) {
if (loaded) {
_root.prompt = this.firstChild.childNodes[1].firstChild.nodeValue;
_root.songtitleone = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
_root.artistfirstSong = this.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
prompt_mc.prompt_txt.text = _root.prompt;
songtitleone_txt.text = _root.songtitleone;
// prompt message mask
prompt_mc.setMask(mask_mc);
// play songs
var artistSong:String = _root.artistfirstSong;
controller.autoPlay = false;
play_mc.onRelease=function() {
if (this._currentframe == 1) {
this.gotoAndStop("stop");
controller.setMedia(artistSong,"MP3");
controller.play();
}
else {
this.gotoAndStop("play");
controller.stop();
}
}
} else {
trace("Error: file not loaded!");
}
}
// load XML file and define XML object
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(playlist_URL+name_URL+identity_URL);
View Replies !
View Related
Cover Entire Movie Clip
I have been trying to come up with a way to get the borders of a movie clip (lets say a triangle) and place a smaller movie clip on each pixel or every certain number of occurring pixels in order to cover the entire movie clip (triangle). what i'm trying to do is place small blades of grass that cover an entire movie clip with actionscript, that do not go over the movieclip's borders. does anyone know how to do this or where to get a head start?
View Replies !
View Related
Entire Movie Stops On Clip End
I have a problem. I made a preloader that reads it's filesize and then displays a percentage as it loads. Everything works fine, but the problem is when the movie clip that the script is in no longer exists (such as in the next scene), the entire movie just stops. Here is the code that I used:
onClipEvent (load) {
tkb = _root.getBytesTotal();
_root.size = tkb/1024;
_root.version = getVersion;
}
onClipEvent (enterFrame) {
p = Math.round((_root.getBytesLoaded()/tkb)*100);
_root.percent = p;
if (p == 100) {
_root.nextFrame();
}
}
Please help!
View Replies !
View Related
[F8] Help With Stopping Clip Playback, Not Entire Movie
I have the following actionscript on my movie, and I would like to stop the playback while allowing the rest of the movie to continue. Any ideas or help would be appreciated.
code: var swidth = 640;
var sheight = 430;
_root.createEmptyMovieClip("DropClip", 15999);
for(var i=0; i<200; i++)
{
createdrop(random(sheight));
}
var storm = setInterval(createdrop, 1);
function createdrop(y)
{
var clip = "drop" + Math.random();
_root.DropClip.attachMovie("Drop", clip, random(15999));
_root.DropClip[clip]._x = random(700);
if(y != null)
{
_root.DropClip[clip]._y = y;
}
_root.DropClip[clip]._alpha = random(100);
_root.DropClip[clip].speed = random(10)+4;
_root.DropClip[clip].onEnterFrame = fall;
}
function fall()
{
if(this._y < sheight && this._x > 0)
{
this._y += 5 + this.speed;
this._x + random(1);
}
else
{
delete this.onEnterFrame;
this.removeMovieClip();
}
}
View Replies !
View Related
Play Movie Clips To Fade Off THEN Play New Movie Clip
Hey guys, I've been doing a little searching and I can't find the answer to my dilemma.
I've made up some buttons that play a little movie clip animation when pressed. The scenario is like this: Push the "Illustration" button and little files pop onto the screen. Each file will be a button that opens up an image. Push the "Pictures" button and the "Illustration files" should fade off the screen so the "Pictures files" could pop in in it's place.
I can't find a way to make the "Pictures" movie WAIT for the "Illustration" movie to be done before it pop in. One goes in, and the other simultaneously goes out and I don't want that.
Is there any way?
View Replies !
View Related
[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip
lets say that there are 4 buttons are in movieA, and the other clip is called movieB
when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on
so far my code for button1 is:
on (release){
this._parent.movieB.gotoAndStop(5);
}
on (release){
_root.movieB.gotoAndStop(5);
}
button2:
on (release){
this._parent.movieB.gotoAndStop(10);
}
on (release){
_root.movieB.gotoAndStop(10);
}
with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame
can anyone shed some light on this?
View Replies !
View Related
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
View Replies !
View Related
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
View Replies !
View Related
Continuous Play Of Several Movie Clips From One Main Movie Clip
hi,
i'm trying to play several movie clips, one after the other from one main movie clip.
i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".
i've tried using loadMovie, but it only plays the last movie clip. this is what i've got.
in the main movie clip, i've put a play button, and the actionscript i have in the button is:
on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");
this.loadMovie("m2.swf",play);
//this.unloadMovie("m2.swf");
this.loadMovie("m3.swf",play);
//this.unloadMovie("m3.swf");
this.loadMovie("m4.swf",play);
//this.unloadMovie("m4.swf");
this.loadMovie("m5.swf",play);
//this.unloadMovie("m5.swf");
this.loadMovie("m6.swf",play);
//this.unloadMovie("m6.swf");
this.loadMovie("m7.swf",play);
//this.unloadMovie("m7.swf");
this.loadMovie("m8.swf",play);
//this.unloadMovie("m8.swf");
}
is this wrong? how can i get this to work correctly. really important that i get this working for my job.
any help will be greatly appreciated.
cheers
View Replies !
View Related
How Do You Attach And Play A Movie Clip To A Movie Object?
I have a movie clip in my library, and i want to use action script to play the clip on my scene1 stage. I know i can simply drag the clip on the stage, but solving this will make most of my other problems dissappear.
I tried in the first frame of my scene:
---------------------------------------
mymovie = new MovieClip();
mymovie.attchMovie(clip,clip,20);
mymovie.play();
---------------------------------------
but it did not work...help! :-)
any suggestions?
zavyzavy
View Replies !
View Related
Loading Movie Into Empty Clip, But Movie Won't Play
I have 4 movies that i am trying to load into an empty clip in an existing movie. my problem is that when each of these movies are loaded into the clip, I can physically see it, but it doesn't function as a movie, the rest of the larger movie is moving around it, but the smaller movies won't move. I thought this was because I put a stop action at the end of the smaller movies, but when I take it out, the movie just keeps looping when loaded into the empty clip in the new movie.
does that make sense.
PLEASE HELP ME.
HOW DO I SEE MY MOVIES
View Replies !
View Related
Play Certain Frames Of Movie Clips
Hello, Im wondering if there's anyway to play certain frames from a movie clip when X action is set in any frame of a scene.
For example, I have a graphic of a man running, and .. let's say, when the movie reaches frame 100 I want it to start it to talk, but keep it running, so Im guessing it would be something like.. gotoAndplay *movieclip* frame 2
but ehh that might be just wrong.
So eh.. yeah. having a movie clip with a stop(); action on the first frame, then when my movie reaches frame 100, make it play frame 2, keep playing until frame 15 and then stop again (with the stop action obviosuly) on frame 16.
I hope I made my point.. If there's anyway to do this.. please post it here >.<
Thanks in advance..
View Replies !
View Related
[F8] Play Movie Clip Inside Another Movie Clip
Hi,
I have a movie clip inside another mc and I want to make the mc inside to play once the user rolls the mouse over it. The problem is that when user rolls mouse over, they can't reach the inside mc because they just roll over outer mc.
Is there any way to do this?
(tried:
Code:
outer_mc.inner_mc.onRollOver = function(){
outer_mc.inner_mc.play();
}
but did not work)
Any help will be very much appreciated.
E
View Replies !
View Related
TellTarget To Play A Movie Clip Within A Movie Clip
I currently have two movie clips in my scene with a button that lies inside one of the movie clips. We will call this movie clip for the sake of this post "ph." The button inside of ph has a rollOver/rollOut movie clip called "Buick_rollOut" attached to it as a parked movie clip through tellTarget. Currently Buick_rollOut only works if I put the parked movie clip on the same level as ph. I want Buick_rollOut to be within the movie clip, ph, that contains the button. I want that button be able to tellTarget the location of Buick_rollOut within ph. I hope this makes sense. Here is my code for the button that lies within ph. (this code only works when Buick_rollOut is located outside of ph on the same level).
Attach Code
on (rollOver) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOver");
}
}
on (rollOut) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOut");
}
}
View Replies !
View Related
TellTarget To Play A Movie Clip Within A Movie Clip
I currently have two movie clips in my scene with a button that lies inside one of the movie clips. We will call this movie clip for the sake of this post "ph." The button inside of ph has a rollOver/rollOut movie clip called "Buick_rollOut" attached to it as a parked movie clip through tellTarget. Currently Buick_rollOut only works if I put the parked movie clip on the same level as ph. I want Buick_rollOut to be within the movie clip, ph, that contains the button. I want that button be able to tellTarget the location of Buick_rollOut within ph. I hope this makes sense. Here is my code for the button that lies within ph. (this code only works when Buick_rollOut is located outside of ph on the same level).
on (rollOver) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOver");
}
}
on (rollOut) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOut");
}
}
View Replies !
View Related
Dragging Movie Clip To Play 2nd Movie
I created a movie clip called drag that is being dragged by the mouse. I have a seconded movie clip called spin that is on the stage. A third movie clip, Which is blank, on the stage has my actions. My goal is to have the spin movie play when the mouse moves. On the first frame in the blank clip, I have:
Begin Tell Target ("../spin")
stop
End Tell Target
Set Variable: "locate" = GetProperty (drag, _x)+GetProperty (drag,_y)
The second frame has:
If (locate = GetProperty (drag,_x)+GetProperty (drag,_y))
Go to and Play (3)
Else
Begin Tell Target (../spin)
Play
End Tell Target
Go to and Play (1)
Frame three has an action that goes back to frame two
When i test the movie and i move the mouse i get a warning telling me that there is an infinite loop.
What could be wrong with the code?
View Replies !
View Related
Can't Play Movie Clip In Main Movie
Hey guys, I'm new and understand the basics.
I have a movie clip that is a exported .swf file, I imported the .swf file into my library (which by the way doesn't show it animating in the preview window), and imported it into my main movie on its own layer. it tracks across the screen using a motion tween, but I can't get the movie to play once it stops moving, I dont know how to do it, does it need an actionscript? If is so how would you write it? Thanks a lot
View Replies !
View Related
Telling Movie Clips To Play Different Frames
Hello Everybody,
Does anybody know if there is a way of telling a target movie clip go to frame3 but only if it's not already playing frame 5?
ie,
telltarget(_root.L2)
go to and play (3)
(if it's not already playing 5?)
thankyou, I am trying all different things but nothing's working yet....
thanks
Emily
View Replies !
View Related
Movie Symbol To Play RANDOMLY, Frames 1-5 Or 6-10
Movie Symbol to play RANDOMLY, frames 1-5 or 6-10
What actionscript do I need to create this?
1--2--3--4--5--6--7--8--9--10 FRAME#
K--------------K------------- K=Keyframes
When I drag this movie symbol into my work i want it to randomly play frames 1-5 or 6-10 and repeat this random selection. Can anyone help me with this?
Thanks!
View Replies !
View Related
Reversing All Frames By A Button To Play Next Movie
I have a movie which all the frames and layers plays and stops, i was wondering if there is any way (easy) way so i can put an action to my buttons to make the movie go reverse and load another movie, (the movie assigned to the approprite button), and so on. I can only get it to work with one button, if i try to click on another button, it reverses the movie and loads the movie that i want button number 1 to play, it also does that with the 3rd and 4th and 5th button.
the messed up code i used is on release go to frame 32 (which begins the movie in reverse), and after the movie finishes it loads movie2.swf
View Replies !
View Related
Loading Frames From A Different Movie Upon Frame Play
i'm trying to get flash MX to play a movie, when it gets to the end of the movie there should be an action on the last frame that makes it go to a totally different movie and then play that movie (in the swf document) i know how to do this in various ways but only when you use the "on" event thingy, like on over or on click, i want this to happen simply when the last frame plays, and gotoAndPlay doesn't apply for a different movie
can anyone help?
thanx
View Replies !
View Related
1st Few Frames Of Movie Play In Wrong Direction?
I have an object (a logo) on a timeline which should go round a circle in anti-clockwise direction. I want to move the start position of first frame, but when I do that and test it, it starts playing in a clockwise direction and then at the next keyframe stops and plays in the right direction. How do you move the start frame without causing this to happen? I have been dragging it along the timeline and dropping it, is that correct?
Help gratefully received and client getting in a tizzy wanting this finished!!
Thanks.
Tig
View Replies !
View Related
Make Button Play Few Frames From One Movie Before Another
Hi all,
I think this is a hard one for you
I have my buttons done and each button loads a movie into my main movie.
Now what i want is for my button to play the last few frames of one movie before auto opening a new one so.....
Say i was on my main screen and i clicked "contact" this would then start my animation for the contact page and stop when the page is fully on screen now what i want is when i click "portfolio" for instance it will play the last few frames of the current movie it is showing first hen load up the portfolio (The last few frames will be a closing of the contact page)
Contact button is as follows
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){if (_root.mainbox_MC._currentFrame >=1 && _root.mainbox_MC._currentFrame !=6){
_root.mainbox_MC.gotoAndPlay(2);}
else if (_root.mainbox_MC._currentFrame == 30){
_root.mainbox_MC.stop();}
Portfolio button code is
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){if (_root.portfolio_MC._currentFrame >=1 && _root.portfolio_MC._currentFrame !=6){
_root.portfolio_MC.gotoAndPlay(2);}
else if (_root.portfolio_MC._currentFrame == 30){
_root.portfolio_MC.stop();}
Any help would be greatly appreciated
View Replies !
View Related
Define To Play Number Of Frames From The Specified Frame In A Movie
For Example,
I have play from frame Number 40 to Frame number 50. At the same time it has to jump & play from frame 70 to 100.
I may use label for the frame number 40 & 70.
Right now what i have tried is put a action as stop at 50th frame and also 100th frame
_root.gotoAndPlay(40);
_root.gotoAndPlay(70);
It works only once and it stops at 50th frame itself, because i have given stop action at 50th frame...
Hope you understand my question,
Thanks, Bala
View Replies !
View Related
|