View Full Version : Yes-No Question about Flash and PHP
Mathieu_BSL
05-17-2004, 02:40 PM
Hi,
Is it possible to call a php file within the Flash authoring environment so that we can debug our programs ? I am using Easy PHP with MySQl.
Thanks
Mathieu
annexion
05-17-2004, 02:58 PM
How do you mean call it?
LoadVars?
Then yes.
CyanBlue
05-17-2004, 03:31 PM
Yes with the full URL to the given PHP script when called via LoadVars()...
annexion
05-17-2004, 10:43 PM
Yeah, thanks. I didn't think I could handle that one.
No you can't mate...
Cause when using author mode you don't publish the file, so your php script cannot be called.
Or am I wrong somewhere?
Mathieu_BSL
05-18-2004, 06:49 AM
Well, I am calling a php file that returns a swf file, so I use this kind of script :
this.send_mc.loadMovie("getSomething.php", "POST");
It's important for me to be able to debug using this kind of script, not the LoadVars class. In fact, I only use the swf file as an "input" stream, never XML, JPG and so on...). SWF file is better because we can use compression and we can embed any kind of stuff :-) Even Flash Remoting is not interresting if you think about it...
Anyway, do you think it's possible using the loadMovie method ?
Mathieu
Yeah It's possible. But in your script you need to have header telling which type of file it is.
I'm actually doing a tut on it... ;) Héhéhé... :)
I can send you a sample of the script if you want...
C you.
Mathieu_BSL
05-18-2004, 07:39 AM
effectively, I do have an header telling which type of file it is, but maybe I am doing something wrong somewhere else. I would really like to see your sample... et la Nouvelle-Calédonie ! héhéhéhé
Mathieu
send me a pm with you mail pls.
Will send you a sample of it.
And you're welcome to New Caledonia... ;)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.