<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Implement the basic Flash CS3 drag-and-drop technique</title>
	<atom:link href="http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/</link>
	<description>Web Design for real people</description>
	<lastBuildDate>Wed, 08 Feb 2012 20:04:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: rachouan</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-106892</link>
		<dc:creator>rachouan</dc:creator>
		<pubDate>Mon, 12 Dec 2011 16:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-106892</guid>
		<description>and I was looking at your code and there are allot of things that need a change//9
import flash.events.MouseEvent;
init();import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.Regular;
import fl.motion.easing.Bounce;var totalAmount:uint = 0;
var xTween:Tween;
var yTween:Tween;
var scalexTween:Tween;
var scaleyTween:Tween;
var bin:Cart;function init():void{/*
set up the products
*/
//10
// product 1
item1.desc = “Mild White Sharky”;
item1.price = 35;
item1.startX = 50;
item1.startY = 120;
// product 2
item2.desc = “Robot Rampage”;
item2.price = 37;
item2.startX = 300;
item2.startY = 120;
// 11
// product 3
item3.desc = “Tapeworm”;
item3.price = 40;
item3.startX = 50;
item3.startY = 350;
// product 4
item4.desc = “Teethdude”;
item4.price = 25;
item4.startX = 300;
item4.startY = 350;//12
/*
Make the the movieclips act like buttons
*/
item1.buttonMode = true;
item2.buttonMode = true;
item3.buttonMode = true;
item4.buttonMode = true;item1.mouseChildren = false;
item2.mouseChildren = false;
item3.mouseChildren = false;
item4.mouseChildren = false;
//13
/*
Item Event Listeners
*/
item1.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);
item1.addEventListener(MouseEvent.MOUSE_UP, onItemUp);
item2.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);
item2.addEventListener(MouseEvent.MOUSE_UP, onItemUp);
item3.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);
item3.addEventListener(MouseEvent.MOUSE_UP, onItemUp);
item4.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);
item4.addEventListener(MouseEvent.MOUSE_UP, onItemUp);total.itemName_txt.text =”Choose an album”;
}
//14
/*
Mouse Events
*/
function onItemDown(e:MouseEvent):void {
var item:MovieClip = MovieClip(e.target);
item.startDrag();
//item.scaleX = item.scaleY = .70;
scalexTween = new Tween(item, “scaleX”, null, item.scaleX, .90, 0.1 , true);
scaleyTween = new Tween(item, “scaleY”, null, item.scaleY, .90, 0.1 , true);
var topPosition:uint = this.numChildren – 1;
this.setChildIndex(item, topPosition);
total.itemName_txt.text = item.desc;
}
//15
function onItemUp(e:MouseEvent):void { var item:MovieClip = MovieClip(e.target);
item.stopDrag(); if (bin.hitTestObject(item)) {
updatePurchasedPanel(item);
} else {
afterItem(item);
}
}
//16
function updatePurchasedPanel(item:MovieClip):void { trace(“ik ben in updatePurchasedPanel “);
/*totalAmout += item.price;
total.itemName_txt.text = “”;
total.total_txt.text =”£” + String(totalAmout);
item.scaleX = item.scaleY = 1;
//item.x= item.startX;
//item.y = item.startY;
item.play();*/ totalAmount += item.price;
total.itemName_txt.text = “Bought!”;
//total.total_txt.text = “£” + totalAmount;
item.play();
xTween = new Tween(item, “x”, Regular.easeOut, item.x, bin.x +100, 0.5 , true);
yTween = new Tween(item, “y”, Regular.easeOut, item.y, bin.y +100, 0.5 , true);}function afterItem(item:MovieClip):void{ xTween = new Tween(item, “x”, Regular.easeOut, item.x, item.startX, 0.5 , true);
yTween = new Tween(item, “y”, Regular.easeOut, item.y, item.startY, 0.5 , true);
scalexTween = new Tween(item, “scaleX”, null, item.scaleX, .95, 0.5 , true);
scaleyTween = new Tween(item, “scaleY”, null, item.scaleY, .95, 0.5 , true);
}this is what I changed try it out and tell me if you like ;) ooh yeah and in the items put this :import fl.transitions.Tween;var scalexTween:Tween;
var scaleyTween:Tween;this.x= this.startX;
this.y = this.startY;this.scaleX = 1;
this.scaleY = 1;</description>
		<content:encoded><![CDATA[<p>and I was looking at your code and there are allot of things that need a change//9<br />
import flash.events.MouseEvent;<br />
init();import flash.display.MovieClip;<br />
import fl.transitions.Tween;<br />
import fl.transitions.easing.Regular;<br />
import fl.motion.easing.Bounce;var totalAmount:uint = 0;<br />
var xTween:Tween;<br />
var yTween:Tween;<br />
var scalexTween:Tween;<br />
var scaleyTween:Tween;<br />
var bin:Cart;function init():void{/*<br />
set up the products<br />
*/<br />
//10<br />
// product 1<br />
item1.desc = “Mild White Sharky”;<br />
item1.price = 35;<br />
item1.startX = 50;<br />
item1.startY = 120;<br />
// product 2<br />
item2.desc = “Robot Rampage”;<br />
item2.price = 37;<br />
item2.startX = 300;<br />
item2.startY = 120;<br />
// 11<br />
// product 3<br />
item3.desc = “Tapeworm”;<br />
item3.price = 40;<br />
item3.startX = 50;<br />
item3.startY = 350;<br />
// product 4<br />
item4.desc = “Teethdude”;<br />
item4.price = 25;<br />
item4.startX = 300;<br />
item4.startY = 350;//12<br />
/*<br />
Make the the movieclips act like buttons<br />
*/<br />
item1.buttonMode = true;<br />
item2.buttonMode = true;<br />
item3.buttonMode = true;<br />
item4.buttonMode = true;item1.mouseChildren = false;<br />
item2.mouseChildren = false;<br />
item3.mouseChildren = false;<br />
item4.mouseChildren = false;<br />
//13<br />
/*<br />
Item Event Listeners<br />
*/<br />
item1.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);<br />
item1.addEventListener(MouseEvent.MOUSE_UP, onItemUp);<br />
item2.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);<br />
item2.addEventListener(MouseEvent.MOUSE_UP, onItemUp);<br />
item3.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);<br />
item3.addEventListener(MouseEvent.MOUSE_UP, onItemUp);<br />
item4.addEventListener(MouseEvent.MOUSE_DOWN, onItemDown);<br />
item4.addEventListener(MouseEvent.MOUSE_UP, onItemUp);total.itemName_txt.text =”Choose an album”;<br />
}<br />
//14<br />
/*<br />
Mouse Events<br />
*/<br />
function onItemDown(e:MouseEvent):void {<br />
var item:MovieClip = MovieClip(e.target);<br />
item.startDrag();<br />
//item.scaleX = item.scaleY = .70;<br />
scalexTween = new Tween(item, “scaleX”, null, item.scaleX, .90, 0.1 , true);<br />
scaleyTween = new Tween(item, “scaleY”, null, item.scaleY, .90, 0.1 , true);<br />
var topPosition:uint = this.numChildren – 1;<br />
this.setChildIndex(item, topPosition);<br />
total.itemName_txt.text = item.desc;<br />
}<br />
//15<br />
function onItemUp(e:MouseEvent):void { var item:MovieClip = MovieClip(e.target);<br />
item.stopDrag(); if (bin.hitTestObject(item)) {<br />
updatePurchasedPanel(item);<br />
} else {<br />
afterItem(item);<br />
}<br />
}<br />
//16<br />
function updatePurchasedPanel(item:MovieClip):void { trace(“ik ben in updatePurchasedPanel “);<br />
/*totalAmout += item.price;<br />
total.itemName_txt.text = “”;<br />
total.total_txt.text =”£” + String(totalAmout);<br />
item.scaleX = item.scaleY = 1;<br />
//item.x= item.startX;<br />
//item.y = item.startY;<br />
item.play();*/ totalAmount += item.price;<br />
total.itemName_txt.text = “Bought!”;<br />
//total.total_txt.text = “£” + totalAmount;<br />
item.play();<br />
xTween = new Tween(item, “x”, Regular.easeOut, item.x, bin.x +100, 0.5 , true);<br />
yTween = new Tween(item, “y”, Regular.easeOut, item.y, bin.y +100, 0.5 , true);}function afterItem(item:MovieClip):void{ xTween = new Tween(item, “x”, Regular.easeOut, item.x, item.startX, 0.5 , true);<br />
yTween = new Tween(item, “y”, Regular.easeOut, item.y, item.startY, 0.5 , true);<br />
scalexTween = new Tween(item, “scaleX”, null, item.scaleX, .95, 0.5 , true);<br />
scaleyTween = new Tween(item, “scaleY”, null, item.scaleY, .95, 0.5 , true);<br />
}this is what I changed try it out and tell me if you like ;) ooh yeah and in the items put this :import fl.transitions.Tween;var scalexTween:Tween;<br />
var scaleyTween:Tween;this.x= this.startX;<br />
this.y = this.startY;this.scaleX = 1;<br />
this.scaleY = 1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flashlover</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-80435</link>
		<dc:creator>flashlover</dc:creator>
		<pubDate>Sat, 01 Oct 2011 09:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-80435</guid>
		<description>I downloaded the fla file, and tested the movie... but the cart does not work.. the total does not change.. something I did incorrectly?</description>
		<content:encoded><![CDATA[<p>I downloaded the fla file, and tested the movie&#8230; but the cart does not work.. the total does not change.. something I did incorrectly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: массаж киев</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-59705</link>
		<dc:creator>массаж киев</dc:creator>
		<pubDate>Thu, 28 Jul 2011 09:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-59705</guid>
		<description>It’s seriously any together with functional section of information and facts. Now i am blissful merely embraced this valuable very helpful specifics with us. Please be america wise of this nature. Many thanks for taking turns.</description>
		<content:encoded><![CDATA[<p>It’s seriously any together with functional section of information and facts. Now i am blissful merely embraced this valuable very helpful specifics with us. Please be america wise of this nature. Many thanks for taking turns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 15+ Flash ActionScripting 3.0 Tutorials</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-55687</link>
		<dc:creator>15+ Flash ActionScripting 3.0 Tutorials</dc:creator>
		<pubDate>Wed, 20 Jul 2011 16:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-55687</guid>
		<description>[...] Implement the basic Flash CS3 drag-and-drop technique [...]</description>
		<content:encoded><![CDATA[<p>[...] Implement the basic Flash CS3 drag-and-drop technique [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web-creativite</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-35303</link>
		<dc:creator>web-creativite</dc:creator>
		<pubDate>Thu, 19 May 2011 08:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-35303</guid>
		<description>thank for the tutoriel , great job!</description>
		<content:encoded><![CDATA[<p>thank for the tutoriel , great job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 15+ Flash ActionScripting 3.0 Tutorials Part:2 - Flash24h.com &#124; Thế giới Flash của bạn!</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-27604</link>
		<dc:creator>15+ Flash ActionScripting 3.0 Tutorials Part:2 - Flash24h.com &#124; Thế giới Flash của bạn!</dc:creator>
		<pubDate>Thu, 14 Apr 2011 04:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-27604</guid>
		<description>[...] Implement the basic Flash CS3 drag-and-drop technique [...]</description>
		<content:encoded><![CDATA[<p>[...] Implement the basic Flash CS3 drag-and-drop technique [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creative Flash Essential Actionscript 3.0 Tutorials &#171; Designing Tricks, Tips, Tutorials</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-22805</link>
		<dc:creator>Creative Flash Essential Actionscript 3.0 Tutorials &#171; Designing Tricks, Tips, Tutorials</dc:creator>
		<pubDate>Mon, 14 Mar 2011 05:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-22805</guid>
		<description>[...] - Implement the basic Flash CS3 drag-and-drop technique [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; Implement the basic Flash CS3 drag-and-drop technique [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IM22003/13: Prototyping Resources &#124; Shaleph O&#039;Neill</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-20444</link>
		<dc:creator>IM22003/13: Prototyping Resources &#124; Shaleph O&#039;Neill</dc:creator>
		<pubDate>Mon, 28 Feb 2011 09:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-20444</guid>
		<description>[...] Implement the basic Flash CS3 drag-and-drop technique &#124; Web Designer &#8211; Defining the internet t... [...]</description>
		<content:encoded><![CDATA[<p>[...] Implement the basic Flash CS3 drag-and-drop technique | Web Designer &#8211; Defining the internet t&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 20+ Flash Action Scripting 3.0 Tutorials for you future flash projects - tripwire magazine</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-19914</link>
		<dc:creator>20+ Flash Action Scripting 3.0 Tutorials for you future flash projects - tripwire magazine</dc:creator>
		<pubDate>Wed, 23 Feb 2011 08:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-19914</guid>
		<description>[...] 18. Implement the basic Flash CS3 drag-and-drop technique [...]</description>
		<content:encoded><![CDATA[<p>[...] 18. Implement the basic Flash CS3 drag-and-drop technique [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 35 tutoriales de alto nivel para Actionscript &#124; CyberHades</title>
		<link>http://www.webdesignermag.co.uk/tutorials/implement-the-basic-flash-cs3-drag-and-drop-technique/comment-page-1/#comment-11126</link>
		<dc:creator>35 tutoriales de alto nivel para Actionscript &#124; CyberHades</dc:creator>
		<pubDate>Sun, 10 Oct 2010 22:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=753#comment-11126</guid>
		<description>[...] 34.- Técnicas básicas Drag&amp;Drop [...]</description>
		<content:encoded><![CDATA[<p>[...] 34.- Técnicas básicas Drag&amp;Drop [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

