Imam seldeci problem:
Razvili nekoliko as3 class-a, koje se oslanjaju na Yahoo Astra flash biblioteku.
Zatim smo kreirali komponentu (symbol) koja nasleduje jednu od tih naših klasa.
Odlucili smo da distribuiramo tu našu komponentu u obliku mpx ekstenzije. Znaci
eksportovali smo komponentu u swc file i napravili ekstenziju.
Ukoliko zatim upotrebimo komponentu u novom projektu, dobijamo sledeci exception:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:
isplayObjectContainer/addChildAt()
at fl.controls::BaseButton/fl.controls:BaseButton::drawBackground()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.controls::Button/fl.controls:Button::draw()
at fl.core::UIComponent/drawNow()
at com.yahoo.astra.fl.containers.layoutClasses::BaseL ayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLa youtPane::redrawUIComponentChildren()
at com.yahoo.astra.fl.containers.layoutClasses::BaseL ayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLa youtPane::draw()
at com.yahoo.astra.fl.containers.layoutClasses::Advan cedLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:Advanc edLayoutPane::draw()
at com.yahoo.astra.fl.containers::BoxPane/com.yahoo.astra.fl.containers:BoxPane::draw()
at fl.core::UIComponent/drawNow()
at com.yahoo.astra.fl.containers.layoutClasses::BaseL ayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLa youtPane::redrawUIComponentChildren()
at com.yahoo.astra.fl.containers.layoutClasses::BaseL ayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLa youtPane::draw()
at com.yahoo.astra.fl.containers.layoutClasses::Advan cedLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:Advanc edLayoutPane::draw()
at com.yahoo.astra.fl.containers::BoxPane/com.yahoo.astra.fl.containers:BoxPane::draw()
at fl.core::UIComponent/fl.core:UIComponent::callLaterDispatcher()
Cannot display source code at this location.
Ovo se ne dešava ukoliko u novom projektu uz naš menuBar na isti ekran dodamo Button kontrolu (onu koja se nalazi
u standardnom setu komponenti).
Da li je moguce resiti ovaj problem , tako da eventualni korisnici nase biblioteke ne moraju da
dodaju Button komponentu uz nas menuBar ?distribucija komponenti - problem sa Button komponentom