Re: [flexcoders] how to make drag and drop in flex 3

Friday, December 09, 2011

 

refer the following links

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_4.html#174194

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_6.html#247937

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_7.html#247940

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_8.html#225115


Best Regards,

Sathya Moorthi K | MCA,
mailto: ksathyanm@gmail.com



On Thu, Dec 8, 2011 at 12:55 PM, azHanie <adroit42@excite.com> wrote:
 

hi,

i have problem here. i have list of images to be arranged according to the ranking. however, i cant drop the image. below is the code. may i know where's the mistake?
__________________________________________________________

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
horizontalAlign="center"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #FFFFFF]"
creationComplete="service.send()" viewSourceURL="srcview/index.html">

<mx:Script>
<![CDATA[
import mx.core.DragSource;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.events.DragEvent;
import mx.managers.DragManager;
import mx.core.UIComponent

[Bindable]
private var images:ArrayCollection;

private function serviceHandler(event:ResultEvent):void{
images = event.result.gallery.image;
}

private function initiateDrag(event:MouseEvent,value:String):void{

var dragInitiator:Image= event.currentTarget as Image;

var dragSource:DragSource = new DragSource();
dragSource.addData(value, 'value');

var dragProxy:Image = new Image();
dragProxy.source = event.currentTarget.source;
dragProxy.width = 100 ;
dragProxy.height = 100 ;

DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
}

private function dragEnterHandler(event:DragEvent):void {
var dropTarget:List=event.currentTarget as List;
if (event.dragSource.hasFormat('value')) {
DragManager.acceptDragDrop(dropTarget);
}


{
DragManager.acceptDragDrop(UIComponent(event.target));
}
}

]]>
</mx:Script>

<mx:HTTPService id="service" url="datas.xml" result="serviceHandler(event)"/>

<mx:Label text="Drag a thumbnail image inside the black box and drop it to display its bigger version"/>

<mx:HBox>
<mx:Repeater dataProvider="{images}" id="rep">
<mx:Image source="assets/thumbs/{rep.currentItem}"
mouseMove="initiateDrag(event,event.currentTarget.getRepeaterItem())" />
</mx:Repeater>
</mx:HBox>
<mx:List
iconField="image_pic"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
rowCount="1"
columnCount="1"
rowHeight="60"
columnWidth="60"
verticalScrollPolicy="off"
alternatingItemColors="[#D3D3D3, #DDDADA]"
width="81" height="63"
paddingLeft="1" paddingRight="1" paddingTop="1" paddingBottom="1"/>
<mx:List
iconField="image_pic"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
rowCount="1"
columnCount="1"
rowHeight="60"
columnWidth="60"
verticalScrollPolicy="off"
alternatingItemColors="[#D3D3D3, #DDDADA]"
width="81" height="63"
paddingLeft="1" paddingRight="1" paddingTop="1" paddingBottom="1"/>
<mx:List
iconField="image_pic"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
rowCount="1"
columnCount="1"
rowHeight="60"
columnWidth="60"
verticalScrollPolicy="off"
alternatingItemColors="[#D3D3D3, #DDDADA]"
width="81" height="63"
paddingLeft="1" paddingRight="1" paddingTop="1" paddingBottom="1"/>
<mx:List
iconField="image_pic"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
rowCount="1"
columnCount="1"
rowHeight="60"
columnWidth="60"
verticalScrollPolicy="off"
alternatingItemColors="[#D3D3D3, #DDDADA]"
width="81" height="63"
paddingLeft="1" paddingRight="1" paddingTop="1" paddingBottom="1"/>

</mx:Application>

thnks



__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[KITlist] CONTR: Director Microsoft Solutions Marketing (Silicon Valley, CA)

Please direct your responses to: http://www.stage4solutions.com/careers.html

We are looking for a Director of Microsoft Solutions Marketing for a global High Technology Storage solutions company to be responsible for defining and executing overall strategic vision and marketing strategy for multiple solutions and initiatives in support of the company´s Global Alliance with Microsoft.

This is a 6 month, 40 hours per week role, onsite at the client´s offices in the South Bay, CA. This is a w-2 role as a Stage 4 Solutions´ employee.

Responsibilities:
.Drive the development and execution of the overall Global Solutions Marketing strategy and plan for key Microsoft applications including Exchange, Sharepoint, SQL and Hyper-V based upon input from internal stakeholders and customers, market and competitive analysis.
.Deliver customer value-driven messaging and positioning at portfolio, product and solutions levels.
.Work cross-functionally to align efforts with those of other business units and marketing teams to ensure maximize impact and optimized efforts.
.Act as thought leader, delivering and reviewing fresh, innovative, market- and customer-centric collateral, presentations, multimedia assets, and sales tools.

Candidate Must Have:
.10+ years of experience in marketing, product marketing and/or strategic consulting experience.
.Knowledge of storage solutions.
.Market knowledge of Exchange, Sharepoint, SQL Server and Hyper-V solutions.
.Ability to think strategically and execute flawlessly.
.Excellent written and verbal communication.
.Proven ability to manage and work within a cross-functional/matrixed team
.Ability to align cross-functional team efforts and create buy-in from disparate groups
.Bachelor´s degree required, MBA or advanced degree a plus.

Please submit your resume to our network at http://www.stage4solutions.com/careers.html (apply for the Director Microsoft Solutions Marketing).

Please feel free to forward this job opening to others you think may be interested.


------------------------------------

********************************************************************
Read the new KIT List blog at www.kitlist.wordpress.com for job tips and to connect to our community!

Please go to www.KITlist.org to join, post jobs, or get answers to common questions. If you have any comments or questions, you can reach us directly at KITmoderator@KITlist.org.

By using the KIT List you agree to comply with the Terms of Use on the site, and will not use discriminatory employment practices. The KIT List is a service of Connelly Communications, Inc.

TO UNSUBSCRIBE:
Replying to KIT emails with an "unsubscribe" request does not work.
Instead, just send an email (from the same account you used to subscribe) to KITlist-unsubscribe@yahoogroups.com. If you are still receiving emails after a few days, please email us at KITmoderator@KITlist.org and we will manually remove you. Thanks!Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/KITlist/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/KITlist/join
(Yahoo! ID required)

<*> To change settings via email:
KITlist-digest@yahoogroups.com
KITlist-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
KITlist-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

[egyptian_developers] Alexandria - ASP.Net Web Developers

 

Alexandria – ASP.Net Web Developers

ASP.Net Web Developers

3 to 5 years experience

SQL server

Crystal Report

Work in Alexandria- Egypt

www.1topsystems.com

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[Developers_For_Ever] ِِASP.Net Developer & Webb Designers

 

Alexandria – ASP.Net Web Developers

ASP.Net Web Developers

3 to 5 years experience

SQL server

Crystal Report

Work in Alexandria- Egypt

www.1topsystems.com

__._,_.___
Recent Activity:
Kindly visit my Blog http://amrsaafan.blogspot.com
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[KITlist] WW eCommerce Partner Marketing Manager |McAfee (Santa Clara, CA)

Please direct your responses to: jennifer_livigni@mcafee.com

WW eCommerce Partner Marketing Manager

POSITION FUNCTION AND RESPONSIBILITES:

B2C Marketing Manager focused on eCommerce partnership monetization strategy & execution. This individual will effectively manage marketing programs (Mobile, Online, and Offline) throughout project lifecycle by collaborating with internal and external sources. Primary responsibility is to develop and execute mobile marketing programs to generate revenue and acquire customers. This includes but is not limited to the following:

• Develop online/offline marketing strategies, gather program requirements, create requirements document and launch campaigns
• Gather & analyze data from online programs to optimize programs through the customer lifecycle
• Comfortable presenting programs highlights and data analytics to top executives internally & externally to McAfee
• Engage with Product Management and Product Marketing teams to define usability requirements and product based messaging for partner builds
• Responsible for revenue and customer acquisition, conversion and retention targets for each partner account through online B2C marketing programs
• Sales support in crafting presentations and finance in bookings forecasting
• Measure and analyze all marketing programs and incorporate key learnings into future iterations to further drive growth and retention

EXPERIERENCE /SKILLS REQUIREMENTS:
• Experience with consumer markets surrounding online/offline platforms & metrics driven marketer with 2+ years online/mobile technology experience
• At least 5 years consumer marketing experience with a focus on developing/optimizing digital marketing programs
• Experience working across a range of marketing channels, including mobile, online and direct marketing, testing methods and delivering results
• Superb hands-on analytical ability and intermediate spread sheeting capabilities
• Demonstrated ability to create programs that increase revenue and generate customer acquisition, conversion and retention
• Excellent project management as well as exceptional interpersonal and organizational skills
• Experience working directly with a sales force and supporting sales forecasts
• Experience directly managing outside partners, vendors or agencies
• Proven verbal, written and presentation communication skills
• A highly driven individual who is a creative thinker with high level of energy

Education Requirements:
• Bachelor's degree

Note that position may require 20% travel

------------------------------------

********************************************************************
Read the new KIT List blog at www.kitlist.wordpress.com for job tips and to connect to our community!

Please go to www.KITlist.org to join, post jobs, or get answers to common questions. If you have any comments or questions, you can reach us directly at KITmoderator@KITlist.org.

By using the KIT List you agree to comply with the Terms of Use on the site, and will not use discriminatory employment practices. The KIT List is a service of Connelly Communications, Inc.

TO UNSUBSCRIBE:
Replying to KIT emails with an "unsubscribe" request does not work.
Instead, just send an email (from the same account you used to subscribe) to KITlist-unsubscribe@yahoogroups.com. If you are still receiving emails after a few days, please email us at KITmoderator@KITlist.org and we will manually remove you. Thanks!Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/KITlist/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/KITlist/join
(Yahoo! ID required)

<*> To change settings via email:
KITlist-digest@yahoogroups.com
KITlist-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
KITlist-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Re: [flexcoders] Re: getting the total of values of an array collection that is updated manually

 



public function deleteOrder():void{
orderColl.removeItemAt(products.selectedIndex);
init()
}


private function addProduct():void
{

//Create an object to hold the data
var obj:Object=new Object();
//Assign the variables to it
obj.Product=product.text;
obj.Price=price.text;
//Add the object to the list
orderColl.addItemAt(obj, 0);
init()
}
On Fri, Dec 9, 2011 at 4:52 PM, ZIONIST <stinasius@yahoo.com> wrote:
 

Hi Guys, i have finally got the total to update when new items are added to the cart. One thing that i have failed to do is to get the total to update when quantity is changed and when a product is removed from the cart(list component). Any help on this? Here is the latest code that only gets the total to update when a new product is added.



"App"

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
xmlns:ns1="*"
xmlns:ns2="as_logic.*">

<mx:states>
<mx:State name="dark">
<mx:SetProperty target="{product}"
name="text"
value="Dark Chocolate"/>
<mx:SetProperty target="{price}"
name="text"
value="50"/>
</mx:State>
<mx:State name="spread">
<mx:SetProperty target="{product}"
name="text"
value="Drinking Chocolate"/>
<mx:SetProperty target="{price}"
name="text"
value="100"/>
</mx:State>
</mx:states>

<mx:Script>
<![CDATA[
import mx.controls.listClasses.ListData;
import mx.collections.ArrayCollection;

[Bindable]
private var orderColl:ArrayCollection=new ArrayCollection();

private function addProduct():void
{

//Create an object to hold the data
var obj:Object=new Object();
//Assign the variables to it
obj.Product=product.text;
obj.Price=price.text;
//Add the object to the list
orderColl.addItemAt(obj, 0);

}

public function deleteOrder():void

{

//Remove the item from the array collection
orderColl.removeItemAt(products.selectedIndex);

}

public function init():void
{
var total:Number=0;
for (var i:String in orderColl)
{
total+=Number(orderColl[i].Price);
}
sum.text=usdFormatter.format(total.toString());
}
]]>
</mx:Script>

<mx:DefaultTileListEffect id="dtle0"
fadeOutDuration="300"
fadeInDuration="300"
moveDuration="650"
color="0xffffff"/>

<mx:CurrencyFormatter id="usdFormatter"
precision="0"
currencySymbol="$"
alignSymbol="left"/>


<mx:Canvas width="500"
height="300">
<mx:Label x="10"
y="10"
text="Milk Chocolate"
id="product"/>
<mx:Label x="10"
y="36"
text="10"
id="price"/>
<mx:Button x="10"
y="62"
label="submit"
click="addProduct();init()"/>
<mx:Button x="10"
y="92"
label="Change State"
click="currentState='dark'"/>
<mx:Button x="10"
y="122"
label="Drinking Chocolate"
click="currentState='spread'"/>
</mx:Canvas>

<mx:VBox width="340"
height="340"
horizontalAlign="center"
verticalAlign="middle">

<ns2:transparentList id="products"

width="300"
height="300"
dataProvider="{orderColl}"
borderStyle="none"
itemsChangeEffect="{dtle0}">
<ns2:itemRenderer>
<mx:Component>
<mx:HBox width="100%"

height="100%"
horizontalAlign="center"
verticalAlign="middle"
horizontalGap="0">
<mx:Image source="assets/trashcan.gif"
click="outerDocument.deleteOrder()"/>

<mx:Label text="{data.Product}"
styleName="orderLabel"/>
<mx:Spacer width="100%"/>
<mx:Label id="price"
text="${Number(qty.text)* Number(oldPrice.text)}"
styleName="orderLabel"/>
<mx:TextInput id="qty"
width="30"
height="20"
text="1"
styleName="qtyInput"/>

<mx:Label id="oldPrice"
text="{data.Price}"
visible="false"
includeInLayout="false"/>
</mx:HBox>
</mx:Component>
</ns2:itemRenderer>
</ns2:transparentList>

<mx:HBox>
<mx:Label text="Total:"
color="#FFFFFF"
fontWeight="bold"/>
<mx:Label id="sum"/>

</mx:HBox>
</mx:VBox>

</mx:Application>


__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

`~` b L u E z `~` ``` inside the wHite house ```

 

joinGroup





President Obama and first lady Michelle wear 3-D glasses while watching the Super Bowl with family, friends, staff members and members of Congress in the family theater of the White House, February 1, 2009.







President Obama and Vice President Joe Biden, along with members of the national security team, receive an update on the mission against Osama bin Laden in the Situation Room of the White House, May 1, 2011.





President Obama is helped by then Vermont Governor Jim Douglas to move a couch in the Oval Office, February 2, 2009.




President Obama holds a pencil as he participates in a cabinet meeting in the State Dining Room of the White House, June 8, 2009.




President Obama arrives for a news conference in the East Room of the White House, June 29, 2011.




President Obama with Senior Advisor David Axelrod, Chief of Staff Rahm Emanuel and Press Secretary Robert Gibbs in the White House Red Room, March 24, 2009.




President Obama, along with Cabinet Secretaries and Members of Congress, during a basketball game on the White House court, October 8, 2009.




Blackberry phones belonging to senior members of President Obama's cabinet just outside the Cabinet Room of the White House during a meeting, August 3, 2011.




White House Deputy Director of Oval Office Operations Brian Mosteller attempts to protect his shoes as he plays with the Obama family dog "Bo"in the White HousCabinet Room, April 21, 2009.



President Obama is photographed playing football on the South Lawn of the White House with the family dog Bo, May 12, 2009.



President Obama bends over so that the son of a White House staff member can pat his head during a family visit to the Oval Office, May 8, 2009.




President Obama and Vice President Joe Biden practice their putting on the putting green on the South Lawn, April 24, 2009.



President Obama makes Thanksgiving Day phone calls to U.S. military personnel from the Oval Office, November 24, 2011.



President Obama, first lady Michelle and their daughters Sasha and Malia watch the World Cup final between the U.S. and Japan, from the Treaty Room office in the White House, July 17, 2011.




A table in the State Dining Room is seen before President Obama spoke with a bipartisan group of governors at the White House, February 28, 2011.



President Obama tries out the fly fishing rod given to him on his birthday by a group of avid fisherman on his staff in the Oval Office, August 4, 2009.

















Also visit & Enjoy the posts in kudlabluez
some classic posts in kudlabluez














k U d L a b L u E z




__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[flexcoders] Re: getting the total of values of an array collection that is updated manually

 

Hi Guys, i have finally got the total to update when new items are added to the cart. One thing that i have failed to do is to get the total to update when quantity is changed and when a product is removed from the cart(list component). Any help on this? Here is the latest code that only gets the total to update when a new product is added.

"App"

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
xmlns:ns1="*"
xmlns:ns2="as_logic.*">
<mx:states>
<mx:State name="dark">
<mx:SetProperty target="{product}"
name="text"
value="Dark Chocolate"/>
<mx:SetProperty target="{price}"
name="text"
value="50"/>
</mx:State>
<mx:State name="spread">
<mx:SetProperty target="{product}"
name="text"
value="Drinking Chocolate"/>
<mx:SetProperty target="{price}"
name="text"
value="100"/>
</mx:State>
</mx:states>

<mx:Script>
<![CDATA[
import mx.controls.listClasses.ListData;
import mx.collections.ArrayCollection;

[Bindable]
private var orderColl:ArrayCollection=new ArrayCollection();

private function addProduct():void
{

//Create an object to hold the data
var obj:Object=new Object();
//Assign the variables to it
obj.Product=product.text;
obj.Price=price.text;
//Add the object to the list
orderColl.addItemAt(obj, 0);

}

public function deleteOrder():void
{

//Remove the item from the array collection
orderColl.removeItemAt(products.selectedIndex);

}

public function init():void
{
var total:Number=0;
for (var i:String in orderColl)
{
total+=Number(orderColl[i].Price);
}
sum.text=usdFormatter.format(total.toString());
}
]]>
</mx:Script>

<mx:DefaultTileListEffect id="dtle0"
fadeOutDuration="300"
fadeInDuration="300"
moveDuration="650"
color="0xffffff"/>

<mx:CurrencyFormatter id="usdFormatter"
precision="0"
currencySymbol="$"
alignSymbol="left"/>

<mx:Canvas width="500"
height="300">
<mx:Label x="10"
y="10"
text="Milk Chocolate"
id="product"/>
<mx:Label x="10"
y="36"
text="10"
id="price"/>
<mx:Button x="10"
y="62"
label="submit"
click="addProduct();init()"/>
<mx:Button x="10"
y="92"
label="Change State"
click="currentState='dark'"/>
<mx:Button x="10"
y="122"
label="Drinking Chocolate"
click="currentState='spread'"/>
</mx:Canvas>

<mx:VBox width="340"
height="340"
horizontalAlign="center"
verticalAlign="middle">

<ns2:transparentList id="products"
width="300"
height="300"
dataProvider="{orderColl}"
borderStyle="none"
itemsChangeEffect="{dtle0}">
<ns2:itemRenderer>
<mx:Component>
<mx:HBox width="100%"
height="100%"
horizontalAlign="center"
verticalAlign="middle"
horizontalGap="0">
<mx:Image source="assets/trashcan.gif"
click="outerDocument.deleteOrder()"/>
<mx:Label text="{data.Product}"
styleName="orderLabel"/>
<mx:Spacer width="100%"/>
<mx:Label id="price"
text="${Number(qty.text)* Number(oldPrice.text)}"
styleName="orderLabel"/>
<mx:TextInput id="qty"
width="30"
height="20"
text="1"
styleName="qtyInput"/>

<mx:Label id="oldPrice"
text="{data.Price}"
visible="false"
includeInLayout="false"/>
</mx:HBox>
</mx:Component>
</ns2:itemRenderer>
</ns2:transparentList>
<mx:HBox>
<mx:Label text="Total:"
color="#FFFFFF"
fontWeight="bold"/>
<mx:Label id="sum"/>
</mx:HBox>
</mx:VBox>

</mx:Application>

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

[eFreshers] Tech Mahindra Walk-in: Dec 12 - 16 | SPIDER Walk-in: Dec 14 - 15 | Cactus | Gerson Lehrman

 

Hello,


Tech Mahindra Walk-in: Dec 12 - 16 | SPIDER Walk-in: Dec 14 - 15 | Cactus | Gerson Lehrman


http://www.efreshers.com/job-lists/jobs/1323440121.php



Wipro Recruits | JSA Technologies Walk-in: Dec 12 - 14 | Fortunesoft | MIOT Opening


http://www.efreshers.com/job-lists/jobs/1323439852.php



Intel Technology Recruits | Futurism Walk-in: Dec 12 - 16 | Astegic Infosoft | CyberSol


http://www.efreshers.com/job-lists/jobs/1323439436.php



Goodrich (MNC) Recruits | ACS Walk-in: Dec 12 - 13 | Sparx Technologies | Fortis Opening


http://www.efreshers.com/job-lists/jobs/1323439155.php



eNoah (MNC) Walk-in: Dec 12 - 16 | DST Worldwide Walk-in: Dec 12 - 16 | ING Life | Replicon Software


http://www.efreshers.com/job-lists/jobs/1323438809.php



Pangea3 (MNC) Recruits | Hero BPO Walk-in: Dec 12 - 16 | Tech-Synergy | Convergys


http://www.efreshers.com/job-lists/jobs/1323434306.php



Godrej Boyce Recruits | Spice BPO Walk-in: Dec 12 - 16 | Endroit Technologies | TransDyne


http://www.efreshers.com/job-lists/jobs/1323433203.php



Gameloft Recruits | XL Dynamics Walk-in: Dec 10 - 18 | Teknovance | Vcare Corporation


http://www.efreshers.com/job-lists/jobs/1323432577.php



IBM Offcampus & TCS Recruitment - Register & Apply from Shine.com



Regards


eFreshers.com Team

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___