Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

PeerToPeerRtmfp.mxml sample Error #2025

Avatar

Level 2

Hi,

I'm trying out the PeerToPeerRtmfp.mxml sample of the LCCS SDK.

Environement:

Windows 7

Flash Builder 4.5

SDK 4.5

LCCS 10.3

Player 10.3

Scenario:

enter all requie room parameters and try to login

Problem:

After login I'm gettign an error:

     ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

This is a more full log:

20:11:10 GMT+0300    RECEIVENODES UserManager

20:11:10 GMT+0300    receiveAllSynchData UserManager

20:11:10 GMT+0300    RECEIVENODES FileManager

20:11:10 GMT+0300    receiveAllSynchData FileManager

20:11:10 GMT+0300    checkManagerSync:[object FileManager]

20:11:10 GMT+0300    RECEIVENODES AVManager

20:11:10 GMT+0300    receiveAllSynchData AVManager

20:11:10 GMT+0300    checkManagerSync:[object StreamManager]

20:11:12 GMT+0300    RECEIVENODES RoomManager

20:11:12 GMT+0300    receiveAllSynchData RoomManager

20:11:12 GMT+0300    checkManagerSync:[object RoomManager]

20:11:12 GMT+0300    checkManagerSync:[object UserManager]

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

at flash.display::DisplayObjectContainer/getChildIndex()

at mx.core::Container/getChildIndex()[E:\dev\hero_private\frameworks\projects\mx\src\mx\core\Container.as:2835]

at mx.containers::Panel/getChildIndex()[E:\dev\hero_private\frameworks\projects\mx\src\mx\containers\Panel.as:1179]

at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButtonGroup.as:611]

at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButtonGroup.as:622]

at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButtonGroup.as:622]

at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButtonGroup.as:622]

at Array$/_sort()

at Array/http://adobe.com/AS3/2006/builtin::sort()

at mx.controls::RadioButtonGroup/http://www.adobe.com/2006/flex/mx/internal::addInstance()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButtonGroup.as:473]

at mx.controls::RadioButton/addToGroup()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButton.as:574]

at mx.controls::RadioButton/commitProperties()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\RadioButton.as:514]

at mx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]

at mx.managers::LayoutManager/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]

at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]

at mx.managers::LayoutManager/validateNow()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:878]

at mx.core::Application/resizeHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx\core\Application.as:1721]

at mx.core::Application/commitProperties()[E:\dev\hero_private\frameworks\projects\mx\src\mx\core\Application.as:1073]

at mx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]

at mx.managers::LayoutManager/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]

at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]

at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

Thanks,

Ofer

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Ofer,

Thanks for reporting this bug to us. I would assume It’s a weird Flex SDK bug. We would be fixing this issue in the next SDK Drop.

So for the fix,

Modify line 174-176 from

<mx:RadioButtonGroup id="radioGroup" />
<mx:RadioButton id="nellymoser" group="{radioGroup}" selected="false"  label="{SoundCodec.NELLYMOSER}" click="changeCodec(event)" />
<mx:RadioButton id="speex" group="{radioGroup}" selected="true"  label="{SoundCodec.SPEEX}" click="changeCodec(event)"  />

To

<mx:RadioButtonGroup id="radioGroup1" />
<mx:RadioButton id="nellymoser" group="{radioGroup1}" selected="false"  label="{SoundCodec.NELLYMOSER}" click="changeCodec(event)" />
<mx:RadioButton id="speex" group="{radioGroup1}" selected="true"  label="{SoundCodec.SPEEX}" click="changeCodec(event)"  />

As you see changing the id of the RadioGroup we were using fixes this issue.

Thanks

Arun

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hi Ofer,

Thanks for reporting this bug to us. I would assume It’s a weird Flex SDK bug. We would be fixing this issue in the next SDK Drop.

So for the fix,

Modify line 174-176 from

<mx:RadioButtonGroup id="radioGroup" />
<mx:RadioButton id="nellymoser" group="{radioGroup}" selected="false"  label="{SoundCodec.NELLYMOSER}" click="changeCodec(event)" />
<mx:RadioButton id="speex" group="{radioGroup}" selected="true"  label="{SoundCodec.SPEEX}" click="changeCodec(event)"  />

To

<mx:RadioButtonGroup id="radioGroup1" />
<mx:RadioButton id="nellymoser" group="{radioGroup1}" selected="false"  label="{SoundCodec.NELLYMOSER}" click="changeCodec(event)" />
<mx:RadioButton id="speex" group="{radioGroup1}" selected="true"  label="{SoundCodec.SPEEX}" click="changeCodec(event)"  />

As you see changing the id of the RadioGroup we were using fixes this issue.

Thanks

Arun