To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-06-2007, 01:34 PM   #1
xzerox_xzerox
Senior Member
 
Join Date: Sep 2005
Location: Gothenburg, Sweden
Posts: 357
onEnterFrame script moving issue!

Hello!

I use this code on a mc to make it move to a y possition:

Code:
onClipEvent(load)
{
_root.ypos1=Stage.height/2;
}
onClipEvent(enterFrame)
{
this._y+=(_root.ypos1-this._y)/3;
}
To make it move to y = 20 i use this code on a button:

Code:
on(press){
_root.ypos1=20;
}
As you can see the movment will go from a fast speed and then slow down.

My question is; Can you make the movement go from 0 then increase and then "break" and stop when it has reached "ypos1=20"?

Thanks in advance!
__________________
/xzerox... Take a look at http://www.vmgcomputers.com/h75
xzerox_xzerox is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:15 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.