Textfield _alpha?
I am creating textfields with actionscript in my class which works fine, but when I set the _alpha nothing happens. I tried setting embedFonts=true and also tried antiAliasType="advanced" but then the text doesnt even appear when I run it. Is there another property that has to be set to allow the _alpha value to be set?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-02-2006, 08:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
TextField _alpha
Hi!
I have seen that exporting the fonts is the only way that alpha property of a textfield is considered by flash.
So this is a tremendous crap since in one side you have the ability to use css change fonts dinamically and on the other you need to export the fonts for create a simple alpha transition...
(just for Arial it´s bigger the size of the exported font that the rest of the movie it self)
Anyone knows a workaround for this issue?
Opinions?
greetings!
Polaco
TextField._alpha -> Problem
Has anyone checked this function (TextField._alpha)... `cause I belive it`s not working as it is declered in help.
From what I can see is that you can only retrive _alpha value but you cannot set it.
I`ve wanted to create fade in text effect and was bitterly dissapointed with the result because there was none.
By the way...I`ve tried another way by importing text filed made in flash 5 and the thing worked as it should. So I think the problem lies in flash6 textfield itself. Dunno any further than that.
I would appreciate every info on this matter.
_alpha Not Working With Textfield
Ok here is another question.
I know alpha IS a property of textFields. For some reason I cannot control the alpha. I made this simple example because I thought maybe something else was causing it.
Then I tried creating a empty MC and placing the text in the empty MC and controling the alpha and still noting.
Can someone explain?
Code:
_root.createEmptyMovieClip ("container", 75);
_root.container.createTextField ("textTest", 100, 200, 50, 300, 300);
_root.container.textTest.multiline = true;
_root.container.textTest.wordWrap = true;
_root.container.textTest.html = true;
_root.container._alpha = 0;
_root.container.textTest._alpha = 0;
_root.container.textTest.text = "just a test";
TextField Ignores _alpha
I'm having trouble getting transparent textfields, even embedding the font doesn't work.
This code is from Adobe:
Code:
//aText.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Arial";
// where 'my font' is the linkage name of a font in the Library
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
my_txt.border = true;
my_txt.embedFonts = true;
my_txt.text = "Hello World";
my_txt.setTextFormat(my_fmt);
my_txt._alpha = 50;
Slight alterations but from here:
http://livedocs.macromedia.com/flash...=00000809.html
Why the hell won't it work on my machine? It obviously can't find the font - how do I help Flash find it?
Textfield._alpha Isn't Working In MX
Ok, someone please tell me what is wrong with this code. I'm trying to change the alpha property of a text field and it won't work. I've done it with movie clips just fine. Here's the code:
function acctAppear() {
if (loopnum == 1) {
acct_txt._alpha = 1;
acct_txt._visible = true;
sandy_txt._alpha = 1;
sandy_txt._visible = true;
sandy_email._alpha = 1;
sandy_email._visible = true;
} else if (loopnum < 100) {
acct_txt._alpha += 1;
sandy_txt._alpha += 1;
sandy_email._alpha += 1;
} else {
acct_txt._visible = true;
sandy_txt._visible = true;
sandy_email._visible = true;
myStyle = new TextFormat();
myStyle.url = "mailto:sandy@nmankatocpa.com";
sandy_email.setTextFormat(myStyle);
}
loopnum++;
}
acct = setInterval(acctAppear,1000);
The text fields are dynamic of coarse and are set as either multiline with no wrap or single line.
I know that I can do this easily enough with the timeline, but I'm trying to familiarize myself with actionscript and do it without the timeline. The Flash help says that the alpha property of a textfield can be accessed and changed, but I can't get it to work.
Any help would be greatly appreciated!!!! Thanks.
Cole ;)
_alpha Property Of TextField Instance
hi there,
i have a dynamic txt-field and want to "fade in" text. i discovered the MX feature which allows instances of a dynamic text field to have an alpha property. so if i change this property now, i get some strange values like 77.734375 for example. any explanation?
every help appreciated
Applying _alpha Value To An MC W/dynamic Textfield?
hey guys.. I want my dynamic textfield to fade-in by tweening the alpha with the Tween class... so I put my textfield in a movieclip and applied the Tween to the movieclip.. and it doesn't work.
Does anyone know how to get the "fade-in" effect for dynamic textfields?
thanks, Pez
EmbedFonts And Animate TextField._alpha Problem
Hello, I'm having trouble changing the alpha value of a dynamic text field in my movie.
I have created a font symbol and as a static textField it works fine.
I would like to change the textField._alpha property over time, however when I use the embedFonts property the textField does not appear.
According to my Definitive Guide, to use the textField._alpha property the embedFonts property has to be defined first.
Can anyone help??
Setting _alpha To Dinamically Created TextField
Hi!
I´m trying to create a dinamic textField dinamically heres the code:
(everything works except when I want to set the _alpha property )
ActionScript Code:
this.createTextField("sombraDisplay_txt", this.obtMaxDepth(this),(this.alto/3)/2+1, Math.floor(this.alto/3+this.alto/4),this.ancho-(this.alto/3),20);
this.accion="PLEASE WAIT";
this.sombraDisplay_txt.type = "dynamic";
this.sombraDisplay_txt.variable="accion";
this.sombraDisplay_txt.selectable=false;
var formatoTexto_format=new TextFormat();
formatoTexto_format.font=this.fuenteTexto;
formatoTexto_format.size=this.altoTexto;
formatoTexto_format.color=0x000000;
formatoTexto_format.align="center";
this.sombraDisplay_txt.setNewTextFormat(formatoTexto_format);
this.sombraDisplay_txt._alpha=40;//is setted but not showed
so if I trace: this.sombraDisplay_txt._alpha it returns: 39.84375
hovever the visually it remains at 100
then I have
ActionScript Code:
this.onEnterFrame=function(){
this.sombraDisplay_txt._alpha-=10;
this.sombraDisplay_txt._x+=5;
}
so here the textField changes it´s X position but the alpha remains at 100.
why is this happening?
_alpha Property Doesn't Work With A Dynamic Textfield
Hello guyz,
i've a problem.. maybe look as a stupid problem but i cannot solve it.. :(
i've a for statment and in it a dinamically attached movieclip from library..
into this movieclip there's a dynamic textfield and i insert into it a string ..
all rights..
but my problem is to assign _alpha property to the mc ! !
for example
Code:
// container is a mc on the stage
str = "my name"
for (var i=0; i<str.length; i++) {
letterMc = container.attachMovie("mc", "mc_"+i, container.getNextHighestDepth());
letterMc._x = xpos
letterMc._alpha = 10 // this doesnt' work [/b]
letterMc.field_txt.autoSize = "left"
letterMc.field_txt.text = str.substr (i,1)
xpos += 10
}
the line letterMc._alpha = 10 doesn't work.. infact the textfield into the letterMc movie clip is always visible..
i've tested into flash debbugger and i've noticed that _alpha property of letterMc is 10 ! ! ! but the textfield is always entirely visible !!?
can depend from the type of textfield ( that's dynamic ) ??
please help me to solve
hello
tnx a lot ;)
[AS _alpha] Malfunctioning _alpha
Ok so here's what I've got-- a "Modified" version of something I got from Moseleywebb.com:
Frame 1:
ActionScript Code:
picnum = "one";
Frame 2:
ActionScript Code:
picalpha = getProperty(picnum, _alpha);
oldpicalpha = getProperty(oldpicnum, _alpha);
if (picalpha <100) {
setProperty(picnum, _alpha, picalpha +10);
}
if (oldpicalpha >0) {
setProperty(oldpicnum, _alpha, oldpicalpha -30);
}
Frame 3:
ActionScript Code:
gotoAndPlay(2);
Here's the swf || No preloader and it's like 1mb -- we'll deal with the size of everything later
As you can see, the alpha effect is intended to change everytime you roll over some dude's name. There's already ovbious errors when you move too quickly over the names, but that's not what I'm frustrated about. If you get to "Alex Robinson" 's name, you'll notice that instead of fading, it just appears. and every name after than does the same thing, it just appears. What's the deal?
Of course, I originally thought it was an ActionScript issue. But each button has the same script:
ActionScript Code:
on (rollOver) {
oldpicnum = picnum;
picnum = "numberofplayer";
}
on (rollOut) {
oldpicnum = picnum;
picnum = "numberofplayer";
}
So the intention is that when you roll off the image, it'll replace itself (which gives some sort of equation error that makes the picture area appear white).
What am I doing wrong? Or what is it that I'm missing that at about thirteen people down the images start appearing instead of fading in and out??
Loading Text & JPG Nito TextField Makes Textfield White
Hi guys !
Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why.
If you have any clues... I'd be really thankful
The AS I'm using:
_target.container.t.html = true
_target.container.t.condenseWhite = true
_target.container.t.autoSize = "left";
_target.container.t.htmlText = _data.texto
The String ( &HTML ):
"Text lorem ipsum bla bla ..... <img style='WIDTH: 154px; HEIGHT: 59px' height='298' width='856' alt='' src='http://www.spacilong.com/arq/img/AlcatelLucent_Hor_2col_sm.jpg' />
Textfield Woes, How To Anti-Alias A Dynamic Textfield?
this is driving me nuts, even if i have it marked so that my dynamic textfield is anti aliased, it still looks as if its text is aliased. And if i simply make that textfield Static, the text all of a sudden looks amazingly crisp and anti aliased.
How can i fix this?! I am attempting to load xml data into my text fields but its wasted if the text looks like crap..
So can anyone enlighten me on how to do this? i tried searching Flashs help, all i came out with was "Textfield._quality" but i do not understand what the description means exactly.. And i tried coding my textfield to _quality = "BEST";, with no avail.
Please help, i'v seen other websites with what i am sure is dynamically loaded fields, and smooth looking text... so what gives?
Thanks!
[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.
I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.
I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.
Anyone got a better idea?
Cheers
Paul
[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.
I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.
I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.
Anyone got a better idea?
Cheers
Paul
Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,
I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.
Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!
thanks!
Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,
I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.
Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!
thanks!
_alpha
help me!!
I am trying to rollover and alpha a button, but it does not just alpha the button, it alphas the whole page. anyone w/ similar probs. help
e-jon
_alpha ?
how could i do a alpha fade over.....like 1-2 seconds ??? using action script
_alpha>100 ?
I always assumed that it's not possible, nor would it make sense, to have a movie clip's _alpha property set to anything greater than 100.
I am working on a project in which a movie clip's enterFrame event has a conditional statement that checks to see if the alpha is less than 100. If so, I increment it as in this._alpha+=5.
I noticed that if I let this run for too long, the movie clip goes from 100 alpha to totally invisible.
What's going on? Is the alpha inverting and producing a negative value? I've seen that happen with the width and height properties in which a mc shrinks below 0% and then blows back out.
Is that what's happening with my alpha setting?
MC _alpha Value 100 -> 0 ->100 And So On
Hi ;-)
I'm trying to make my MC change its alpha value continuously
form 100 to 0 and then go back to 100 and so on,
i want it to appear and disapppear continuously
what actionscript should I use??
._alpha
Hi all.
I am having problems with a movie clip and alpha.
I have 2 frames. I want to loadmovie in frame 1 with alpha of 0. So it can load in the background:
loadMovie("interface.swf", "buttonContainer._alpha=0");
On frame 2 I want the user to see the buttons...
so I have this:
buttonContainer._alpha = 100;
Which is not right obviously. Where am I going wrong?
Thank you for any help.
_alpha
Hello everyone...
can anyone help me??? the problem is this:
i have 3 movie clips that i want that they get an alpha of 30% when the other movie clip "dies" (it's a game )
What happens is that when the movieclip is hit, makes the parent frame (_level0 timeline) goto another frame, where is presented a die message, and done some code.
But the problem is that at the first life the 1st movie clip is put with the correct _alpha, but for some reason when i do the same code when the user "dies" again it doesn't do anything...
what i'm doing is:
code:
'Inside the movie clip of the user
_parent.NumeroVidas--;
'In a frame of the main timeline
for(i=1;i<=TotalVidas;i++){
if(NumeroVidas < i)
{
eval("boundary.life" + i)._alpha = 30;
}
else
{
eval("boundary.life" + i)._alpha = 100;
}
}
Where TotalVidas is the total number of lifes and NumeroVidas is the current number of lifes available.
the movies that i want to change are inside de boundary movie clip and ls called life1, life2 and life3...
I've tried to put the life movie clip in the main timeline but it does the same thing.
And another thing that is strange is that i've done some trace's in eval("boundary (...)) and it's done ok...
P.S. : Im using Flash MX
If _alpha >100 Do This, If _alpha <0 Do This
Hi,
having a bit of a problem with a thingie in Flash mx 2004 I am doing.
I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.
Then, on the mc (dnk) I have:
onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);
if (_root.dnk.dnk0._alpha<0) {
alpha1 = alpha+10;
} else {
alpha1 = alpha-10;
}
setProperty(strDnk, _alpha, alpha1);
gotoAndStop(nextFrame);
}
So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script
I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.
Help? Have I complicated this beyond reason?
Thanks, matej
Everything._alpha=
is there such a thing as a "everything" that will pick movie clips buttons bars..............for a alpha change or a tint color change?
_alpha
I want to use actionscripting to fade in an object.
Does anyone know a simple script to put on an object to give it a smooth fade (increaing the _alpha of the object inrimentally or something) in withouth using shape tweens?
thanks
jbs
._alpha In AS
People,
i have this code to set an moveiclip to an alpha of 38%:
_root.mcContainerCollection.mcBrowseCollection.mcS mallMenu.mcSmallChildrenHolder._alpha=38;
but i also have a tween in the movieclip that fades from 0 to 100%
the tween is overruling the script...
buti i set the script after the tween it work flawlessly but it have to work before the tween....
can somobody help?
THNX !
This._alpha
so far on my script i got...
Quote:
on(rollOver) {
this._alpha -= 5;
}
but now i want it to change back to alpha 100 when it goes to 0. so far after many attemps i have been unsuccessfull. Any help is apreciated.
_alpha -
hi there,
can u guys please check my .swf (attached) in there i have green MCs that fade to zero and reveal the pics.
the problem is after awhile (please allow 1-2 mins untouched) the green MCs revert back to green. Dont know why. the code i used on MCs is:
Quote:
onClipEvent(enterFrame){
this._alpha-=5;
}
i use FlashMXpro, player7
thanks
[F8] _alpha Help
Hi guys!
I'm having trouble setting the _alpha property of a MC. I need to set the _alpha to 100 when the mouse rolls over a button and back to 0 when the mouse rolls out. Here's the actionscript I'm attaching to the button:
on (rollOver) {
setProperty(mov01, _alpha, 100);
}
on (rollOut) {
setProperty(mov01, _alpha, 0);
}
I also tried:
on (rollOver) {
_root.mov01._alpha = 100;
}
on (rollOut) {
_root.mov01._alpha = 0;
}
But none seems to work... What am I doing wrong?
Thanx.
_alpha Not What I Set It To.
This isn't a problem, more or less just something I noticed and wondered if there's anyone who's heard of a reason for why this is?
ActionScript Code:
this.createEmptyMovieClip("myMC", 5);
for (var i = 0; i<101; i++) {
myMC._alpha = i;
trace(myMC._alpha);
}
When setting the alpha of a movie clip, if the value is something other than 0, 25, 50, 75 or 100 it actually sets it to a value slightly off with up to 6 decimal places... Why?
_alpha = I
I have a simple preloader that once complete, I'm using this:
on(complete){
_root.my_mc._visible = false;
}
That works great. So I thought why not spice it up a bit and fade it out.
Everytime I set it up with a FOR loop or WHILE loop, I'm guessing it goes so fast I never see the fade.
100 to 0 would be done in under a second.
_root.my_mc._alpha = i;
Thanks for any advice!!
If _alpha >= 100 Do This, If _alpha <=0 Do This
Hi,
having a bit of a problem with a thingie in Flash mx 2004 I am doing.
I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.
Then, on the mc (dnk) I have:
onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);
if (_root.dnk.dnk0._alpha<0) {
alpha1 = alpha+10;
} else {
alpha1 = alpha-10;
}
setProperty(strDnk, _alpha, alpha1);
gotoAndStop(nextFrame);
}
So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script
I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.
Help? Have I complicated this beyond reason?
Thanks, matej
_alpha
I am using MX2004 and loading text into a dynamic textfield within a movie clip. But I cant seem to change the transparency for the dynamic text.. Nothing happens when I set _alpha for the movie clip.
Is there any way this can be done?
_alpha = ?
i am trying to when you rollOver a MC have an external swf file fade in and when you rollOut it fades out.
i am using
Code:
longDay_mc.onRollOver = function() {
fade.loadMovie("box2.swf");
_alpha = ???
}
Thats where i get lost. I have tried to search the forum but couldn't find anything.
If someone could help me that would be great!
Thanks
Set _alpha On Everything But One Mc
Hello
do any of u have a clever way of setting _alpha on everything to 30, except for one movieclip?
I tried with _root._alpha= 30; and then trying to change the mc's _alpha to 100, but that didn't work...
/henxon
_alpha Not What I Set It To.
This isn't a problem, more or less just something I noticed and wondered if there's anyone who's heard of a reason for why this is?
ActionScript Code:
this.createEmptyMovieClip("myMC", 5);for (var i = 0; i<101; i++) {myMC._alpha = i;trace(myMC._alpha);}
When setting the alpha of a movie clip, if the value is something other than 0, 25, 50, 75 or 100 it actually sets it to a value slightly off with up to 6 decimal places... Why?
_alpha AS Help (pls)
I would like to have one movieclip’s _alpha be controlled by separate buttons (database_btn, and itself “fade”). The actionscript I am using works but there are two issues;
I want to make the one movie clip mouseover for the sub menu only appear after the main menu movieclip is moused over then disappear when when moused out from the sub menu.
Also, for some reason the 4 buttons in the submenu do not work when mosued over.
I really appreciate any comments.
Thank you in advance!
Rich
CS3 Bug With _alpha ?
Hello,
A friend of mine just came to me with a weird issue, and after checking it and double checking it, I really don't get it.
Basically, to try this out you should create a new AS2 project in Flash CS3, create two movieclips with instance names smb1 and smb2, and then paste this in the main frame's code :
Code:
smb1._alpha = 0;
smb2._alpha = 0;
smb1.onEnterFrame = function() {
trace(this._alpha);
if (this._alpha<100) {
this._alpha += 5;
} else if (this._alpha>=100) {
this._alpha = 20;
smb2._alpha += 5;
}
};
The thing is, with that code, we get that in the output :
Code:
0
4.6875
9.375
14.0625
18.75
...
Which doesn't make sense at all. I even tried to add this._alpha = Math.round(this._alpha); after the += 5, and it doesn't change a thing. It works when you do this._alpha = 100, it works if you use another property such as _rotation, but as it is, it doesn't work. Or not as it's supposed to anyway.
I don't know if it's a known bug (didn't find anything related) or if we're missing an elephant hidden in this piece of code but any help would be appreciated.
If _alpha >= 100 Do This, If _alpha <=0 Do This
Hi,
having a bit of a problem with a thingie in Flash mx 2004 I am doing.
I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.
Then, on the mc (dnk) I have:
onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);
if (_root.dnk.dnk0._alpha<0) {
alpha1 = alpha+10;
} else {
alpha1 = alpha-10;
}
setProperty(strDnk, _alpha, alpha1);
gotoAndStop(nextFrame);
}
So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script
I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.
Help? Have I complicated this beyond reason?
Thanks, matej
_alpha
I am using MX2004 and loading text into a dynamic textfield within a movie clip. But I cant seem to change the transparency for the dynamic text.. Nothing happens when I set _alpha for the movie clip.
Is there any way this can be done?
_alpha = ?
i am trying to when you rollOver a MC have an external swf file fade in and when you rollOut it fades out.
i am using
Code:
longDay_mc.onRollOver = function() {
fade.loadMovie("box2.swf");
_alpha = ???
}
Thats where i get lost. I have tried to search the forum but couldn't find anything.
If someone could help me that would be great!
Thanks
Set _alpha On Everything But One Mc
Hello
do any of u have a clever way of setting _alpha on everything to 30, except for one movieclip?
I tried with _root._alpha= 30; and then trying to change the mc's _alpha to 100, but that didn't work...
/henxon
_alpha
I have an OOP class that extends a movieclip. Is there a way to initially set the alpha of a movieclip to 0 without playing with its properties? I was thinking onEnterFrame, but that continually makes it zero.
Any help would be much appreciated.
Cannot Set Movie _alpha
Hey there
I am loading a movie onto another, with LoadMovie, and I would like to set the _alpha parameter of the loaded movie, just like that:
Code:
loadMovieNum ("vinca.swf", 1);
_level1._alpha(50);
stop ();
It not worked, then I tried:
Code:
loadMovieNum ("vinca.swf", _root.flower);
_root.flower._alpha(50);
stop ();
and didn't work yet.
The only solution I found was set _alpha inside the loaded movie, before it will be loaded, but it will be pretty good if I could set this parameter after the loading. Can I?
Thank you!
HELP Chaning _alpha
I want to change the alpha level of a movie clip using actionscript rather than tweening. I don't want the alpha change to be all at once, but rather a gradual fade of 15 fps or so.
If the MC (image) is at _alpha 0 what needs to change in this line for it to work?
on(release) {
image._alpha = 100;
}
For Loop & _alpha's
I'm trying to make a MC fade out with actionscript, but can't seem to do it using a for loop... for example:
on (release) {
for(i=0; i<100; i--) {
_root.Target._alpha=i
}
Any ideas?
-- Jenni
http://xotex.net/jenni
MovieClips _alpha
for (i=1; i<=parseInt(_level0.count); i++) {
mc=createEmptyMovieClip("puppyholder"+i, i);
mc._x=i*100;
mc._y=200;
this.onRollOver=function(){
this._alpha=20;
}
loadMovie("puppy"+i+".jpg", mc);
}
Can anyone figure out why this makes all the created movieClips have an _alpha = to 20, instead of just the one I RollOver?
|