PDA

View Full Version : Reload a MC from another MC


Katzenjammer
02-27-2005, 02:33 PM
Hi! I've got a problem with a guestbook...it's based on a php script

I've got the message textbox in one movieclip and the post fields in another moviclip. I've got it to work fine except for one thing.

When I post a comment the textfield does not refresh/reload unless I reload the whole movieclip...SO I'd like to place a script on my post button that (except from posting my comment) also reloads the textbox...If you don't understand you can check it out at http://strass.1go.dk it's in swedish but you'll find the gustbook under Gästboken...

Here's the AS that I use on the POST button

on (release) {
if (Name eq "") {
_parent.Status = "Du måste skriva ett namn";
} else {
Submit = "Yes";
NumHigh = 10;
NumLow = 0;
_root.page10.GuestBook = "Laddar meddelande...vänta";
loadVariables("GuestBook.php?Name=" + Name + "&Email=" + Email + "&Website=" + Website + "&Comments=" + Comments, _root.page10, "POST");
_parent.Status = "Ditt meddelande har postats, det borde strax dyka upp i gästboken";

gotoAndStop(2);
}
}

Frame 2 is only contains a stop action and a thank you message

/ Tomas