tarun Posted December 8, 2006 Share Posted December 8, 2006 I want to make an interactive game kinda like RuneScape (found at www.runscape.com) but in flash and i was wondering how 2 use php with it and use variables like $example in flashthnx pplappreciate it Quote Link to comment Share on other sites More sharing options...
SharkBait Posted December 8, 2006 Share Posted December 8, 2006 If you find the answer I'd like to know to.I do pass variables to javascript via php with echoing the output into javascript and that seems to work, perhaps you can do that with Flash?Example[code]<?php$myWidth = 50;?><script type="text/javascript"> function myAlert() { alert('<?php echo $myWidth;?> is the width!'); }</script>[/code]Well I'm no JS expert but you get the point :) 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.