EduardoEduardo Posted June 1, 2007 Share Posted June 1, 2007 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 Quote Link to comment Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 What do you have so far? can you post some code! Quote Link to comment Share on other sites More sharing options...
EduardoEduardo Posted June 1, 2007 Author Share Posted June 1, 2007 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 ;) Quote Link to comment Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 The problem seam more flash related, as for PHP sending data..well only on parameters, have you tried Connector.ai Quote Link to comment Share on other sites More sharing options...
EduardoEduardo Posted June 1, 2007 Author Share Posted June 1, 2007 Sorry, I am not sure what that is. Will it be able to help my problem? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 its a link for php/flash, personally i can't see any php problems its a flash problem! loadVariables is returning the correct data! But FLASH does not recognize it when I now TRACE(Status) it to call another command. is a flash problem Quote Link to comment Share on other sites More sharing options...
EduardoEduardo Posted June 1, 2007 Author Share Posted June 1, 2007 Ok, thanks, I will check around on an actionScript form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.