Hi Renata,

> TypeError: Error # 2007: Parameter hitTestObject must not be null.


The argument to hitTestObject() is 'mouse'.  You get the error because the 
'mouse' argument to hitTestObject() is null.  Since mouse is constructed in 
function iniciarJogo(), my guess is that iniciarJogo() never gets called. An 
easy fix would be to call iniciarJogo from the constructor of the Bolhas class, 
like this:

public function Bolhas()
{
   iniciarJogo();
}

-Gerry



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

Reply via email to