[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Number match game question No.2

Posted on 2005-04-29
Medium Priority
Last Modified: 2010-04-03
Hi, Experts:
I have this script that should needs some big fix.... In this demo, user should be able to use red cross to aim then white ball will shoot and arrive to orange balls.... in the question area, all question should range from 20 to 50. Answer would be any number. Number on orange balls will be random with one of them should be the answer.

I attach a demo and please download it @ http://www.brianlinstudio.com/question/numberQ2.zip ....... What I can do to solve the problem ? If you need to return the solved file, please upload to http://www.brianlinstudio.com/uploadform.htm .... thanks so much !!
Question by:Brian Lin
  • 4

Author Comment

by:Brian Lin
ID: 13893257
by the way, the orange balls should move from right to left and others left to right.....

Author Comment

by:Brian Lin
ID: 13893292
This game should only have - in all operations ( ex. 50 - 30 = ? )
LVL 39

Expert Comment

ID: 13893840
hi again, I'm not too sure how this game is supposed to work.

is the red cross thing supposed to be like a mouse cursor ie. moves with the mouse

is this the opposite of the other one, where you give them the answer and they must work out the sum?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

by:Brian Lin
ID: 13894979
hi, Blu
for this game, first, there are two layers, Scores and balls. In the scores layers, there is script for the generate problem and control the red cross. In the balls layer, it has script for the balls's random number and control them to move from right to left and left to right.
So, How these two part script part work ? First, score layer script generate problem then send the "answer" ( script line 3 to 16 ) to the balls' layer script then ball's script will generate a same answer number on one of these 18 balls.
Then the red cross should move when the mouse arrow movie within the shooting area ( left = -398 right = -11 top = -253 bottom = 56 ). Then the red corss will follow the mouse arrow within these area. And when click on mouse, the white ball will shoot out and hit the orange ball... then if it is right answer, orange ball will be gone and scroe layers script will generate a new problem then whole game will continue......
I think this is the same as other question.... I guess..... mm, maybe score layer generate answer to balls layer script then balls layers script give a answer number on one of 18 balls.... then shoot the answer ......

Author Comment

by:Brian Lin
ID: 13896153
I made this demo sort of working.....but formula is not working well, sometimes it shows NaN or undefined..... update demo @ http://www.brianlinstudio.com/question/numberQ2_v.2.zip
LVL 18

Accepted Solution

Billystyx earned 2000 total points
ID: 13907646
see your other q at
for (hopefully) the solution.


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question