Packagecom.acleveraddress.net.multi_loader.data
Classpublic class MultiLoaderTypes

Each asset needs to be of a certain type, ie: These all have the same basic methods and parameters available, eg load, path, type etc, but each type has some extra methods and parameters specifically available to it. An overview of the differences is shown below:



Public Properties
 PropertyDefined by
  image_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
  sound_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
  swf_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
  text_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
  video_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
  xml_types : Array
[static] If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension.
MultiLoaderTypes
Public Methods
 MethodDefined by
  
getType(url:String):String
[static] Tries to establish the item type from its URL.
MultiLoaderTypes
Public Constants
 ConstantDefined by
  IMAGE : String = "image"
[static] Items with type set to MultiLoaderTypes.IMAGE will be loaded as a MultiLoaderImageItem
MultiLoaderTypes
  SOUND : String = "audio"
[static] Items with type set to MultiLoaderTypes.SOUND will be loaded as a MultiLoaderSoundItem
MultiLoaderTypes
  SWF : String = "swf"
[static] Items with type set to MultiLoaderTypes.SWF will be loaded as a MultiLoaderSWFItem
MultiLoaderTypes
  TEXT : String = "text"
[static] Items with type set to MultiLoaderTypes.TEXT will be loaded as a MultiLoaderTextItem
MultiLoaderTypes
  VIDEO : String = "video"
[static] Items with type set to MultiLoaderTypes.VIDEO will be loaded as a MultiLoaderVideoItem
MultiLoaderTypes
  XML : String = "xml"
[static] Items with type set to MultiLoaderTypes.XML will be loaded as a MultiLoaderXMLItem
MultiLoaderTypes
Property detail
image_typesproperty
public static var image_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the image extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

sound_typesproperty 
public static var sound_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the audio extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

swf_typesproperty 
public static var swf_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the swf extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

text_typesproperty 
public static var text_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the text extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

video_typesproperty 
public static var video_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the video extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

xml_typesproperty 
public static var xml_types:Array

If you don't specify the type of file which is loading, MultiLoader will try to guess from the file extension. The following is the list of the xml extensions which it knows. It's just an array so you may push() or splice() as required if you want to update this list.

It's far better practice to specify the type when adding the item, though.

Method detail
getType()method
public static function getType(url:String):String

Tries to establish the item type from its URL. Returns a MultiLoaderTypes constant

Parameters
url:String

Returns
String

See also

com.research_now.net.multi_loader.data.MultiLoaderTypes.TEXT
com.research_now.net.multi_loader.data.MultiLoaderTypes.XML
com.research_now.net.multi_loader.data.MultiLoaderTypes.IMAGE
com.research_now.net.multi_loader.data.MultiLoaderTypes.SWF
com.research_now.net.multi_loader.data.MultiLoaderTypes.VIDEO
com.research_now.net.multi_loader.data.MultiLoaderTypes.SOUND
Constant detail
IMAGEconstant
public static const IMAGE:String = "image"

Items with type set to MultiLoaderTypes.IMAGE will be loaded as a MultiLoaderImageItem

See also

com.research_now.net.multi_loader.types.MultiLoaderImageItem
SOUNDconstant 
public static const SOUND:String = "audio"

Items with type set to MultiLoaderTypes.SOUND will be loaded as a MultiLoaderSoundItem

See also

com.research_now.net.multi_loader.types.MultiLoaderSoundItem
SWFconstant 
public static const SWF:String = "swf"

Items with type set to MultiLoaderTypes.SWF will be loaded as a MultiLoaderSWFItem

See also

com.research_now.net.multi_loader.types.MultiLoaderSWFItem
TEXTconstant 
public static const TEXT:String = "text"

Items with type set to MultiLoaderTypes.TEXT will be loaded as a MultiLoaderTextItem

See also

com.research_now.net.multi_loader.types.MultiLoaderTextItem
VIDEOconstant 
public static const VIDEO:String = "video"

Items with type set to MultiLoaderTypes.VIDEO will be loaded as a MultiLoaderVideoItem

See also

com.research_now.net.multi_loader.types.MultiLoaderVideoItem
XMLconstant 
public static const XML:String = "xml"

Items with type set to MultiLoaderTypes.XML will be loaded as a MultiLoaderXMLItem

See also

com.research_now.net.multi_loader.types.MultiLoaderTextItem