Open URL in a new window is not working

Get help using Construct 2

Post » Thu Mar 24, 2016 9:44 pm

I have a button that is set up to open a URL in a new window but it isn't doing anything when clicked on.

CODE:

on left button click on button --> Go to "URL" in a new window ("NewWindow")


Is there something I am missing?
Thanks
B
29
S
9
G
3
Posts: 18
Reputation: 3,267

Post » Thu Mar 24, 2016 9:47 pm

Is your URL in quotes?

Try using the Button object's own "on clicked" condition instead of the Mouse object's "on clicked object" condition.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Mar 24, 2016 10:29 pm

oosyrag wrote:Is your URL in quotes?

Try using the Button object's own "on clicked" condition instead of the Mouse object's "on clicked object" condition.


I am putting quotes around it and tried your tip, but it still didn't work.
B
29
S
9
G
3
Posts: 18
Reputation: 3,267

Post » Thu Mar 24, 2016 10:32 pm

I figured it out. I just forgot to set the event sheet to the layout. Rookie mistake. lol.
B
29
S
9
G
3
Posts: 18
Reputation: 3,267


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot], yiuyiu6666 and 14 guests