Adobe Flex
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsWeb Design & DevelopmentAdobe Flex

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 8th, 2008, 04:52 AM
rsnv_srikanth rsnv_srikanth is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 rsnv_srikanth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 34 sec
Reputation Power: 0
Working with container in flex 3.0

hi,

i am using adobe flex 3.0 for my designs.
i am working on using drag and drop containers.
while working with containers i drag and drop the container box, its works good.
the code is:
-----------------------------------------
<containersDnDContainer width="100%" height="200" horizontalAlign="center" verticalAlign="middle" paddingTop="10" verticalGap="10"
direction="horizontal" borderStyle="solid" id="right" backgroundColor="blue" backgroundAlpha=".25">
<mx:Box backgroundColor="yellow" width="150" height="150" mouseDown="DnDManager.getInstance().doDrag(event)"/>

<mx:Box backgroundColor="green" width="150" height="150" mouseDown="DnDManager.getInstance().doDrag(event)"/>
<mx:Box backgroundColor="purple" width="150" height="150" mouseDown="DnDManager.getInstance().doDrag(event)"/>
</containersDnDContainer>
-------------------------------------------

now i am trying to place a data grid in the container box. i need the functionality like the container box i.e. if i drag the datagrid it must move to another place.
i gave datagrid clolumn property as "dragable columns" as "false". and use the code is:
---------------------------------------
<containersDnDContainer width="100%" height="200" horizontalAlign="center" verticalAlign="middle" paddingTop="10" verticalGap="10"
direction="horizontal" borderStyle="solid" id="bottom" backgroundColor="blue" backgroundAlpha=".25">
<mx:Box width="150" height="150" mouseDown="DnDManager.getInstance().doDrag(event)" >
<mxataGrid x="10" y="20" width="213" mouseDown="DnDManager.getInstance().doDrag(event)" draggableColumns="false">
<mx:columns>
<mxDataGridColumn headerText="Address" dataField="Address"/>
<mxDataGridColumn headerText="City" dataField="City"/>
<mxDataGridColumn headerText="Country" dataField="Country"/>
</mx:columns>
</mxDataGrid>
</mx:Box>
</containersDnDContainer>
--------------------------------------
but it gave the error like this:

Error #1034: Type Coercion failed: cannot convert mx.controls:ataGrid@9d4c0a1 to dNdLib.containers.IDnDContainer. at dNdLib.managers:nDManager/doDrag()


will you please reply me with solution.



thank u....

with best regards...
srikanth

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentAdobe Flex > Working with container in flex 3.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway