How can I connect to an SQL server and retrieve data?
Can it be done right from Flash MX?
If it can not be done from flash what is the best method to create some connecting between the two applications (Flash MX and SQL)?
You must use some kind of server-side scripting to do this with Flash - but it can definately be done. Do a keyword search here on database and you'll get at least 20 responses. Also, check the help files in the Actionscript section of your program - there's lots of stuff there, also.
There's always a better way. The fun is trying to find it!
In the FAQ section under 'Step by Step Tutorials'. It's actually not all that 'step by step' but it has some example scripts and explanations - it didn't seem to fit anywhere else though.
wangbar, i downloaded the dbaccess.fla from your faq-subject but my flash says it cant open the document. im using flash 5, i dunno if theres that much difference between all the versions of flash? in any case if you could put up a flash5-working version of your file itd really help me out, thanks =]
It's an MX file which is using the LoadVars() object. This object doesn't exist in Flash 5 I'm afraid - you can try adapting it using loadVariables instead which does work in Flash 5 (I don't have time to do that for you) and use the same PHP script which will work the same regardless of which version of Flash you're using.
the whole file wouldnt open in flash5, so i didnt get the chance to change anythin. but nvrmnd, i got flashmx installed now and it does open in that one. thanks again, this is a great tut.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.