* Sends a comment onto the stage * @param data - abstract comment data
(data:Object)
| 109 | * @param data - abstract comment data |
| 110 | */ |
| 111 | public send(data:Object):void { |
| 112 | if (!data.hasOwnProperty("mode")) { |
| 113 | data["mode"] = 1; |
| 114 | } |
| 115 | if (this.options.scripting.mode.indexOf(data["mode"]) >= 0) { |
| 116 | /** Scripting comment **/ |
| 117 | if (this.options.scripting.engine !== null) { |
| 118 | this.options.scripting.engine.eval(data["code"]); |
| 119 | } |
| 120 | return; |
| 121 | } |
| 122 | this.runline.push(this.factory.create(this, data)); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Set the bounds for the comment manager |
no test coverage detected