Number match game question No.2

Posted on 2005-04-29
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 @ ....... What I can do to solve the problem ? If you need to return the solved file, please upload to .... thanks so much !!
Question by:mingchih

    Author Comment

    by the way, the orange balls should move from right to left and others left to right.....

    Author Comment

    This game should only have - in all operations ( ex. 50 - 30 = ? )
    LVL 39

    Expert Comment

    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?

    Author Comment

    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

    I made this demo sort of working.....but formula is not working well, sometimes it shows NaN or undefined..... update demo @
    LVL 18

    Accepted Solution

    see your other q at
    for (hopefully) the solution.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    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.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now