swapChildren

14 views
Skip to first unread message

Shaman

unread,
Jan 13, 2010, 8:07:57 AM1/13/10
to ruf...@googlegroups.com
Привет всем.

Компонент Canvas, в нем VBox и ViewStack я пытаюсь поменять их местами в дисплей листе, swapChildren'ом на что получаю эексепшн
The supplied DisplayObject must be a child of the caller.

Что не так?

--
Pavel.

kutu

unread,
Jan 13, 2010, 9:18:38 AM1/13/10
to ruFlex
canvas.swapChildren(vBox, viewStack);
так не работает?

Roman Malko

unread,
Jan 13, 2010, 9:20:20 AM1/13/10
to ruf...@googlegroups.com
Только что проверил. Работает на сдк 3.2.0

13 января 2010 г. 15:07 пользователь Shaman <sham...@gmail.com> написал:
--
Все правила мейл листа руФлекс:
http://groups.google.com/group/ruflex/web/ruflex?hl=ru

Русскоязычная Flex-вики: http://wiki.flash-ripper.com/
Страница группы с поиском: http://groups-beta.google.com/group/ruflex?hl=ru

RSS 2.0-канал группы (50 новых тем ):   http://groups.google.com/group/ruflex/feed/rss_v2_0_topics.xml?num=50

RSS 2.0-канал группы (50 новых сообщений):  http://groups.google.com/group/ruflex/feed/rss_v2_0_msgs.xml?num=50

Первое правило мейл листа руФлекс:
Письма отправляются в UTF-8 с ящика, на который пришло письмо.

Второе правило мейл листа руФлекс:
Ненужные цитаты при ответе удаляются.

Написать в группу: ruf...@googlegroups.com
Отписаться: ruflex-un...@googlegroups.com



--
Роман

Denis Borisenko

unread,
Jan 14, 2010, 7:21:08 AM1/14/10
to ruf...@googlegroups.com
У меня тоже не работало, когда я хотел поменять местами компоненты в HBox'е. Получилось, когда я переписал используя getChildIndex и setChildIndex. Не помню уже деталей, но получилось что-то вроде такого:

var index1:int = screen.getChildIndex(screen.component1);
var index2:int = screen.getChildIndex(screen.component2);

screen.setChildIndex(screen.component1, index2);
screen.setChildIndex(screen.component2, index1);

---
Denis Borisenko

Shaman

unread,
Jan 14, 2010, 8:10:52 AM1/14/10
to ruf...@googlegroups.com

получилось что-то вроде такого:

var index1:int = screen.getChildIndex(screen.component1);
var index2:int = screen.getChildIndex(screen.component2);

screen.setChildIndex(screen.component1, index2);
screen.setChildIndex(screen.component2, index1);


Спасибо - так работает.

--
Pavel.

Руслан Жиливостов

unread,
Jan 18, 2010, 6:50:38 AM1/18/10
to ruf...@googlegroups.com
О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ ))
О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫

-----Original Message-----
From: Roman Malko <roman...@gmail.com>
To: ruf...@googlegroups.com
Date: Wed, 13 Jan 2010 16:20:20 +0200
Subject: Re: [ruFlex] swapChildren

> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ 3.2.0
>
> 13 О©╫О©╫О©╫О©╫О©╫О©╫ 2010 О©╫. 15:07 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ Shaman <sham...@gmail.com> О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
>
> > О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫.
> >
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ Canvas, О©╫ О©╫О©╫О©╫ VBox О©╫ ViewStack О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫, swapChildren'О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫


> > The supplied DisplayObject must be a child of the caller.
> >

> > О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫?
> >
> > --
> > Pavel.
> >
> > --
> > О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> > http://groups.google.com/group/ruflex/web/ruflex?hl=ru
> >
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ Flex-О©╫О©╫О©╫О©╫: http://wiki.flash-ripper.com/
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> > http://groups-beta.google.com/group/ruflex?hl=ru
> >
> > RSS 2.0-О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (50 О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ ):
> > http://groups.google.com/group/ruflex/feed/rss_v2_0_topics.xml?num=50
> >
> > RSS 2.0-О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (50 О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫):
> > http://groups.google.com/group/ruflex/feed/rss_v2_0_msgs.xml?num=50
> >
> > О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> > О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ UTF-8 О©╫ О©╫О©╫О©╫О©╫О©╫, О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫.
> >
> > О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫.
> >
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫: ruf...@googlegroups.com
> > О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫: ruflex-un...@googlegroups.com
> >
>
>
>
> --
> О©╫О©╫О©╫О©╫О©╫
> --
> О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> http://groups.google.com/group/ruflex/web/ruflex?hl=ru
>
> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ Flex-О©╫О©╫О©╫О©╫: http://wiki.flash-ripper.com/
> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫: http://groups-beta.google.com/group/ruflex?hl=ru
>
> RSS 2.0-О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (50 О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ ): http://groups.google.com/group/ruflex/feed/rss_v2_0_topics.xml?num=50
>
> RSS 2.0-О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (50 О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫): http://groups.google.com/group/ruflex/feed/rss_v2_0_msgs.xml?num=50
>
> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ UTF-8 О©╫ О©╫О©╫О©╫О©╫О©╫, О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫.
>
> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫.
>
> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫: ruf...@googlegroups.com
> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫: ruflex-un...@googlegroups.com

Alexander Negoda

unread,
Jan 26, 2010, 5:41:27 AM1/26/10
to ruf...@googlegroups.com


18 января 2010 г. 15:50 пользователь Руслан Жиливостов <ente...@mail.ru> написал:
Привет Ромуль ты ужо тутки ))
как тваи дела то


Найдите другое место для свиданий.
Следующий такой  пост - бан.
Reply all
Reply to author
Forward
0 new messages