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

8224Re: fscommand2("GetPlatform")

Expand Messages
  • Brent Arnold
    Mar 4, 2009
    • 0 Attachment
      Sorry if this post gets double posted, I thought my email response would go through...

      What about using indexOf()?

      var platform:String = fscommand2("GetPlatform", "platform");
      if (platform.toLowerCase().indexOf("nokia") != -1)
      {
      // you've got a Nokia phone
      }


      iBrent



      --- In FlashLite@yahoogroups.com, Scott Janousek <scott@...> wrote:
      >
      > that's my favorite, but it depends on your needs. :)
      >
      > On 3/4/2009 11:15 AM, Jesse Warden wrote:
      > >
      > > like:
      > >
      > >
      > > var str = "cow ";
      > > str = str.split(" ").join("");
      > >
      > > On Wed, Mar 4, 2009 at 11:10 AM, Scott Janousek
      > > <scott@... <mailto:scott@...>> wrote:
      > >
      > > 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