Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Moving A Mc With Arrow Buttons.



can anyone take a look at this .fla, and tell me what code needs to be applied to the arrow buttons?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-12-2005, 08:17 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Moving A Jpg With The Arrow Buttons?
Hey, I have this jpg of a map that's just too large to use as a whole, so I want to encorporate the use of the arrow buttons to navigate. Right now my actionscript is

on(keyPress "<Left>") {
_root.map_mc._x=+5;
}

Basically the same code for all 4 buttons with exception to x & y and + & -.
The image does move but only once in each direction. Anyone have any ideas? Thanks!

Moving An MC With Arrow Keys
How would I make a movie clip move (at a set speed) when an arrowkey is pressed, then stop moving when its de-pressed.

Cheers

Moving With The Arrow Keys?
Hi.


Can anybody tell me how to make a character move with the arrow keys?


Thanks

Arrow Moving Around A Oval
Hi all,

I want to create an animation where an arrow moves around an oval. I have created the animation, but am having a problem making the arrow 'point' in the right direction. I want it to point towards the oval's path. I clicked orient to path but it results in the arrow rocking like a boat. How can I do something like this? I am using Flash MX Ver 6.

Moving MCs With Arrow Keys- Help
Hello, this is my first post in this forum.


I am asking how to move MCs with arrow keys, I have seen many different codes and they don't seem to work. I think my prolbem is I am entering (enterFRAME) wrong.

If you could, show an example of what code I would do if it was on frame 1

There may be a previous post, please link me there if there is.

Moving Around With Arrow Keys
i was trying to move an object around with the arrow keys in flash.
with this code


ActionScript Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 5;
}
if (Key.isDown(Key.DOWN)) {
this._y += 5;
}
if (Key.isDown(Key.RIGHT)) {
this._x += 5;
}
if (Key.isDown(Key.LEFT)) {
this._x -= 5;
}
}

But it won't work, and i got the error "1087: Syntax error: extra characters found after end of program.

Scrollbar Not Moving On Arrow Press
Tutorial:Actionscript for Flash 5 dummies: Scrolling a text box II (great one btw)


The only thing different from the tutorial is that I am filling the txt box from buttons within the movie instead of pulling from a txt file. Because the text isn't loaded into the box untill after the screen loads and the user presses a button, I don't think the
function updateScrollBarPos ()
is being updated (it is within an OnClipEvent)
any suggestion on how to get the scrollbar to move when the scrollbuttons are hit? Everything else works great.

thanks



Code straight from tutorial minus the load txt var.
onClipEvent (load) {
scrolling = 0;
frameCounter = 1;
speedFactor = 1;
numLines = 7;
origHeight = scrollbar._height;
origX = scrollbar._x;
function initScrollbar () {
var totalLines = numLines+daTextBox.maxscroll-1;
scrollbar._yscale = 100*(numLines)/totalLines;
deltaHeight = origHeight-scrollbar._height;
lineHeight = deltaHeight/(daTextBox.maxScroll-1);
}
function updateScrollBarPos () {
scrollbar._y = lineHeight*(daTextBox.scroll-1);
}
}
onClipEvent (enterFrame) {
initScrollbar();
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && daTextBox.scroll>1) {
daTextBox.scroll--;
} else if (scrolling == "down" && daTextBox.scroll<daTextBox.maxscroll) {
daTextBox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
onClipEvent (mouseDown) {
if (up.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "up";
frameCounter = speedFactor;
up.gotoAndStop(2);
}
if (scrollbar.hitTest(_root._xmouse, _root._ymouse)) {
scrollbar.startDrag(0, origX, deltaHeight, origX);
scrolling = "scrollbar";
}
if (down.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "down";
frameCounter = speedFactor;
down.gotoAndStop(2);
}
updateAfterEvent();
}
onClipEvent (mouseUp) {
scrolling = 0;
up.gotoAndStop(1);
down.gotoAndStop(1);
stopDrag ();
updateAfterEvent();
}
onClipEvent (mouseMove) {
if (scrolling == "scrollbar") {
daTextBox.scroll = Math.round((scrollbar._y)/lineHeight+1);
}
updateAfterEvent();
}

Special thanks to Patrick Mineault for the great tut.

Moving A Movieclip Using Arrow Keys?
I have a Movieclip, and i want it to be moved around using the arrow keys
how is this done ?

Moving MC Smoothly With Arrow Keys
I am building a small race game. I have a vehicle that moves left and right to avoid oncoming objects.

My problems is when I hold the left or right arrow key down to move the car, the MC moves one space, stops, then continues to move left or right.

How do I get the car clip to move smoothly without the initial jerk?

thanks!!

Moving Symbols With Arrow Click?
Basically, I am making a game. It's kinda like a classic birds-eye-view airplane shooter game you would find in an arcade.

Now, I suck at action script. So, does anyone know the script I need to use to have the airplane move when the user hits an arrow key.

For instance, when a user hits the left key on the keyboard, the ariplane should, you know, move a little to the left. If the user holds down on the left arrow, the airplane should continue to scroll left. Im sure the concept is not new to most you of guys.

Well, can anyone help me out?

Arrow With Trail Moving Around In Circle
Hello,

I need help with a loading animation. I have an oval in a horizontal position. The oval is fat in the front, and thin in the back. I want an arrow to move around in this oval and at the same time reveal the oval shape as it moves along. When it is done with one revolution, the oval is displayed in full. On the second revolution, I want it to hide the oval as it moves along. I have attached an image to illustrate what I am trying to create.

I have completed the first revolution, but I have been doing this frame by frame. This is time consuming and does not look so great when the arrow reaches the thicker curvy portions of the oval. At those points, the arrow is smaller than the oval's line and you can see where I (imprecisely) cut off pieces of the oval. Look at the last frame in the attached image to see what I mean.

Is there a better way of doing this?

Focus Moving With The Arrow Keys
I am developing a pure AS3 project, and I am trying to implement keyboard navigation for a listbox. However, I have found that focus moves to the next tabEnabled element when I press the up or down arrow key. Why is this happening and is there any way to prevent it or stop it?

Thanks!

Moving Multiple Mc's With Arrow Keys
I used the "Movement Using Keyboard Keys" by Kirupa. I have it working, but I want to move multiple mc's at the same time when I press an arrow key. Only the mc on my lowest level will move. How do I get all of them to move? Thank you for any help.

Moving Multiple Mc's With Arrow Keys
I used the "Movement Using Keyboard Keys" by Kirupa. I have it working, but I want to move multiple mc's at the same time when I press an arrow key. Only the mc on my lowest level will move. How do I get all of them to move? Thank you for any help.

Interaction With The Key Board: Moving Something With Arrow Keys
How can you program in flash so that you can use the arrow keys to control where an object moves (like a game). If you can help me, please give me an explaination of what you are doing because I am not ery good a flash. My flash version is Flash MX 2004.

Thanx everybody!

Moving Movie Clips With Arrow Keys
How do i make it so when i click the left arrow key, it will change the movie clip to make it turn around?

Moving Moveclips Directly Across The Screen With L/R Arrow Keys
Hi Guys, I am trying to make a game and I want to move a movieclip across the screen in a straight line using the left and right arrow keys. Could you please tell me how to? Thanks, much appreicated!

Moving Sprite With Arrow Keys, Simultaneous Directions
Hi everyone.

I'm trying to create a small arcade style game, you control a small ship, shoot at incoming targets, try to dogde their shots, etc. I'm working on the ship's movement right now, using the arrow keys to control it. Getting it to move one direction at a time is easy, but sometimes I need to move it diagonally, otherwise I think gameplay will suffer considerably.

I have tried several things but I never seem to be able to tell Flash that two keys are being pressed simultaneously. Can anyone tell me how I might achieve this?

Thank you.

Moving Sprite With Arrow Keys, Simultaneous Directions
Hi everyone.

I'm trying to create a small arcade style game, you control a small ship, shoot at incoming targets, try to dogde their shots, etc. I'm working on the ship's movement right now, using the arrow keys to control it. Getting it to move one direction at a time is easy, but sometimes I need to move it diagonally, otherwise I think gameplay will suffer considerably.

I have tried several things but I never seem to be able to tell Flash that two keys are being pressed simultaneously. Can anyone tell me how I might achieve this?

Thank you. http://www.vivoeusebio.com

Arrow At Side Of Buttons?
Hey I'm back after quite a while and need some info.

If you check out this site:
http://www.squarewave.us/

You will notice on the right hand side under the work section that a little arrow moves into place when a button is clicked _down the left hand side of the button.

Does anyone know how this is done? an fla would be great. I use mx 6 not flash 2004.

Thank you.

Question Using Arrow Buttons
Hi, I've have this flash file which has a large graphic of a map. I have used the arrow buttons to allow one to view different areas of the map.

This is my code:

on(keyPress "<Left>") {
_root.map_mc._x+=15;
updateAfterEvent();
}

Problem is it does't have any params set to make it stop. So one could technically moving left indefinitely, with nothing to view but the bg. How can I tell it to stop at a certain point? I've tried getProperty, but alas, no such luck in making it work.

Any ideas?

Thanks and cheers!

Rotating A Circle By Arrow Buttons
Hello,

I'd like to have a little cirlce that rotates CW and CCW by the pressing of little arrow buttons underneath it.

Can anyone direct me how, or where I can find information on how to create this?

I'm just learning Flash in school... this is for a project.

Thanks!
Lindsay

Removing Scrollpane Arrow Buttons
is there any way i can remove the buttons on the scrollpane component so that just a bar stretches from top to bottom of what i want too scroll?
Oldnewbie helped me with a link to a scroll bar in movies:

http://www.flashkit.com/movies/Scrip...3848/index.php

its perfect, but ive found it only works when on the stage, not in an MC.
does anyone know how to make it work in an MC or have the answer to my other question?
cheers
jh

Use Arrow Cursor On All Buttons In Movie?
Hi, just wondering if it's possible.

I've manage to change the cursor on dragable windows using :


Code:
this.useHandCursor=False;
..but I can't figure how to set every single button in a movie, not to use the hand.

Is this a simple thing?

No biggie if it means going through every single button, I'll just leave it as it is, but it'd make the whole thing look a lot less web-like and more "interfacey".

Cheers

John

Arrow Buttons Scrolling HTML
Hey!

I've got a flash game in which I'm using arrow keys to move a movie clip.
The page in which the flash movie is embedded is larger vertically than a screen's viewable area, so when the movie clip gets moved by the arrow keys, the html page also scrolls.

Any ideas on how to get rid of this?
Is this a focus issue?

-chad

Using Arrow Keys To Scroll Through Buttons
hey does anyone know how to make the arrow keys scroll through buttons.
I have the rollover working for the mouse but I want the arrow keys to scroll from one button to another and be highlighted its hard to explain but check out this example of what i am talking about.

http://heavy.com/heavy.php

thanks for any help
Matt

How To Make Buttons Work With Arrow Keys
I've made a game in Flash 8, and the player moves using the arrow keys. I'd now like to add some invisible buttons so when the player moves over them they pop out but notice that the buttons won't activate unless I use my mouse - does anyone know of any code or another way to make the buttons work when you move over them only using the arrow keys.

Thanks very much.

[F8] AS Question To Make Arrow Buttons In Xml Gallery.
Hi,

I have xml structure flash gallery. It has a several xml files with different pictures. In the first frame I have this code:


Code:
var sound:Sound = new Sound();
sound.attachSound("foto");
var photo_filename:Array = new Array();
var photo_thumbnail:Array = new Array();
var photo_description:Array = new Array();
var gallery_name:Array = new Array("1", "2", "3", "4");
var gallery_file:Array = new Array("1-9", "10-18", "19-27", "28-36");
var no_of_gallery:Number = gallery_name.length;
var folder:String = "modeliai/";
var total:Number;
var g:Number = 0;
var i:Number = 0;
var j:Number = 0;
var k:Number = 0;
var p:Number = 0;
var border_size:Number = 2.2;
var scrolling_speed:Number = 0.15; // 0.00 to 1.00
var cv:Number = 0;
var cv_old:Number = 0;
var onDrag:Boolean;
var xml:XML = new XML();

sub_button._visible = false;
tn_area._visible = false;
stop();

for( i = 0; i < no_of_gallery; i++ )
{
sub_button.duplicateMovieClip("sub_button" + i, i);
//this["sub_button" + i]._x = sub_button._x;
this["sub_button" + i]._x = sub_button._x + (sub_button._height+10) * i;
this["sub_button" + i].label_txt = gallery_name[i];
this["sub_button" + i].no = i;
}
function changeGallery(no)
{
for( i = 0; i < no_of_gallery; i++ )
{
this["sub_button" + i].button_mc._visible = true;
this["sub_button" + i].graphic_bg1._visible = true;
this["sub_button" + i].graphic_bg2._visible = false;
}
this["sub_button" + no].button_mc._visible = false;
this["sub_button" + no].graphic_bg1._visible = false;
this["sub_button" + no].graphic_bg2._visible = true;

xml.load( gallery_file[no] + ".xml");
xml.ignoreWhite = true;
}
changeGallery(0);// set default gallery at first loading
xml.onLoad = function()
{
for( i = 0; i < total; i++ )
removeMovieClip(tn_group["tn"+i]);

tn_group.tn._visible = false;
var nodes = this.firstChild.childNodes;
total = nodes.length;

for( i = 0; i < total; i++)
{
photo_filename[i] = nodes[i].attributes.filename;
photo_thumbnail[i] = nodes[i].attributes.thumbnail;
photo_description[i] = nodes[i].attributes.description;
}
j = k = p = 0;
g++;
create_tn();
scroller();
play();
}
function create_tn():Void
{
for( i = 0; i < total; i++)
{
var t = tn_group.tn.duplicateMovieClip("tn"+i, i);
t.pic.loadMovie( folder + photo_thumbnail[i] );
t.tn_no = i;

t._x = j * 95;
t._y = k * 145;
j++;
if( i % 3 == 2 ) {j = 0; k++;}

t.onEnterFrame = function()
{
var bytes_loaded:Number = this.pic.getBytesLoaded();
var bytes_total:Number = this.pic.getBytesTotal();
var percent:Number = 0;

this.bd._width = this.bd._height = 60;
this.bd._alpha = 20;
this.bd._x = this.bd._y = 15;

percent = Math.round( bytes_loaded / bytes_total * 100 );
if( percent != 100 && percent > 0)
this.info.text = percent + "%";
else
this.info.text = "0%";

if( percent == 100 )
{
this.info.text = "";
this.pic._x = (85 - this.pic._width) * 0.1 + border_size;
this.pic._y = (135 - this.pic._height)* 0.1 + border_size;
this.bd._alpha = 100;
this.bd._width = this.pic._width + border_size * 2;
this.bd._height = this.pic._height + border_size * 2;
this.bd._x = this.pic._x - border_size;
this.bd._y = this.pic._y - border_size;
}
}
t.onRollOver = function()
{
this.pic._alpha = 75;
}
t.onRollOut = function()
{
this.pic._alpha = 100;
}
t.onRelease = function()
{
p = this.tn_no;
play();
sound.start(0,0);
//this.pic._alpha = 25;
}
}
}
function scroller():Void
{
scroller_mc._y = scrollable_area_mc._y;
tn_group._y = tn_area._y;
sr = tn_area._height/tn_group._height;
scroller_mc._height = scrollable_area_mc._height * sr;
sd = scrollable_area_mc._height - scroller_mc._height;
cd = tn_group._height - tn_area._height;
cr = cd / sd;
tn_group.setMask(tn_area);

if( tn_group._height <= tn_area._height )
{
scroller_mc._visible = scrollable_area_mc._visible = false;
}
else
{
scroller_mc._visible = scrollable_area_mc._visible = true;
}
scroller_mc.onPress = function()
{
this.startDrag(false, this._x, scrollable_area_mc._y, this._x,
scrollable_area_mc._y + scrollable_area_mc._height - this._height + 2);
onDrag = true;
this.onEnterFrame = function()
{
new_y = tn_area._y + scrollable_area_mc._y*cr - this._y*cr;
cv = (new_y - tn_group._y) * scrolling_speed;
tn_group._y += cv;
if( onDrag == false && cv_old == cv )
delete this.onEnterFrame;
cv_old = cv;
}
}
scroller_mc.onRelease = scroller_mc.onReleaseOutside = function()
{
this.stopDrag();
onDrag = false;
}
}
I would like to add 2 arrow buttons - to the right and to the left. And when I press one of them, it should slide through xml files:

("1-9", "10-18", "19-27", "28-36");

What should I write in Actions panel on the arrow button?

Thanks for help...

Controlling Animating Walking Character With Arrow Buttons
Hello - I'm a newbie, especially to using message boards, and I just got some great help from TonyPa in this forum and I thought I'd post this here since I had such a hard time finding info on making characters walk in Flash.

To do this, you have to have already created your walk animation. Mine was a movie clip that consisted of 6 frames (steps), you can do this many different ways of course. But here's the basic principle:


Put a "stop" on last frame of walking_animation

Put this code on the instance of clip on stage:

onClipEvent (enterFrame) {
if (Key.isDown(key.LEFT)) {
//^^tells to move with left arrow key
this._xscale = 100;
//^^tells to face normal direction
this._x -= x+12;
//^^affects pixel distance travelled (speed)
play();
//^^tells clip to play while key is pressed
} else if (Key.isDown(key.RIGHT)) {
//^^tells to move with right
this._xscale = -100;
//^^makes character face opposite direction - "100" keeps same scale
this._x += x+12;
//^^affect pixel distance travelled (you may wish to tweak these #s)
play();
//^^tells clip to play while key is pressed
}
}

I've been at this for three YEARS! And I'm still a NEWBIE!!!

Hope this helps someone
-beetnik

Make My Movie Clip Move From Left To Right With Arrow Buttons.
Hi hope this is a quick one..

I have all the elements set up already so just need the logistics of how i can acheive the following:

I have an arrow at the furthest left and furthest right of my main flash movie. I then have a movie clip in the middle which has indidivual images on a kind of long strip. When i click the left arrow i want the movie to begin to move from the right to the left and visa versa. I have achieved this with the keyboard left and right keys so what i really need is to convert this theory for the left and right arrow buttons?

var speed:Number = 4;
object_mc.onEnterFrame = function() {
if (Key.isDown(Key.RIGHT)) {
this._x = this._x+speed;
} else if (Key.isDown(Key.LEFT)) {
this._x = this._x-speed;
}
};

Any help will be greatly appreciated??

Thanks

Ben

Debugger Arrow Line Arrow Indicater Invisible
When I try run a project in debug mode, it works as it should, but the arrow that indicates which line the debugger is not visible. I can still step forward (tested with trace commands), but the arrow not there. It makes debugging very difficult. Anyone have this problem before and have a solution?

Thanks!
fitz

Keyboard Shortcut 'Left Arrow' And 'Right Arrow' Don't Work
I have an iMac running CS3 on 10.4.11

I'm using the normal keyboard that came with the mac, and the arrow keys are not moving the playhead in the timeline back or forward a frame at a time. Is there something I need to do to the keyboard to get this shortcut to work?

How To Dram Arrow From My Arrow Symble To In My Di
how to dram arrow from my arrow symble to in my diagram editor

Moving Buttons
should be an easy one for you guys, but i'm a bit of a moron!
I have a single colomn of 5 buttons. I want the button that is clicked (whichever one) to move to the bottom of the row and for the others to shift up to fill the space. I should know how to do this but i think imay have over done it on the festivities!
If i havn't explained myself well, you can see what i mean at http://www.nooflat.nu
I want the same effect as the menu bar on the right hand side.
Merry Christmas one and all.
cheers,
michael.

[Edited by Michaelhill on 12-26-2001 at 05:06 PM]

Moving Buttons?
is there an action for the buttons to make it move?

like say i have a couple buttons on the left side of the screen. press one and i see them move to the right side of the screen, press the other and they move back to the left.

and i'm not talking about instantanceous movement, i want to see the buttons "tween" over to whatever location.

is it possible to tween buttons? or is it only movie clips? or do i have to do some sneaky stuff like when i click the button, i replace it with a movie clip, move it, and then replace it again with a button.

please dont tell me i have to do that...

Moving Buttons
what is the easiest way to move button, after it has been released, to the defined location?

Moving A MC With Buttons
Hello.
I want to slide a MC left or right depending on what button I click. I have a MC with ten distinct points on it (picture thumbnails) and need it to slide to the correct image on the clicking of each of the ten buttons. I've tried applying my Director logic but have not succeeded as yet...
Please help if you can... Thanks, John

Moving Buttons
Hi I have created a flash movie at the following address http://www.indigoimagination.com/fi.swf

I am trying to make the moving balls work as buttons. Currently the balls are buttons within movieclips that are placed on the stage. The buttons won't work when I add an onRelease goto frame/scene action.
I can't figure out why and was hoping that someone might be able to help me, cheers, Jim

Moving Buttons...
I am trying to build these buttons that drop down onto the page. I figured how to get them to do that, now I want them to stay together as all of the frames run in the shockwave-flash file. The problem right now is twofold:

1. The bottom buttons zooms off to the right diagonally, then reappears back where it should. How can I fix that?

2. If I click the 'contact' button, the bottom button or the top 'home' button all of the buttons that descended from the top of the screen disappear and do not descend down from the top of the screen as they originally did. How can I get the buttons to just stay in the same place?

thanks,

Peter

Here is the link to problem buttons...

http://www.victormatthews.org/buttonmania1.html

Moving A MC Using Buttons.
Im trying to figure out how to make a movie clip move by hovering the mouse cursor over a button.

I Have a movie clip with 3 images in it (there all the same, a seamless background) and I want to make them scroll left and right when the mouse hovers over different buttons.

Any help would rock.

I tried everything I could think of.

I want it to move continously untill the mouse moves off of the button.

Thanks guys!

Moving Buttons
hello

does anyone know how to do the moving buttons thing on this site? wen you click a link the other buttons move out of the way to reveal some more menus. check out this link you will see what i mean.

http://www.englandagency.com/england.html


thanks a lot

Nik

Moving Buttons
Hi,
Im try to make some moving buttons but im having a problem.
I turn all the buttons into a Movie clip and then put this in for the movie clip

code:

onClipEvent (load) {
speed= -.1;
windowheight= 400
}
onClipEvent (enterFrame) {
this._y += (_root._ymouse-windowheight/2)*speed;
if (_y<_height*-1+windowheight) {
_y=_height*-1+windowheight+1;
} else if (_y>0) {
_y=0;
}
}


But when I play it, the movie clip always starts in the middle of the screen and moves upwards and I cant get it to move down past the middle or start lower down on the screen.


How can I change this?

Thanx so much for your help

Moving Buttons
Hi,
I am trying to create a scrolling column of thumbnail buttons. I saw this effect on the Nelly.netwebsite under pictures. I am trying to do the same thing.

I have attached what I have so far.

I am having trouble placing the column so that it scrolls within the viewable area. I would like the thumbnails to scroll until the top pic is in view and then stop. The same on the bottom, as the bottom pics viewablity stops all the photos from scrolling any further.


If anybody can help me that would be amazing...

Thanx

Moving Buttons
hello,

here : http://dev01xy.free.fr/flash/
you can see five letters acting like buttons



I would like,
when you roll over one the five letters (for example the "s"),
to make the four others moving away (you still see them
on the screen)
and when you roll out the "s"
to make them moving back.

also, when you click the "s", (the four letters have moved),
you load a window(*.swf) and I would
like as long as the window is opened, not make
able the four letters to move back wherever your mouse
is on the screen.
only when you close the window, the four letters
are moving back.

I would like the same behaviour for each button

thank in advance if there is a tutorial
to help

Re: Moving Buttons
hi im kinda new to flash (i know about the basics but not that very good in coding) so was looking for some help
i have a freelance project that requires

the centre page to have 5 words floating about
but when u put the mouse over them , the other words
disappear leaving the main word with a definition

at the moment im think of making a movie with buttons contained it
but not sure

Moving Buttons
I have been looking around this forum and havent found what i need to know....

So, here goes.....I want to have a list of buttons on the side of my stage. These will always be the same,but i need them to move the stack below them down when they are clicked....or possible a mouse over. They will each show a scrolling dynamic text box. Any help will be appreciated

Moving Buttons
want to roll over a button, in this case, btnGarretO.

on the roll over i want a movie clip to appear (mcGarretO) and also move two buttons down (btnWestonLawson, btnBelame). the MC mcGarretO appears fine but the two buttons do not move. i have the linkage set but no difference.. someone please help?


PHP Code:




on (rollOver){
    mcGarretO._visible=true;
    mcGarretO._y=25;
    mcGarretO._x=-10;
    btnWestonLawsone._y=24.8;
    btnBelame._y=37.7;
}







see attached file, this code is in Members section inside mcTheUnion

Moving A Pic Using Buttons
I have a window with a large pic behind it and small thumbs that select different pics.

I want to use four small buttons with arrows to move the picture up, down, left and right.

The pics are on a layer in different frames that the small thumbs take you to.
Each button I want to move the pics with is on a seperate layer not sure if thats important.

Can anyone give me some ideals on how to make this work.

[F8] Moving Buttons
hi everybody!
i'd like to know how to make buttons move in the direction the mouse is moved.
like this site:
http://www.sydneyblu.com/

i was playing with this code, but still I do not obtain the wished effect:

import mx.transitions.Tween;
mc1.onRollOver=function(){
var tw1:Tween = new Tween(mc1, "_x", mx.transitions.easing.Bounce.easeOut, this._x, this._x+30*Math.random(), 3, true);
var tw2:Tween = new Tween(mc1, "_y", mx.transitions.easing.Bounce.easeOut, this._y, this._y+30*Math.random(), 3, true);
var tw3:Tween = new Tween(mc1, "_rotation", mx.transitions.easing.Bounce.easeOut, this._rotation, this._rotation+30*Math.random(), 3, true);
}

i guess it isn't difficult, but i don't know so much actionsript.

thanx in advance, i hope you can help me...

cheers!

Copyright © 2005-08 www.BigResource.com, All rights reserved