Page 1 of 1

Error when trying centerViewOnTile

Posted: 05 Jan 2009, 16:32
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...

Posted: 05 Jan 2009, 17:24
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

Posted: 05 Jan 2009, 17:28
by Dorru
Everything was correct, I just forgot that the trial version got centerViewOnTile disabled...

Sorry, but thanks for the help anyway :)