Jump to content

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 ;) ;) ;)

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.