A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: getting a variable type

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Location
    Brighton,UK
    Posts
    249

    getting a variable type

    i want to test a variable and see if its a string, number, array, object etc

    i know there is a function in php to do this (gettype()) but is there some thing like in action script?

  2. #2
    Junior Member
    Join Date
    Feb 2007
    Posts
    17
    typeof(expression)

    Evaluates the expression and returns a string specifying whether the expression is a String, MovieClip, Object, Function, Number, or Boolean value.

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Location
    Brighton,UK
    Posts
    249
    thanks some time i do any AS for ages then i can only remeber how to do it in php!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center