Why getmapObject() does not works?

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

Moderators: Lapo, Bax

Posts: 3
Joined: 13 Aug 2010, 07:39

Why getmapObject() does not works?

Postby hihoha » 13 Aug 2010, 07:52

In the example "FarWest_Ranch" provided by OpenSpace, it uses

Code: Select all

var win:MovieClip
win = os.getMapObject("ranchWing1")["window"]

to let the MovieClip win to get another MovieClip window in ranchWing1.
Now I create a MovieClip in MeadowBackground in ranchBackgrounds.swf, I want to use getMapObject to get this MovieClip, but it always trace null! Is this method can only get the MovieClip in the avatar level? If it does, how can I get the MovieClip in the backgrounds level?
Thanks a lot.
User avatar
Site Admin
Posts: 4355
Joined: 29 Mar 2005, 09:50
Location: Italy

Postby Bax » 17 Aug 2010, 13:31

It is not possible to reach movieclips in the background/foreground levels using getMapObjects (and no other ways to do it). Sorry.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v1 discussions and help”

Who is online

Users browsing this forum: No registered users and 3 guests