MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / CommentBitmap

Class CommentBitmap

src/scripting/api/Display/CommentBitmap.ts:10–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * Compliant CommentBitmap Polyfill For BiliScriptEngine
9 */
10 export class CommentBitmap extends Bitmap implements IComment {
11 private _mM:MotionManager = new MotionManager(this);
12
13 constructor(params:Object) {
14 super();
15 this.initStyle(params);
16 Runtime.registerObject(this);
17 this.bindParent(params);
18 this._mM.play();
19 }
20
21 get motionManager():MotionManager {
22 return this._mM;
23 }
24
25 set motionManager(m) {
26 __trace("IComment.motionManager is read-only", "warn");
27 }
28
29 private bindParent(params:Object):void {
30 if (params.hasOwnProperty("parent")) {
31 (<DisplayObject> params["parent"]).addChild(this);
32 }
33 }
34
35 public initStyle(style:Object):void {
36
37 }
38 }
39
40 export function createBitmap(params:Object):any {
41 return new CommentBitmap(params);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected