Показать сообщение отдельно
Старый 19.02.2009, 14:51
wvxvw вне форума Посмотреть профиль Отправить личное сообщение для wvxvw Найти все сообщения от wvxvw
  № 9  
Ответить с цитированием
wvxvw
Modus ponens
 
Аватар для wvxvw

модератор форума
Регистрация: Jul 2006
Адрес: #1=(list #1#)
Сообщений: 8,049
Записей в блоге: 38
Потому что к Canvas нужно добавлять что-то, что наследуется от UIComponent - очевидно, что панорама от него не наследуется
Цитата:
Сообщение от Manual
addChild() method
Код:
override public function addChild(child:DisplayObject):DisplayObject
Adds a child DisplayObject to this Container. The child is added after other existing children, so that the first child added has index 0, the next has index 1, an so on.

Note: While the child argument to the method is specified as of type DisplayObject, the argument must implement the IUIComponent interface to be added as a child of a container. All Flex components implement this interface.

Children are layered from back to front. In other words, if children overlap, the one with index 0 is farthest to the back, and the one with index numChildren - 1 is frontmost. This means the newly added children are layered in front of existing children.

Parameters

Код:
child:DisplayObject
— The DisplayObject to add as a child of this Container. It must implement the IUIComponent interface.
Returns
DisplayObject — The added child as an object of type DisplayObject. You typically cast the return value to UIComponent, or to the type of the added component.
Мануал - ваш друг
__________________
Hell is the possibility of sanity