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


Similar Posts:


Flash Site Loading Time On Smaller Bandwidths

May 9, 2009

I have a lot of questions about how to optimally load my newly created flash site (very large file size). I have created an entire site in Flash (one swf). It will take quite some time to load on smaller bandwidths, so I am wondering: Is there a way to have the main movie clip load, with the others loading in the background, instead of the user having to wait for the entire site to load.

Also, if I add a preloader to the entire swf, how can I get the flash movie to start before it reaches 100%? If not, is there a way to add preloaders to individual movie clips within the site. If not, how can I quickly break my fla apart and make my movie clips into separate swfs. After this, how do I add preloaders to those? Any general tips to greatly reduce fla or swf file sizes?

View 1 Replies

Professional :: Stretch Or Make The Time Line Smaller Or Consolidate It?

Aug 8, 2011

how do I consolidate adobe flash arrange window area so that I can make my time line small to be able to see the whole movie with keyframes how I want to see them.  there are some times I have to scrool alway the way right, how do i avoide from doing this?
  
Something similar to how adobes audition stretches waves is this possible to do in your timeline?

View 6 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 2.0 :: Photo Gallery - Make The Image Window Smaller And The Overall Movie Smaller?

Jun 25, 2004

I found this really neat photo gallery on flashkit but there is no support or readme included. how to size this thing.. the AS code does have comments but I am not a coder.I'd like to make the image window smaller and the overall movie smaller. 325x325 or so

View 10 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 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 :: [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 :: Time Delay Picture Fading?

May 17, 2002

Im trying to fade 4 pictures in and out.I want a 30 second delay between each photo. From what it looks like in order to use timer function each photo would have to be in its own movie clip.

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 2.0 :: 2nd Time Movieclip Loads Tweens - Half Fading In / Out And Half Jumping From One Alpha Value To Another

Jun 18, 2006

I have a movieclip with an image fading in and out (using an actionscript tween class set to yoyo). This movieclip is loaded into a dummy movieclip when a button is pressed. The first time you click the button the fading movieclip plays as it should, fading in and out continuously. However, the second or subsequent times the button is clicked the fading movieclip goes crazy, half fading in/out and half jumping from one alpha value to another.

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

ActionScript 3.0 :: Control Several Movieclips At Same Time?

Aug 28, 2009

Suppose I have movie clips named mc1,mc2,mc3,mc4... In as2[code]...

View 1 Replies

ActionScript 2.0 :: Load MovieClips At A Certain Time?

Dec 16, 2009

Every 5 minutes, a new movieclip should be loaded.These movieclips show a message 'still 20 min to go', 'still 15 min to go', ...

The project should start by a button in the first movieclip.

View 2 Replies

ActionScript 1/2 :: Changing Lots Of Movieclips At The Same Time?

Aug 11, 2009

Is there a way to make many movieclips change the same way, off the same line of code.. rather than having to write them all out seperatly?
 
eg.
 
If this was the original code...
 
clip1_mc.onRollOver = function () {
clip2_mc._visible = false;
clip3_mc._visible = false;

[Code]....

The above doesn't work... but i'm wondering if anyone knows of a method that will work... saving me from having to write so much code in future?

View 3 Replies

ActionScript 3.0 :: Duplicating Run-time Generated Movieclips?

Aug 24, 2009

Currently I have a function that makes a movieclip copied from one specified in the GUI,moves it to a certain point on the stage, then ends. This is called several times to create various patterns etc on the stage.

Code shown below:Code:
function draw_block( iX, iY , sBlockName )
{

[code]....

View 11 Replies

ActionScript 3.0 :: Working With Lots Of Movieclips At The Same Time?

May 14, 2010

I'm a game developer and I have been (trying) to optimize an engine I'm making for my game. So far I have done almost every code trick there is (almost, because I'm not even close to be a professional programmer so I don't know how to do this perfectly )The game is working very smoothly now, I'm impressed, but its still generating some issues with MovieClips. When I load a new map, it loads up a movieclip that contains all the ingame objects (Screen). Inside, I add all the enemies, player and map elements I need. After that, I sort the index of the objects inside it by their position on Y.

While this works fine (using vector), my problem is that each map has like 30-40 movieclips (like doors, walls, etc), plus the player (another movieclip), plus some objects (20-30 movieclips), plus some enemies (10-40) movieclips... and when I move the camera (following the player), all the flash window area needs to refresh, and generates lag. If I only have the doors, walls and player, it runs ok... but when I start adding the enemies and other objects... Is there any efficient way to work with movieclips? Notice 90% of map elements like doors and walls are a movieclip with only one frame.

View 1 Replies

ActionScript 2.0 :: Control MovieClips Depending On Time

Oct 25, 2005

I download a tutorial to make a digital clock now what I want to do is make my movieclips go to a different frame depending of the hour. I want to make that effect of day/night.

View 6 Replies

ActionScript 1/2 :: Moving 2 Different MovieClips At Same Time OnPress Function

Jun 17, 2010

I am using the following code to simulate a volume control bar filling on vol+ and unfilling on vol-. The dragger is a mask that causes the fill to appear and disappear when the mouse is pressed and dragged on the volume controller. It works well, but I would like to add a "switch" that moves at the same time and in the same location as the fill, but on top of it... I created the movieClip for the switch and tried all kinds of variations to the following code with its instance in the code, but cant seem to get it working... below is the code which works with just the mask filling / unfilling.

this.ratio = 0;dragger.onPress = function() {this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function() {
ratio = Math.round(this._x*100/line._width);
_root.volume = ratio; }; };
dragger.onRelease = dragger.onRelease=stopDrag;

View 3 Replies

ActionScript 2.0 :: Make Function To Process Few Movieclips At The Same Time?

Sep 4, 2007

I have a problem when few movieclips calls the same function, every movie clip when it is onMouseOver give to the function their properties witch function process.

If i OnMouseOver a few movieclips at the time the function cant calculate every movieclip alone... Maybe i have to put some array.. ??? i dont know..

On OnMouseOver the movieclips move i random direction and when i passes 15 seconds they return to their original place..

View 5 Replies

Actionscript :: Create Objects (movieclips) In Execution Time On Flash?

Jul 18, 2010

I have a movie clip who is only a square, i need to copy it on the flash stage a number of times (dinamic). How can i do this in execution time, i know AS2, so i prefer a solution in AS2.

View 2 Replies

IDE :: Make The Movieclips That Act As Buttons Play Certain Frame On Time Line?

Feb 24, 2009

URL...My question is how can i make the movieclips that act as buttons play a certain frame on my time line? ....i don't know where or what to insert.

View 1 Replies

Actionscript 3 :: Attach Movieclips In A Movieclip From Main Time Line Dynamically?

Feb 15, 2012

I've a movieClip called "picChange" and inside that movieClip, there is another movieClip called "picFrame" and inside that movieClip there are three movieClips called "HolderL1", "HolderL2", "HolderL3". I use these 3 movieClips to attach movieClips(questions for game) from library. I put movieClip inside movieClip to add some animation while it loads. I used following code:

for(var i:int = 0; i<3; i++) {
var pic_mc:String = "picLeft" + ranque[i];
var que_mc_class:Class = getDefinitionByName(pic_mc) as Class;

[code].....

View 2 Replies

Can't Get File To Be Smaller

May 4, 2010

I've been trying to get this png file as small as possible. It's currently 96kb and I'm going to use it for banner ads. Most limits are 40kb. When I compress this down and reduce the quality to about 50 it only gets me down to 50kb. Still over. I've tried converting it to a vector and a few other things but no luck.how I can get this as small as possible while preserving the blank background?

View 7 Replies

Can't Get Png File To Be Smaller Than 50k

May 4, 2010

I've been trying to get this png file as small as possible. It's  currently 96kb and I'm going to use it for banner ads. Most limits are  40kb. When I compress this down and reduce the quality to about 50 it  only gets me down to 50kb. Still over. I've tried converting it to a vector and a few other things but no luck. how I can get  this as small as possible while preserving the blank background?[url]...

View 2 Replies







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