Flash 8 properties

_alpha

_alpha is a flash movieclip property that sets the transparency of a MovieClip. When _alpha has the value of 0, then it is transparent.
When _alpha has the value of 100 then it is fully opaque. Values between 0 and 100 give varying degrees of opacity or transparency.
It can be used thus. Pretend that you have a car Movieclip with the instance name of car_mc:

fader_btn.onRelease = function(){
car_mc._alpha -= 2;
}

_currentframe

The flash property _currentframe is the frame at which the playhead is at when you are playing a MovieClip or the _root timeline.
The _currentframe property is read only so you cannot set it, you can only read the value.
It is usually used to advance the timeline a frame at a time..
eg

// send the playhead ahead one frame on the car MovieClip
forward_btn.onRelease = function(){
car_mc.gotoAndStop(_currentframe + 1);
}

_framesloaded

The property _framesloaded is used to determing how many frames have been loaded when the Movie first starts up. It is used in conjunction with the flash property _totalframes to program a preloader.
The actionscript pseudocode might look something like this..

// if _totalframes equals _framesloaded
// then do something , usually goto and play frame 2 where the real movie starts.

the code may look something like this…
There is a stop on frame 1 of course.. and some type of animating wait thingy..

if(_framesloaded == _totalframes){
gotoAndPlay(2);
}

_height

The flash MovieClip property _height is the height of a MovieClip in pixels. You can set this property as it is read and write-able.
eg.

car_mc._height = 50;

_width

The flash MovieClip property _widths sets and reads the width of a MovieClip. It is read and write and could be used thus:

car_mc._width = 100;

Leave a Reply

You must be logged in to post a comment.