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


Similar Posts:


ActionScript 3.0 :: Use Tween Class To Apply Filters To MovieClips?

Jul 24, 2009

How can I use the Tween class to apply filters to movieClips?
 
i want to apply a DropShadow through a tween so that it applys smoothly. Actually i want it to apply on rollover and remove itself on rollout.

View 1 Replies

ActionScript 2.0 :: Animation With Tween Class Is Duplicating Movieclips?

Jan 6, 2006

if you'll look at [URL] let it load and then click on FASHION. All goes well. Then click on HOME. All goes well. Now click on FASHION again. after you've done each card once duplicate movie clips start popping up, but I've not called any such function. Here's my code.

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
if (_root.nextCard == "Home") {

[Code]....

View 2 Replies

Actionscript 2.0 :: Array Button Menu That Fades MovieClips With Tween Class?

May 19, 2009

The first on is using the Tweener class and everytime that I press a button it fades out the loaded content of the previous selection, waits for it to finish and then loads the content of the button pressed. Everything works fine with this part.The second code is the on that is using an Array to dynamicaly rollover, rollout and keep selected the buttons.It was also changing the content of the mc that everything is loaded on but without this fancy fade in - fade out...!So i think its time for some code now...:

Code: Select allimport mx.transitions.*;
import mx.transitions.easing.Strong;
var FADEINSTART:Number = 2;
var FADEINSTOP:Number = 7;

[code]....

Ive managed to make the previous mc to fade out but cant really make everything work properly...!

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

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 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 2.0 :: Tween Class If Moved Mc Passed Point Start Another Tween

Jun 21, 2006

Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate. ie starting the second mc moving while the first tween is still moving.

View 1 Replies

IDE :: Movie Clips Contents Alpha At Different Rate During Tween Class Tween

Mar 4, 2010

If i have a clip with a bunch of stuff inside it (on layers) like other clips, bitmaps, etc. and perform a tween on that clip (via tween class), the stuff inside the clip seems to alpha at different rates.

For instance, i have a clip with an empty movieclip which loads a bitmap image and on top of the bitmap image, i have a gradient feathered edge (.png) bitmap and on top of that I have some dynamic text (embedded fonts).

The bitmap is supposed to create a feathered edge on the photo but since they alpha at different rates, you always see the hard edge of the photo...

is there a solution like cacheAsBitmap which would let the whole clip alpha at once? If it's cacheAsBitmap, i must be using it incorrectly, b/c it's not working!

View 1 Replies

ActionScript 1/2 :: Change Tween Properties Outside Constructor In Tween Class?

Oct 2, 2010

Am trying to use the Tween class to scale and move a movieclip. Now the movieclip is within the loader, so I need the motion to be controlled by the percentage loaded. Now the code to move the movieclip to its final position is:

var xscaletween:Tween = new Tween(mstone, "_xscale", Regular.easeOut, mstone._xscale, 220, 6, true);

But this is the final location, I want to be able to change the properties of xscaletween, yscaletween, xmovetween and ymovetween as per percentage loaded.As in, within this final boundary limit of the tween, I want, for example, xscaletween, to scale only till 140 till percentage hits 50. Is this possible?? If not is there a workaround?Or do I have to use new tweens within each percentage limit?

View 1 Replies

ActionScript 3.0 :: Tween Class - Tween Back To The Original Position?

Oct 27, 2009

I am trying to understand the thinking behind motion tweening using AS3 (rather than doing it on the timeline).I am trying to create a simple platform game, and while this is simply a learning project, I have an movieclip instance on the stage, and using basic x+5 logic I can get the instance to move left and right on the stage accordingly.Trying to make the instance 'jump' is a bit trickier. This is the code I am using:

ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;[code].....

I thought this code would move the instance from it's current y-position and tween it to it's highest jump point. From here I planned to use a MOTION.FINISH event to tell it to tween back to it's original position.Something strage happens though, rather than tween from the current y position and move up, the instance instantly transforms it's position to y+100 and then tween back to the original position. So it kind of turns out that it is the second part of the jumping action that I want to create.

View 2 Replies

ActionScript 1/2 :: Making A Tween Without Using The Tween Class?

Oct 25, 2010

Is there any way to make a movie clip start at a given x and y point, and ends at another x and y point, in 90 seconds?m not getting a good result.The main problem is, I want the movie clip to travel along a straight line. And by this code below the "b" movie clips makes some curves.Heres what Ive done.

"p" is point movie clip
"b" is ball movie clip
fullTime = 90000;_currentTime = fullTime;oldTime = undefined;onEnterFrame = function () {if

[code]........

View 16 Replies

ActionScript 1/2 :: Making A Tween Without Using The Tween Class Take 2?

Oct 26, 2010

If you try to make a movie clip travel along a rectangle diagonal within 90 seconds, the movie clip makes some curves.

View 5 Replies

ActionScript 2.0 :: Tween A Number Using The Tween Class

May 13, 2006

What I want to do is tween a number from lets say 0 to 50 using the Tween class. The below is an example of my tween but it wasn't working (*NOTE* i'm using TweenExtended but if you change the tween to Tween only it will be the same thing, i just have a habit of using the TweenExtended class):

[Code]...

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

Flex :: Use Tween For MovieClips In A 4.5 Application?

Aug 24, 2011

I am trying to port a pure Flash/AS3 card game to Flex 4.5.

It works mostly well, but I'm missing few puzzle parts there:

I've created a custom component based on UIComponent representing a deck of cards (which are an array of Sprites or MovieClips):

In the original pure Flash/AS3 game I was using Tween for the 3 cards at the table - to show the game user, who has put which card (by sliding them towards playing table middle):

import fl.transitions.*;
import fl.transitions.easing.*;
public class Deck extends UIComponent {

[Code]....

However Flash Builder 4.5 doesn't seem to know fl.transitions.* packages at all?

Like I've written the rest (my custom Flex component, moving card-Sprites around, etc.) works well. Only the Tween lines had to be commented.

View 2 Replies

ActionScript 3.0 :: Tween MovieClips Using Target.name?

May 31, 2011

I think this solution should be simple but I think I am missing something about using event.target.name.I have multiple (over 30) MovieClip images on stage with alpha of zero and I would like to have them fade in on MouseEvent.CLICK while removing the current image showing. While I can code it to work for a single image I want to use this.target.name to have more efficient code.

[Code]...

View 3 Replies

ActionScript 3.0 :: How To Get Tween To Work Between Three MovieClips

Oct 15, 2010

I am fairly new to AS3 and I have a page on my site that navigates between 3 different movie clips using frame based navigation. I have action script on each of the 3 frames to move between the movie clips and that works just fine but i can't seem to get the tween to work on more than just one movie clip. Here's the code from the first frame:

Code:
Select all//load page
page2.addEventListener(MouseEvent.CLICK, clickSection);
function clickSection(evtObj:MouseEvent) {
//go to the frame clicked on...
gotoAndStop(evtObj.target.name);
//animate between pages
new Tween(page2_mc, "x", Regular.easeOut, 0,260,1, true);
new Tween(page1_mc, "x", Regular.easeOut, 0,260,1, true);
new Tween(page3_mc, "x", Regular.easeOut, 0,260,1, true);
}
Whatever movie clip I put in the first tween will animate but the other two won't.

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

ActionScript 3.0 :: Class Linkage - Generic Class Accessible To All MovieClips From Within Flash?

Feb 23, 2011

Assume I know practically nothing about AS3! I'm using Flash Pro CS5. I'm trying to reassociate a flash file I've been given with its external assets and classes. In the library I have a movieclip with linkage to a class called 'StaticMap' using the base class 'flash.display.MovieClip'. am I missing a custom class file called 'StaticMap.as' that was originally located in the same folder as the fla, or is this a generic class accessible to all movieClips from within Flash?

View 7 Replies

ActionScript 3.0 :: Tween MovieClips - Proportional Scaling X And Y

Jan 28, 2011

I'm currently using the Tween-class to tween my movieclips (just the basics as x-position, etc.). But I'm struggling to tween scaleX and scaleY as the tween does not seem to take care of the centerpoint of the movieclip. I want the movieclip to scale proportional and not just from left to right.

View 3 Replies

ActionScript 3.0 :: Loading Random Movieclips With Tween Effect?

Nov 29, 2009

i want to random load some movieclips i made with a tween effect.i made this code but it's not working good, i get some errors, maybe u fixing this code or come with another

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

[code].....

View 7 Replies

ActionScript 3.0 :: Interactive Map - Creating A Color Tween For Movieclips

Mar 3, 2010

I am currently working on a map of the US that is interactive. My goal is to be able to mouse over the states and have them turn red and then a window with contact information will open at your mouse when clicked. I am running into a few problems. I dont know the process for creating a color tween for my movieclips. my solution was to make a copy of the states, color them red and place them behind the gray ones and attatch an event listener to all the states that lowers their alpha when moused over. thats not really the problem though. for my code that i have used to call in the window is as follows. I will use texas as an example.

[Code]...

View 5 Replies

ActionScript 2.0 :: Controlling MovieClips - Separate Graphic With Tween

Oct 30, 2010

I'm having some trouble with the attached file, I've tried lots of things but just can't seem to control the movie clip. On click on 'Detailing' from the landing page a new slide *slides onto the stage 'content3'. Within this I have added a separate graphic with a tween 'gr_detailcopytest'. I want it to start only when it lands within the main stage's masked area. I also want the tween to stop too after its played out. I have tried adding a stop action at the end of the tween but this stops the tween altogether - Furthermore, when I click on another menu item and go back to 'Detailing' I want the tween to start again.

View 6 Replies







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