How to use .map file in flash

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

Moderators: Lapo, Bax

Post Reply
giri_darius
Posts: 13
Joined: 15 Jun 2011, 11:41
Location: Mumbai, India

How to use .map file in flash

Post by giri_darius »

hi there,

I have created map file with help of openspace editor. After exporting map file I get a file with .map extension.
When i export the map file with demo version of openspace editor it gives me map file in .xml format.
Now How to use the .map file in flash object.

this is how i used load with demo version
var nextMap:Object = {}
nextMap.sfsRoomName = "MyRoom"
nextMap.filename ="map_mumbai.xml"
nextMap.px = -1
nextMap.py = -1
nextMap.dir = -1


How to load map file demo007#m0_Room.map in flash
using os.loadmap() funciton

thank you
Girish Patil
Flash Developer
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

It seems you are using different versions of the Editor.
Please make sure you download and use the OpenSpace 2 engine & editor. Read the Editor documentation to understand how to use .map files.
Paolo Bax
The SmartFoxServer Team
giri_darius
Posts: 13
Joined: 15 Jun 2011, 11:41
Location: Mumbai, India

Post by giri_darius »

I am using Openspace 2.0. I didnt find in the documentation how to load map file as i had gone through the documentation.
I have bought Smartfox Pro server and OpenSpace 2.0. engine and editor.
Girish Patil
Flash Developer
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

http://openspace-engine.com/support/editor/mainMenu
Read the "Export maps, library and inventory data" paragraph.
Paolo Bax
The SmartFoxServer Team
giri_darius
Posts: 13
Joined: 15 Jun 2011, 11:41
Location: Mumbai, India

Post by giri_darius »

HI bax

thankx for support..

Do I need OpenSpaceExtension to be activated to initialize openspaceV2?

openSpace.init(smartFox)

Somehow OpenSpaceEvent.INITIALIZED Event is not happening

[WARNING] Initialization is required before loading a map
Girish Patil
Flash Developer
giri_darius
Posts: 13
Joined: 15 Jun 2011, 11:41
Location: Mumbai, India

Post by giri_darius »

hi

I figured it out. just went through the forum.

thanks anyway
Girish Patil
Flash Developer
Post Reply