# Magic 8-ball

**URL:** <https://forum.kirupa.com/t/magic-8-ball/111177>\
**Category:** Uncategorized\
**Created:** [May 24, 2004, 2:30pm UTC](https://forum.kirupa.com/t/magic-8-ball/111177 "2004-05-24T14:30:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [May 24, 2004, 2:30pm UTC](https://forum.kirupa.com/t/magic-8-ball/111177/1 "2004-05-24T14:30:44Z")

</div>

I’m creating a magic 8-ball for my website, just a fun little thing to play with you know.

I’ve got an input field called “question” where you can type whatever you want, an ASK button called “ask” and a response field called “answer”. Once you enter a question and hit the ASK button I want flash to randomly reply in the “answer” field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the “answers” field? Am I on the right track?
