Thanks rex, actually thats exactly what i did and the resume at popup_shown just doesn't seem to fire at all. Strangely enough, i did the same function while using the browser plugin and it works perfectly.
Develop games in your browser. Powerful, performant & highly capable.
Cryptwalker
I put the example in this thread.
rexrainbow Cryptwalker
Don't worry about the coding. Because Ludei has added Chrome Webstore and Pokki modules to the CocoonJS cloud compiler.
So, you can now make games for Pokki with just using CocoonJS.