LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-16-2001, 03:15 AM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
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>);
}
I know this would be helpful to more FlashMovers then just I.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

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




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