ActionScript 2.0 :: Alpha Fade In And Out When Rollover?
Jun 23, 2010how to fade in / out the movieclip using actionscript with ease.. ?
View 5 Replieshow to fade in / out the movieclip using actionscript with ease.. ?
View 5 Repliesi 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 Repliesi'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 RepliesI 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!
where on rollover of a button, the surrounding fade(alpha decrease) and on rollout, it returns to normal.
View 3 RepliesI have a tweened movie which plays on a loop. A click on the image area stops the movie and the image fades nicely from alpha 100 to alpha 0. A second click brings the image back immediately to alpha 100 and the clip continues. I would like the movie image to fade back in from alpha0 to alpha 100 before it re-starts; (the reverse of the fade out). At the moment the re-appearence of the image is a crude jump. So far my ill informed tinkering has not worked.
[Code]...
I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video. So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in. What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:
[Code]...
I've got a function 'onIntroFinished' which starts two tweens (musicPlayerIntro and fullResetBtnIntro). After each tween, an eventlistener is added to that particular tween to see when it's ended, so it can call on another function to start a new tween. The first tweens complete within the 'onIntroFinished' function....however, they don't go on to start the second tween in the 'musicPlayerIntro2' and 'fullResetBtnIntro2' functions? The trace statements are getting called for the second tween functions, so they're getting through to that point, but why aren't the tweens starting? Ocassionally when I test it, the second tweens half work, fading out to 50% alpha, but then stop and stay visible, rather than fully fading out. Is this necessarilly the best way to do a fade In/fade out alpha tween?
[Code]......
Does anyone know how to do this rollOver effect? [URL] Enter flash site and look at the rollOver buttons. I have the bar moving over each button but can't get it to fade out.
View 10 RepliesI'm designing a site for a friend and I have a menu bar across the top with 6 buttons. I made your basic rollover with CSS, but now I'm asked if something can be done about the abrupt change from the down state to the rollover state. Not knowing much at all about Flash, I thought this would be pretty simple and a good way to get acquainted with the program. But after spending hours today rummaging through Google I'm considering digging my eyes out with a spoon. It seems that no tutorial quite tells me what I need to do, and when I try to adapt what I'm told to what I need, it all stops working. There seems to be a dozen different ways to do the same thing and now I'm just really confused. So here is what I need:
When you mouse over the button, it quickly transitions/fades into the highlight/rollover image. When you move the cursor away, it fades back to normal. And *possibly* a quick transition to another highlight on click.
making a banner that fades out one image and increases visibility on another. Kind of like one of the Kirupa footers i saw on one of the tutorial pages. Here is the link. [URL] . As you drag to the right one image fades out and another becomes visible
View 3 RepliesI know this question has been asked a thousand times already, but I simply can't get it to work. I've looked at various other threads posts, but none of them seem to work. Here's what I'm trying to do: I have a button (Instance name: "go") and a MC (instance name: "fader"). Now, I want the MC to fade in on rollOut and fade out on rollOut. Currently, I have this code: In frame 1 of my movie: (taken from this thread)
[Code]...
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 RepliesI'm trying to find the most easiest way to fade in and out a movieclip in AS3. What I did is this:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
[code]........
I am using Flash 8 - trying to get started by simply fading in/out using Alpha. I totally get on the first layer converting image to movie, inserting key frame and motion tween, selecting clip and changing alphato 0%. Where I am absolutely lost - is when it comes the second, third, fourth and fifth image. I have tried inserting new layers and repeating the steps - but for some reason 2-5 images do not transition like image one.
View 2 RepliesIm using the following bit of code to advance through frames at a set interval. Each frame consists of a different quote (text) and while this works fine I want to add in a fade effect so that for the last second of the frame the alpha of the frame reduces from 100 to 0.Here is the timer code im using:stop();function goNext(){gotoAndPlay(2);clearInterval(timer);}var timer = setInterval(goNext, 10000);
View 1 RepliesI want to be able to fade to a colour, rather than alpha as I'm loading movies into a holder, when the alpha fade function is used it shows the surface beneath the holder and I don't want this to happen, so I tried to use a setRgb but it didn't work, how to fade to a colour not to opacity.
Here is my code:
stop();
timer = setInterval(this, "fadeOut", 1500);
function fadeOut(){
this.onEnterFrame = function(){
[Code].....
accomplish entirely in AS:
on button rollover, the button and title of the page fade in
on button rollout, they both fade out
on button release the MC fades in
on new button release, the last MC fades out
so far i have the following code for button so that on the rollover state, the title loads in a text field:
[AS]
on (rollover) {
_root.x + 1;
_root.caption.words = "shows";
[code]....
how and where to nest the rest of the actions into what i have so far.
this works but repeatidly fades in and out. I need to know how stop this after one loop and where to insert the script.
MovieClip.prototype.fade = function(minAlpha, maxAlpha, speed) {
this.onEnterFrame = function() {
if (!this.trigger) {
this._alpha -= speed;
[code].....
I have button the dissappears when i click it, but instead of disapearing straight away, i want it to fade out first. Whats the script for this?
View 2 RepliesI'm trying to place this scrollPane inside a movie so I can fade the text in.
//create text field - WORKS PERFECTLY
this.createTextField("content_initial",getNextHigh estDepth(),280,140,217,350);
content_initial.XML = true;
content_initial.multiline = true;
[Code].....
I have an image that fades to 100 using this script:
Code:
this._alpha=this._alpha+5;
Is it possible to stop this at alpha value of 75?
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);
}
I made the following AS tween that moves the MC from right to left. It should fade its alpha after the tween finishes. But it doesn't fade. Why not?[code]
View 1 RepliesWhat I'm trying to do is make a movie clip button that will fade from a certain alpha to a different alpha when I mouse over. Is this possible to do withing the transitionmanager fade effect? Or do I need to make separate movie clips for the fade in and fade out sequence for the button over and button out parts?
View 4 RepliesI have a picture on the stage that is coverd by 24 small squares (suare01, square02,. square24) The alpha property for all squares is50. I would like the squares randomly fade to alpha 0 (stay on alpha 0 for approx. 8 seconds) and then fade back to alpha 50 again, while another one fade to alpha 0
View 14 RepliesI had to make a simple slide show for a client and they wanted it done in flash. I am not very good in flash and am having a problem trying to get the first image and text to fade in once the user clicks on the category they want.
I want both the image and the text to fade out and have a new image and new text to fade in when the user clicks the next or previous button. I would also like it if I could have the text be timed so that it will fade in AFTER the image it goes with fades in.
Right now the slide show is really ugly, I will make it pretty once I have it built and working correctly, so don't judge the look...haha.
Anyway, here is the .swf file which is what it looks like now...my .fla file was too big to upload on here. I would post the code, but I have so much in different places that I don't know where to start as far as what you will need.
I can't see the swf file that I uploaded when I click on it.
I have a basic alpha motion fade which works using my flashplayer but not in flash players less than version 10 (no fade is present its just instantly there). If I change the player I am developing for in my movie settings the fade just does not work.
View 1 RepliesIm trying to have a small sized flv video that plays on top of another flv, the top one fades out. It technically works, but it randomly sometimes doesnt fully fade out. It would stop half way fading or just about gone but not quite or doesnt do it all.
75% of the time it works.Im wondering if flash balks at ram/processor usage and just quits fading, but cpu is only at 16 when it fades. Or if the tween class is buggy.
import fl.transitions.Tween;
import fl.transitions.easing.*;[code]....
I originally had a timing code in there so it would fade out after a period of time, Ive removed it for simplicity. It still doesnt fade properly.
I love the tutorial "Alpha graphic fade with inertia" [URL] - that is an awesome effect. I'm VERY new to Flash and was wondering if anyone has made a similar effect where the graphics are randomly cycled as opposed to being based on mouseovers.
View 4 Replies