Skip to content

Instantly share code, notes, and snippets.

@bitforth
Created September 26, 2013 01:09
Show Gist options
  • Save bitforth/6708479 to your computer and use it in GitHub Desktop.
Save bitforth/6708479 to your computer and use it in GitHub Desktop.
Primera parte del tutorial de como crear Singletons en ActionScript 3
package
{
import flash.display.Sprite;
public class Singleton extends Sprite
{
public function Singleton()
{
ClasePrivada.mensaje();
}
}
}
//Fin del paquete
//***************
//Inicia clase privada
class ClasePrivada;
{
public function ClasePrivada():void
{
trace("Soy una clase Privada");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment