Setting transparency of a movie clip.

« Galves adventure video walkthrough | DeviantFlash Online Games Blog | Run Soldier Run Gameplay »

I just started learning flash and didn’t really find what I was looking for immediately on google. So I decided to just post everything on flash I can’t find directly here on DeviantFlash blog. This is my first post on setting transparency of a movie clip. It’s just one line of code but I had to type 5 different things in google to find what I needed.

With this code you can change the transparency (alpha color) of a movie clip. Just enter this where you need it:
this._alpha = 40;

If you only want to change visibility use:
this._visibility = true;
or
this._visibility = false;
It’s worth noting that a lot of things can be set with this. you just have to know what to type :P  So here’s also a list with other this. properties.

_alpha _currentframe _droptarget _focusrect _framesloaded _height _name _quality _rotation _soundbuftime _target _totalframes _url _visible _width _x _xmouse _xscale _y _ymouse _yscale



Comments
There are no comments for this post yet
Add your comment:


Similar posts
Most popular posts
© Copyright 2007 DeviantFlash.com, Inc. All Rights Reserved. Powered by WordPress