I want that my game only runs in my domain. How can I do it?
I'm sorry, would you mind clarifying what you mean by domain?
DNS (Domain Name System)
The Browser object has an expression you can use to compare.
Browser.Domain
Browser show same Browser.Domain,on iframe...or am I doing something wrong?
ex1
GameEx1
capx1&SimpleIFRAMEPage1
(just download, extract and open html page in browser)
ex2
GameEx2
capx2&SimpleIFRAMEPage2
If I understand correctly...-
var is_at_top = (window.top == window); if (this.is_busting_all) return is_at_top; if (is_at_top) return true;[/code:9c27jvtv] this is similar to what I used in second example ... [code:9c27jvtv]Browser.ExecJS("if (top != self)..etc[/code:9c27jvtv]
https://www.scirra.com/tutorials/1324/s ... e-part-two
Develop games in your browser. Powerful, performant & highly capable.
Thank you guys! but I'm confuse now: what's the best option for my needs? the newt suggestion, the korbaach's examples, the iframe plugin or the tutorial posted by blackhornet?
korbaach - I didn't understand your examples. Could you explain? is it also prevent loading my game in an iframe?