Skip to content

Instantly share code, notes, and snippets.

package
{
import flash.display.*;
import delorum.loading.ImageLoader;
import flash.events.*;
public class LoaderExample extends MovieClip
{
public function LoaderExample():void
var imageList:Array = [ "img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg" ];
var len:uint = imageList.length;
for ( var i:uint=0; i<len; i++ )
{
// Create holder sprite for image
var imageHolder:Sprite = new Sprite();
imageHolder.x = i * 140;
this.addChild(imageHolder);
<?
function fileMover( $src, $root )
{
echo "processing: $src\n";
// Open source
$sourceDir = opendir($src);
// Recurse through contents
while ($file = readdir($sourceDir)) {
{
"packages": [
{
"id": "34869",
"name": "DYOC Silver",
"price": null
}
],
"componentIds" : {
"trucks" : "111111",
public function sendTimeOutEmail ( ):void
{
var myMailer:SMTPMailer = new SMTPMailer ("s20744.gridserver.com", 25);
myMailer.addEventListener(SMTPEvent.AUTHENTICATED, _onAuthSuccess);
myMailer.addEventListener(SMTPEvent.BAD_SEQUENCE, _onAuthFailed);
myMailer.addEventListener(SMTPEvent.MAIL_SENT, _onMailSent);
myMailer.addEventListener(SMTPEvent.MAIL_ERROR, _onMailError);
myMailer.addEventListener(SMTPEvent.CONNECTED, _onConnected);
myMailer.addEventListener(SMTPEvent.DISCONNECTED, _onDisconnected);
Array
(
[secret_key] => null
[package] => {
"productId": "34869",
"components": {
"deck": {
"product_id": "6211244760161723",
"is_upgrade": false
},
{
"level": "DYOC Silver Package",
"category": null,
"products": [
{
"id": "330",
"packagePrice": "29.9500",
"listPrice": "29.9500",
"title": "Speed Demons Checkerboard White Deck",
"description": "7.5 x 31.4\". Free grip tape.",
{
"level": "DYOC Silver Package",
"category": null,
"products": [
{
"id": "330",
"packagePrice": "29.9500",
"listPrice": "29.9500",
"title": "Speed Demons Checkerboard White Deck",
"description": "7.5 x 31.4\". Free grip tape.",
{
"productId": "34869",
"components": {
"deck": {
"is_upgrade": false,
"product_id": "629"
},
"truck": {
"is_upgrade": false,
"product_id": "14746"
{
"nonRequiredProducts": [
{
"is_upgrade": true,
"quantity": 1,
"product_id": "74"
},
{
"is_upgrade": true,
"quantity": 3,