I hope you learn.
Will all of yous kindly fuck up?
Age 28, Female
Here
Joined on 8/6/07
lesbiantiger
Well, dude, you forgot a few things. First of all, it's just one small while statement. That will only check once, then it will continue execution of the rest of the code, and since there's no more code, nothing will happen after the first time the first customer says yes. To get around this, let's put it in an ENTER_FRAME event, shall we? You've also added a few useless things, and forgot to define you and your customer. Also, response should be a property, not a function, so take out the (). Here's the final code:
addEventListener(Event.ENTER_FRAME, OEF);
var customer = getCustomer();
var me:Person = new Person(letiger);
function OEF(e):void{
while(customer.response() != "NO"){
me.pester(customer);
}
}
Wow, thanks.
CoCo
Yes.