A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: array vs. string question

Hybrid View

  1. #1
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588

    array vs. string question

    Hi I have a parameter to a function that can either be an array or it can be a string. How do I write an if statement that will do 1 thing if its an array and another if its a string? And yes it has to be dual usage under the same parameter. I use a ild card * to type the parameter so it can be either one. Please help I'm stuck!

    --calmchess
    ~calmchess~

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    I just found the solution typeof() thanks for taking the time to read this

    --calmchess
    ~calmchess~

  3. #3
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Quote Originally Posted by calmchess View Post
    thanks for taking the time to read this
    You're welcome.

    p s why not two functions?
    who is this? a word of friendly advice: FFS stop using AS2

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