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
Similar Posts:
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
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
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
Apr 19, 2010
I want to reduce the alpha of a movie clip when mouse is rollOver the movie , the alpha will be continuously reducing over frames, i dont want to use tween.
[Code]...
i this code when i rollOver the mouse on a movie clip, it shows the alpha reducing over time , and at roll out alpha increases over time. but if i rollOver and rollOut in fractions of seconds , it flickers (like 60-100 instead of from the current alpha lvl), So i am looking for some code that can help me in fixing this problem.
View 1 Replies
Aug 4, 2011
var sprite1:Sprite = new Sprite();
sprite1.graphics.lineStyle(2,0x000000);
sprite1.graphics.beginFill(0xCCCCCC);
[code].....
View 2 Replies
May 6, 2009
I like the mouse cursor to change to another object (like zoom lens) when rollover a certain area.but only for this area, when rollout of this area the cursor should be as per normal.[code]...
but that means the cursor have to change to a new object throughout the flash.
what i want is for the cursor to change just only on one area and the rest remain as usual.
View 1 Replies
Mar 9, 2007
I want to rollover an object to enable an object tween and it works great except that the mouse changes to a pointer-hand and that might throw people off thinking that they could click the object...Is there any way to keep the pointer an arrow for just this one clip on rollover?
View 1 Replies
Mar 1, 2007
how can I make the rollover of a button to do not change the mouse to the hand, keeping the arrow?
View 3 Replies
Jul 26, 2009
I'm using actionscript 1.0 and 2.0 on flash Pro 8 and keep getting an error when I test the movie. Here is the error:
[Code]...
I've tried to create this rollover navigation...starting over 6 times already. Is there different language / coding for 1.0 and 2.0? I don't understand what I'm doing wrong.
View 1 Replies
Jun 23, 2010
how to fade in / out the movieclip using actionscript with ease.. ?
View 5 Replies
Sep 6, 2006
I have 2 objects on stage.a movie clip called btn1. and another movie clip called icon1.I would like to know how to script an action such that when the mouse is rolled over btn1, ...two things happen....first that icon1 scales from 0 to 100% of the size that it currently is.and secondly that it's alpha changes from 0 to 100% as it scales up.That's it.To get an idea of the entire setup... there are basically sets of these btns and icons ...and I would like the icon to appear for each button in the fashion described above when the corresponding button is rolled over.
View 10 Replies
Feb 19, 2004
i think this is like the 5th time i'm asking this question, i'll ask it differently this time. I just want the button to fade out on rollover. at the same time, i would like text (that is loaded externally in a text field called "caption") to fade in also on rollover.
View 6 Replies
Jul 6, 2010
I have a button with a text in it called Test1.
I want to change the text of the button in Test2 on RollOver over this button which instance name is btn1.
Initially the color of text of button is black. I also want on rollover to change it to white.
[Code]...
View 2 Replies
Feb 19, 2004
i'll ask it differently this time. I just want the button to fade out on rollover. at the same time, i would like text (that is loaded externally in a text field called "caption") to fade in also on rollover. i've tried sooooo many things - scavenging this board and others.
View 6 Replies
May 30, 2010
Does anyone know how I can achieve the following effect: As I rollOver one object, everything on the stage except that object fades out slightly (i.e. change in alpha).
View 1 Replies
May 15, 2009
how to increase the alpha of a movie clip when you rollover a button.
View 1 Replies
Aug 23, 2003
I have built a little script for gradual alpha fading in and fading out on RollOver and RollOut.
on (rollOver) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (100-this.mvWhathandset._alpha)/20; };
} on (rollOut) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (0-this.mvWhathandset._alpha)/10;
};}
If you rollover and rollout a single instance it works perfectly. When I place two instances side by side (alterning the instance name for each script obviously) and move the mouse over each of them the script falls to pieces, with one instance stopping the other and generally screwing things up!
View 7 Replies
Nov 17, 2009
another rollover question dealing with changing the opacity of the button. Anyways. after digging through the site I found this:
[Code]...
View 1 Replies
Jan 12, 2010
where on rollover of a button, the surrounding fade(alpha decrease) and on rollout, it returns to normal.
View 3 Replies
Sep 14, 2009
I am new to Flash and am using Flash CS4. Can someone send me the code to make a top picture fade out to reveal a photo underneath when hovering with a mouse and then fade back in after you move the mouse?
View 3 Replies
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
Nov 6, 2007
What I'm trying to do is have an object go from 0% and fade to 100% when I move the mouse cursor over it.
For the life of me, I can't figure out the code to work this. I'm sure this is the easiest thing on the planet, but I've been working with AS for only about a week.
I've made the object a button symbol and given it an instance name of "btRed." I found the following code in the help file, but it isn't working.
function fadeBlock(event:MouseEvent):void {
btRed.alpha = 1;
btRed.addEventListener(MouseEvent.mouseOver, fadeBlock);
}
View 14 Replies
Nov 3, 2009
I have some png images which were converted to movieclips and exported. I would like all clicks on the transparent parts of the png to be ignored by a movie clip on a closer layer and have a movie clip under the transparent parts receive the event. Is there a way to do this? When I convert the symbol to a movie clip, the authoring tool automatically puts a bounding box on it so all clicks in the bounding box are detected. I tried searching mouse events and alpha channel stuff on the forum.
View 3 Replies
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
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
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
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
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
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