Skip to content

Instantly share code, notes, and snippets.

View jasonallen's full-sized avatar

Jason Allen jasonallen

View GitHub Profile
class Article
<?xml version="1.0"?>
<!--
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2007 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the license agreement accompanying it.
$ make
~/flex_sdk_4.5.1.21328/bin/mxmlc -target-player=11.0.0 -swf-version=13 -output=main.swf -static-link-runtime-shared-libraries Main.as
Loading configuration file /Users/jallen/flex_sdk_4.5.1.21328/frameworks/flex-config.xml
/Users/jallen/dev/scraft/t4/Main.as(6): col: 24 Error: Definition flash.display:Stage3D could not be found.
import flash.display.Stage3D;
^
make: *** [main.swf] Error 1
package { // no special packages needed to organize this single file project
[SWF(width="640", height="480", frameRate="60", backgroundColor="#FFFFFF")]
import flash.display.Sprite; // the application is built upon Sprite
import flash.text.TextField; // needed to display the project's text
import flash.display.Stage3D;
public class Main extends Sprite // must match the file's name!
{
// initialize text label
private var ourExampleText:TextField = new TextField();
none----------------------------------------------------------------------------
SQLTree::Node::BeginStatement 4 calls (0.001559s)
SQLTree::Node::CommitStatement 4 calls (0.046003s)
SQLTree::Node::DeleteQuery 10 calls (0.134676s)
SQLTree::Node::InsertQuery 14 calls (0.010685s)
SQLTree::Node::SelectQuery 37 calls (0.022471s)
SQLTree::Node::SetQuery 3 calls (0.001202s)
SQLTree::Node::UpdateQuery 4 calls (0.013093s)
---------------------------- ---------- -----------
total 76 calls (0.229689s)
require 'time'
# debugging time parsing
s = "Fri Jul 14 16:07:15 2006 -0700"
t = Time.parse(s).utc
puts t.inspect