Thanks for the replies - I did have a COMPLETE event already.

Henrik - with your comment about the only line of code mentioning an object,
I worked out a solution by calling the following code once it was complete:

this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING0);

this.loaderInfo.removeEventListener(Event.INIT, checkLoaded0);
this.loaderInfo.removeEventListener(Event.COMPLETE, checkLoaded0);

Guess the PL_LOADING0 function was still being called when the mc was no
longer on screen.

Cheers

Paul

You can now play my game without any loading error

http://www.mediakitchen.co.uk/portfolio_games_liver.htm





-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: 01 February 2010 10:56
To: Flash Coders List
Subject: Re: [Flashcoders] Preloader error (AS3)

Paul Steven wrote:
>       lpc.loadingMC.percent.text=int(pcent0)+"%";

This line is the only one even mentioning other objects. One of the 
properties are null.
Check that said object actually exists at that point in time.

The note about the COMPLETE event is correct, listen for it as well, 
since the progress events are not required to be fired for the last few 
bytes.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to