Skip to main content
January 13, 2007
Answered

Saving my Movie Clip Positions with PHP and MySQL

  • January 13, 2007
  • 2 replies
  • 370 views
Hello,

I have created a movie player (FLV) which simply plays my movie clips. Everything works fine and I like to add a new button to save the position that the movie has been played till. So, I can come back later and have the option to play the movie from the point it was stopped the previous time. Therefore, I need to Save my Movie Clip Positions with PHP and MySQL.

So far I have created a button that saves the position of the my movie clip "ns.time" into a variable. I am currently just displaying this variable but I need to export it to my PHP file where it gets sorted for being sent to mySQL Database. Could you tell m e how this can be down or where I can find more material (tutorial) to get this done.

I have tried to export it useing "getURL(url,window,method)" which points to my PHP file. But for some reason when it sends lots of information to my php and not only the Movie Clip Position. I have realised from the address line that is trying to send millions of information about the movie data-rate, etc.

I have realised that the Flash is trying to send all the information from my Listbox and Tree which are the list of the movie clips that I have. I am not sure why it is trying to send those informations!!! Is there anyway I can stop the Flash from sending all the information to my PHP file and only sends the value of my one Variable?

this is how I am sending the value of the Input Variable to the PHP File....

getURL(" http://www.myDomainName.com/aishopper/test2/matrix.php","","GET");

Thank you so much and have a great day.

Babak
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Hello JayCharles,

    Thank you for your suggestion. You are absolutly correct and made me aware of the mistake that I was making. I used your suggestion and everything worked out just fine. Once again, THANX for your help.

    Cheers,

    Babak :o)

    2 replies

    Correct answer
    January 13, 2007
    Hello JayCharles,

    Thank you for your suggestion. You are absolutly correct and made me aware of the mistake that I was making. I used your suggestion and everything worked out just fine. Once again, THANX for your help.

    Cheers,

    Babak :o)
    January 13, 2007
    I'd suggest using the loadVars class instead of getURL, but if you must use getURL, just add the variable you need to the url srtring instead of sending all of the timeline variables (which is what you are doing now)

    getURL(" http://www.myDomainName.com/aishopper/test2/matrix.php?streamTime="+yourTimeVariable);