PDA

View Full Version : [MX] Help doing this game...



SetroGamer
July 25th, 2003, 09:05 PM
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! :)

e.s.x.s
July 26th, 2003, 01:59 AM
u sholud make a movieclip that includes a dynamic textbox.
if you want to appear it in a random loacation:

onClipEvent(load){
myMovieClip._x = random(550);
myMovieClip._y = random(400);
}

and if you want to change the text in the movieclip:

myMovieClip.textBoxVar = "game over";

finally check out this link for use PHP with Flash:
http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm

e.s.x.s

SetroGamer
July 26th, 2003, 12:26 PM
okay, the first thing works! :D 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??