This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../flashassets/zip/assets.zip", null); | |
_oLoader.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, onItemComplete,false, 0, true); | |
_oLoader.addEventListener(QueueLoaderEvent.QUEUE_PROGRESS, onQueueProgress, false, 0, true); | |
_oLoader.addEventListener(QueueLoaderEvent.QUEUE_COMPLETE, onQueueComplete,false, 0, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PCM Wav Loading Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var soundChannel:SoundChannel = new SoundChannel(); | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../flashassets/pcm/loop1.wav", null, {title:"Loop1"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Direct QL Formatted XML Loading Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../includes/admin/test.xml", null, {title:"XML"}); | |
_oLoader.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, onItemComplete,false, 0, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Event types | |
public static var ITEM_START : String = "itemStart"; | |
public static var ITEM_PROGRESS : String = "itemProgress"; | |
public static var ITEM_COMPLETE : String = "itemComplete"; | |
public static var ITEM_ERROR : String = "itemError"; | |
public static var ITEM_HTTP_STATUS : String = "itemHTTPStatus"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MP3 Loading Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var soundChannel:SoundChannel = new SoundChannel(); | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../flashassets/mp3/GetDown.mp3", null, {title:"MP3"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SWF Timeline Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../flashassets/swf/timeline.swf", this); | |
_oLoader.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, onItemComplete,false, 0, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Generic Data Loading Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
var _oLoader:QueueLoader = new QueueLoader(); | |
_oLoader.addItem("../queueloader.html", null, {title:"HTML"}); | |
_oLoader.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, onItemComplete,false, 0, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// QLManager Example | |
import com.hydrotik.queueloader.QueueLoader; | |
import com.hydrotik.queueloader.QueueLoaderEvent; | |
import com.hydrotik.queueloader.QLManager; | |
var _oLoader:QueueLoader = new QueueLoader(false, null, true, "loader1"); | |
_oLoader.addItem("../flashassets/mp3/GetDown.mp3", null, {title:"MP3"}); | |
_oLoader.addItem("../flashassets/swf/externalsounds.swf", this, {title:"SWF"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<queueloader prefix="../"> | |
<item container="this" src="flashassets/swf/externalimages.swf"> | |
<info> | |
<title><![CDATA[SWF Images]]></title> | |
<cacheKiller><![CDATA[true]]></cacheKiller> | |
<drawFrames><![CDATA[true]]></drawFrames> | |
</info> | |
</item> | |
<item container="imageContainer" src="flashassets/images/slideshow/1.jpg"> | |
<info> |