all groups > flash actionscript > december 2005 >
You're in the

flash actionscript

group:

image fade in problem


Re: image fade in problem Dave Mennenoh
12/18/2005 10:48:36 AM
flash actionscript: [quoted text, click to view]
this._alpha = this._alpha+5;
}

It disappears because you're going past 100 and essentially rolling it over
to 0. You need something like so:

onClipEvent (enterFrame) {
if(this._alpha + 5 < 100) {
this._alpha += 5;
}
}


--
Dave -
www.blurredistinction.com/director
www.macromedia.com/go/team

image fade in problem designu
12/18/2005 3:11:49 PM
Hi , I hope someone can help me with this.
I got a movie clip ( loader_mc) where I load external images. On that movie
clip I?ve put the followingn code for images to fade in :
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha+5;
}
The image loads into that movie with the fade in effect but after a few
seconds later the image disappear. Trying to understand why it happens I have
deleted the fade script and then the image doen?t disappear anymore.
So, is there anyway to keep the script but without the image disappearing?
Thanks to everyone.

Re: image fade in problem rickjanusz NO[at]SPAM mac.com
12/18/2005 3:55:50 PM
have you tried

onClipEvent (enterFrame) {
this._alpha += this._alpha+5;
}

Re: image fade in problem rickjanusz NO[at]SPAM mac.com
12/18/2005 4:04:02 PM
you may need a conditional statement to go along with that, maybe something
like this:

onClipEvent (enterFrame) {
if (this._alpha <= 100){
this._alpha += this._alpha+5;
}
}

not sure but I hope this works for you
Re: image fade in problem designu
12/18/2005 5:06:13 PM
AddThis Social Bookmark Button