Forum Moderators: coopster
As always,
many thanks
Anyway, one of the sites Coopster referenced mentioned that Flash MX had mad creating interfaces that interact with MySQL and PHP easier to build. The only version of Flash that I own is Flash 3, which I got when I bought the Macromedia Suite years ago (since the only thing I really use from the suite is Fireworks, I haven't upgraded).
So now I'm wondering, if I do decide to go that way, should I get Flash MX? With respect to PHP/MySQL interaction, is there a lot of benefit to having a recent version of Flash?
[edit]From the Macromedia site, it appears to me that Flash MX Pro is required if you want to use forms and connect to databases and it seems like a lot of this is "new" (forms were added in Flash 4, as far as I can tell, but that still means upgrading before I can really even play around with it enough to see whether or not I'm really interested).
Tom
[edited by: ergophobe at 8:20 pm (utc) on Jan. 12, 2004]
<added>url=http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial2.html]Forgot this one[/url]</added>
it appears to me that Flash MX Pro is required if you want to use forms and connect to databases
not sure about mx, but in mx 2004 (not pro) i quite easily created a flash 'translator' for english into geordie slang that sent a requset to php, and in turn to mysql to 'translate' the contents of an input box. im pretty sure it could be scaled up to something more complicated.
From php to flash is pretty easy if your using flash 6 or 7 (I can't remember if 5 supports flashvars or not).
Here is a example of a simple page counter,
First off, I put my flash script in a function,
function Flash( $width, $height, $title, $color, $fvars ) {
// data goes here //
} Now do the usual mysql/php database update/retrieval and get the number of hits to the page send that to flash using flashvars.
$fvars = 'counter='. $hits;
$counter = Flash( 100, 30, 'counter', 'FFFFFF', $fvars ); You can send variables to flashvars the same as urls. var1=1&var2=2&var3=3 and so on. So getting the data to flash is pretty easy.
After spending a lot of time creating a flash login. Easy enough to do. The problem is when you post variables. Opera 7 included some new hot keys that screw up posting variables from flash. I ended up writing a php script that if variables posted from the flash login form ended up being empty it would just redirect the user to a html login screen. If you care about Opera users you might want to scan their forums to find out more about it.
I'm not sure if your looking for really advanced flash stuff or just basic interweaving of flash and php? Anyway, would love to help if I can.
Good luck.
I'm not sure if your looking for really advanced flash stuff or just basic interweaving of flash and php? Anyway, would love to help if I can.
Really basic by Flash standards. I was thinking of using it to make an interface that more closely mimiced a desktop interface. So when consulting a database, users would not have to get a whole new page each time, but just the new data.
I think you can do that with Flash/PHP/MySQL without getting too fancy (i.e. no animation or anything like that).
Tom
Thanks for the links. I have actually already been there. It seems, though, that my question is so basic that nobody really bothers to address it. I'm trying to figure out what is the minimum version of Flash that I need before I can play with AMFPHP?
Do I need MX?
Put it this way - my Flash epertise extends to be capable of visiting Flash sites and that's about it ;-)
Tom