7
edits
(→Types) |
|||
| Line 26: | Line 26: | ||
==Storing C++ pointers in JS== | ==Storing C++ pointers in JS== | ||
native class ScriptPlayer; | // declare a native type that can be used in JS | ||
native class ScriptPlayer; | |||
class Foo | class Foo | ||
{ | { | ||
// this reserves space for my native pointer | |||
var foo:ScriptPlayer; | var foo:ScriptPlayer; | ||
} | } | ||
Rules: | Rules: | ||
edits