XML AJAX party help [SOLVED]

Get help using Construct 2

Post » Sat Jul 14, 2012 10:55 pm

Hey guys, I have this capx file and I am having a little trouble with my XML. Something is wrong with my AJAX calling the XML I think. Can someone take a looksypoo at this? I feels right on my body but doesnt feel write in code. CHEERS MATES!

CAPX FILE

If you check out the CAPX I have corrected it according to ramones help! Thanks ramones! KSLR2012-07-16 12:47:19
B
36
S
11
G
3
Posts: 279
Reputation: 8,371

Post » Sun Jul 15, 2012 12:51 am

A number of problems:

1. You need an 'AJAX: On completed' event so
   [1]System: On start of layout
        AJAX: Request project file
   [2]AJAX: On completed
        XML: Load document from AJAX.LastData

2. Load XML document from string AJAX.LastData (not "AJAX.LastData"... no quotation marks)

3. In the XML file: version="1.0" (you shouldn't have double quotation marks)

4. Make sure tag names match: <Actor></Actors>, <Monster></Monsters>
B
55
S
28
G
18
Posts: 1,520
Reputation: 25,305

Post » Sun Jul 15, 2012 11:41 pm

Oh snnnnaaappp! I was way off thanks ramones! Will adjust my sheet accordingly.
B
36
S
11
G
3
Posts: 279
Reputation: 8,371

Post » Mon Jul 16, 2012 12:48 pm

Fixed now! Check the capx above to see fix in the event sheet and xml file. thanks ramones.
B
36
S
11
G
3
Posts: 279
Reputation: 8,371


Return to How do I....?

Who is online

Users browsing this forum: Magistross, TRMG, zenox98 and 2 guests