ACTIONSCRIPT STRAIGHT FROM OUR FACTORY FLOOR TO YOUR MONITOR OF CHOICE
SUGAR PILL FACTORY IMAGE

February 26th, 2010-Friday
SUGAR PILL FACTORY IMAGE

Actionscript 3 + PHP Simple Stock Ticker Class


SUGAR PILL FACTORY IMAGE

SUGAR PILL FACTORY IMAGE

Add a stock ticker to your script with this easy to use class.
This is the code in the Ticker.as class

package com.atJascha{
import flash.text.*;
import flash.net.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;

public class Ticker extends Sprite {

private var _updateTimer:Timer;
private var _dataPath:String;
private var _stockSymbol:String;
private var _stockInfo:String;
private var _parseArray:Array;
private var _dataField:TextField;

public function Ticker(dataPath:String, stockSymbol:String) {

_dataPath=dataPath;
_stockSymbol=stockSymbol;
_stockInfo=”s=”+_stockSymbol+”&f=noghl1p2vs”; // to see what these symbols mean click [...]

Read Full Article
SUGAR PILL FACTORY IMAGE

February 21st, 2010-Sunday
SUGAR PILL FACTORY IMAGE

CSS Style Variable Height Background Image Actionscript 3 Class


SUGAR PILL FACTORY IMAGE

SUGAR PILL FACTORY IMAGE

This a background with a variable height like you see in a lot of css styled page layouts.  It’s an effective way of presenting information in a fun, clean and organized fashion.  It’s a pretty simple class, but still an hour or two of work, hopefully using it will save you some time.
This can be [...]

Read Full Article
SUGAR PILL FACTORY IMAGE

February 11th, 2010-Thursday
SUGAR PILL FACTORY IMAGE

Actionscript 3 Ascii Art Class


SUGAR PILL FACTORY IMAGE

SUGAR PILL FACTORY IMAGE

Create fun Ascii Art with this easy to use class…
Download source code: Actionscript ASCII Art Class
Invoke the class like so:

var bitMapData:BMap2 = new BMap2(0,0); // THIS WOULD BE YOUR IMAGE DATA
var art:AsciiArt = new AsciiArt(bitMapData, 4,”#”, “*”, “.”); //after bitMapData are optional fields
// detail:int(pixel sample rate)
// dark:String(dark pixel character),
// medium:String(medium pixel character),
// light :String(light pixel character)
addChild(art);

Here [...]

Read Full Article
SUGAR PILL FACTORY IMAGE

February 7th, 2010-Sunday
SUGAR PILL FACTORY IMAGE

Add Thumbnail Previews to Wordpress Blog Posts


SUGAR PILL FACTORY IMAGE

SUGAR PILL FACTORY IMAGE

This is an inline statement (hack) that will call up the first image in your post.  You can do whatever you want with it once its in your html

<?php
preg_match_all(‘/<img[^>]+>/i’,$post->post_content, $result);
$pic=$result[0];
echo $pic[0];
?>

(It must be within the post “loop”)
-J

Read Full Article
SUGAR PILL FACTORY IMAGE

January 29th, 2010-Friday
SUGAR PILL FACTORY IMAGE

How I Make Sure I Get Paid


SUGAR PILL FACTORY IMAGE

SUGAR PILL FACTORY IMAGE

If you’re a freelancer like me, jobs come in on the fly. One week I’m destitute and the next I can’t find a free second in my day to let my dog outside. Personally, I prefer this lifestyle, I like to think of it as hunter/gatherer like. That along with my beard [...]

Read Full Article