Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums Draw a curve between two points
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 02-10-2007, 04:15 PM #1 ximo87 Registered User   Join Date: Aug 2006 Posts: 41 Draw a curve between two points hi can u help me with my problem?i want to add a function that draw a curve actually a masked curve between 2 points when i give it the x,y coordinates please help me,or at least tell me where to start from.I am biulding a dynamic map and after choosing the destination from the combobox i would like to add a curve between the 2 places,it is imposible to do it manually coz i need more than 900 animation!! please help
 02-10-2007, 04:55 PM #3 ximo87 Registered User   Join Date: Aug 2006 Posts: 41 thanx 4 answer but will u further explain what this code will work in? and where do i add it
 02-10-2007, 05:20 PM #4 ximo87 Registered User   Join Date: Aug 2006 Posts: 41 To MR.inhan thanx for answering my previois thread but maybe u miss understood me i would like to draw a curve between 2 known points not a circle how can i do that u can visit : http://www.ryanair.com/site/EN/dests.php?flash=chk so that u might get what i mean
 02-10-2007, 06:07 PM #5 inhan it's all about patience     Join Date: Jun 2005 Location: istanbul Posts: 6,696 This script creates an empty movie clip named "circle_mc" in depth 10, locates it in (100,100) coordinates, then in this mc it creates a circle with dimensions 100x100px. In the last lines I assumed the instance name of the mc you want to be masked by this circle is "my_mc" and masked that with the "circle_mc". This script is located in the frame (actions) where you want to create the masking process. What, in this code, actually defines the radius of the circle is: drawCircle(circle_mc, 100, 0x99FF00, 100); and what defines the _x/_y pos is: circle_mc._x = 100; circle_mc._y = 100; If you don't want an absolute circle but an ellipse, you need to modify the drawCircle function code (but I'm not familiar with that, so I can't help). __________________ Ali Inhan Turkish graphic and web designer an Apple fan www.aliinhan.com
 02-10-2007, 06:34 PM #6 inhan it's all about patience     Join Date: Jun 2005 Location: istanbul Posts: 6,696 Take a look at Flash help with curveTo (MovieClip.curveTo method) And please, use "private message" function when you want to communicate one-to-one rather than opening new threads.. __________________ Ali Inhan Turkish graphic and web designer an Apple fan www.aliinhan.com
 02-10-2007, 08:56 PM #7 johnnyboy JBOY     Join Date: Nov 2005 Location: Stockholm Posts: 480 Hey dude use the drawing API in Flash and for the curves I suggest u tage a look at the FUSE kit at www.mosessupposes.com witch will be able to do everything like ryanAir did. Check out www.gotoandlearn.com where Lee Brimelow shows a couple of FUSE video tutorials Hope this helps u out __________________ /JBOY www.f-i.com

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

 Similar Threads Thread Thread Starter Forum Replies Last Post metalg3r ActionScript 2.0 2 10-16-2006 04:54 AM Lashelle ActionScript 2.0 4 09-14-2004 03:32 PM fanntasy ActionScript 1.0 (and below) 8 07-16-2003 04:28 AM vaishu ActionScript 1.0 (and below) 4 07-05-2002 04:52 AM Jesume ActionScript 1.0 (and below) 2 12-28-2001 11:35 AM

All times are GMT. The time now is 04:39 AM.

///