Page 1 of 1

help in openspace_tester example

Posted: 23 Apr 2010, 18:25
by bamboosam
hi, I can not understand how openspace_tester create the "OpenSpace" object, I saw "os.addEventListener" in ActionScript, but where is the "var os = new OpenSpace()" ? where is the os come from?

Posted: 24 Apr 2010, 11:49
by Bax
The example you are referring to is related to OpenSpace 1, so please use the appropriate forum, thank you.

There is no

Code: Select all

var os = new OpenSpace()
because Flash automatically declares that variable using the OpenSpace instance you have on the stage, which has the name "os".