Calling Alpha Value To Start Another Alpha Fade?
hey all! okay so here's the deal I'm on a mission to make these buttons fade in one after another using a.s and I'd like all my code to be in one frame [don't we all though ] so far i have one fading in using Code: this.onEnterFrame = function() { if(btn1._alpha < 100) { btn1._alpha += 10; } } now when i said i wanted the buttons to fade in one after another i was kinda fibbing ... what i really want is when btn1 reaches an alpha of 40 i want btn2 to start this same fade in process, then when btn2 reaches 40 i want btn3 to do the same and so on... see the effect here [you have to enter the site] when you click on work, troops & contact now i have also been searching for a easy to understand tutorial on how to make your own functions [that's the one where you can write a whole bunch of code stuff then call it later using only a little code, right? well obviously i want to use this idea so i don't have to write out [okay lets be real here - copy and paste] the fade in code each time. that way i figure i can say if(btn1._alpha = 40) do the function thingy to btn2 i tried this a.s, it only results in btn2 fading in as asked but btn1 stops fading at 40 Code: if(btn1._alpha = 40) { this.onEnterFrame = function() { if(btn2._alpha < 100) { btn2._alpha += 10; } } } any ideas would be the shizzel bo dizzel nizzel! cheers fo' all the help so far! -demian
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-19-2004, 01:29 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Calling Alpha Value To Start Another Alpha Fade?
hey all!
okay so here's the deal I'm on a mission to make these buttons fade in one after another using a.s
and I'd like all my code to be in one frame [don't we all though ]
so far i have one fading in using
Code:
this.onEnterFrame = function() {
if(btn1._alpha < 100) {
btn1._alpha += 10;
}
}
now when i said i wanted the buttons to fade in one after another i was kinda fibbing ... what i really want is when btn1 reaches an alpha of 40 i want btn2 to start this same fade in process, then when btn2 reaches 40 i want btn3 to do the same and so on...
see the effect here [you have to enter the site] when you click on work, troops & contact
now i have also been searching for a easy to understand tutorial on how to make your own functions [that's the one where you can write a whole bunch of code stuff then call it later using only a little code, right?
well obviously i want to use this idea so i don't have to write out [okay lets be real here - copy and paste] the fade in code each time.
that way i figure i can say
if(btn1._alpha = 40)
do the function thingy to btn2
i tried this a.s, it only results in btn2 fading in as asked but btn1 stops fading at 40
Code:
if(btn1._alpha = 40) {
this.onEnterFrame = function() {
if(btn2._alpha < 100) {
btn2._alpha += 10;
}
}
}
any ideas would be the shizzel bo dizzel nizzel!
cheers fo' all the help so far!
-demian
Photo Slideshow - Fade Out/fade In (alpha) - Flash5
Hi all & merry Christmas
For a Photographers portfolio I want to create a fade-out/in effect for when people select one of the photos. All the photos are stored within one SWF.
So OnRelease the selected photo loads and a Var is set. The current photo is being set graduately to alpha 0% and the loaded new photo (which is a MC) is moved to the highest level while this one is being set immediately to alpha 100%.
If I think about it, what I need to code is...
- a var in which the current image is set
- a function which checks what image/mc is in the var
- a function which says something like this:
on release move new image to layer/level below current image (which is on toplevel) and set to 100% ;
set the current image (as set in var) gradually to 0% alpha
and as last move new loaded image to toplevel...
(all images would be put in an SWF which would be loaded into the main SWF)
unfortunately my AS knowledge is fairly limited, so I have no clue how to script this???
anyone an idea or possibly a tutorial which could sort me out???
thanks so much
Alpha Fade Image, Wait, Fade Out, Next Frame
Greeting,
After three hous of review I have now looked at so many scripts (here and elsewhere) of fading in/out that I am more confused instead of less confused, which seems odd I know.
Here is what I have and what I want to do. I am using MX.
I have twenty images, one one each frame of a movie clip, placed around the stage. I want the imges placed instead of loaded so that I can control where they appear on the stage. I would like each image to fade in, stay on the stage for 4 seconds, fade out, and then go to the next frame (and repeat with the image located on that frame). Does anybody have any scripts that already do this. I am a beginner and I am not that famaliar with action scripting. I think what I need to do is use an onEnterFrame, with an alpha fade in, some type of delay/counting script, and then a fade-out, and go to the next frame.
I know that you all have thousands of things you could be doing instead of helping me, so please know that I appreciate it.
Photo Slideshow - Fade Out/fade In (alpha) - Flash
Hi all & merry Christmas
For a Photographers portfolio I want to create a fade-out/in effect for when people select one of the photos. All the photos are stored within one SWF.
So OnRelease the selected photo loads and a Var is set. The current photo is being set graduately to alpha 0% and the loaded new photo (which is a MC) is moved to the highest level while this one is being set immediately to alpha 100%.
If I think about it, what I need to code is...
- a var in which the current image is set
- a function which checks what image/mc is in the var
- a function which says something like this:
on release move new image to layer/level below current image (which is on toplevel) and set to 100% ;
set the current image (as set in var) gradually to 0% alpha
and as last move new loaded image to toplevel...
(all images would be put in an SWF which would be loaded into the main SWF)
unfortunately my AS knowledge is fairly limited, so I have no clue how to script this???
anyone an idea or possibly a tutorial which could sort me out???
thanks so much
Alpha Fade
Hi
I have a graphic that I want to give the appearance of it being solid at one side gradually become more transparent then become solid again.
Its hard to explain. check out http://www.northwave.com/snow.asp in the mens boots section the boot selector at the top. At the edges the boots are only just visible. It just occured to me that its probably the boots that are changing not something over them.
Would I have to change the Alpha of the stuff thats moving,
or can i set up some kind of gradient aplha ?
Thanks in advance.
Using Alpha Fade
I read that using an alpha fade adds to file size and that there is a better way to fade in Flash without using alpha. Does anyone know how?
Alpha Fade
Hello!
Is there any way of fadeing alpha on a external swf (i dont mean the setproprety, but something with timer or anything else that will do the trick)
Ty in advance
Alpha Fade
I am stuck on a piece of pretty basic scripting. I have two two movie clips on the screen. clip #1 has the following scipt attached to it:
on (rollOut) {
with (_root.Ssuccess) {
var myClip = _root.Ssuccess;}
myClip._alpha = myClip._alpha + (random(20)-4);
}
the clip "Ssuccess" has alpha property set to zero.
What I want to happen: When someone rolls out of clip#1, the clip "Ssuccess" will appear and then slowly fade out. What does happen: on the roll out "Ssuccess" appears just fine, it appear lighter or darker depending on the random function, but it doesn't fade out. It stay just as it first appeared.
Can anyone help me with this? What am I doing wrong?
Thanks: jmmdmt
Swf Alpha Fade
3 menu buttons & 3 external swf's
click button 01 > 01.swf fades in
click button 02 > 01.swf fades out & 02.swf fades in
click button 03 > 02.swf fades out & 03.swf fades in
click button 02 > 03.swf fades out & 02.swf fades in
etc.
how is it possible to tell each button of the menu, that it should fade out every movie on the stage onmouse(release) whether it is swf.1, swf.2 or swf.3
please help anyone, need to finish a project and only need the AS for this -to finish it.
I don't know how to make the buttons work independently and not only covering only one swf.file.
Thanks for your help in advance !
Fade In/Out Alpha
I've finally graduated to MX, but the one thing I cannot find it where to set the Alpha for fading in and out.
I've checked throughout the board and checked thoughout Mac's Help pages, and everything indicates that my Properties will drop down a color option that allows Alpha, etc.
The Properties on my MX only has Tween and Sound options.
Uhm... help?
Alpha And AS Fade In And Out
can someone tell me how to go back on an AS Alpha fade out. I am really stuck here and have been up all night.
the pages have 4 images to alpa out together and back upon return. having trouble on the return side. I am using
onClipEvent(enterFrame){
if(_alpha < 100){
_alpha += 10;
}
}
and -=10 on the other side
Alpha Fade In And Out
I need a quick fix here kind of. Ive been trying to figure out a quick way of how to fade images in and out. This is what i have so far...
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 2;
}
well that gets the image to fade in...but i dont know how to get it to fade back out.
If you look at my image that i have attached...basicaly i am wanting each one of the small images to fade in then out...and they would not show up in the same place, the layout of where the pictures are would vary, and i want to pull the pictures from a directory...so to make changes i just upload new images. If someone can give me an outline so to speak of how to do this that would be great. I really want to try and accomplish this with as much actionscript as i can though...i want to stay away from motion tweening.
If anyone can help that would be great, thanks
Alpha Fade
Im tring to get a movie Instance(wigpic) to fad in. How do I set up a length of time code. I think its running my whole loop then showing the picture.
This is what I have
wigpic._alpha = 0;
for (var a=0; a<20; a++){
wigpic._alpha += 5;
}
Fade In/out With Alpha
I know that alpha is used for fading. I want to fade some text in and out. I select the text and set alpha to 0%. I then add some key frames and add a motion tween. I then go to the last frame and set the aplha back up to 100%. But It doesnt recognize it as a motion. Also somethimes it will show the object but alpha will be at 0% or nothing will show and it will be at 100%. What am I doing wrong here. I just want to fade some text in and out. How do I do it?
Need Some Help Please - With Alpha Fade..
I havn't used flash since flash 3 and am now using flash mx. I began to make a very simple fla with 1 movie object, that has 10 frames. The frames are not tweened, well you can see at http://www.debt-management-usa.com/sample.fla .. For some unknown reason, the alpha does not show up. The increase in the size of the graphic works, but the alpha does not. Can anyone please look at this and tell me what I am doing wrong.
When explorting or testing scene, the alpha does not work..Baffles me.
Thank you,
Nick
Fade - Alpha
does anyone know a way that I can tell movieclip to fade by placing the code in a frame. I've seen ways of doing it using buttons but when I try to redo the code it doesn't work.
basically I have 4 frames with 4 different movies in them. When you go to, lets say, frame 2 movieclip 2 fades. When you go to frame 3 movieclip 3 fades and etc.
Any ideas or tutorials. Never used alpha before.
Alpha Fade
Hello:
I have seen it on this forum...a way to make something fade with as.
I have this (to set the alpha to zero...)
setProperty("/ab", _alpha, "0");
}
but what would it be to go from 100 to 0...???
Thanks,
Bluej2
Alpha Fade
I have this code for thumbnails, and it all works except for one thing.
I want them to load at _alpha = 50;
I don't know how to make it happen.
Any suggestions?
Thanks!
thn1 = this.createEmptyMovieClip("t1", this.getNextHighestDepth());
thn1.createEmptyMovieClip("h", 1);
_root.mcl.loadClip(_root.basepath + "thumbnails/" + myFile, thn1.h);
thnMask = this.attachMovie("thumbMask", "thumbMask", this.getNextHighestDepth());
thn1.setMask(thnMask);
thn1.maskref = thnMask;
onRelease = function() {
_alpha = 100;
if(!isLit && enableActions) {
path = String(_root.basepath) + String(myFile);
_root.myPicLoader.contentPath = path;
_root.currentPic = myNumber;
_parent["x"+_root.currentNumber].swapDepths(_parent["z"+_root.currentNumber]);
_parent["x"+_root.currentNumber].isLit = false;
this.swapDepths(_parent["z"+myNumber]);
_root.currentNumber = myNumber;
_root.currentCaption = myCaption;
isLit = true;
}
}
onRollOver = function() {
_alpha = 50;
}
onRollOut = function() {
_alpha = 100;
}
Fade Alpha Value
I am trying to fade in and out a sprite with no success. I am porting this functionality from as2 but it does not seem to work. What am I doing wrong?
ActionScript Code:
package
{
import flash.display.*;
import flash.events.*;
public class Fader extends Sprite
{
private var _mc:Sprite;
private var _fadeSpeed:Number;
private var _fadeOutValue:Number;
private var load_track:Sprite;
private var b1:Sprite;
public function Fader()
{
b1 = new Sprite();
b1.graphics.beginFill(0x333333, 1);
b1.graphics.drawRect(5, 5, 20, 20);
b1.graphics.endFill();
addChild(b1);
b1.addEventListener(MouseEvent.MOUSE_DOWN, fade_02);
load_track = new Sprite();
load_track.graphics.beginFill(0x333333, 1);
load_track.graphics.drawRect(100, 100, 100, 100);
load_track.graphics.endFill();
load_track.alpha = 0;
addChild(load_track)
fade_01(load_track, "in", .1);
}
private function fade_02():void
{
_mc = load_track;
_fadeSpeed = 0.1;
_fadeOutValue = 0;
addEventListener(Event.ENTER_FRAME, fadeOut);
}
private function fade_01(mc:Sprite, type:String, fadeSpeed:Number = 0, fadeOutValue:Number = 0):void
{
_mc = mc;
_fadeSpeed = fadeSpeed;
_fadeOutValue = fadeOutValue;
if (type == "in") {
addEventListener(Event.ENTER_FRAME, fadeIn);
} else if (type == "out") {
addEventListener(Event.ENTER_FRAME, fadeOut);
}
}
private function fadeIn():void
{
if (_mc.alpha < 1) {
_mc.alpha += _fadeSpeed;
} else {
removeEventListener(Event.ENTER_FRAME, fadeIn);
}
}
private function fadeOut():void
{
if (_mc.alpha > 0) {
_mc.alpha -= _fadeSpeed;
} else {
removeEventListener(Event.ENTER_FRAME, fadeOut);
}
}
}
}
As2 Alpha Fade
I know its possible to do it but im not sure how to. How do i make a MC fade to a specified alpha when a button is clicked?
Help With Alpha Fade
I have a button that effects the alpha of an MC on mouseover. I can't figure out how to create a fade with the alpha shift.
This is what I'm using right now. AS is placed on button that controls the MC.
on (rollOver){
_root.background.frame_2._alpha = 25;
_root.background.frame_3._alpha = 25;
_root.background.frame_4._alpha = 25;
_root.background.frame_5._alpha = 25;
_root.background.frame_6._alpha = 25;
}
on (rollOut){
_root.background.frame_2._alpha = 100;
_root.background.frame_3._alpha = 100;
_root.background.frame_4._alpha = 100;
_root.background.frame_5._alpha = 100;
_root.background.frame_6._alpha = 100;
}
Thanks for any assistance.
Fade Alpha?
i am trying to have a list of sponsors for a band page and i want to make the list of sponsors fade in when your mouse gets close to the MC. I am trying to learn AS so i tried to think of a way to do it and i'm close but i can figure out how to get the fade right...it just goes to exact points. 10% to 100% but no fade? does that make any sense.
Code:
onClipEvent (load){
_root.sponsors._alpha = 10
}
on (rollOver) {
_root.sponsors._alpha = 100;
}
on (rollOut) {
_root.sponsors._alpha = 10;
}
Alpha Fade
http://www.kirupa.com/developer/mx/alpha_fade.htm
I was interested in doing something like that, but it says your image must be 400x400. The spot I want to do this in can only fit 528x162, what do I have to change in the action script to make it work for the smaller image size?
Fade/Alpha Help
I am trying to split my site into three sections, and I am trying to do this by having the home page contain a flash animation that would work like this:
Begining:
[Pic1a] [Pic2b] [Pic3c]
(assuming you have a pic a,b,c for each number)
Hover over Pic2:
[Pic2a] [Pic2b] [Pic2c]
I hope you got that diagram. Anyway, I want it to crossfade into the different images. And if you hover on another picture it fades seemlessly without jumping back to no fade at all.
Does anyone know where there is a tutorial that can help, or is there anyone who just knows?
Thank you,
GOLDfish!
Alpha Fade AS 2.0
Code:
MovieClip.prototype.fadeIn = function(speed){
this.onEnterFrame = function(){
this._alpha+=speed;
if(this._alpha >= 100) delete this.onEnterFrame;
}
}
MovieClip.prototype.fadeOut = function(speed){
this.onEnterFrame = function(){
this._alpha-=speed;
if(this._alpha <= 0) delete this.onEnterFrame;
}
}
var pic_arr:Array = new Array("images/goldstein.png", "images/kyle.png", "images/timmy.png");
pic_arr.sort(function () {
return random(2) ? true : false;
});
trace(pic_arr);
display();
function display() {
player_mc.loadMovie(pic_arr[1]);
player_mc.fadeIn(3);
player_mc2.loadMovie(pic_arr[2]);
player_mc2.fadeIn(3);
}
stop();
This code isnt working to fade in my loaded images. am i missing something?
Alpha Fade Of 0 In 16-Bit Is Not Possible
It is not possible to have anything at 0 transparency in 16 bit colour mode using an Alpha Effect.
I have tried a flash symbol, text, object in fact everything.
And you can never get the object to be 100% transparent on a coloured background. There is no work around, nothing can be done to correct this. I give up!
Help With Alpha Fade
I have a button that effects the alpha of an MC on mouseover. I can't figure out how to create a fade with the alpha shift.
This is what I'm using right now. AS is placed on button that controls the MC.
on (rollOver){
_root.background.frame_2._alpha = 25;
_root.background.frame_3._alpha = 25;
_root.background.frame_4._alpha = 25;
_root.background.frame_5._alpha = 25;
_root.background.frame_6._alpha = 25;
}
on (rollOut){
_root.background.frame_2._alpha = 100;
_root.background.frame_3._alpha = 100;
_root.background.frame_4._alpha = 100;
_root.background.frame_5._alpha = 100;
_root.background.frame_6._alpha = 100;
}
Thanks for any assistance.
Fade Alpha?
i am trying to have a list of sponsors for a band page and i want to make the list of sponsors fade in when your mouse gets close to the MC. I am trying to learn AS so i tried to think of a way to do it and i'm close but i can figure out how to get the fade right...it just goes to exact points. 10% to 100% but no fade? does that make any sense.
Code:
onClipEvent (load){
_root.sponsors._alpha = 10
}
on (rollOver) {
_root.sponsors._alpha = 100;
}
on (rollOut) {
_root.sponsors._alpha = 10;
}
How Do You AS An Alpha Fade?
How can I use ASv2 to script a nice slow alpha fade of a MC? Understandably, something like
for (x=1; x<100; x++){
my_mc._alpha = x;
}
Does it way too fast. I've been trying different methods of "intervals" and "timers", but so far, they usually just cause script aborts.
Is It Possible To Set An Entire Layer To Alpha 0 On Start Of Movie?
Hi,
I have a movie with a movie clip inside it. IN the movie clip I have one layer with several different images along the timeline that are all named img2. I'm wondering if it's possible to set that entire layer to transparent on the start of the movie. I tried
mainMovie.img2._alpha = 0;
But it doesn't work because inside of the movie clip "mainMovie" there is no img2 until the second frame. If there was a way to make the whole layer transparent that would be awesome. Thanks.
Alpha/fade-in Problem..
Using this code to fade-in a MC:
onClipEvent (load) {
busy = 1
addv = 30
_alpha = 0;
}
onClipEvent (enterframe) {
if (busy) {
if (_alpha >= 100);
busy = 0;
}
_alpha += addv;
}
This works but after a couple minutes, the MC disappears. How can I keep the MC visable indefinitely? Fairly new to actionscripting so any input or sample code would be appreciated.
Alpha Fade How Do You Time It?
got this script on my time line on an invisable moive clip so everything loads in together
Code:
onClipEvent (load) {
_root._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root._alpha<=100) {
_root._alpha = _root._alpha+5;
}
}
but i would like to take it a step futher
i have three moive clips which fade in and out of each other , at the moment im using tweening but would like to it via action script, any ideas anyone?
Scripted Alpha Fade
i want a smooth alpha change that uses actionscript.. i've done some motion stuff w/ actionscript but i don't seem to understand alpha scripting.. thanks a lot!
Actionscript Alpha Fade
I have 4 navigation buttons.
When each of the buttons is rolled over an mc with text in fades up. When the user rolls out the mc fades down.
For various reasons I want to be able to use actionscript for this fade rather than target labels on a timeline at different points of an animated timeline fade.
I've had a look around for some script I may be able to modify but have had no luck and need a little help.
Many Thanks in advance
FADE - TWEEN TO ALPHA 0
I was following the the:
tutorial "Dissolving Words"
by "Derek Boge"
at "http://www.flashkit.com/tutorials/Text_Effects/Dissolvi-Derek_Bo-647/more4.shtml"
which suggests "change the Alpha to 0%".
It seems to work for him but when I go to the mixer and try this one of two things happens:
1) I make the stroke alpha 0, from black and go to the fill alpha to make it 0 and then check the stroke alpha to find it back at 100
2) I can make both alphas 0 (by accident!) but then rgb values go to 1 and will only go back to 1 if I make them all 0.
All that is needed is to fade, from black to nothing, from the first frame of the tween to the last.
It shouldnt be hard, so Im surely missing something basic!
Can someone help out please?!
A Simple Alpha Fade
Please excuse my frustration, this is my first attempt at making a flash app.
AAAHHHHHHH! This interface is driving me CRAZY!
Okay, I'm trying to make a button that, when clicked, causes a photo to fade into my flash app.
My first thought was to make a movie clip of my artwork fading in, then making a button that, when clicked, would start that movie clip. but the alpha channel did NOT seem to be an animatable property of any sort of movie clip, button or graphic. After 5 to 6 hours of trying to figure out what seems like it should be a VERY simple flash effect, I went another route.
I made a button, and added a bitmap (that I turned into a Movie clip symbol. Then I added an action to the button with this script:
on (release) {
_root.charcoal1._alpha= 30;
}
that seems to work, although it simply changes the alpha to a set percentage, but at least I was getting SOME WHERE. Since I want it to fade, I thought I'd write it into a for-next loop.
So I tried this code:
on (release) {
for (i=100; i<=10; i=i-1) {
_root.charcoal2._alpha = i;
}
}
which did not work. and then this code:
on (release) {
var i = 100;
for (i = 100; i <= 0; i = i - 1) {
setProperty("_root.charcoal2", _alpha, i);
}
}
which also didn't work. But this version of the code DID work:
on (release) {
var i = 100;
while (i>=1) {
_root.charcoal2._alpha = i;
i = i - 1;
}
}
hmmm, well it worked, a bit...but it appears to be so fast you cannot see it fading between different alpha levels. Strange that a for/next loop would not work, yet a while loop would. Anyway, can someone explain how I can add a delay into my script...or, could someone show me a better way to accomplish this effect.
Fade In Objects-Alpha?
Does anyone know the actionscript for fading in frames. When I click one of my buttons it goes directly to the frame I want. I want that frame to fade in. Thanks in advance.
Alpha Fade Script?
Ok, I am trying to make a short movie where pictures fade in and out in sequence to match with some music. I have figured out how to do a motion tween on each layer for each picture. However, there is a total of 21 pictures. I am sure there is some action script that can be done to automate the process. I am wanting the 1st picture to fade in, as it fades out I want the 2nd picture to fade in, etc....
Any suggestions?
Cheers
Fade In Without Using Alpha & Tween...
I have some images and buttons I need to have fade in from 0 - 100 and I know there is some code to place on the frame in the timeline to cause this to happen.
I don't want to use the tween option as that adds a lot of memory the more times you use it per movie.
Does anyone have the code that I place in to make something fade in from 0 - 100
and then I need a separate one to make it fade back out from 100 - 0 later in the timeframe?
thanks for the help!!!!!!
Alpha Changes With Actionscript (fade In/out)
Is it possible to make a graphic fade in and out, without the usual tweening.
Also, can the time it takes to fade in and out be randomized??
If anyone could let me know how this is done, I'd be really grateful.
Alpha Fade Through One Frame
The code below is used to show bigger images of a thumbnail gallery. What I'm trying to do now is preload all of the images into containers, then fade them in when they're called. So this code is on the frame where this is supposed to happen, but for "sheart" it only barely fades in (gets to the first step) before stopping, and "gzilla" of course just pops in at full alpha. What I want is a smooth transition. Is this possible??
Thanks for any help.
Code:
if (art == "sheart"){
if (_root.container1._alpha < 100) {
_root.container1._alpha += 5;
}
} else if (art == "gzilla"){
_root.container2._alpha = 100;
}
Alpha Fade In Function?
I am trying to create a function that:
1. sets the alpha level of a mc to 0,
2. fade the instance in,
3. the code needs to be reusable.
This is what I have so far.
var a = 0
function fadeIn () {
while (a < 98) {
this._alpha = a
a = a + 5; }
}
Can You Alpha Fade Through Actionscript?
Hello I was wondering if you can do an alpha fade through code alone without a time line. For example:
say we have a graphic symbol called square_1 .
(psuedo code)
fade square_1 from 10% to 90% in 10 seconds.
Thats basically what I want to know how to do through some kind of rate property.
Beyond that I want to put that code into a movie clip so It can be dropped on any other symbol to effect that symbol. How would I do that as well?
any help appreciated.
matt
Using Tint Instead Of Alpha On A Fade
Hi - I have a subroutine that fades out a clipholder using alpha:
Code:
_root.clipholder._alpha -= 10;
but this is processor heavy - I know using tint to white is better, any idea what to change ._alpha to to utilise the Tint method? I assume it's not something daft like ._tint?
ta
frank
What Am I Doing Wrong (alpha Fade)
i have attached a file. i want the text to fade in but get bigger at the same time, then when the text reaches the size i want, i just want it to fade out, WHY does it look like it is getting small/moving backwards. i just want it to get large then fade.....
i used alph zeor on frame 1, inserted a keyframe at 60, put alppha to 100 and increased scale to 150%, then inserted a keyframe at 120 and again set alpha to 0, but it looks like it is getting smaller instead of fading out....help??!?!?!?!
Fade MC Using Alpha Scripting
Hiya,
take a look at the following movie:
http://www.thedesignconspiracy.com/fk/wordidea.swf
When you rollover one word it becomes alpha 100 and the other goto to alpha 15. I'd like the words to fade to 15, say over a second or two.
Now I can do this easily using tweens, but I'd liek to do it using scripting.
I've tried the other scripts here but can't get it to work for several words? The words are all MC's.
Any ideas?
Loop Alpha Fade
OK im trying to loop an image fading in and out using actionscript....but i dont need it to loop right away...it needs to wait like 30 seconds or so. And actually...this may sound complicated...but the first images to show...need to show already at _alpha=100..but then when it comes back around on the loop....it needs to fade in...then just repeat that over and over. Here is the code along with the .fla to see what im trying to do
main.fla
Code:
onClipEvent(load){
loadMovie("images/1.jpg", "image1");
this._alpha=0;
this.fader=0;
}
onClipEvent(enterFrame){
if (this.fader==1){
this._alpha+=3;
if (this._alpha>=100){
this.fader=0;
}
}else if (this.fader==2){
this._alpha-=3;
if (this._alpha<=0){
this.fader=0;
}
}if (this._alpha>=0){
startTimeSet=0;
}
if (getTimer()>5000){
this.fader=1
}
if (getTimer()>10000){
this.fader=2
}
}
|