How to use .map file in flash

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

Moderators: Lapo, Bax

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

How to use .map file in flash

Postby giri_darius » 15 Jun 2011, 12:03

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 16 Jun 2011, 06:47

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

Postby giri_darius » 18 Jun 2011, 04:45

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 18 Jun 2011, 11:45

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

Postby giri_darius » 22 Jun 2011, 12:10

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

Postby giri_darius » 23 Jun 2011, 05:16

hi

I figured it out. just went through the forum.

thanks anyway
Girish Patil

Flash Developer

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 12 guests