Problem running "Hello Flash" example

vishwas.gagrani's Avatar

vishwas.gagrani

26 May, 2012 02:18 PM

hi!
I am getting the following runtime error while running the Hello Flash example. I started by saving an empty flash file with document class "HelloFlash". On running i get the following :

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.base::EventMap/mapListener()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/EventMap.as:118]
at org.robotlegs.demos.helloflash.view::ReadoutMediator/onRegister()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\view\ReadoutMediator.as:46]
at org.robotlegs.base::MediatorBase/preRegister()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/MediatorBase.as:76]
at org.robotlegs.base::MediatorMap/registerMediator()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/MediatorMap.as:172]
at org.robotlegs.base::MediatorMap/createMediatorUsing()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/MediatorMap.as:302]
at org.robotlegs.base::MediatorMap/onViewAdded()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/MediatorMap.as:278]
at flash.display::DisplayObjectContainer/addChild()
at org.robotlegs.demos.helloflash::HelloFlashContext/startup()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\HelloFlashContext.as:60]
at org.robotlegs.mvcs::Context/checkAutoStartup()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:306]
at org.robotlegs.mvcs::Context()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:128]
at org.robotlegs.demos.helloflash::HelloFlashContext()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\HelloFlashContext.as:41]
at HelloFlash()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\HelloFlash.as:36]

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.demos.helloflash.controller::CreateBallCommand/execute()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\controller\CreateBallCommand.as:37]
at org.robotlegs.base::CommandMap/execute()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:182]
at org.robotlegs.base::CommandMap/routeEventToCommand()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:232]
at Function/<anonymous>()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/ContextBase.as:70]
at org.robotlegs.mvcs::Context/startup()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:151]
at org.robotlegs.demos.helloflash::HelloFlashContext/startup()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\HelloFlashContext.as:63]
at org.robotlegs.mvcs::Context/checkAutoStartup()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:306]
at org.robotlegs.mvcs::Context()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:128]
at org.robotlegs.demos.helloflash::HelloFlashContext()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\org\robotlegs\demos\helloflash\HelloFlashContext.as:41]
at HelloFlash()[G:\store\LIBRARY\ROBOTLEGS\robotlegs-robotlegs-demos-Bundle\robotlegs-robotlegs-demos-Bundle-4fc31e7\HelloFlash\src\HelloFlash.as:36]

Not able to understand the problem. Kindly guide me.

  1. Support Staff 2 Posted by Shaun Smith on 30 May, 2012 12:30 AM

    Shaun Smith's Avatar

    Hello,

    Are you using the Flash IDE to compile your project? It's possible that metadata is being stripped out. Please see: https://github.com/robotlegs/robotlegs-framework/wiki/common-proble...

  2. 3 Posted by vishwas.gagrani on 31 May, 2012 09:50 AM

    vishwas.gagrani's Avatar

    ya, turning on SWC solved the problem.

    Thnx

  3. vishwas.gagrani closed this discussion on 31 May, 2012 09:51 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac