Jump to content

[SOLVED] Actionscript from PHP


EduardoEduardo

Recommended Posts

I am calling a PHP script from FLASH and I want FLASH to run some Actionscript from the PHP script.

 

Basically if the PHP gives a CONDITIONAL value I am looking for I want to tell FLASH to run an actionscript.

 

What do I put in the PHP?

 

and what do I put in the Flash to see if the PHP script is completed?

 

 

Thanks so much!

 

-Ed

 

 

Link to comment
https://forums.phpfreaks.com/topic/53898-solved-actionscript-from-php/
Share on other sites

I am trying to get flash to register a var that PHP is sending over but the TRACE FUNCTION is not picking it up.

 

I send the form from flash.

 

on (press)

{

loadVariables("BusCaptainsSIGNup.php", this, "POST");

Status = "Waiting";

}

 

PHP receives the input and sends it back to FLASH

 

echo "&Status=Completed";

FLASH "Status" VAR changes to "Completed" in the text field.

 

But FLASH does not recognize it when I now TRACE(Status) it to call another command.

This code below is placed on a frame and loops back to it again and again:

trace(Status);

if(Status =="Completed") { _root.Sending.gotoAndStop(30);}

else { gotoAndPlay(2);}

Do you know why this is not working?

 

Also, can PHP send ActionScript commands to flash? Like can something like this be done?

 

print "_root.Sending.gotoAndStop(4);";

 

This last line of code does not work in it's current state.

 

Basically...

 

I am looking for Flash to run some Actionscript when the PHP script is completed.

 

 

Thanks so much for your help.

 

-Mr. ED ;) ;) ;)

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.