Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Objects positions 2

Status
Not open for further replies.

lovalles

IS-IT--Management
Joined
Sep 20, 2001
Messages
262
Location
US
i wanna make like a Room map in two dimensions. Like several chairs, tables, and others objects then i could save this objects position so i could open after.

is this possible?

thanks
lovalles
 
You could use a sharedObject (flash cookie).
 
i dont want to use cookies, the idea is to have an standard flash file, then each file related to a MS SQL database, so each record has its correspondance flash file.

It could be that the Flash file makes a copy of the swf name based on some variable and with the objects movements.

did you get it?

thanks
lovalles
 
All you need to do is save the x and y coordinates of each object to the database (perhaps as an array) then reload them the next time the swf file is opened. The swf would need a unique id (but this could be solved by using the user's name or a password and saving that in the DB along with the object coordinates). You can do the sending and loading of data via LoadVars() talking to some middleware that creates the DB connection (either PHP/ASP/ColdFusion/CGI).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top