tile interaction, beginner question

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

Moderators: Lapo, Bax

Post Reply
RowenaTheWitch
Posts: 6
Joined: 09 Jun 2009, 07:23
Location: Italy

tile interaction, beginner question

Post by RowenaTheWitch »

Hi guys,
I'm trying to make my character interact with a tile and I'm following the Ranch example.
In the ranch example each movie clip is acceded with the following code:

Code: Select all

var win:MovieClip = os.getMapObject("ranchMain1")["window"]
ranchMain1 is the objectID parameter of the skin and can be setted in the xml of the map...but "window"? Where do I set that the ranchMain1 skin contains an element named "window"?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The name of the "window" movieclip was set inside Flash directly. Open the tiles library fla file, double click on the ranchMain1 movieclip in the Flash library panel, then click on the window on the stage and you will find its instance name set in the Properties panel.
Paolo Bax
The SmartFoxServer Team
RowenaTheWitch
Posts: 6
Joined: 09 Jun 2009, 07:23
Location: Italy

Post by RowenaTheWitch »

Thanks ^_^.
Post Reply