# HELP! Mobile Phone Coding

**URL:** <https://forum.kirupa.com/t/help-mobile-phone-coding/35598>\
**Category:** Uncategorized\
**Created:** [November 15, 2003, 9:31pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598 "2003-11-15T21:31:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diablos](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Diablos](https://forum.kirupa.com/u/Diablos)\
**Post date:** [November 15, 2003, 9:31pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/1 "2003-11-15T21:31:52Z")

</div>

Im trying to create a replica mobile phone in flash, but i need help so that when you press the bttons come up on screen, the numbers follow each other. When i do it, they always replace the previous one. Any suggestions??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:35pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/2 "2003-11-15T21:35:51Z")

</div>

can you give some more details? _The code you used_? :sigh:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:40pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/3 "2003-11-15T21:40:49Z")

</div>

Im simply used  
on (release) {  
\_root.screen = 1  
}  
screen being a dynamic text box, and this code being attached to a button labled “1” . if attached the code to all the other buttons, replacing 1 with the appropriate code, but when i press a new button, it replaces the number displayed

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:42pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/4 "2003-11-15T21:42:57Z")

</div>

on (release) {  
oldtext = \_root.screen;  
root.screen = oldtext + “1”  
}

is what youll need, just replace “1” with what ever you want it to add

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:42pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/5 "2003-11-15T21:42:57Z")

</div>

try

on (release) {  
\_root.screen += 1  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:43pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/6 "2003-11-15T21:43:11Z")

</div>

ive just figured it out!! cheers anyway, but i used a simple math technique:  
on (release) {  
\_root.screen = \_root.screen\*10 +1  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 9:49pm UTC](https://forum.kirupa.com/t/help-mobile-phone-coding/35598/7 "2003-11-15T21:49:28Z")

</div>

sorry need help again, that code dont work for the 0, \* or # buttons!!!
