I’m making a game for my site and I was wondering how you would do the following:
-you have one object(one that gives points or one that gives you a gameover) appear at a time and in a random location.
-how do you use PHP with flash? I don’t get how…
Thanks if you can tell me!
u sholud make a movieclip that includes a dynamic textbox.
if you want to appear it in a random loacation:
[AS]
onClipEvent(load){
myMovieClip._x = random(550);
myMovieClip._y = random(400);
}
[/AS]
and if you want to change the text in the movieclip:
[AS]
myMovieClip.textBoxVar = “game over”;
[/AS]
finally check out this link for use PHP with Flash:
http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm
e.s.x.s
okay, the first thing works! The only problem now is that when I try to connect with php, it says “Unexpected ‘<’ encountered” for this line:
<?php
Why is it saying that??