Adobe Dreamweaver Forums



Last 10 THreads :         Help with new user (Last Post : geojf3 - Replies : 0 - Views : 1 )           »          uploading site (Last Post : hrggroup - Replies : 9 - Views : 10 )           »          Print Documentation (Last Post : Peter Grainge - Replies : 3 - Views : 5 )           »          Array with For Loop Basics (Last Post : David Stiller - Replies : 3 - Views : 4 )           »          How to align XML loading text to right (Last Post : loki2357 - Replies : 0 - Views : 1 )           »          Help with navigation (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          left join won't work in query of query? (Last Post : Amm85 - Replies : 0 - Views : 1 )           »          Truncate text? (Last Post : Handycam - Replies : 0 - Views : 1 )           »          security violation connecting to socket (Last Post : SoxFan33 - Replies : 1 - Views : 2 )           »          Please point me to the correct topic section of thisForum (Last Post : GillyWilly - Replies : 10 - Views : 11 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 02:59 PM
alice_data
 
Posts: n/a
Diggs:
Default ArgumentError: Error #2025: The supplied DisplayObjectmust be a child of the caller.

Hi,

I seem to have been stuck with this issue for a while but could never make
heads or tails out of it. I have a panel with elements executing repeater
elements for my Flex to execute different external code to process the results.
Each of the state produces a different output based on the selection a user
chooses from the panel. Attached is a snippet of both. My issue is that every
time when I execute the code, it always give me this message:

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

Does anyone know what I have done wrong here? I do execute each of the
HTTPService requests using event handlers.

Thanks in advance.

Repeater Item Selection:

<mx:AddChild relativeTo="{view}" position="lastChild">
<mx:Panel id="panel3" width="185" x="1092.35" y="180" verticalGap="2"
height="269" title="Filter ">
<mx:Form id="filter5" width="165" click="checkBox_change(event)"
height="225" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Label id="title5" text="Type" fontWeight="bold" color="navy"
width="159.01315" height="24.736841"/>
<mx:Repeater id="checkBoxRepeater3" dataProvider="{AC}">
<mx:CheckBox id="checkBox3"
label="{checkBoxRepeater3.currentItem.label}"
data="{checkBoxRepeater3.currentItem.data}"
change="checkBox_change(event);" />
</mx:Repeater>
</mx:Form>
</mx:Panel>
</mx:AddChild>

Sample code from the State:
<mx:RemoveChild target="{productsRepeater2}"/>
<mx:RemoveChild target="{canvas8}"/>
<mx:RemoveChild target="{view_appointment5}"/>
<mx:AddChild relativeTo="{text4}" position="after">
<mxataGrid id="view_appointment534" paddingLeft="10"
dataProvider="{view_appointment_check_gantry.lastR esult.appointments.appointment
}"
width="671.85" height="290.8" headerColors="#CCCCFF" borderStyle="none"
initialize="view_week_check_gantry.send();"
creationComplete="view_week_check_gantry.send()" x="10" y="79.3">
<mx:columns>
<mxataGridColumn headerText="ID" dataField="id" textAlign="center"
width="35"/>
<mxataGridColumn headerText="Date" dataField="date" textAlign="center"
width="70"/>
<mxataGridColumn headerText="Time" dataField="time" textAlign="center"
width="75"/>
<mxataGridColumn headerText="Physician" dataField="physician"
textAlign="center" width="100"/>
<mxataGridColumn headerText="Room" dataField="room_id"
textAlign="center" width="35"/>
<mxataGridColumn headerText="Slot Status" dataField="slot_status"
textAlign="center" width="45"/>
</mx:columns>
</mxataGrid>
</mx:AddChild>
<mx:RemoveChild target="{canvas4}"/>
<mx:AddChild id="day_view4" relativeTo="{canvas3}"
position="after">
<mx:Canvas label="Test" id="canvas423"
verticalScrollPolicy="off" horizontalScrollPolicy="off"
initialize="my_result.send()" creationComplete="my_result.send()">
<mx:HBox backgroundColor="#00CCFF" x="25" y="20" id="hbox14">

<mx:Label textAlign="center" fontWeight="bold" fontSize="16"
fontFamily="Verdana" width="660" text="my.lastResult.appointments.a}"
id="day_week4"/>
</mx:HBox>
<mx:Repeater id="eventsRepeater4"
dataProvider="{my.lastResult.appointments.appointm ent}" x="125">
<mx:Panel x="125" id="eventsArray4" width="512"
fontWeight="normal"/>
</mx:Repeater>
</mx:Canvas>



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk