Loading external params HTML5

Seems to be an easy one, but I can’t find any example. I need to get the username value from the container HTML

In flash would be…

		var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters.username;

and in the container HTML

			<param name="FlashVars" value="username=<?=$_GET['usr']?>" />

I

I need exactly the same in HTML5 Output.

Best regards
Luis

you can use haxe to access the DOM like in javascript:

html:

<input type="text" id="data" value="value data">

code:

import js.Browser;
import js.html.InputElement;

var value = cast(Browser.document.getElementById('data'), InputElement).value;

I didn’t test, but is something like this.

I think you don’t need to cast InputElement to get the value, this is just to access all fields of InputElement.

Worked perfect Thanks!!

as a commment… Take a look at this post to see how to change index.html

regards
Luis