PDA

View Full Version : Really need some advice


sineadhartley
04-09-2004, 04:30 PM
Hi
i have started a new job and am required to retrieve information from a flash file and send it to database.
Scenario:
An on-line survey developed in falsh whereby user makes selections as they go and then hit submit at end.
(1)Can i send info from flash directly to php and then have it written to a mySQL database?
(2)Do i have to get flash to generate an xml file to be passed to php or are their other ways?
(3)Can you recommend any ready good reading material on-line or in book stores that would really help me out?

I really really appreciate any help anyone can give me. Its my first time doin this :eek:

Das123
04-09-2004, 07:31 PM
Search this forum for 'LoadVars' and 'sendAndLoad'. CyanBlue has some great examples of how to interact from Flash, through PHP, to mySQL and back again.

You don't need to go via XML if you don't want to.

prt1
04-10-2004, 01:57 PM
Try going to www.phpforflash,com (http://www.phpforflash.com)
You can downlaod the source files for the book.

sineadhartley
04-11-2004, 06:58 PM
Hey thanks for that. Am just trying to get my head around it.
If the user has to make selctions on 4 different survey pages what is the best way for me to hold these clicked options before sending them to php using sendAndLoad() ? Or do i just sendAndLoad() as they move through the pages? Would love any advice you could give me guys.
:o

Das123
04-11-2004, 10:09 PM
I would just create the holding variables in the first frame of the movie, then refer to them _root.var1 etc.

sineadhartley
04-12-2004, 11:12 AM
ok thanks Das123 , will give it a shot!