ActionScript 2.0 :: Making Movie Stop / Fade Out At Certain Frame

Sep 24, 2010

I'm using the code and assets from this page. [URL]. I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:
Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130. I'm using flash 8, AS2.

Here is the code.
init = function () {
width = 300;
// pixels
height = 250;

On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Making A Movie Stop/fade Out At A Certain Frame

Sep 24, 2010

I'm using the code and assets from this page. [URL] I'm creating ads for websites and they don't allow continual  animation after 3 loops. I added to the above code to make it fade at the end. I think I'm close, but it doesn't seem to fade away as I had hoped, it just keeps  falling.

Am I missing some code that I need to replace? Do I need to put a frame # somewhere when I  want it to fade? Does the last part of the code go on a frame at the  end? The snow just keeps falling even though it's reached the last frame. What do I add to make it stop?
 
Here is the code. The link above will show you exactly the type of animation I'm looking at. I added the fade part after "init ( );"
 
init = function () {
width = 300;
// pixels
height = 250;

[Code].....

View 2 Replies

ActionScript 2.0 :: Making A Movie Stop/fade Out At A Certain Frame

Sep 24, 2010

(remove the spaces to correctly link, my post count is too low to include links)
kirupa. com/ developer/flash8/snow. htm

I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:

Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130.

Here is the code.

init = function () {
width = 300;
// pixels

[Code]....

On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?

View 6 Replies

ActionScript 2.0 :: Movie Fade In Onframe, Play 5 Sec., Then Fade Out On Frame?

Jun 11, 2009

how to do this effect.I have a movie instance named "sparkles_mov" as in internal movie, not loading externally.It's placed multiple times on the stage.I need an AS code for the first frame of the entire stage that makes all instances fade in at a specific frame number (5), last for XXX amount of seconds and then all of the instances to fade out at a specific frame number (70).Is this possible? I have all instances fading in using this AS code placed on the frame that they enter on but the fade out never works, the just abruptly disappear:

Code:
sparkles_mov._alpha = 0;
fadeIn();[code].....

View 2 Replies

ActionScript 2.0 :: Alpha Fade Out - Making 'client Quotes Movie?

Aug 12, 2002

i need some tweaking help for making 'client quotes movie'.here is the condition. i already make movie to show client quotes. now i need to make transparent when user click the navigation button. to see my website,u can enter at [URL]...

View 2 Replies

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

IDE :: Fade It Out When The Movie Enters Frame 20

Dec 4, 2009


I have a loop that starts to play when the movie starts:

var my_sound:SoundId = new SoundId();
var my_channel:SoundChannel = new SoundChannel();
my_channel = my_sound.play(0,int.MAX_VALUE);

I would like to fade it out when the movie enters frame 20. Since I'm already using TweenMax, I put this line in frame 20:

TweenMax.to(SoundId, 1, {volume:0, onUpdate:my_channel, onComplete:stopSound});

I'm getting an error:

1120: Access of undefined property stopSound. TweenMax.to(SoundId, 1, {volume:0, onUpdate:my_channel, onComplete:stopSound});

View 4 Replies

ActionScript 2.0 :: Movie Clip With A Stop Command On Frame 1 And A Stop Command On Frame 20

Jul 21, 2007

I have a movie clip with a stop command on frame 1 and a stop command on frame 20.I'm trying to have two separate buttons that tell the MC (onRollOver) to play forward or to play backwards.

The actionscript on button #1-
PHP Code:
on(rollOver){    gotoAndPlay(_currentframe +1);} 
The actionscript on button #2-

[Code]...

View 1 Replies

ActionScript 3.0 :: If Click The The Mc1 On First Frame  The Movie Clip Should Goto And Stop At Tenth Frame?

Aug 18, 2011

i created a two layer in time line in one layer there is a movieclip called mc1. In the same layer in 15th frame i have another movie clip mc2. Inside the movieclip mc2 i created another movie clip at frame10 now if i clik the the mc1 on first frame  The movie clip should goto and stop at tenth frame

View 4 Replies

ActionScript 3.0 :: Programming - Stop In Each Frame And Run The Animation Of The Movie Clip On That Frame

Jun 30, 2011

i'm very new at flash and finally ended all the work i wanted to do here. now i just need to had the actions so it will run properly. basically i just need it to stop in each frame and run the animation of the movie clip on that frame. if it's i can put the project here so you can see what and were i need to had the actions.

View 1 Replies

Actionscript 3 :: Stop Movie (from Current Frame) Playing When I Click On Next Frame?

Apr 8, 2010

I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...

View 1 Replies

ActionScript 2.0 :: Make A Simple Movie (call It MovieClip) First Frame Has Stop(); Action, Second Frame Has Label PlayMovie?

Nov 6, 2006

1. I make a simple movie (call it movieClip) first frame has stop(); action, second frame has label playMovie, last frame has action gotoAndPlay(2); (so that movie not stop anymore2. Now I place movieClip on stage3. Question... what is code to make movieClip play frame label playMovie?

I already try to put many different type action in frame one of stage
this.movieClip.gotoAndPlay("2"); //NOT WORK
this.movieClip.gotoAndPlay(2); //NOT WORK

[code].....

View 7 Replies

ActionScript 2.0 :: Making A Movie Clip Go To A Certain Frame

Mar 12, 2004

Making a movieclip move to a frame label.

Ok, I have my main movie, with a movieclip on layer2. The movieclip is named slideclip.

In slideclip I have two frame labels (open, and slide).
When I click on a button in scene1 ( My main movie) I want Movieclip Slide to move to frame label "slide".

How can I make a movie clip move to a certain frame?

View 5 Replies

IDE :: If Else "button" - Movie Clips Have A Stop Action On The First And Last Frame With A Frame Label

Oct 10, 2009

I have three buttons, btn_1,btn_2,btn_3, and two movie clips, image_1,image_2. The names listed btn_1,btn_2,btn_3, image_1,image_2. are all instance names. All buttons and movie clips are on their own layer in a single frame on the main time line. the movie clips have a stop action on the first and last frame, with a frame label, on the first frame in the sub time line. For image_1 the frame label is image_1_1 and for image_2 the frame label is image_2_1.

I would like btn_1 and btn_2 to control the movie clips, image_1,image_2. Either button should be able to close the other buttons movie clip and play it's own movie clip. Also i am trying to make the movie clips themselves have the ability to be closed by clicking on the movie clip image area that is playing. Both movie clips when not playing hide behind the appropriate button with an alfa of 0.

When playing they expand to the middle of the window and are at 100% alfa, using a tween. The third button, btn_3 should only be visible when one or the other movie clisp are playing. btn_3 dose nothing else but this for now. As of now, my movies continuously loop and btn_3 is always visible. I can't seem to figure this out. my code for this action is:

[Code]...

View 1 Replies

ActionScript 2.0 :: Making A Movie Clip Goto A Different Frame When An Item On A List Box Is Selected

Dec 22, 2009

I am having problems making a movie clip goto a different frame when an item on a list box is selected. Here is my code

list.getSelectedItem().label;
_root.onEnterFrame=function(){
if(list=="2"){
mc.gotoAndStop(2);
}else
mc.gotoAndStop(1);
}

View 1 Replies

ActionScript 3.0 :: Stop The Movie Before Going To Next Frame?

Jun 27, 2011

I have a problem with playing a movie, I mean to say that the movie stopped at the time of going to the next subpage.Unfortunately, as I click eg "zakladka1" this movie plays on the video tab tucked. How do I click on the video again it pops up again to play a movie that I clicked the first time, hidden in the background on the play.

[Code]...

View 0 Replies

ActionScript 3.0 :: Sound Fade In Fade Out On Frame

Dec 10, 2009

i am trying to hade in and fade out on the sertain frame. but i just can't figure out what's the problem.

ActionScript Code:
var soundFadeInTimer:Timer = new Timer(100,50);
soundFadeInTimer.addEventListener("timer", soundFadeIn);
var fadeInIncr = 5;
function soundFadeIn(e:TimerEvent){
[Code]...

View 0 Replies

ActionScript 3.0 :: Stop Movie At Last Frame Instead Of Looping?

Apr 30, 2009

I need my movie to play to frame 325 (the end ofthe timeline) and then stop instead of loop. When I try to put the stop(); command on a new layer on the original timeline, for some reason it freaks out on me in my current .fla

View 14 Replies

ActionScript 3.0 :: Stop Movie Clip On Another Frame?

Jan 4, 2010

i have a scrolling image gallery which is a movie clip on one frame and i want it to stop when i navigate to the other frames how can i do this.

View 3 Replies

ActionScript 3.0 :: Stop A Particular Movie Clip On Particular Frame?

Nov 6, 2009

I know this is very simple bt I dnt know how to do in AS3.

I have to stop a movie clip named handle on a perticular frame. I am using _root.handle.stop();

View 1 Replies

ActionScript 2.0 :: Getting A Movie Clip To Stop On A Certain Frame?

Dec 17, 2003

So what I'd like is for when someone presses the button, it instructs a movie clip to play - all this is based on what day of the month it is..in this example, it's today. The date part of this script works fine. If I just write "if (candleDay =='17') {_root.candles.gotoAndStop(23);}the script works fine...but I'd like the in between stuff. I have the movie clip stopped on frame 1 and I want it to play from frame 2 and stop at frame 23 if it's the 17th...in fact I'll have more if statements to go along with all this, but that's just cut and paste..So, I would like my movie clip, if it reaches a certain frame to STOP. In other words, if it's the 17th, play this movie clip BUT if the movie clip hits frame 23, stop the movie clip....why isn't this working? Here's the script that needs debugging:

on (release) {
candleDate = new Date();
candleDay = candleDate.getDate();

[code].....

View 1 Replies

ActionScript 2.0 :: Flash8 Cannot Stop Movie Preloading Before Frame 1

May 21, 2009

I have an as2 slideshow project that has 3 images that are accessed form the library. The movie consists of 3 frames 1) preloader 2) blank 3) slideshow script and some stage elements. All these images have been exported for AS and exported for frame 3.

Even so the preloader in frame 1 still only flashes up on the screen briefly before the slideshow starts. I have also set the flash publishing to "export frame for classes: 3" as I have read that this may help. This still does not help.

The SWF file is around 1.3MB in size and virtually all of this is being loaded prior to the preloader as the bandwidth profiler reports.

I have attached a link to the CS3 fla file in zipped format so you may test this for yourselves and possibly help me figure out what I am doing wrong.

[URL]

View 4 Replies

Professional :: Frame Rate Goes Down When Movie Isn't Visible, Can Stop It

Mar 4, 2011

I understand that in order to make it consume less CPU cycles flash player forces the player to only execute at 2fps (or some other ridiculously low amount) when the swf is no longer in focus (or even if it's still "in focus" but not being rendered to the screen by virtue of being in a section of the browser window that's scrolled offscreen.) Is there any possible way to change this? I have a 3D engine that needs to keep the FR up.

View 7 Replies

ActionScript 2.0 :: Movie Stop Before The Frame's Graphics Are Played?

Jul 20, 2004

When you put the stop(); action on a frame, does the frame's graphics get played before the movie stops, or does the movie stop before the frame's graphics are played?

View 2 Replies

ActionScript 3.0 :: Stop Embedded Swf Movie Clip On Exit Frame?

Dec 6, 2009

tv.addEventListener(Event.EXIT_FRAME, movie);function movie(event:Event):void{stop("tv");
}
 
i have dragged a video player from another swf, when i goto the next page the video keeps playing, unless i press the pause button,
 
i want it to stop if i exit the current frame.

View 1 Replies

CS3 :: Pages - Make Each Page Movie Clip Have A Fade Start And Fade End

Apr 12, 2010

flash version: CS3 AS2 Im having trouble making the pages for a website im working on. I have a row of buttons, and I want each one to open its corrisponding page ie. contact_us_button to open contact_us movie clip. the thing is I want each page to transition in and out. so when I click contact us, the contact us movie clip fades in and stops. When I click about us, the contact us movie clip fades out and about us fades in.

Is the way to do this to make each page movie clip have a fade start and fade end, and have it stop before the fade end, and on another page click continue playing the current clip to get the fade out and then open the new page movie clip?

View 4 Replies

ActionScript 2.0 :: Modify Fade In - Movie Image To Fade Back In From Alpha0 To Alpha 100 Before It Re-starts

Feb 4, 2010

I have a tweened movie which plays on a loop. A click on the image area stops the movie and the image fades nicely from alpha 100 to alpha 0. A second click brings the image back immediately to alpha 100 and the clip continues. I would like the movie image to fade back in from alpha0 to alpha 100 before it re-starts; (the reverse of the fade out). At the moment the re-appearence of the image is a crude jump. So far my ill informed tinkering has not worked.

[Code]...

View 4 Replies

ActionScript 2.0 :: Create A Flash Movie That Loops Through 11 Dynamic Images Continually With A Fade-in, Fade-out Each Image?

Nov 19, 2003

I would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image.

View 2 Replies

ActionScript 2.0 :: After Movie Clip Goto And Stop In Another Frame On Click Of Button

Feb 10, 2011

i am doing a simple project in which i have 2 frames in the main time line and a movieclip in the first frame and a button.i have something else in the second frame.when i click the button the movieclip should start after it ends the timeline should move to second frame and stop.

View 7 Replies

ActionScript 3.0 :: Movie Clips Fade In / Fade Out With Tweener

Jan 5, 2010

This is very Newb. I'm having issues using Tweener, AS2, AS3. I'm trying to have 3 movie clips fade in and out sequentially, each one fading in over 2-3 seconds, staying on screen for 6 seconds, then fading out. I would like all 3 clips to loop. Im trying to use Tweener for the first time.

[Code]...

View 2 Replies







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