logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Flash
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-05-2006, 02:12 PM   #1
asbiff
 
Join Date: Nov 2005
Posts: 20
Default Need Help

How do I make the movie clip move with a button?

on (press) {
_root.pic.up = true;
}
on (release, releaseOutside) {
_root.pic.up = false;
}

Is this even close I can't get this to work.

Can anyone help?
asbiff is offline   Reply With Quote
Old 09-21-2006, 09:16 AM   #2
indianleo
 
Join Date: Sep 2006
Posts: 343
Default

HI
here is the script Hope it will help u


onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
}
if(Key.isDown(Key.LEFT)){
this._x -= 5;
}
if(Key.isDown(Key.UP)){
this._y -= 15;
}
if(Key.isDown(Key.DOWN)){
this._y += 5;
}
}
indianleo is offline   Reply With Quote
Reply


Thread Tools
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. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com