ActionScript 3.0 :: How To Change Alpha Of A "container"

Jun 2, 2011

I have 4 btn (text1, text2, text3, text4) in the "left_side" and each of those change "contain1" to "contain4".contain1, contain2, ... are all in my library and my btnthat's the code:

import fl.transitions.*;
import fl.transitions.easing.*;
// claim MCs from library to use on stage when needed using addChild

[code].....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Alpha Gradient Mask_in A Container?

Jan 1, 2010

Im using a movie clip to mask out another movieclip(layer).This works fine with below code:

maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");

but when that swf is imported into a container in my main movie the masking does not work.

View 7 Replies

ActionScript 2.0 :: Change Alpha Using It?

May 9, 2005

I have created a finite menu and it works fine, the only problem is that now I want to have the menu set to 50% alpha and when the user moves the mouse over the menu it gradually increases to 100%

View 14 Replies

ActionScript 3.0 :: Change Alpha Of An Array?

Apr 16, 2010

I am trying to dynamically change the alpha value of a set of movieclips on a timer.  The timer works but I get an error message from the function. This is the error:
 
TypeError: Error #1010: A term is undefined and has no properties. at piedacoulisse_timer_fla:MainTimeline/zoom/piedacoulisse_timer_fla:onT ime()[piedacoulisse_timer_fla.MainTimeline::frame1:124] at

[Code].....

View 5 Replies

ActionScript 3.0 :: Alpha Change On Rollover?

Apr 26, 2010

Im very new in the flash business and i started making a gallery after this videoi get 2 errors when i write te action code for alpha change. Is it because i use ActionScript3 instead of 2? because i made it with flash CS3.

View 8 Replies

ActionScript 3.0 :: How To Change Alpha Value On MovieClip

Jul 12, 2010

Basically, I want to change the alpha value on my movieclip. I start my mc with an alpha of .08 (8%).
mc.alpha = .08;
What I then want to do is increment it to .9 (90%) and when it hits that, decrement it back to .08, and then when it hits that, increment it again to .9 etc.

I have tried
if(mc.alpha==.9){
mc.alpha -= .01;
}else{
mc.alpha += .01;
}

View 7 Replies

ActionScript 3.0 :: Change Alpha In A Textfield?

Jan 20, 2012

From what I understand you can change the alpha value of a textfield to be fully transparent.  I would like to have chat output that fades after a while.  I was wondering if there was a way to change just a portion of the string inside of a text field to transparent.  The textColor does not have an alpha value.  I could just use multiple text fields but I would like to avoid doing that if possible for efficiency sake.

View 1 Replies

ActionScript 2.0 :: Change Alpha Value With Keypress?

Jun 18, 2009

I'm making a drawing API for my homepage. My homepage is exclusively created in Flash AS2... But I have a problem with my brush for the drawing API... I would like to change the opacity/alpha value of the brush, with keypress LEFT and RIGHT... But i can't get it to work!

Here is my code:

ActionScript Code:
lineThickness = 0;
selectedColor = "0x000000";

[Code]....

View 0 Replies

ActionScript 2.0 :: Change Alpha Value On Any Movieclip?

Jul 3, 2009

Ok. I am new again so I hope I am describing this correctly. I don't know the best way to do this but this is what I've dreamed up so far: I have a number of movie clips on my screen, all thumbnail sized images, each with an instance name (ex: tw_lifeoftheparty, tw_xmen, tw_xfiles, tw_diehard, etc.).

In each movieclip there are 2 layers: the thumbnail image(bottom layer) and a black border(top layer). The black border is an object named wk_border and isin each of the thumbnail movieclips.

I have given wk_border the same instance name in each thumbnail movieclip "border"

[Code]...

View 5 Replies

ActionScript 3.0 :: Change Alpha Of Mc On Stage With XML?

Nov 5, 2009

Let me try to explain what I'm doing. I have multiple movieClips (mc_aitkin, mc_anoka, there will be a lot more) on the stage that I want to change their alpha using data from an xml when it loads. I can isolate the info I want and trace it so it shows in output, but I'm not sure how to use it from there.

I've tried to convert the xml data to a number and do an if/else as shown below, but the only output I get is "not" (from a trace). So I'm guessing the if/else isn't recognizing the xml data as a number?

If I can resolve that, the next step will be to apply this function to the large number of mc's I'll have on the stage. Would that be with something like e.currentTarget.alpha = .5; ?? I don't think I can put it in the same changeAlpha function because there the property of 'e' would be undefined.[code]...

View 8 Replies

ActionScript 3.0 :: Change Alpha Value Of A Movieclip Through It?

Jan 18, 2010

How can i change the alpha value of a movieclip through actionscript?

View 1 Replies

ActionScript 3.0 :: Change Alpha With A Button?

May 22, 2010

I want to make a button to change the alpha of an instance but I dont know how to make it.

Thats what I want: When I click the button, then the movie clip appears (alpha 100)When I click the button again, then the movie clip disappears (alpha 0)

View 2 Replies

ActionScript 2.0 :: Change Button Alpha In It?

Sep 24, 2010

I am making a website/online gallery. I have all my buttons assigning a frame number or value eg. [code]...

and then have all different movie clips loading depending on the the 'frameno'

My problem is that i want the button alpha to change when you are on that page. So i am assuming it would be something along the lines of.[code]...

View 9 Replies

ActionScript 2.0 :: How To Change MovieClip Alpha

May 6, 2004

I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30. Here's the as:
onClipEvent(load) {
var alpha = blue._alpha;
alpha = 50;
var forwardA = true;
var changeA = true;
[Code] .....
Btw, "blue" is the MC that I want to change the alpha of, and this code is on that MC.

View 6 Replies

ActionScript 2.0 :: On Roll Over Alpha Change?

Feb 26, 2005

how to script a alpha change on roll over!

View 2 Replies

ActionScript 2.0 :: [MX] Change Alpha Settings On MC?

Jun 7, 2003

Is there a way to change Alpha settings on MC using AS? Something like this:

[Code]....

Im trying to duplicate the window effect on this weeks site of the week: [URL]

View 3 Replies

ActionScript 3.0 :: On MouseOver Change Alpha

May 7, 2010

I am quite new to actionscript 3 here is what I want to do: When the mouse hovers over a movieclip I want another movie clips alpha to go from 0% to 100% then when the mouse moves off of the movie clip the reverse happens.

View 2 Replies

ActionScript 2.0 :: On Roll Over Alpha Change

Feb 26, 2005

I do wonder how to script a alpha change on roll over!

View 2 Replies

ActionScript 2.0 :: Change Path To Container Movieclip

Jun 21, 2008

I've been going through the Transitions Between External SWF tutorials and all is going well except I wish to situate my buttons in a movieclip and not on the main timeline as the tutorial teaches. The tutorial does point out; 'If your buttons are not located on the main timeline, you will have to change the path to the container movieclip. If your buttons are not on the main timeline, you must change container to the appropriate path.'Does anyone know how I'd do that to the below code? (for some reason the code tags were messing up so I've just copy and pasted.)

[Code]...

View 5 Replies

ActionScript 3.0 :: Change Alpha On Individual Element?

Oct 2, 2010

I am working on a project for school using ActionScript 3. I have a matrix created with an animated movie clip. The matrix looks like a bunch of shapes changing size and color on the screen. I would like to have it so when I move my mouse moves over an individual shape in the matrix the alpha will change to be more transparent... like 0.5. I'm sure it would be a mouse move function, but I don't know how to write that part of the code.[code]...

View 16 Replies

ActionScript 3.0 :: Mouse Input To Change Alpha?

Jan 27, 2012

I'm running AS3 in Flash CS5 and I'm trying to make a box fade in when the mouse moves to the right.Here's my code thus far:

stage.addEventListener(MouseEvent.MOUSE_MOVE, changeAlpha);
function changeAlpha(event:MouseEvent) {
fader.DisplayObject.alpha =(root.mouseX/550);

[code].....

View 3 Replies

Actionscript 3 :: Alpha Change On Mouse Rollover?

Apr 27, 2011

Trying to make it so my text appears when I roll over the image:

gticar.addEventListener( MouseEvent.ROLL_OVER, roll );
function roll ( evt:MouseEvent ) {
gtiText.alpha = 1;
}

The alpha of the symbol is currently 0.Full Code View:

import flash.events.MouseEvent;
// Stop the showcase on the homepage (frame 2)
stop();

[code]...

View 2 Replies

ActionScript 3.0 :: Change Child Index And Alpha?

May 16, 2010

I have 10 movie clips on the stage all of them are on the same layer and the alpha property at 0.5.

I want a single movie clip to randomly move to the top of the other at timed intervals. This movie clip alpha property will change to 1 while the other movie clip will remain at 0.5

View 5 Replies

ActionScript 2.0 :: Change Alpha When Background Appears?

Sep 2, 2010

I made a form and i want it to be invisible until the background's alpha is 100% and dissappear when the backgrounds alpha is anything other than 100.

reserv_form is the form reservations_box is the background

this is what i have but it dosent work:

Code:
reserv_form._alpha = 0;
if (reservations_box._alpha = 100){
reserv_form._alpha = 100;

[Code]....

View 0 Replies

ActionScript 2.0 :: Change The Alpha Value Of The Visited Link's?

Feb 3, 2004

How can I change the alpha value of the visited link's?

View 2 Replies

ActionScript 2.0 :: Make Each Of Squares Change Alpha Every Second

Jul 28, 2004

I want to make each of the squares (pictured below) change alpha every second or so. (fading).Is actionscript needed to do this?

View 13 Replies

ActionScript 2.0 :: Change The Value Of The Alpha Setting Of An AttachedMovie?

Nov 2, 2005

is it possible to to change the value of the alpha setting of an attachedMovie

I have

Code:
function attachBk (thisBk, nextBk):Void {
if (thisBk == undefined) {
this.attachMovie(nextBk,"bkHolder1", this.getNextHighestDepth());

[Code]....

When I click a button I want bkHolder1 to fade out but so far I haven't had any success, I tried doing bkHolder1._alpha = 0 just to see if it would affect it's property but it didn't.

View 4 Replies

ActionScript 2.0 :: Alpha Change All Buttons On Rollover

Jan 9, 2010

I have a bunch of thumbnails which I want to be treated the same on rollover/rollout/press. Right now, I have it working so that the alpha changes on all of them on rollover/rollout/press, but to do that, I have a code for each individual thumbnail, and I know there has to be a way to just have one code that applies to all of them instead of repeating so much (but I'm just not sure how to do it). This is what I have right now:

[Code]...

View 9 Replies

ActionScript 2.0 :: Change The Alpha Of A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to change the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. can't change alpha and find a component that allows alpha control with a dynamic text box.

View 5 Replies

ActionScript 3.0 :: Change Alpha Of Movie Clip OnMouseMove?

Apr 6, 2010

I'm new to action script and was wondering how to change the alpha of a movieclip from 0 to 100% gradually or instantly when the mouse is moved ( like the navigation bar on a media player) when the mouse is still i want the alpha to be at 0, i am totally new to actionscript but am familiar with code syntax.

View 2 Replies







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