Hi. I'm at a loss here. I have used functions in a similar way before so I'm not sure if I'm missing something here or doing something completely wrong or is this a bug.
Maybe it just needs some fresh eyes.
So, version 1 works, the sprite is spawned as expected.
Version 2 doesn't work, the object is spawned somewhere outside the canvas (0,0 perhaps).
<img src="http://s13.postimg.org/d21tpt7tz/functionerror.png" border="0" />
Any ideas?