# \[MX\] Help doing this game

**URL:** <https://forum.kirupa.com/t/mx-help-doing-this-game/26759>\
**Category:** Uncategorized\
**Created:** [July 26, 2003, 1:05am UTC](https://forum.kirupa.com/t/mx-help-doing-this-game/26759 "2003-07-26T01:05:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SetroGamer](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@SetroGamer](https://forum.kirupa.com/u/SetroGamer)\
**Post date:** [July 26, 2003, 1:05am UTC](https://forum.kirupa.com/t/mx-help-doing-this-game/26759/1 "2003-07-26T01:05:44Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2003, 5:59am UTC](https://forum.kirupa.com/t/mx-help-doing-this-game/26759/2 "2003-07-26T05:59:42Z")

</div>

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](http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm)

e.s.x.s

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2003, 4:26pm UTC](https://forum.kirupa.com/t/mx-help-doing-this-game/26759/3 "2003-07-26T16:26:33Z")

</div>

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??
