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 Link to comment https://forums.phpfreaks.com/topic/29964-huh-i-sum-need-help/ 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 :) Link to comment https://forums.phpfreaks.com/topic/29964-huh-i-sum-need-help/#findComment-137671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.