help in openspace_tester example

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
bamboosam
Posts: 2
Joined: 23 Apr 2010, 16:53

help in openspace_tester example

Post 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?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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".
Paolo Bax
The SmartFoxServer Team
Post Reply