Open outside text file

Get help using Construct 2

Post » Tue Jul 02, 2013 12:50 pm

Sup guys, i want that when the user clicks on the button "Info" it opens a notepad file. I've added the file in the files, inside the project but now how do i open it? Thanks.
B
7
S
1
Posts: 21
Reputation: 647

Post » Tue Jul 02, 2013 4:45 pm

You need the AJAX object.
Then you setup an event like so:

On button click --> AJAX Request filename

To display it, add a text object and an additional event:

AJAX On "filename" completed --> Set text to AJAX.LastData

B
6
S
1
Posts: 17
Reputation: 459


Return to How do I....?

Who is online

Users browsing this forum: diamantico21, ratboy3, Yahoo [Bot] and 33 guests