Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-04-2005, 02:27 PM   #1
cjpike
Registered User
 
Join Date: Dec 2005
Posts: 3
Default creating mobile phone

Hi there,

I am a beginner to ActionScript and I have made a Flash mobile phone, with a addDigit function, which adds a digit to the display of the phone, which has a variable name display. The thing is i want a piece of ActionScript to delete one number at a time from the screen like what happens when you press the 'C' button (or similar) on your mobile phone. I have a button for this on my phone so a on (release) method would work i think.

Here is the addDigit code:

function AddDigit(digit)
{
// Add a digit to the display
if (display == "") {
display = digit;
} else {
display = display + digit;
}
}

Any help on this would be appreciated

Cheers,
Chris

* Also is there an easy way to have a call timer counting up in a text box when i press the call button on my phone and to stop when i press the end call button?!
cjpike is offline   Reply With Quote
Old 12-04-2005, 03:14 PM   #2
seeFresh
actionscripting fool v2.0
 
seeFresh's Avatar
 
Join Date: Jun 2005
Location: Germany
Posts: 218
Default

one way to do it:

Code:
newDig = "";

for(i = 0; i < digit.length-1; i++) {

newDig = digit.charAt(i);

}

digit = newDig;
seeFresh is offline   Reply With Quote
Old 12-04-2005, 11:03 PM   #3
cjpike
Registered User
 
Join Date: Dec 2005
Posts: 3
Default

Thanks for the help but how do i actually use this code?! I am a beginner, will this go in my 'c' button code in the on (release) function?

Thanks again,
Chris
cjpike is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for creating ComboBox Danneman Components 2 07-26-2005 02:10 PM
Creating Quiz using Learning Interactions Kbarek Components 0 01-19-2005 05:41 PM
mobile application leooi FlashLite / Portable Devices Development 2 12-13-2004 08:40 AM
Help me build your dream cell phone! moskovich General Chat 5 05-18-2003 12:35 PM
Phone Menu shailu123 ActionScript 1.0 (and below) 1 08-07-2002 07:52 AM


All times are GMT. The time now is 04:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.