| View previous topic :: View next topic |
| Author |
Message |
Solar42693

Joined: 11 Jul 2006 Posts: 35
|
Posted: Thu Jul 13, 2006 4:23 am Post subject: fading in bitmaps |
|
|
I'm trying to make a bitmap fade in but it won't let me change the alpha then just shape tween. So i used this code:
| Code: |
onClipEvent(load){
this._alpha = 0;
}
onClipEvent(enterframe){
this._alpha += 10;
}
|
but it only works smoothly when i leave the alpha increase at 10, and it's too fast then... could someone tell me what i'm doing wrong or give me an easier way, b/c i feeling i'm making this much harder than it is. |
|
| Back to top |
|
 |
|
|
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Thu Jul 13, 2006 5:59 pm Post subject: Re: fading in bitmaps |
|
|
| Just make the bmp a graphic, then you should be able to change the alpha in order to fade it in |
|
| Back to top |
|
 |
Solar42693

Joined: 11 Jul 2006 Posts: 35
|
Posted: Fri Jul 14, 2006 1:23 am Post subject: Re: fading in bitmaps |
|
|
| i knew there was an easier way... thanks |
|
| Back to top |
|
 |
Samuel Rounce 100+ Club

Joined: 30 Oct 2005 Posts: 116 Location: London, UK
|
Posted: Sat Jul 15, 2006 2:24 am Post subject: Re: fading in bitmaps |
|
|
Phate: converting to a graphic symbol usually isn't a very good idea as they don't allow enough control when it's just as easy to have a movieclip.
Solar42693: Set the flash movie framerate higher. If you're working at the default framerate of 12fps everything will seem very choppy. I usually work at about 60 as it allows me to have everything smooth and 60 is also the highest low end monitors can refresh at so the flash movie gets better quality but is still viewable as intended by everyone. |
|
| Back to top |
|
 |
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Sat Jul 15, 2006 6:55 am Post subject: Re: fading in bitmaps |
|
|
| Except that if you are just fading an object in, the graphic is plenty. You do not need to complicate the matter by creating a movieclip. |
|
| Back to top |
|
 |
Samuel Rounce 100+ Club

Joined: 30 Oct 2005 Posts: 116 Location: London, UK
|
Posted: Sat Jul 15, 2006 6:52 pm Post subject: Re: fading in bitmaps |
|
|
But what happens when you want to adapt this later on by performing movieclip specific functions? Oh whoops you can't do it you'll have to go back and convert ALL of the graphics to movieclips.
Anything a graphic can do a mc can do better. |
|
| Back to top |
|
 |
|