Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


fading in bitmaps



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
Solar42693



Joined: 11 Jul 2006
Posts: 35

PostPosted: Thu Jul 13, 2006 4:23 am    Post subject: fading in bitmaps Reply with quote

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
View user's profile Send private message
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Thu Jul 13, 2006 5:59 pm    Post subject: Re: fading in bitmaps Reply with quote

Just make the bmp a graphic, then you should be able to change the alpha in order to fade it in
Back to top
View user's profile Send private message Send e-mail AIM Address
Solar42693



Joined: 11 Jul 2006
Posts: 35

PostPosted: Fri Jul 14, 2006 1:23 am    Post subject: Re: fading in bitmaps Reply with quote

i knew there was an easier way... thanks
Back to top
View user's profile Send private message
Samuel Rounce
100+ Club


Joined: 30 Oct 2005
Posts: 116
Location: London, UK

PostPosted: Sat Jul 15, 2006 2:24 am    Post subject: Re: fading in bitmaps Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Sat Jul 15, 2006 6:55 am    Post subject: Re: fading in bitmaps Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Samuel Rounce
100+ Club


Joined: 30 Oct 2005
Posts: 116
Location: London, UK

PostPosted: Sat Jul 15, 2006 6:52 pm    Post subject: Re: fading in bitmaps Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap