Packagemx.styles
Classpublic class CSSOSVersion
InheritanceCSSOSVersion Inheritance Object

Support class for MediaQueryParser to store and compare versions such as X.Y.Z Its mainly used in os-version media selector.



Public Properties
 PropertyDefined By
  major : int = 0
major figure of the version.
CSSOSVersion
  minor : int = 0
minor figure of the version.
CSSOSVersion
  revision : int = 0
revision figure of the version.
CSSOSVersion
Public Methods
 MethodDefined By
  
CSSOSVersion(versionString:String)
Contructor Returns an CSSOSVersion for versionString.
CSSOSVersion
  
compareTo(otherVersion:CSSOSVersion):int
Compares to another CSSOSVersion instance
CSSOSVersion
  
toString():String
Printable string of the version, as X.Y.Z
CSSOSVersion
Property Detail
majorproperty
public var major:int = 0

major figure of the version.

minorproperty 
public var minor:int = 0

minor figure of the version.

revisionproperty 
public var revision:int = 0

revision figure of the version.

Constructor Detail
CSSOSVersion()Constructor
public function CSSOSVersion(versionString:String)

Contructor Returns an CSSOSVersion for versionString.

Parameters
versionString:String
Method Detail
compareTo()method
public function compareTo(otherVersion:CSSOSVersion):int

Language Version : ActionScript 3.0
Product Version : Flex 4.13

Compares to another CSSOSVersion instance

Parameters

otherVersion:CSSOSVersion — another CSSOSVersion.

Returns
int — 0 if both versions are equal -1 if this is lower than otherVersion. 1 if this is greater than otherVersion.
toString()method 
public function toString():String

Printable string of the version, as X.Y.Z

Returns
String — version as a string