[ sstanko78 @ 22.02.2010. 00:16 ] @
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::DisplayObjectContainer/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::BaseLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLayoutPane::redrawUIComponentChildren() at com.yahoo.astra.fl.containers.layoutClasses::BaseLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLayoutPane::draw() at com.yahoo.astra.fl.containers.layoutClasses::AdvancedLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:AdvancedLayoutPane::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::BaseLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLayoutPane::redrawUIComponentChildren() at com.yahoo.astra.fl.containers.layoutClasses::BaseLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:BaseLayoutPane::draw() at com.yahoo.astra.fl.containers.layoutClasses::AdvancedLayoutPane/com.yahoo.astra.fl.containers.layoutClasses:AdvancedLayoutPane::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 ? [Ovu poruku je menjao sstanko78 dana 22.02.2010. u 01:28 GMT+1] [Ovu poruku je menjao sstanko78 dana 22.02.2010. u 01:34 GMT+1] |