
Welcome Guest
|
#1
|
||||
|
||||
|
typeof... string to number
If one was not to want a number value to be an Input.
Can the <i>string</i> be turned into a <i>number</i>? So that I may use the function "typeof"? E.g; Code:
on (release) {
if (typeof <i>variable</i> != "number") {
\\ Do action
} else {
\\ Do this instead
}
trace (typeof <i>variable</i>);
} |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Math functions for variables | Smirgu | Flash 8 |
7 | 05-24-2009 05:50 AM |
| Converting a string into a number var | Rantanplan | Actionscript 2.0 |
3 | 03-23-2006 03:14 PM |
| String Arrays to Number Arrays for Math Purpose | dv8 | Flash 5 Actionscript |
2 | 04-04-2002 10:44 PM |
| Number from a String | dv8 | Flash 5 Actionscript |
8 | 02-07-2002 07:56 AM |
| Loading Variable from file | kuman | Flash 5 Actionscript |
5 | 09-17-2001 03:07 AM |






