Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 27th, 2007, 05:23 AM
Authorized User
 
Join Date: Feb 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dhillon555
Default flash drag and drop application

I am trying to make a drag and drop application which will allow be to drag and drop shapes onto a main pannel, I then need to allow the user to be able to ammend the size on the main panel something so the user can strech or make the shape smaller

 
Old December 1st, 2007, 03:36 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

All you have to do is change the .width and .height properties of your shapes. The most natural interface would be to have the mouse drag to the shape to any position. Then use some combination of right mouse button drag, shortcut keys, and or interface buttons to control the height/width properties of the shapes. Whenever a shape is selected, you'll have to pass it into a variable, and then control the variable's properties so that whatever shape the user clicks on in the main panel will be resized.

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

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag and Drop batott ASP.NET 2.0 Professional 3 April 26th, 2008 07:59 PM
Drag and drop vpinhao Beginning VB 6 0 September 11th, 2006 01:33 PM
Drag/Drop bmains Javascript 1 September 22nd, 2004 07:29 PM
Creatin a drop & Drag Application in Vb.NET enggalok General .NET 0 May 19th, 2004 11:50 PM
Drag and drop Clive Astley Access 2 August 15th, 2003 12:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.