Hi there,
this is i think the 7th attempt to get my flash/php forum to work. It works out fine in terms of registering, posting new threads… the only problem is a function called viewThread to fetch my posts and display them in Flash.
The forum code is originally from this book:
Since it works mainly with the loadVariables function, all those sections where Flah just sends variables work out fine but the section were Flash has to send and receive variables do not. Also receiving vriables works: to receive the posts I use this:
// Create random number to append to URL
randNum = Math.random()*1000000000;
// Call PHP script to fetch forum information
loadVariables (“viewforum.php?” add randNum, this);
…and it works. This is the viewThread-function that is my BIG problem:
function viewThread (threadID) {
// Create random number to append to URL
randNum = Math.random()*1000000000;
// Load thread
loadVariablesNum("viewthread.php?threadID=" add threadID add "&" add randNum, this);
// Wait for data to load
gotoAndStop ("Load Thread");
}
Could someone give me the code that works? I tried loadvars.sendandload many times but i just couldn’t get it working.
Thank you in advance!
Philipp