Ok so here's my code;
function stdTile(gameObjectargs)
{
gameObjectargs.parent=this;
this.gameObject=new gameObject(gameObjectargs);
}
Basically all I wanna do is pass 'This' to gameObject, so I can refer back to the stdTile when I use new stdTile({});
but for some reason every time I call it its sets gameObject.parent to window any help?
::EDIT::
I dont understand why my code didnt appear but I made a fiddle http://jsfiddle.net/Wjmta/
thisis a keyword 2 functions cannot create variable's to be used outside of them, i cantt see your code and dont understand your question, but this may help.parentproperty after instanciation? A code sample would be useful.newkeyword when attempting to create the stdTile instance.