Error when trying centerViewOnTile

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

Moderators: Lapo, Bax

Post Reply
Dorru
Posts: 45
Joined: 16 Dec 2008, 13:45

Error when trying centerViewOnTile

Post by Dorru »

Any clue on why i get this?:

Description:
1061: Call to a possibly undefined method centerViewOnTile through a reference with static type com.smartfoxserver.openspace:OpenSpace.

Source:
os.centerViewOnTile(pos)


Sorry for noobie question, but I can't figure it out...
sstark
Posts: 77
Joined: 21 Nov 2008, 16:06

Post by sstark »

did you import the open space libraries? In flex you use the .swc exported from flash. In flash you need the open space component in your library. More info about both is found on this forum.

also, pos is an object with two positions? ex: {12,24}

Don't forget about:

http://www.openspace-engine.com/_docs/a ... index.html
Dorru
Posts: 45
Joined: 16 Dec 2008, 13:45

Post by Dorru »

Everything was correct, I just forgot that the trial version got centerViewOnTile disabled...

Sorry, but thanks for the help anyway :)
Post Reply