Thanks for the reply

Yes it looks like is a recursive loop problem but I am not sure how to
detect what this loop is. 

There are no handlers hooked up to the text field. It is simply a text input
field and there is a button that when pressed, it sets a variable name
called "username" to the value of the text entered.

All it takes to make the game crash is to type one character into the text
field. If I do not type anything, the variable is set to "Player" as a
default and the game does not crash. But typing even just one character
causes the game to crash.

The only reference to keys in the game is this handler

// ****************
// check_key_status
// ****************

function check_key_status() {   
        
    boolKeyUp = Key.isDown(38);
    boolKeyDown = Key.isDown(40);
    boolKeyLeft = Key.isDown(37);
    boolKeyRight = Key.isDown(39);
    
        
}

This is called within a game loop function

i.e

this.onEnterFrame = function() {

        check_key_status();

}

There are no other references to key input.

It seems very bizarre!!



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: 22 March 2007 14:55
To: [email protected]
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I have a really weird "bug" going on in a game I am making. Game is
> developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
>
> My game was crashing the second time I played it so I have spent the last
> day and a half tracking down the cause.
>
> I have narrowed it down to a text input field. This is where the user
enters
> their name if they get a high score. If a user goes to this screen before
> playing the game a second time, then a few seconds into playing the game
the
> second time, the game hangs with an error saying a script in this movie is
> causing the flash player to run slow or something to that effect which
> requires me to choose to stop this script. The game often hangs at this
> stage and I have to force quit Flash.
>
> If they do not get a high score they do not go to this frame of the flash
> movie with the text input field and playing the game a second time does
not
> cause it to crash.
>
> I have tried recreating this text input field, changing the font, changing
> the instance name but still seems to cause the game to hang on playing it
a
> second time.
>
> If anyone has any idea why this is happening or how I can determine what
> script is causing the error, I would be extremely grateful.
>
> Thanks
>
> Paul
>
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


-- 
Cheers,
Ray Chuan
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to