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


Similar Posts:


ActionScript 3.0 :: Fading MovieClips In And Out Randomly

Mar 16, 2009

I'm trying to fade in and out some movie clips using the Tween class, but am having problems. I have the following code which fades in my movie clips:

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
// Fade in and out
var myTween1:Tween = new Tween(wds_mt, "alpha", Regular.easeIn, 0, 0.5, 100, false);
var myTween2:Tween = new Tween(wds_sf, "alpha", Regular.easeIn, 0, 0.5, 150, false);
var myTween3:Tween = new Tween(wds_hush, "alpha", Regular.easeIn, 0, 0.5, 120, false);
var myTween4:Tween = new Tween(wds_10, "alpha", Regular.easeIn, 0, 0.5, 300, false);
var myTween5:Tween = new Tween(wds_uf, "alpha", Regular.easeIn, 0, 0.5, 210, false);

However, I need to fade them out and then loop the fade in-out animation forever.

View 6 Replies

ActionScript 3.0 :: Movieclips Fading Out Using Tween Class?

Jun 2, 2010

I've just started on my first AS3 project and have already run into a problem. Can someone please tell me why the following code is not working correctly. What's NOT happening is that the mc that is passed to the scalethis function is NOT alpha'ing to 0 and I can't for the life of me understand why.

PHP Code:
package
{

[code]....

View 7 Replies

ActionScript 2.0 :: Multiple Movieclips Fading And Unfading?

Mar 11, 2005

I have 36 instances of one movieclip (called panel1, panel2...panel36) that I want to fade and unfade depending on whether the mouse has rolled over that one instance, I tried this code, which works when there is only one instance, but not when multiple.

Code:
_root.onEnterFrame = function () {
for (i = 0; i < 36; i++) {

[code]...

View 2 Replies

ActionScript 2.0 :: Movieclips Get Smaller At The Same Time As Fading?

Aug 1, 2003

The following actionscript is some that I got from lostinbeta from an alpha fade question I had, that works fine but I now would like to have the movieclips get smaller at the same time as fading. So I put in some code that went like this

[AS]
//set the transform
mc._xscale = (i*10);
mc._yscale = (i*10);

[Code]...

View 14 Replies

ActionScript 2.0 :: [Flash] Blending/Fading Movieclips?

Sep 23, 2009

Below I have actionscript that plays movieclips in my library at random. How can I add to this to blend(fade) the movieclips into each other so that when the movieclip is done, it doesnt fade to white it simply fades/blends into the next movieclip/slide?

Code:
var MCs = new Array("mc1", "mc2", "mc3", "mc4", "mc5");
var selectedMC = MCs[Math.floor(Math.random() * MCs.length)];

[code].....

View 1 Replies

IDE :: Fading MovieClips Based On Cue Points Of Playing FLV

Oct 26, 2009

I'm trying to trigger some events (fading of nearby movieclips) based on cue points of a currently playing FLV. I'm using the FLVPlayback component (not Netstream) and have added cue points from inside flash (so they're "Actionscript" type). I actually found a nice article here: [URL] but it's AS2. To put it simply, let's say I have the following:

1) FLVPlayback component which has a parameter called "movie.flv" for the clip that it's supposed to play.
2) The instance of the component is called "movie_inst".
3) There are 2 cue points added through the component's parameters rollout, one called "point1", another called "point2".

What's the simplest code to tell flash "when you get to point1 I want you to do ___"?

View 1 Replies

ActionScript 2.0 :: Three MovieClips On Stage - Fading Loaded Images

Jun 9, 2010

I'm still new to flash and I'm working on image transition. I have 3 movie clips on the main stage, frame 1. The 3 clips are called 'mc1', 'mc2' and 'mc3'. I've managed to load images in to the 3 movie clips by calling a php script (Select.php) to pass the image paths back to my flash movie in an array. This is all the actionscript I have on frame 1:

Code:
myVars = new LoadVars()
// Load the vars from the external Php file
myVars.load("Select.php")
myVars.onLoad = function(success) {
// Split the variables
[Code] .....

This seems to work ok. Now I want to fade the images in rather than have them just pop up. I think I'll need to put in some kind of pause to wait until the images are loaded before I try any fading but I don't know how to do that. What I need to do to fade my images in once they have loaded rather than just have them pop up?

View 5 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

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







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