Director MX help

Associate
Joined
13 Jan 2007
Posts
2,424
Location
Belfast,Northern Ireland
Hi all

Doing a project in lingo to create a basic on-screen calculator, sorted all my buttons and button clicks and whatever.

Currently my problem is I don't know how I can translate buttons pressed on my calculator to translate onto the screen on the calculator. I.e if the user clicks the '1' button, it appears on the text field on the calculator.

I assume I assign each button a value. But im unsure altogether how I make this appear on screen.

Cheers if you can help.
 
Sorry I sorted that bit already and typed it wrong. I have assigned values to sprites with no problem so far and therefore can get them to display in the text field with no problem.

However the problem is now that I don't know how to get the text field to accept the user pressing a number of sprites to equate to one large number. So when the user presses sprites '1' '2' and '3' the field displays 123 instead of just the last number pressed then store this in a local variable to be used in the final calculation.

Thanks
 
Last edited:
Back
Top Bottom