Dunno if it'll do in your situation, maybe you have some specific
calculations there, but I do all (well, most) property handling in
commitProperties method.

Recommended reading: Creating Advanced Visual Components in
ActionScript.<http://livedocs.adobe.com/flex/2/docs/00001721.html#210754>

R.

On 29 Mar 2007 23:52:38 -0700, sanjaypmg <[EMAIL PROTECTED]> wrote:

  Hi All,

I am using creation complete in my one of the screens where I am
attaching a Dynamic menu to PopUpButton. I am using creationComplete
event of PopUpButton to initialise that menu once the creation is
completed of the popUpButton... but its shows the following error on
run time:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at ComboPOS/initVal()
at ComboPOS/__cboAuthorsStatusFilter_creationComplete()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

If I use initialize event, it doesnt init my dynamic menu.... Can
anyone tell me the solution for the same?

Appriciate quick response...

Thanks in Advance..
Sanjay sharma

Reply via email to