Loading ...
Sorry, an error occurred while loading the content.

8228Re: [FlashLite] fscommand2("GetPlatform")

Expand Messages
  • Brent Arnold
    Mar 4 8:23 AM
    • 0 Attachment
      Re: [FlashLite] fscommand2("GetPlatform") What about indexOf.

       var platform:String = fscommand2(“GetPlatform”, “platform”);
      If(platform.toLowerCase().indexOf(“nokia”) != -1)
      {
         // you’ve got nokia
      }


      iBrent


      From: Scott Janousek <scott@...>
      Organization: scottjanousek.com
      Reply-To: <FlashLite@yahoogroups.com>
      Date: Wed, 04 Mar 2009 11:10:23 -0500
      To: <FlashLite@yahoogroups.com>
      Subject: Re: [FlashLite] fscommand2("GetPlatform")

       
       

      Nope no built in trim as in PHP, in AS2 ... but if you search there are
      tons of custom functions out there for reuse.

      -sj

      On 3/4/2009 5:02 AM, Barry Beattie wrote:
      > Dale, is there a "trim()" function availble to help here?
      >
      >
      > if (trim(fscommand2(“GetPlatform”, “platform”)) == " “Nokia OS" )
      > {
      >   // etc....
      > }
      >
      >
      >    

        
          


    • Show all 13 messages in this topic