Skip to content

Instantly share code, notes, and snippets.

@mikecann mikecann/Main.hx
Created Nov 30, 2011

What would you like to do?
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<meta name="description" content="" />
<img src="lime-cat.jpg" />
<div id="haxe:jeash" style="top:0; left:0; right:0; bottom:0; z-index:1001;" />
<script src="JeashExample.js"></script>
class Main
static function main()
Lib.current.stage.alpha = 0.5;
Lib.current.stage.addEventListener(Event.RESIZE, onResize);
static function onResize(e)
var s = Lib.current.stage;
trace("RESIZE "+s.stageWidth+", "+s.stageHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.