| Package | com.soma.assets |
| Class | public class MovieClipAsset |
| Implements | IAsset |
Author: Romuald Quantin - www.soundstep.com
Information:
Blog page - SomaUI
How does it work - Soma Protest
Project Host - Google Code
Documentation - Soma ASDOC
Class version: 2.0
Actionscript version: 3.0
Copyright:
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied.
See the License for the specific language governing rights and
limitations under the License.
The Original Code is Soma.
The Initial Developer of the Original Code is Romuald Quantin.
Initial Developer are Copyright (C) 2008-2009 Soundstep. All Rights Reserved.
Usage:
Used by the NodeParser class to instantiate a MovieClip from a Flash IDE library (or SWC) and a XML node.
node name: movieclip creates a MovieClip instance from a movie clip in a flash IDE library (or SWC) using the linkage name.
<movieclip id="myMovieClip" linkage="MyMovieClipClassInLibrary" x="50" alpha=".5" verticalCenter="0" />
See also
| Method | Defined by | ||
|---|---|---|---|
|
Creates an MovieClipAsset instance, it should not be used as it should be instantiated by a NodeParser class.
| MovieClipAsset | ||
|
instantiate(node:XML, baseUI:BaseUI = null):DisplayObject
Parse a XML node to create and return a MovieClip instance.
| MovieClipAsset | ||
| MovieClipAsset | () | constructor |
public function MovieClipAsset()Creates an MovieClipAsset instance, it should not be used as it should be instantiated by a NodeParser class.
| instantiate | () | method |
public function instantiate(node:XML, baseUI:BaseUI = null):DisplayObjectParse a XML node to create and return a MovieClip instance. Class specific properties (such as alpha for a MovieClip) and BaseUI properties (such as horizontalCenter) will also be parsed and applied to the asset.
Parametersnode:XML — node XML describing the asset.
|
|
baseUI:BaseUI (default = null) — BaseUI instance (if existing) that will handle the asset.
|
DisplayObject |