Šta je novo?

ActionScript3 + Yahoo! Astr - Distribucija komponenti - problem sa Button komponentom

Charles Vane

Slavan
Učlanjen(a)
18.06.2008
Poruke
75
Poena
320
Moja oprema  
Laptop
ROG Strix G15
Mobilni telefon
Redmi Note 10 Pro
Pristup internetu
  1. Kablovski internet
  2. Optički internet
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:

Kod:
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?
 
Poslednja izmena od urednika:
Nazad
Vrh Dno