forked from Yoshgunn/Stickmen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 79a1dac
Showing
6 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project> | ||
<!-- Output SWF options --> | ||
<output> | ||
<movie disabled="False" /> | ||
<movie input="" /> | ||
<movie path="bin/Stickmen.swf" /> | ||
<movie fps="30" /> | ||
<movie width="800" /> | ||
<movie height="600" /> | ||
<movie version="11" /> | ||
<movie minorVersion="1" /> | ||
<movie background="#FFFFFF" /> | ||
</output> | ||
<!-- Other classes to be compiled into your SWF --> | ||
<classpaths> | ||
<class path="src" /> | ||
</classpaths> | ||
<!-- Build options --> | ||
<build> | ||
<option accessible="False" /> | ||
<option allowSourcePathOverlap="False" /> | ||
<option benchmark="False" /> | ||
<option es="False" /> | ||
<option loadConfig="" /> | ||
<option optimize="True" /> | ||
<option showActionScriptWarnings="True" /> | ||
<option showBindingWarnings="True" /> | ||
<option showDeprecationWarnings="True" /> | ||
<option showUnusedTypeSelectorWarnings="True" /> | ||
<option strict="True" /> | ||
<option useNetwork="True" /> | ||
<option useResourceBundleMetadata="True" /> | ||
<option warnings="True" /> | ||
<option verboseStackTraces="False" /> | ||
<option staticLinkRSL="True" /> | ||
<option additional="" /> | ||
<option customSDK="" /> | ||
</build> | ||
<!-- Class files to compile (other referenced classes will automatically be included) --> | ||
<compileTargets> | ||
<compile path="src\Main.as" /> | ||
</compileTargets> | ||
<!-- Paths to exclude from the Project Explorer tree --> | ||
<hiddenPaths> | ||
<!-- example: <hidden path="..." /> --> | ||
</hiddenPaths> | ||
<!-- Executed before build --> | ||
<preBuildCommand /> | ||
<!-- Executed after build --> | ||
<postBuildCommand alwaysRun="False" /> | ||
<!-- Other project options --> | ||
<options> | ||
<option showHiddenPaths="False" /> | ||
<option testMovie="Default" /> | ||
</options> | ||
</project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>Stickmen</title> | ||
<meta name="description" content="" /> | ||
|
||
<script src="js/swfobject.js"></script> | ||
<script> | ||
var flashvars = { | ||
}; | ||
var params = { | ||
menu: "false", | ||
scale: "noScale", | ||
allowFullscreen: "true", | ||
allowScriptAccess: "always", | ||
bgcolor: "", | ||
wmode: "direct" // can cause issues with FP settings & webcam | ||
}; | ||
var attributes = { | ||
id:"Stickmen" | ||
}; | ||
swfobject.embedSWF( | ||
"Stickmen.swf", | ||
"altContent", "100%", "100%", "10.0.0", | ||
"expressInstall.swf", | ||
flashvars, params, attributes); | ||
</script> | ||
<style> | ||
html, body { height:100%; overflow:hidden; } | ||
body { margin:0; } | ||
</style> | ||
</head> | ||
<body> | ||
<div id="altContent"> | ||
<h1>Stickmen</h1> | ||
<p><a href="http://www.adobe.com/go/getflashplayer">Get Adobe Flash player</a></p> | ||
</div> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package | ||
{ | ||
import flash.display.Sprite; | ||
import flash.events.Event; | ||
|
||
/** | ||
* ... | ||
* @author Yoshgunn | ||
*/ | ||
[Frame(factoryClass="Preloader")] | ||
public class Main extends Sprite | ||
{ | ||
|
||
public function Main():void | ||
{ | ||
if (stage) init(); | ||
else addEventListener(Event.ADDED_TO_STAGE, init); | ||
} | ||
|
||
private function init(e:Event = null):void | ||
{ | ||
removeEventListener(Event.ADDED_TO_STAGE, init); | ||
|
||
|
||
|
||
// HI PAUL !!!!! : D | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package | ||
{ | ||
import flash.display.DisplayObject; | ||
import flash.display.MovieClip; | ||
import flash.display.StageAlign; | ||
import flash.display.StageScaleMode; | ||
import flash.events.Event; | ||
import flash.events.IOErrorEvent; | ||
import flash.events.ProgressEvent; | ||
import flash.utils.getDefinitionByName; | ||
|
||
/** | ||
* ... | ||
* @author Yoshgunn | ||
*/ | ||
public class Preloader extends MovieClip | ||
{ | ||
|
||
public function Preloader() | ||
{ | ||
if (stage) { | ||
stage.scaleMode = StageScaleMode.NO_SCALE; | ||
stage.align = StageAlign.TOP_LEFT; | ||
} | ||
addEventListener(Event.ENTER_FRAME, checkFrame); | ||
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); | ||
loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError); | ||
|
||
// TODO show loader | ||
} | ||
|
||
private function ioError(e:IOErrorEvent):void | ||
{ | ||
trace(e.text); | ||
} | ||
|
||
private function progress(e:ProgressEvent):void | ||
{ | ||
// TODO update loader | ||
} | ||
|
||
private function checkFrame(e:Event):void | ||
{ | ||
if (currentFrame == totalFrames) | ||
{ | ||
stop(); | ||
loadingFinished(); | ||
} | ||
} | ||
|
||
private function loadingFinished():void | ||
{ | ||
removeEventListener(Event.ENTER_FRAME, checkFrame); | ||
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress); | ||
loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioError); | ||
|
||
// TODO hide loader | ||
|
||
startup(); | ||
} | ||
|
||
private function startup():void | ||
{ | ||
var mainClass:Class = getDefinitionByName("Main") as Class; | ||
addChild(new mainClass() as DisplayObject); | ||
} | ||
|
||
} | ||
|
||
} |