Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
rmethod1234 #1
Increase by 1
Hello all,
I'm writing a small time tracking application and i've run into a small
problem. I have a textbox that displays the number of hours a user has worked
on a specific project. I'm trying to set it up so when the user clicks on a
button, the number in the textbox increases by 1.
Here is the code contained in the button:
_root.labor_time.txtHours.text = _root.labor_time.txtHours.text+1;
When i test this out instead of increasing by 1 it's appended to the current
number. For example, if a 1 is currently in the textbox it is changed to an 11
then 111 and etc.
Any ideas?
Thanks in advance.
Richard M.
rmethod1234 Guest
-
how can I increase the max key length?
Hi, if I try to install mediawiki, I get following mysql-error, during running config/index.php: "Specified key was too long; max key length is... -
increase database connections
Hi all, Currently, I notice that there are only two database connections between my ColdFusion server and the SQL server. May I ask how can I... -
Increase Row Height
Does anyone know how i can increase the height of the rows in a datagrid? -
Increase Director's RAM for authoring
Hi, Is it possible to increase Director's RAM for authoring as I have to import lot of image sequences(100+ frames) and when I do so it just runs... -
How to increase memory?
Hi, I have Adobe Photoshop Elements version 2, an iMac with OS 9.1, and 320 MB RAM. I would like to increase the memory allocated to Adobe... -
jjjake01 #2
Re: Increase by 1
it sounds like the number displayed in the text box needs to be converted from text to integer or number.
_root.labor_time.txtHours.text = int(text) + 1;
jjjake01 Guest
-
Laiverd.COM #3
Re: Increase by 1
_root.labor_time.txtHours.text = Number(_root.labor_time.txtHours.text) + 1
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-



Reply With Quote

