Send php variable to Flash
I am working on Flash,Php site.Currently the Flash Developer calles my page called createJPG.php and sends me an image data.I recieve this data and create JPG from the Data.
What i want is, when the Flash developer send me data he can show a loader and when create JPG process is complete he can hide the loader.For this i want to pass him variable with value 1 as soon as the CreateJPG process is complete...
How can i pa开发者_如何学运维ss this varialbe ??
I think you should use External Interface because you have loaded SWF and it in Running mode by using External InterFace you can call Flex Method to pass value ck Accessing JavaScript functions from Flex
Hope that helps
The simplest way I am aware of is to use normal GET requests over your flash application.
something like
"yourflashobject.swf?name=john&surname=doe"
you can request the createJPG.php from your flash app and then check the size of the request.
Not sure if you can see returned status ( like 200 OK, Error 404 etc ) from flash. Somebody please confirm.
精彩评论