Anyone who can help me getting started building the next app:
Starting the movie with 2 objects on 2 starting points. The user must be able to move the objects to a different position (mouse) and click a button (send these coordinates to the database) creating a complete action for the objects. This must be possible endless. After the last movement the complete action, entered in the database, must be replayed, with pause , rewind etc… For every user doing this the movement must be stored under for example an id so that all actions entered into the database can be replayed.
Using ASP, PHP, XML, TEXT or any other technique doesn’t matter, as long the actions are stored and replayable.
Many thanks for who can help me get on the road building the application.
Scooter-flash
make a multi-dimensionnal array and store your props at each frame (onClipEvent(enterFrame) {
var curx = this._x
var cury = this._y
xarray[example][currentframe] = curx
yarray[example][currentframe] = cury
where example is the # of the record you want to store, so you can access it anytime…
and use MovieClipLoader to send info to whatever script u want
for playback, load the array from ur db file and set like
this._x = xarray[example][frame]
this._y = yarray[example][frame]
nextbutton.onRelease = function advance (){
frame++
}
sumthing like that…
And if you want to create an animation from nothing :
store the end point (endx = this._x) (endy = this._y)
onClipEvent(load){
generate.onRelease = function ()
{
breakupnumber = Math.round(100*Math.random())
breakuparray.delete;
breakuparrayx.delete;
breakuparrayy.delete;
speedarray.delete
speedarray = new Array()
breakuparrayx = new Array();
breakuparrayy = new Array();
for(a = 0; a<=breakupnumber;a++){
speedarray = Math.random()*20
breakuparrayx[a] = Math.random()*Stage._width;
breakuparrayy[a] = Math.random()*Stage._height;
}
breakuparray = new Array(breakuparrayx, breakuparrayy, speedarray);
}
then issue a manner to do these functions
onClipEvent(load){
new = true
current = 0
}
onClipEvent(enterFrame){
if(new == true){
new = false
rootx = breakuparray[0][current]
rooty = breakuparray[1][current]
nextx = breakuparray[0][current+1]
nexty = breakuparray[1][current+1]
speed = breakuparray[2][current]
}
issue movement through this and make an array of every movement
after all objectives reached(positions) put current++
have fun