Welcome to Kap Lab Store

Topic "Error in initiating the console"

5 Item(s)

per page
Hi Guys

A am still struggling with the console, still did not get it to work.
Right now, the application Facade extends DebugFacade, and I try to initiate the console like this:
var p : PureMVCConsole = new PureMVCConsole();
but I receive this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fr.kapit.popup::PopupLoader()
at fr.kapit::PureMVCConsole()

Any idea?
My project is AS3, may it be the problem?

I use Flex SDK 4.1 and PureMVCConsole_Flex4.swc.

Posted : 02 January 2012 15:39
Hmm, try instanciating the console after the applicationComplete event
Posted : 03 January 2012 10:46
Hi Florian

There is no such event in AS3 project.
I initiate the console after ADDED_TO_STAGE

Posted : 03 January 2012 13:34
Ok. Seeing this post: http://store.kapit.biz/default/kapforum/index/topic/id/20285/, I thought you wrapped you AS3 project inside a Flex project.

The console uses classes from the Flex SDK, that's probably why you get errors if your project is pure AS3.
Posted : 03 January 2012 13:39

I am compiling the project with Flex SDK.
The project is still AS3 only though.

I will try the application thing and post the progress.
Posted : 03 January 2012 14:03

5 Item(s)

per page