ActionScript 2.0 :: Fading In An Object?

Jun 28, 2005

I found one code in this forum, and what this code does it moves an object to a specified _x _y coordinates, now i want to achieve the same thing but my object will be invisible and slowly fade in as it will ease at the final point. Here is the code:

MovieClip.prototype.ease = function(x,y){
this.onEnterFrame = function(){
this._x = x-(x-this._x)/1.1;
this._y = y-(y-this._y)/1.1

[code]....

i tried to add _visisble = false; at the beginning and _visible - true; at the end but it doesn't really fade in smoothly, instead its just jumps from invisible point to visible without fading in.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Fading Out And In Object (Text)

May 18, 2005

How to fade in & out an object using actionscript? I got some text and I want it faded out 1st, but when it slides in want to fade it in using actionscript cause this cuts down the file size than trying to do it using tween.

View 14 Replies

ActionScript 2.0 :: Fading Out A Sound Object After 2 Loops

Dec 10, 2006

I'm trying to figure out how I can fade out a sound object after it has looped twice. Right now the sound fades 5 seconds before the end of the first loop (since the fade code is based on the duration of the sound clip).Seems like there needs to be a way to count when the duration has been reached two times and then the fade code is executed. Note: the linkage identifier of the sound clip is "mainPageLoop".[code]...

View 1 Replies

ActionScript 3.0 :: Fading Out And Fading In 2 Flash Movie File

Mar 30, 2012

I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.

Here is the script of it:

var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);

[Code]....

View 2 Replies

ActionScript 1/2 :: Fading In An MC Works, Fading Out Doesn't?

Apr 7, 2009

I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!

[Code]...

View 7 Replies

ActionScript 2.0 :: [f5]fading Grid Not Fading?

Oct 11, 2003

when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in

View 5 Replies

ActionScript 2.0 :: Fading Grid Not Fading

Oct 11, 2003

i've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.

View 5 Replies

CS3 Fading Out Music?

Apr 11, 2009

so I have this scene in Flash where a song plays. However, once everything is done on the scene, the screen fades and it goes to the next one. I put a layer in the next one that stops the music, but it just suddenly stops without fade. Also it doesn't matter if I select FadeOut because it will still suddenly stop. If I put Event instead of Stop, the song just keeps playing.

View 1 Replies

Fading Words In And Out?

Jul 15, 2009

Anyway, I want to do something really basic and simple. I want to have a word fade in then fade out. Then another word in another place fade in and fade out.

View 1 Replies

ActionScript 2.0 :: Fading Out After 5 Sec?

Jul 22, 2010

how I might fade this banner out automatically after 5 seconds if it isn't clicked on by the user?

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(main_image, "_alpha", Strong.easeIn, 0, 100, 1.25, true);

[Code].....

View 4 Replies

IDE :: Fading On Xml Gallery

Feb 21, 2009

Ive made myself an xml gallery already, i just wanted to put a fade on the thumbnails and main images after they are fully loaded, so they appear gradually. thought it would be simple using the onLoadStart, onLoadProgress and onLoadComplete functions that are envoked by my movieClipLoader, but having soe problems with the images and thumbs disappearing a short time after fading. a link to what ive got so far is here, have a look and wait a while and youll see the thumbs, mains disappearing [URL] my code for the gallery is such (all contained in one frame, no buttons involved):

[Code]....

View 4 Replies

IDE :: Xml Gallery Fading Out?

Mar 25, 2009

I'm trying to mix the simple photo gallery code with the xml gallery. i'm trying to get the images to fade in and out like the simple gallery, yet have all the features of the xml gallery. I'd like to do this without making two different movie clips/xml files, like the simple gallery. Again, any help would be terrific. I'll post the two codes.

simple gallery:

loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;

[code]....

View 2 Replies

ActionScript 2.0 :: Fading In And Out In MX?

Sep 24, 2003

i am basically half way home, but I can't quite figure out how to make my movieclip gradually fade out. What I want is an arrow to appear and dissappear when the user is around some buttons. Here is my code:

stop();
speed = 5;
_root.onEnterFrame = function() {
greenArrow._x += (_xmouse-greenArrow._x)/speed;
if (_xmouse > 0 && _xmouse < 340 && _ymouse > 0 && _ymouse < 60) {
greenArrow._alpha += 10;

[Code]...

View 3 Replies

ActionScript 2.0 :: Fading A MC As A Solid?

Dec 16, 2007

I have a few movieclips that I am fading out alpha with actionscript

The problem is the MC is not a solid shape, it has layered shapes in it, so you can see all the shapes within it fading indivually

Is there a way of fading an MC as if it were a solid (bitmap?)

Is there an easy way of converting a vector mc into a bitmap in actionscript?

View 5 Replies

ActionScript 2.0 :: [CS3] Fading Between 2 Movieclips?

Feb 2, 2009

I've got two SWF files where one control what happens in the other using LocalConnect and would like to use opacity changes to make a nice transition between two movieclips in the receiving file. I want the two movieclips to fade nicely so I can't animate it because that would make a brake just as i hit the button.

This is the code in the SWF that sends the information.

Code:
btn01.onRelease = function() {
var sending_lc:LocalConnection = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", {targetName:"mc01", action:"play01"});
};

[code]....

View 1 Replies

CS3 Image Fading Not Smooth?

Apr 22, 2009

I created a slideshow where the images fade out and in using a motion tween from 0% alpha to 100% alpha in 15 frames. The fading doesn't look right to me it is very jagged. Is there a better way to do this. My files are too big to upload even when I tried to limit them to 3 images.

View 1 Replies

Fading Music With A Button?

May 13, 2010

So I have a button (currently loading a movieclip) and on the main stage there is a piece of music playing constantly while the user looks around the available options on the flash.

What I want to know, is there a way to fade out the music when the button is clicked?

Im using ActionScript 2.0 also :-)

View 2 Replies

Fading Text From Top To Bottom?

May 19, 2010

I have text that wraps around an image on a page and I want the text to fade in from top to bottom. I would have just made a gradient in Photoshop and then tweened it over the text. But the text wraps around an image and the gradient would cover the image.

View 2 Replies

ActionScript 3.0 :: Fading Out An Embedded Mp3

Feb 16, 2011

I have an mp3 on the timeline (which is 30secs long), but I'm looking to fade it out using actionscript as the timeline moves along... I was able to do this with AS2 using:

[Code]....

View 1 Replies

ActionScript 3.0 :: Fading Sound In And Out

Sep 2, 2008

I am putting a flash website together. It is a picture of a group of people standing outside and at random intervals a storm will fade in and out giving dynamic rain/wind/thunder sounds and lightning. The only problem I have is fading the sound out. The sound fades in fine with the movie clip but when the movie clip disappears the sound continue.Here is the code for that part of the flash. The "randomness" of the storm is set to very high probability on purpose for debugging reasons.

View 1 Replies

ActionScript 3.0 :: EventHandler: Fading Out Before Doing Something Else?

Aug 1, 2009

I would like the current page to fade out before another html page is loaded into the browser when clicking a link button. So I suppose the event handler needs to call a tween function, get the information when alpha of the main movieclip is 0, and then call the new URL.My wonder is how to make the handler read the alpha value of the main movieclip until it is 0, so that it can act upon it

View 4 Replies

Professional :: Get Photos Fading In And Out?

Jan 12, 2010

I want to create a swf of 5 photos that fade into each other. For example, black background, first photo fades up from alpha 0 to alpha 100 in one second, stays on screen for 4 seconds, then fades back to alpha 0 while the next photo fades up, etc, then the 5th photo fades back into the 1st photo and it loops.

What's the best, easiest way to accomplish this with cs4?

Also, if the jpgs are 980 x650 pixels and approx. 70 kb apiece, will I need a preloader if I'm going to use the swf as a header to my site?  If so, is there a simple, plug n play preloader I can use?

View 3 Replies

ActionScript 3.0 :: Fading In A Preloader?

Jan 19, 2012

So I've actually managed to set up a pre-loader and as of for now, they way I make my loading bar progress is by streching its x-axis. But how can I change that to make it fade in (animating its opacity from 0 to 100 %) instead of stretch?
 
Here's the actions for the preloader:
 
import flash.events.ProgressEvent;
import flash.events.Event;
stop();

[code]....

View 2 Replies

ActionScript 3.0 :: Fading Between A Scene On The Fly

Nov 1, 2010

Essentially im making a audio visualiser on flash for fun and learning OOP. I have made a group of classes used to create a set visuals dynamically changed from audio etc, I would like to now make another group of classes for a new set of visuals ("scene"). What I would like advise on is how would be a good way to transition between the two "scenes" with performance and more future expansion in mind. How would you approach this sort of thing?

Suppose I want to make a mini API sort of thing, so someone else could make a VJ scene and add to the collection or choose from a number of scenes to view. I only want it load when it has to.

View 0 Replies

ActionScript 3.0 :: Keep Alpha From Fading EVERYTHING

Mar 24, 2011

Here is a graphic I've been working on --[URL]

Ignore the black thing in the corner -- it's my measuring tool.

The problem is that whenever you click on one of the states (all movie clips), everything else on the frame takes on the alpha fade too!

How do I make the alpha attribute apply ONLY to the state?

View 8 Replies

ActionScript 3.0 :: Fading Out An Embedded Mp3?

Jun 24, 2009

I have an mp3 on the timeline (which is 30secs long), but I'm looking to fade it out using actionscript as the timeline moves along... I was able to do this with AS2 using:

Code:

s = new Sound( );
s.attachSound("intro_music");
s.setVolume(100);

[code]....

View 1 Replies

IDE :: Fading Images Using Actionscript

Sep 8, 2007

how to have say... 5 images fading from one to another, looping using action script. I found a tut which does it using tweening, that's simple enough but apparently action script will reduce the file size and make it smoother.

View 14 Replies

ActionScript 2.0 :: Fading Between The Pages?

Feb 7, 2008

I'm working on a gallery section for my site which is currently being made in flash CS3 (as1/2). And I'm wondering if it's possible to create a fade-out/in effect that occurs when you click on a button that redirects you to another scene/page... by making a transparent square (that fits in the canvas size) that would change opacity to 100% everytime I click on a certain button and when the page has loaded the square changes opacity to 0% again. Thus making it look like a fade in and fade out effect!A little hard to explain maybe, but if you can find some sites with similiar fade out effects, don't hesitate to post the links here

View 2 Replies

Actionscript :: IDE - Fading In And Out SLOWLY

Jun 9, 2009

I am not an actionscripter, but slowly learning. I have been using this code to fade a movie in and out. Simple for me, and works well.

[Code]...

Basically, what I am looking for is it to fade out to 15, then fade back in to 100, then back out to 15, and so on and so on. With the code above, it works fine, however, it doesn't fade in and out slow enough. If I change the diff variable to say .3, then it STOPS after it fades out. I would like somewhere around .1 or even .05, but of course, anything below .4 just stops fading once it hits 15.

View 5 Replies

IDE :: Mp3 Fading Mute Button?

Aug 2, 2009

i have an mp3 that plays as background music to my website with a mute button that fades the music in or out. This works using the code below that i found on another site.My problem is i would like to have this music added to an external swf that i could load into my main site in order to decrease the main site file size. When i load swf however, the music doesnt play. the button appears (which is also in the external swf) so i know that the movie is loading but no sound plays.

some_sound = new Sound();
some_sound.attachSound("Kevin Spacey 16bit.mp3");
some_sound.start();

[code].....

View 1 Replies







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