Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Scripting > Other Scripting   »   flash script trajectory

 
Thread Tools Display Modes
Question
 
 
#1  
Old Apr 2, 2008, 08:05 PM
lengkyx's Avatar
lengkyx
Junior Member
lengkyx is offline
 
Join Date: Feb 2008
Location: makati
Posts: 65
lengkyx See this member's comment history on his/her Profile page.
flash script trajectory

onClipEvent (enterFrame) {
this._x = this._x+getTimer()/1000;
this._y = (-10)*Math.sqrt(this._x)+500;
trace(this._x+"and"+this._y);
}

this script creates this curve:

Name:  untitled2.bmp
Views: 6
Size:  148.8 KB


How can I invert the curve the object would follow? I'm trying to make a flower follow this curve:

Name:  untitled.bmp
Views: 8
Size:  148.8 KB

onClipEvent (enterFrame) {
this._x = this._x+getTimer()/1000;
this._y = (-10)*Math.sqrt(this._x)+500;
trace(this._x+"and"+this._y);
}

thanks.

Reply With Quote
 
     



Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
script error flightdog Other Software 1 Jan 16, 2008 09:13 AM
Flash Action Script-Programming in Flash cs3 professional NisariArun Other Programming 1 Jul 4, 2007 02:01 AM
I want to use this Script but how do i frien_dd Internet & the Web 1 Mar 30, 2007 05:51 AM
help! need help making movies with flash macromedia flash pro 8 ittle Multimedia 21 Aug 13, 2006 02:12 PM
help with script Rockrchik140@aol.com Writing 2 Jun 24, 2005 01:12 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 06:16 PM.