Scripting Visibility instead of Alpha

Hi all,

I’m developing an intro for a site, its 10 seconds long and has streaming sound in the background…I streamed it, because it has an image flash onto the screen in unison with a drumbeat.

I want to get the file size as low as possible, because they are not looking for a loader in the beginning.

http://www.inthevalley.org/knowthemark/toyotapavilion/docs/Splash.html

I’m using Alpha’s to fade the images in and out, and I know alpha %'s can kill file size.

I understand there is a _visibility function that can be applied, can you help me out on the syntax for calling it?

Thanks!

mc._visible = /*Boolean: True or False*/;

Can I use that to make a gradual fade, like i already have?

Or is the visibility set to either true or false?

Thanks

visibility is on or off. Alpha is the only way to do fade.

also, alpha isnt really hard on filesize. Its hard on clients side cpu.

My bad, I did mean to say Alpha’s are RAM intensive.

Thanks Jerez for filling me in!

If you have an _alpha of zero make sure to set _visible to false. Even though you may not be able to see the movie clip, it is still being drawn to the stage which takes up resources. Setting _visible to false stops Flash from re-drawing the movie clip :slight_smile:

ahhh sweet!

but if _visible = false …it cant perform any actions(other actions can still affect it) but it cant take any clicks or anything…with alpha 0 if uts on enterframe tells it to move it will keep moving even if alpha is 0

afaik if _visibility = false it would not move…also cant take clicks or accept focus(i think) i pretty new to this whole AS thing