I've got a flash course that needs to pass the current screen number from the course to the mySQL database. The person who built the back-end built a php page that I can pass the number to and it will get written to the db but I'm not sure how to "send" that in the background.
He told me that I just need to call the index.php page like:
www.url.com/index.php/user/bookmark/13 (where 13 is the screen number)
So, would I use URLRequest for something like that??
Something like this maybe?:
I don't need to get anything back from the db, but I'm not sure what the basic call to pass in the background is in AS3...Code:var vars:URLVariables = new URLVariables(); vars.theData = data; var req:URLRequest = new URLRequest("www.url.com/index.php/user/bookmark/"+slideNum); req.method = URLRequestMethod.POST; req.data = vars; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.addEventListener(Event.COMPLETE, onDataIn); loader.load(req);
Would appreciate any help...




Reply With Quote