![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 449](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553449.webp)
MovieClip
449
initObject
:
Object
[optional] - (Supported for Flash Player 6 and later) An object
containing properties with which to populate the newly attached movie clip. This parameter
allows dynamically created movie clips to receive clip parameters. If
initObject
is not an
object, it is ignored. All properties of
initObject
are copied into the new instance. The
properties specified with
initObject
are available to the constructor function.
Returns
MovieClip
- A reference to the newly created instance.
Example
The following example attaches the symbol with the linkage identifier "circle" to the movie
clip instance, which is on the Stage in the SWF file:
this.attachMovie("circle", "circle1_mc", this.getNextHighestDepth());
this.attachMovie("circle", "circle2_mc", this.getNextHighestDepth(),
{_x:100, _y:100});
See also
removeMovieClip (MovieClip.removeMovieClip method)
,
unloadMovie
(MovieClip.unloadMovie method)
,
removeMovieClip function
beginFill (MovieClip.beginFill method)
public beginFill(rgb:
Number
, [alpha:
Number
]) : Void
Indicates the beginning of a new drawing path. If an open path exists (that is, if the current
drawing position does not equal the previous position specified in a
MovieClip.moveTo()
method) and a fill is associated with it, that path is closed with a line and then filled. This is
similar to what happens when
MovieClip.endFill()
is called.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Lite 2.0
Parameters
rgb
:
Number
- A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on).
If this value is not provided or is undefined, a fill is not created.
alpha
:
Number
[optional] - An integer from 0 to 100 that specifies the alpha value of the fill.
If this value is not provided, 100 (solid) is used. If the value is less than 0, Flash uses 0. If the
value is greater than 100, Flash uses 100.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...