Description

The factory class for creating scene graph elements. Do not instantiate this class directly. Use Player to get a reference.

Methods

createMovieClipInstance(linkageName)

Description

Creates new movie clip instance with the given movie clip linkage name

Parameters

Name Type Description
linkageName string The movie clip linkage name

Returns

  • Type - flwebgl.sg.MovieClip

Example

This example creates a new instance of a MovieClip given the linkage name (which is specified in the library panel in Flash Professional).

var sgf = player.getScenegraphFactory();
var mc = sgf.createMovieClipInstance("MovieClipLinkageName")

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy