Skip to content

pixi-hm05 (player) / pixi-hm05/as2 / attach

Function: attach() ​

ts
function attach(
   parent, 
   id, 
   name, 
   depth, 
   init?
): SymbolInstance;

parent.attachMovie(id, name, depth[, init]): a new clip of the Library symbol with that Linkage id (Script ID / name / key), named in vars(parent) (a clip already at that depth is replaced, as in Flash). init = the initObject (_x, _y … and variables), set before its first frame's scripts run.

Parameters ​

ParameterType
parentClipLike
idstring
namestring
depthnumber
init?Vars

Returns ​

SymbolInstance

HereSplash — 2D animation for the web