Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-19-2002, 11:00 PM   #1
daveclark5
Registered User
 
Join Date: Apr 2002
Location: Chicago
Posts: 29
Default help with a script ASAP

I have two buttons that I want to control the y movement of a MC (one up and one down). I have assigned the following:
on (press) {

setProperty ("_root.text_move", _y, _root.text_move._y-5);
}

That's for the up button, and I have the vice-versa for the down. The problem is that when I test this, the MC moves only on the first click, but I want it to move in increments of five for EACH mouse press. How should I restructure the statements? I need to fix this verry soon, so your help and swift response would be greatly appreciated.
daveclark5 is offline   Reply With Quote
Old 04-20-2002, 12:54 AM   #2
Drewmutt
Registered User
 
Join Date: Apr 2002
Location: LA, CA
Posts: 12
Default The solution.

There's an easier solution.

on(release) // or press
{
_root.text_move._y-=5;
}
Drewmutt is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
onEnterFrame - too much script? cannon303 ActionScript 2.0 15 01-21-2005 09:45 PM
[AS1] game Script asap please Zenith Gaming and Game Development 2 01-30-2004 03:13 PM
sendAndLoad() with perl CGI script WebThumper ActionScript 1.0 (and below) 3 03-11-2003 08:18 PM
problems with targeting a movie using a script vladc77 ActionScript 1.0 (and below) 2 01-30-2003 05:48 PM
I Need To Update This Script Grump ActionScript 1.0 (and below) 9 01-27-2003 06:38 PM


All times are GMT. The time now is 06:48 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.