Page 1 of 1

tile interaction, beginner question

Posted: 15 Jun 2009, 09:15
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"?

Posted: 16 Jun 2009, 06:55
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.

Posted: 16 Jun 2009, 07:25
by RowenaTheWitch
Thanks ^_^.