How simple can it be to control movie properties with Actionscript 3.0?
Filed Under (Flash Design, Flash programming) by admin on 02-06-2009
Tagged Under : flash page designers, flash web pages design, flash web site development, flash website development, professional flash web design
As we discuss web site flash design here, something that invites particular mention is excessive dependence of flash designers on Flash interface for developing any common flash web design. However, not many realize that impressive flash designs involving movie clip symbols can also be achieved with ActionScript 3.0.
The underlying syntax for bringing in any change in a property remains the same, that is, type in the name of the movie clip instance succeeded by a period, the name of the property you wish to change, an equal to sign and the new value. For example, to change the name of a certain movie clip, say Zulu to Temp, the syntax would be:
Zulu.name=Temp;
Very simple, isn’t it?
Controlling movie clip properties with ActionScript 3.0 in web site Flash design includes several actions, such as position changing of movie clip, decrement and increment in property value etc.
Summarizing Changing a Property Value
The basic syntax to change any property of a MovieClip is to type the clip’s instance name, followed by a period (.), the property name that you want to change, an equals sign (=), and then the new value:
movieClipInstanceName.propertyName = value;
E.g. rotating the clip, Clip1 by 90 degrees -
Propeties -
x - Horizontal position,
y - Vertical position,
rotation,
alpha - Transparency,
scaleX - Horizontal scale,
scaleY - Vertical scale,
visible - Visibility
Value of Properties -
x, y, scaleX, scaleY: –infinity to +infinity
rotation: –180 to 180 (degrees)
alpha: 0 to 1 (0 = transparent, 1 = opaque)
visible: true (visible) or false (invisible)
ActionScript can actually accomplish every feature achievable with Flash interface during Flash web site design.







