<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=36514186&amp;blogName=10%2C000+Words+%3A%3A+where+journalism+and+...&amp;publishMode=PUBLISH_MODE_FTP&amp;navbarType=SILVER&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fblogsearch.google.com%2F&amp;blogLocale=en_US&amp;homepageUrl=http%3A%2F%2Fwww.10000words.net%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>
HOME | ABOUT | CONTACT | TWITTER

How to create drag and drop objects in Flash

Wednesday, August 29, 2007

Kirupa.com has a easy and helpful tutorial on how to create interactive objects in Flash that can be dragged and dropped. The insanely addictive Stardoll makes great use of a similar technique to create interactive paper dolls. This technique can also be used to create draggable photos or interactive games.

Here's an example that I produced last year for the Contra Costa Times. Click "continue" and select "Carolyn Dundes." The remote is both draggable and interactive.






As you can see, the remote is an odd shape and has a transparent drop shadow. To create draggable items in Flash that are not rectangles or squares, create your image in Photoshop or Illustrator with a transparent background. In the File menu, click save for web and select the "PNG-24" option. You can then import that object into Flash and it will retain its shape and/or transparency.

Labels:


Share This  Bookmark and Share         TwitThis      Subscribe Subscribe to 10,000 Words




0 Comments



Add Your Comment


The Digital Journalist's Handbook



10,000 Words
10,000 Words © Copyright 2007-2010. Subscribe via RSS. Email: info@10000words.net