Pass a value from a child browser to game

Get help using Construct 2

Post » Fri Aug 24, 2012 12:14 pm

Hi everyone, it has been a while but I am still around.

My question for the day is if it is possible to send a value back to a construct game from a window opened by the browser plugin.

You can do this with a straight up javascript web app by using the window.opener method as seen here: http://hspinfo.wordpress.com/2008/01/17/javascript-send-pass-value-of-child-window-to-parent-window/

I would like to know if this is possible without writing a plugin (which I have been trying my hand at recently and am finally wrapping my head around it)

I would love to know your thoughts.

M
B
16
S
2
G
4
Posts: 67
Reputation: 3,295

Post » Fri Aug 24, 2012 1:25 pm

I think you will have to write a plugin for this. C2 doesn't have any features that allow cross-document messaging, because the engine is designed to work in a single frame.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Fri Aug 24, 2012 1:33 pm

Great, Thanks Ashley, I was just making sure that I was not reinventing the wheel.
B
16
S
2
G
4
Posts: 67
Reputation: 3,295


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 24 guests