ActionScript 2.0 :: Making MovieClip Fade Out On Stage?

Apr 13, 2006

I have on my stage different sub menues which Id like to have fade out when I press a certain button. Thought I could do with _alpha, but I only fades a certain procentage. Not all the way.

ActionScript Code:
on (press) {</p>
<p>_root.contact._alpha -= 5;</p>
<p> if (_root.contact._alpha<10) {</p>
<p> _root.contact._alpha = 0;</p>
<p> }}

Which I thought would work, but it only fades it 5% add a time. How do I make it fade completely?

View 5 Replies


Similar Posts:


ActionScript 2.0 :: SwapDepth - SetTimeout - MovieClip To Fade Out - Pause Then A New MovieClip To Fade In

Jan 19, 2010

What have I done wrong here? I need a movieClip to fade out, pause, then a new movieClip to fade in.

[Code]....

What I've tried to do is to set the target_MC alpha to 0 and fade out the current mc. Then when the fadeOut has completed to setTimeOut. After this the mcs will swapDepths and the target_MC should fade up to alpha = 0I've attached the flash and xml files. The images were too large.

View 2 Replies

ActionScript 2.0 :: Alpha Tween - Movieclip Containing The FLV Component To Load The Right File - Fade In And When The Video Ends - Fade Out

Oct 13, 2008

I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video. So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in. What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:

[Code]...

View 3 Replies

ActionScript 2.0 :: Making Photo Fade-ins/outs?

Jan 16, 2006

I want to make a flash header with a menu with 9 buttons and a changing photo for each (so 9 fotos). When you click on one menu button the current photo should fade out and the new foto should fade in (pretty much simultaneously so it is a nice transition). Now I don't want to make those picture fade-out and ins with tweens, because then i would have to make about 81 tweens..Instead, is there a way I could do this with AS?

View 1 Replies

Make A Fade In And Fade Out Movieclip?

Sep 9, 2009

I would like to make a fade in and fade out movieclip. However I want it so after it fades out, it will not loop and start over. In essence fade in and fade out and thats it.

View 1 Replies

ActionScript 1/2 :: MovieClip : Fade Out Then Fade In?

Jan 11, 2010

I need to produce an image gallery which when a thumbnail is pressed it loads a new image, fades out the previous image then fades in the new one.I have it fading in but I don't know how to fade the previous image out before.Here is my code so far:

import mx.transitions.Tween;import mx.transitions.easing.*;var imageLoader:MovieClipLoader = new MovieClipLoader() ;var imageListener:Object = new Object () ;imageLoader.addListener(imageListener); imageListener.onLoadInit = function()[code]....

View 3 Replies

ActionScript 2.0 :: Fade Out Old Movieclip, Fade In New One?

Feb 29, 2008

Ive been using flash for years (for animation) but ive only just started properly looking at actionscript.What Im doing is making a flash site, in which when you click a menu item the current page fades out, the new one fades in.Here is what I have:

Code:

var selectedPage = "home";
//attach home page
holder.attachMovie("home","selectedPage","1");[code]....

It works to the point of loading the home page, and then fading that out when i click a new item on the menu, but it doesnt seem to be loading a newpage in or fading back in.

View 1 Replies

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 :: 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

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 :: Making First Image Not Fading On Random Fade In-out Xml Based Slideshow?

Jun 14, 2010

im working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. That�s working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can i keep my slideshow working the same way but starting with the first image already on stage (without fade in)? My Code:

code: import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent; import com.greensock.*; import com.greensock.easing.*; var my_speed:Number; var my_total:Number; var my_images:XMLList; var my_loaders_array:Array=[]; var my_labels_array:Array=[]; var my_success_counter:Number=0; var my_playback_counter:Number=0; var my_slideshow:Sprite = new Sprite(); var[code]..........

View 1 Replies

ActionScript 3.0 :: Making First Image Not Fading On Random Fade In-out Xml Based Slideshow?

Jun 14, 2010

im working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. Thats working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can i keep my slideshow working the same way but starting with the first image already on stage (without fade in)?My Code:

ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 2.0 :: Fade In / Out While Mc Moves Across Stage

Dec 16, 2004

It's the first time I've used Flash in the last 9 months and I seem to have forgotten every single thing I've ever heard about Flash.*I have a movie clip ("test") that slides across the stage from left to right (or vice versa, doesn't matter) with a duration of 60 frames. I'd like it to begin sliding with an alpha of "0" and fade in to "100" within the first 15 frames, then I'd like it to fade out starting at frame 45 so that by the time it gets to the final frame (60) it's completely transparent again.

View 6 Replies

ActionScript 2.0 :: Fade In An Image That Is On The Stage

Feb 10, 2009

I want to fade in an image that is on the stage using actionscript 2.0. Up until now I have been putting the image on the stage at frame one, inserting a keyframe on frame twenty then creating the tweenbut this seems like an uneconomical way of doing things.

View 3 Replies

ActionScript 2.0 :: Fade In/out While Mc Moves Across Stage?

Dec 16, 2004

(Sorry for the double post - I had initially posted this in the MX 2004 forum, which is obviously the wrong place since my question relates to AS. Admins, feel free to delete my first post. Sorry for this.)

First off - apologies for yet another "fade question". It's the first time I've used Flash in the last 9 months and I seem to have forgotten every single thing I've ever heard about Flash.*

Here's my test scenario: I have a movie clip ("test") that slides across the stage from left to right (or vice versa, doesn't matter) with a duration of 60 frames. I'd like it to begin sliding with an alpha of "0" and fade in to "100" within the first 15 frames, then I'd like it to fade out starting at frame 45 so that by the time it gets to the final frame (60) it's completely transparent again.

View 5 Replies

ActionScript 2.0 :: AS Fade In/out While Mc Moves Across Stage?

Feb 21, 2005

I have a movie clip ("test") that slides across the stage from left to right (or vice versa, doesn't matter) with a duration of 60 frames. I'd like it to begin sliding with an alpha of "0" and fade in to "100" within the first 15 frames, then I'd like it to fade out starting at frame 45 so that by the time it gets to the final frame (60) it's completely transparent again.

View 7 Replies

ActionScript 2.0 :: Make The Specified Elements Fade In On Stage Once They Appear

Jan 29, 2005

I would like to fade in different elements I have on stage when my flash movie starts and would like to do this by using code rather than use the timeline. I have given Instance names to the elements (mc'c, graphics, buttons) and am looking for a simple piece of code (which easily lets me make changes to the duration of the fade) to make the specified elements fade in on stage once they appear.

View 2 Replies

ActionScript 2.0 :: [OOP] Class Silent - Fails To Fade The MC On Stage

Aug 5, 2006

The following class I've coded fails to fade the MC on stage. Could someone explain why the code fails?

[Code]....

View 1 Replies

ActionScript 3.0 :: Fade Out A Complete Stage When A Button Is Pressed

Sep 18, 2009

how to make the whole stage fade out when going to an external website. How can you achieve this effect when you pres a button?

View 4 Replies

ActionScript 2.0 :: Load Logo On Stage In A Fade In Manner

Mar 19, 2010

I want to load the logo on the stage in a fade in manner. What I mean to say that its alpha properties will increases gradually and once reached to 100 it will stop. But in my code it loops continuously . It is very easy for all of you but I have some confusion how to write the Delete on Enter Frame.

View 2 Replies

Resizing Stage Dimensions : Make An Image Fade To The Next Scene Without A Whiteout Or Blackout??

Apr 13, 2009

how I could re-size my stage?As well as, I would like to know how I could pan my moving animation horizontally/vertically? And is it possible to make an image fade to the next scene without a whiteout or blackout? How can I do this?

View 4 Replies

ActionScript 2.0 :: [Flash 8] SetInterval - Get A Series Of Concentric Rings To Appear On The Stage, Grow And Then Fade

Feb 18, 2008

I'm trying to get a series of concentric rings to appear on the stage, grow, and then fade. So far I have everything working just fine except the setInterval integration. If I run my function (placeRing) it drops a circle on the stage, which then swells until it fades away at the appropriate point. When I rely on setInterval to run the function for me, however, things no longer work. A trace statement in my function is displayed as expected once a second, but the movie clip isn't placed on the stage. I'm sure I'm missing something simple, but I haven't been able to figure it out.

[Code]...

View 2 Replies

Making Movie Clip Appear On Stage

Sep 27, 2009

Making a Comic book/Video game with Flash Action Script 2.0. Check out my blog ive uploaded a couple of demos on it.Anyways i want to make a movie clip appear on stage when the user finds a key. The movie clip would be used as a trigger to send the player into an other version of the second level where a door would now be unlockable (only if he has the key).I know how to make the hittest work its making the movie clip appear on stage with an action that is giving me problemes.

View 2 Replies

Fade Movieclip To Transparent

Sep 16, 2009

I have made a slideshow from this tutorial: [URL]

I have added a reflection, and it works just great. But i would like to make the right and the left side fade to transparent. I have tried to make a little demo here: [URL]

The first movie looks good, but only because I have faded from nothing to black and the background is black on the home page. And as you can see, the movie does not look that great, when the background is white.

I found this link: [URL], but I can't figure out how to implement it into my already "working" slideshow.

View 5 Replies

Making Something Happen After A Variable Has Been On The Stage For A Certain Time?

Dec 13, 2011

I'm making an Elder Scrolls type game and I want my enemies to hurt me after a certain time.So pretend like 5 seconds after they come on the stage they would take 5 hp off me.Then when one of the enemies die it stops until another enemy comes on the stage then it counts how long its been on the stage.This is what I have so far:

Actionscript Code:
var tmr1:Timer=new Timer(2800); var tmr2:Timer=new Timer(5000);

[code]...

View 1 Replies

ActionScript 3.0 :: Making Stage Follow Player?

Nov 21, 2009

I am trying to make the stage follow the player in AS3 (basically, so the 'view' follows the player and he remains in the center of the screen throughout).Here is what I tried:

Code:

this.x = player.x-stage.width/2;
this.y = player.y+stage.height/2;

View 4 Replies

ActionScript 3.0 :: Making Stage Follow Object?

Jan 1, 2010

Say I am moving an object around on the stage, walking from point A to B across the stage. I want to make the object the center, so the stage is centered on the object, so when I walk from point A to B the stage moves with me.

View 5 Replies

Flash Actionscript Movieclip Fade

Nov 11, 2010

I'm struggling with something rather simple in flash at the moment. Imagine you have two movieclips ontop of eachother. Both of these movieclips have identical movieclips within them. If I fade out the top movieclip I expect to see no change at all, but for some reason I can see the fade happen. It's like actionscript is fading out the sub movieclips independently. Anyone know how to get around this? I don't want to be able to see any fade at all.[code]

View 3 Replies

ActionScript 2.0 :: Fade Out A Movieclip And Go To And Play?

Feb 12, 2011

i'm trying to cobble together a working website for my photography. I would like to know if there is any actionscript that when a button is pressed on layer 1 it will fade out a movieclip on layer 2 and goto and play frame 5 i have the movieclip instance name set to "ran". This movie clip loads random pictures onto my website and here is the actionscript currently for it "_root.ran.attachMovie("img"+(random(8)+1),rand,1) ;"

View 9 Replies







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