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.
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

Posts: 17
Reputation: 309

Return to How do I....?

Who is online

Users browsing this forum: stevenode, tarek2 and 10 guests