Skip to content

Instantly share code, notes, and snippets.

@videlais
videlais / Preloader.as
Last active December 25, 2015 11:29
ActionScript 3 Example 1 Code -- Preloader
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.system.FlxPreloader;
public class Preloader extends FlxPreloader
@videlais
videlais / ExampleRPG.as
Created October 14, 2013 00:37
ActionScript 3 Example 1 Code -- ExampleRPG
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
[SWF(width="640",height="480",backgroundColor="#000000")]
[Frame(factoryClass="Preloader")]
@videlais
videlais / PlayState.as
Last active December 25, 2015 11:29
ActionScript 3 Example 1 Code -- PlayState.as
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState
@videlais
videlais / PlayState.as
Last active December 25, 2015 13:39
ActionScript 3 Example 2 FlxSprite
var background:FlxSprite;
background = new FlxSprite();
background.makeGraphic(100, 100);
add(background);
@videlais
videlais / PlayState.as
Last active December 25, 2015 13:39
ActionScript 3 Example 2 PlayState Version 2
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState
@videlais
videlais / PlayState.as
Created October 15, 2013 02:07
ActionScript 3 Example 2 PlayState Version 3
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState
@videlais
videlais / PlayerSprite.as
Created October 15, 2013 02:31
ActionScript 3 Example 2 PlayerSprite
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayerSprite extends FlxSprite
@videlais
videlais / PlayState.as
Created October 15, 2013 02:51
ActionScript 3 Example 2 PlayState Version 3
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState
@videlais
videlais / PlayState.as
Created October 15, 2013 19:08
ActionScript 3 Example 3 PlayState Version 4
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState
@videlais
videlais / PlayState.as
Created October 15, 2013 19:16
ActionScript 3 Example 3 PlayState Version 5
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class PlayState extends FlxState