class Main {
static function main(){
//do stuff, that needs initData.
}
}
<script type="text/javascript">
Main.startup("passed in");
</script>
This is new to me, I didn't know that we can put xml inside of html.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
You can also define a script tag before your Haxe JS to define a startup payload:
<script>
var config = {
foo:"bar"
}
</script>
<script src="index.js"></script>
And in Haxe:
var config = untyped window.config;
You can also define a script tag before your Haxe JS to define a startup payload: <script>
var config = {
foo:"bar"
}
</script>