# Textbox's, and Multiplication?

**URL:** <https://forum.kirupa.com/t/textboxs-and-multiplication/131300>\
**Category:** Uncategorized\
**Created:** [December 14, 2004, 12:15pm UTC](https://forum.kirupa.com/t/textboxs-and-multiplication/131300 "2004-12-14T12:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashy22](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@flashy22](https://forum.kirupa.com/u/flashy22)\
**Post date:** [December 14, 2004, 12:15pm UTC](https://forum.kirupa.com/t/textboxs-and-multiplication/131300/1 "2004-12-14T12:15:43Z")

</div>

OK i have something that ill explain as simple as possible.

Lets say i have textbox X and textbox Y  
Textbox X is an input text of up to 3 numbers ONLY.  
Textbox Y is controlled by an up and down button, max 3 numbers.  
I have a button that says Calculate, and when pushed, it takes the movie to frame two, where a third textbox Z is present, and i want textbox Z to display textbox X multiplied by Textbox Y

Iits almost like a gas pump for your car, petrol is X dollars a litre, then you use Y litres of petrol, so your price (Z) is X multiplied by Y.

What would be the code for the multiplication of textbox X and Texbox Y, and then to have textbox Z equal that answer.

Im guessing it would be something like

```auto
 _root.z == _root.x =* _root.y;

```

Or something very different, that was just to help you understand me.  
Thanks alot.  
Ben
