Home » questions » Help me with my flash work.?

Help me with my flash work.?

2006-08-01 01:18:40, Category: Programming & Design
My dad wanted me to make a flash game to study geography.I got it after his long explanation.That is a game like this:When you click the start button, one country's name will appear in a red frame,and if you click on right position in the world map,a dialog box appears,the following words will appear in the box at random :"yes""perfect""well done""you are right".If the wrong position, the dialog shows:"sorry""no""wrong""think it over" at random.And there are two bottons in the box.One is "continue" the other is "exit". I made one sample of that.But there are two problems:the first is I can't make the names appear in the red frame at random.The second is I don't know how to make the dialog box properly. You can get my work here at the right bottom http://iask.sina.com.cn/b/5763425.html

Answers

  1. Anil K

    On 2006-08-02 00:14:37


    Try it //In first frame var aNames:Array = new Array("yes", "perfect", "well done", "you are right"); //with a button on (press) { var i:Number = Math.floor(Math.random()*3); //its a text box display.text = aNames[i]; } anilkumarnd@yahoo.com