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




[MX04] Move In The Direction You Are Facing



i have this script and it makes an mc (that was originallly facing left) face an mc with an instance name of guy, oh yea here it is:
onClipEvent(enterFrame){
rx2 = _root.guy._x
ry2 = _root.guy._y
cx2 = _x;
cy2 = _y;
angle = Math.atan2(ry2-cy2, rx2-cx2)/(Math.PI/180)
_rotation = angle
}
can anyone help me with making it so the object moves forward in the direction it is facing?



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-07-2007, 11:42 PM


View Complete Forum Thread with Replies

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

Moving An Movie Clip In The Direction It Is Facing
Hi

Im am trying to rotate a movie clip and then move it in the direction it is facing using the keyboard (left, right = rotate. Up, down = forward and backwards)

I have almost done it using trigonometry but flash doesn't know what angle the movie clip is facing.

Here is the code i used:on (keyPress "<Up>") {
Dist = 2
Angle =
currentY = this._y;
currentX = this._x;
this._x = currentX;
this._y = currentY;
this._x = currentX + Dist*math.cos(Angle);
this._y = currentY + Dist*math.sin(Angle);
}

As you can see i dont know what to put 'Angle' equal to.

Thankyou!!!!

Chaztheman

HOW? Move In Random Direction....
First, check this out:

http://www.rightsys.com/temp/dots.htm


These are just one movie clip, duplicated a lot of times, with random scale, color, _alpha, and rotation.

I would like to know how to make these MCs start moving in the direction that they are pointing, until they fade away...

Anyone know how to do this?


the rotation for each MC is in a variable, but I'm not sure how to find the direction each MC is pointing, and how to change the X and Y values to accomplish this correctly.

THANKS!!

[F8] Revese Direction Of This Move
i need to move the pointer juss reverse (upwards) from the one now its moving, please check the fla i have, please help on this

thanks
Sany

Eco System - Spawns And Move In The Right Direction?
Righty Ho!

I'm trying to do a eco system screensaver where thye screen spawns groups of people that move of at random angles. My problem is when the spawn to get the angle they are facing an dthe direction they are mving the same.

i.e. it turns the figure looking up so you would expect him to walk up the screen...

wnay ideas how to lock the direction they are facing and the dircetion they are moving towards the same way...

cheers, stu.

How To Make A MoveClip Move In 2 Different Direction One After Another.
Hello, I'm trying to make a movie clip slide horizonitaly or vertically when a number of buttons are clicked. The problem I'm having is, if i click a vertical button I want it to check to see if the movieClip is in it's orginal postion. If it is, the movieClip will move vertically. If it isn't it should move the movieClip to the orginal postion and then move vertically. I really have no idea what I'm doing!
I can seem to figure out he logic. I can only get it to move vertically or horizonal if the moveClip is in its orginal postion.

Please help!
I've been working on this for weeks.

www.visualstrategies.ca/sample.zip

Thanks!

MOVE IN OPPOSITE DIRECTION OF MOUSE
HEY, I'M NEW TO FLASH KIT!!!!
Unfortunately I need some help URGENTLY!!!!

I want to make a movieclip MOVE IN THE OPPOSITE DIRECTION OF THE MOUSE according to the parameters of a smaller version of the same movieclip.

So, I want it so that if the mouse is at the egde of the small movieclip then that area of the larger clip can be seen through a a scripted mask that follows the mouse

I Already Scripted the Mask- Don't worry

I want it to look kinda like the attached file but I want the lrg clip to stop once you get to the egdes of the small clip.

This would help alot.

I kinda have a deadline

Thanks!!!

MOVE IN OPPOSITE DIRECTION OF MOUSE
HEY, I'M NEW TO FLASH KIT!!!!
Unfortunately I need some help URGENTLY!!!!

I want to make a movieclip MOVE IN THE OPPOSITE DIRECTION OF THE MOUSE according to the parameters of a smaller version of the same movieclip.

So, I want it so that if the mouse is at the egde of the small movieclip then that area of the larger clip can be seen through a a scripted mask that follows the mouse

I Already Scripted the Mask- Don't worry

I want it to look kinda like the attached file but I want the lrg clip to stop once you get to the egdes of the small clip.

This would help alot.

I kinda have a deadline

Thanks!!!

[MX04] Bounce Of Wall With Direction Changes
Hi Guys,

I have this following situation.

Basically, I want my balls to move around a border and bounce off the walls when it hit the walls.

I have this done up and working.
Here an example of what I had achieve
http://64.13.207.72/download/arrow.swf

But upon hitting the wall, I want the balls to rotated to a reflect the correct direction also, this part I’m stuck =(

Please click on this link to have an idea of what I mean
http://64.13.207.72/download/example.jpg

The script is use is as follow:

Code:
onClipEvent (load) {
fanX = this._x;
fanY = this._y;
leftWall = 0;
rightWall = 600;
topWall = 150;
bottomWall = 400;
fanRadius = this._width/2;
distX = (Math.random()*3)-1.5;
distY = (Math.random()*3)-1.5;
}
//
//
//
onClipEvent (enterFrame) {
//
fanX = fanX+distX;
fanY = fanY+distY;
this._x = fanX;
this._y = fanY;
// check right wall
if (fanX+fanRadius>rightWall) {
overshoot = (fanX+fanRadius)-rightWall;
fanX -= overshoot*2;
distX *= -1;
}
// check left wall
if (fanX-fanRadius<leftWall) {
overshoot = leftWall-(fanX-fanRadius);
fanX += overshoot*2;
distX *= -1;
}
// check bottom wall
if (fanY+fanRadius>bottomWall) {
overshoot = (fanY+fanRadius)-bottomWall;
fanY -= overshoot*2;
distY *= -1;
}
// check top wall
if (fanY-fanRadius<topWall) {
overshoot = topWall-(fanY-fanRadius);
fanY += overshoot*2;
distY *= -1;
}
}



The file can be download via this link
http://64.13.207.72/download/arrow.zip


Any input? Thanks =)

Move Direction On Angle - Sine And Cosine
Hey, I am having a lot of trouble with this. I have a ball and a platform. Now when I press left and right keys, the platform will rotate, to a max of 30 degrees right and left. The ball is constantly falling, coded at a rate so that it is like gravity...here is the code for it:

code: onClipEvent (load) {
time = 0;
}

onClipEvent (enterFrame) {
//implement gravity into the ball
_y = 1/2*(.2)*Math.pow(time, 2);
time++;
}

Now the code for when the ball hits the platform (it is coded like this because in reality, there are multiple paddles):

code: onClipEvent (enterFrame) {
with (_root.ball) {
//maze boundaries
if (leftPad.row3.hitTest(_x, getBounds(_root).yMax, true)) {
time --;
}
}
}

Now, what I want to do is make is so that, depending on the angle of the platform, the ball's x and y will fall in the correct direction at the correct rate. I figure I will have to use sine and cosine for this, but I am not wholly sure how to get it to work.

All I did so far was calculate the sine and cosine, but I don't know exactly how to impliment it into the movement of my ball...

code: angle = _root.maze._rotation;
//how much the maze has rotated
currentX = Math.cos(angle*Math.PI/180);
currentY = Math.sin(angle*Math.PI/180);
(it is within an onClipEvent handler)

Any help would be greatly appreciated, thanks

[F8] Moving An MC In The Opposite Direction Of Mouse Move
Hi,

Does anybody know how to make a Movie Clip go in the opposite direction that the mouse goes in on a ratio? (e.g. when you move your mouse right the movie Clip slightly left)
Here is a pretty good example of what I am looking for.

I've tried
code:
Xcenter = 275;
Ycenter = 200;

_root.onEnterFrame = function(){
_root.bg_mc._x = Xcenter - _root.xmouse;
_root.bg_mc._y = Ycenter - _root.ymouse;
}

But it did'nt work at all, could somebody please help me?
I'd be grateful for any help

Movie Clip To Move With Mouse Direction
Hi
I am new to this forum, wish to seek some advices how to create a movable screen when mouse is pointing at left or right of the screen.

I am working on a feature, that when my mouse is near to the left, the movie clip will drag toward the left until the end of the scroll.

Thanks in advance

Make Object Move To Point And Face Direction?
Okay; so I'm using rather an odd system to trigger enemy AI in my latest game. If you're wondering why it's odd...don't ask. I'm a 14 year old n00b; whatever works for me . Anywho; here's the triggers I need attached.

onClipEvent (enterFrame) {
if (_root.hdeath1.text>=1) {
//Enemy is alive
if (this.hitTest(_root.meleeai)) {

Here's where I need to make the MC: guy1 move to and face the MC: attack

}
}
}

Thanks
-SaRs

How Do I Make Movie Clips Move In A Random Direction?
The title says it...

How can I have a movie clip move in a random direction within an area? Like have a circle not go outside of the square, but go in random directions in it.

Getting A Movie Clip To Smoothly Move In One Direction And Decelerate
It's kind of hard to be descriptive here, but I want one movie clip to move downwards on a page, quickly at first, then decelerating. So I write this in the first frame of the movie clip:

while(this._y<500){
    mango=(500-this._y)/30;
    this._y += mango;
}

Now, when I do this, I get the old message about my scripting slowing my computer down.

Why isn't it working properly? :l

[MX04] If And Else To Move Mc
Hi I have a MC that uses actionscript to move:

_root.sliderone.scrollbar01= 0 (left postion, off screen left)
_root.sliderone.scrollbar01= 1 (middle of screen)
_root.sliderone.scrollbar01= 2 (right postion, off screen right)

I want the button that

If its left off screen
_root.sliderone.scrollbar01= 0 moves to _root.sliderone.scrollbar01= 1

If its already in the middle of the screen:
_root.sliderone.scrollbar01= 1 moves to _root.sliderone.scrollbar01= 2

I had a go with if / else but could not get work right. Any help welcome

Shaun

[MX04] Move To Front
is there a function to move a movie clip to the front so that if you draw a line it will alaways stay in front of it? or script to make it so when the line hits someting it would delete the part of the line that is hitting the object?

[MX04] Head Move Actionscript
OK, I know it exists, but I can't figure it out. What I am looking for is an actionscript 2.0 code that will allow me to make a character's head follow the cursor. It is hard to explain, so I have an example. I don't want the character to move, just the head following the cursor like this:


Click it to view!

[MX04] Move Mc With Acceleration Using A Button
Hi I have found this code to make a movie clip move with acceleration, it works great but I want it to link to a button rather than when a cursor key is pressed.

onClipEvent (enterFrame) {
//this line sets this movie X position
this._x = this._x + acelx;

//pressing left or right, increases acceleration
if (Key.isDown(Key.LEFT)) {
acelx = acelx - 2;
} else if (Key.isDown(Key.RIGHT)) {
acelx = acelx + 2;
} else {

//if left or right are NOT pressed, reduces acceleration to zero.
acelx = acelx / 1.1;
if (Math.abs(acelx) <= 0.3) {
acel = 0;
}
}
}


I guess I need to change this line (Key.isDown(Key.LEFT)) to be something like (leftarrow_mc.onPress) but cant get it to work???

thanks

[mx04] GotoAndPlay On Mouse Move
I'm trying to make it so when i move the mouse it will goto a frame.

[MX04] Six Movieclips, How Do I Move Them At Different Times
hi, basically i just want to know how to move movieclips in order but not at the same time, eg move:

'foot1' at a constant speed, traveling at a speed taken from a variable called 'footspeed' and moving to a target point indicated by another mc with the instance name of 'target1'

then do the same for foot 2, foot 3, foot 4, foot 5 and foot 6

i have tried but i can't get them to move alternately instead of at the same time, and i can't set their speed, they constantly jump to the target mc

[MX04] Disperse/Move Away Effect
Hello,

This is my first post here, and one of my first posts in regards to AS. I'm not entirely new to AS, but I haven't had the chance to really delve into it and so I am not totally comfortable with it yet. I need some help in getting creating an effect.

I have a bunch of similar but unique MCs on the stage, and upon clicking them they will each display different text over/above all the MCs on the stage. They may even all fade out, I'm still working on this all. Now, where I need the help is with getting the next effect that I will try to describe.

Upon rolling over any of the MCs I want the surrounding MCs to disperse or move away from the MC that has the mouse over it. Upon rolling off any of the MCs, they should all get back into place. Below are a before and after screen shot of what I am looking for. I have searched here and on other forums for ways to do this but can't find anything or really even find a place to start. I just don't know how to go about getting this done. Any help would be mighty helpful and appreciated.

[MX04] Help: Drag Button To Move Scroll
I am trying to drag a button to make a scroll bar move. I have made it scrollable by hover. The button moves when the scroll info does but not vice versa. There are a million ways to write a scroll bar in Action Script and I think the way I did it, from a different tutorial, I am unable to control such a feature.

P.S. my file size is too big to load, any suggestions.

[MX04] Invisible Move Clips Are Still Being Counted
Hi Everyone,
I have a problem with my coding which no one in my class even my teacher can figure out.

I am making a game for the Culminating Activity and what it is is that the player is the frog's tounge and it tries to get bugs,

I have a specific bug (Bug6) that when its "eaten" [gone invisible] subtracts to from the hit count.

Except it doesn't move leave but is invisible so, everytime the tounge goes down my hit count is subtracted by a huge amount!!

Here's the code:
if ((this.hitTest(_root.Bug1))) {
trace("hit bug 1");
_root.Bug1._visible = false;
_root.btmVal = _root.btmVal+1;
_root.Bug1._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}
if ((this.hitTest(_root.Bug2))) {
trace("hit bug 2");
_root.Bug2._visible = false;
_root.btmVal = _root.btmVal+1;
_root.Bug2._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");

}
if ((this.hitTest(_root.Bug3))) {
trace("hit bug 3");
_root.Bug3._visible = false;
_root.btmVal = _root.btmVal+1;
_root.Bug3._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}
if ((this.hitTest(_root.Bug4))) {
trace("hit bug 4");
_root.Bug4._visible = false;
_root.btmVal = _root.btmVal+1;
_root.Bug4._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}
if ((this.hitTest(_root.Bug5))) {
trace("hit bug 5");
_root.Bug5._visible = false;
_root.btmVal = _root.btmVal+1;
_root.Bug5._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}
if ((this.hitTest(_root.Bug6))) {
trace("hit bug 6");
_root.Bug6._visible = false;
_root.btmVal = _root.btmVal-2;
_root.Bug6._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}
if ((this.hitTest(_root.Bug7))) {
trace("hit bug 7");
_root.Bug7._visible = false;
_root.btmVal = _root.btmVal+5;
_root.Bug7._y = 10;
trace("added one");
_root.zap.start();
trace("sound play");
}

Thanks for your help,
it's much appreciated!!

[MX04] Move Front Of Mc With One Button And Back With Another
does anyone know how to make the main character in
http://www.addictinggames.com/maxdirtbike.html not including the character just the bike please help! any part will help you dont have to give me all of it

How Do I Move An Object In The Opposite Direction Of Another Object?
Hello,

This seems like it should be easy but for some reason I'm having trouble making it happen... any help would be greatly appreciated.

I know how to set the Y position and get the Y position of objects, but what I'm trying to do is have one object move exactly opposite to another.

The first object is draggable. If it is dragged up 10 pixels, then I want the other object to move down 10 pixels.

Any suggestions?

Thank you!!

Janet

Image That Follows And Moves Into The Direction To The Direction The Mouse Is Moved.
Hello

I'm having problems trying to figure out how to come up with a solution to this dilemma so any help would be more than greatful!

IN A NUT SHELL

I want to make an image (one that is larger than the actual stage itself) to follow and move into the direction to the direction that the mouse is moved to. So when the mouse is moved 65 degrees, the image should move 65 degrees etc etc.


PLEASE HELP! PRETTY PLEASE!

Thanking you in advance, cheers, lovely thanks!

How To Detect Direction Of Movieclip And Rotate To Face Direction
Hi!

I have searched this forum, but Im not really sure what to search for, so I havent found anything similar to this. If anyone know, then please post the link to that thread.

I am trying to do some sort of aquarium with random moving amoebas.

But I want the amoebas (movieclips) to detect in what direction (angle) they are moving and rotate so that they "face" the direction they are going in.

I also post the fla file here so anyone can download it to see what I mean.

Thanks in advance

Detect Direction Of Movieclip And Rotate To Face Direction?
Morning all!

Little thing bugging me here.....

I have a movie clip which moves around the stage randomly, but I want it to face the direction it randomly changes to. Can you help or shed some light for me?

Here is my code:


PHP Code:



onClipEvent (load) {
    width = 600;
    height = 450;
    speed = Math.round(Math.random()*2)+1;
    x = Math.random()*width;
    y = Math.random()*height;
    this._x = x;
    this._y = y;
    x_new = Math.random()*width;
    y_new = Math.random()*height;
}
onClipEvent (enterFrame) {
    if (x_new>this._x) {
        sign_x = 1;
    } else {
        sign_x = -1;
    }
    dx = Math.abs(x_new-this._x);
    if ((dx>speed) || (dx<-speed)) {
        this._x += sign_x*speed;
    } else {
        x_new = Math.random()*width;
    }
    if (y_new>this._y) {
        sign_y = 1;
    } else {
        sign_y = -1;
    }
    dy = Math.abs(y_new-this._y);
    if ((dy>speed) || (dy<-speed)) {
        this._y += sign_y*speed;
    } else {
        y_new = Math.random()*height;
    }
}





I have experimented with:

_rotation = (Math.round(180 / Math.PI * Math.atan2(diffy, diffx)) + 360)
and also this._rotation += 1; but not having much luck. Thanks for looking and helping if you can

Movie Direction Based On Mouse Direction
I have a MC with two movies init one going left one going right.

I want to have the clip direction change based on the direction the mouse is going.

One:
I need to know how to tell wich direction the mouse in going

Two: I need to know how to switch the clips inthemovie based on the direction.

I'm fairly new the indepth scripting.

Thanks for any help.

Roger

Movieclip Facing
is there am actionscript property in flash that can tell a movie clip to face another movieclip?
Im trying to make a gun fire a bullet at a player but obviously setting it as the player's _rotation wouldn't work

Facing Movieclips
When I want a movie clip to face another I simply use:

onClipEvent (enterFrame) {
clipToFace = _root.player;
xdiff = clipToFace._x-_x;
ydiff = clipToFace._y-_y;
offset = 0;
_rotation = Math.atan2(ydiff, xdiff)*180/Math.PI+offset;
}

But when I have the player In the center of the screen and scrolling the background I use this code in the background:

onClipEvent (enterFrame) {
_y += accelerar*Math.sin(_root.player._rotation/57.3);
_x += accelerar*Math.cos(_root.player._rotation/57.3);
}

Which makes the background move with the player, good for a scrolling game. But the problem lies when I try to make a movieclip in my background face the _root.player

It simply doesn't work because its moving with the background. Does anybody have an idea so it can face the player?

Mouse Facing
How do you make a MC always face the mouse.

Facing A Giant
OK. I have looked all over this forum, and other forums. I have emailed several people in search of help with this.

PLEASE HELP!!

I am desperately trying to figure out how to manipulate the stage size of a movie. I want the swf to take up all of the available area in the browser, but I do not want some of the movie clips within the swf to resize. If you have any help, any idea where to find tutorials... anything!!! Please help!!

Anything youve got will be appreciated.

Thank You!!

.

[MX] Facing Directions
I am trying to make a guy face the direction of the last arrow key pressed (left and right only).

PHP Code:




onEnterFrame = function() {
    if (guy.dir==left) {
        guy.gotoAndStop (3);
    }
    else if (guy.dir==right) {
        guy.gotoAndStop (1);
    }
    if (key.isdown(key.left)) {
        guy.dir=left;
        guy._x-=5;
        guy.gotoAndStop (7);
    }
    if (key.isdown(key.right)) {
        guy.dir=right;
        guy._x+=5;
        guy.gotoAndStop (5);
    }
}






In my guy I have the starting frame of him standing and facing right, third frame is facing left, 5th frame is running right, 7th frame is running left. The even numbered frames are blank and my odd numbered frames have stop();. The problem is he is always facing left, when he runs right and I let go of the right arrow he faces left. Appreciate all help.

How To Orbit One Mc Around Another, But Always Facing?
Hello, I am using this script to rotate one mc (cloud) around another (grass), but what I can't seem to figure out is how to change the rotation of "cloud" so that it is always facing the center of it's orbit

Code:
var radius = 1200;
var degrees = -120;

onEnterFrame = function (){
angle = degrees * (Math.PI/180);
degrees += 1;

xposition = radius * Math.cos(angle);
yposition = radius * Math.sin(angle);

cloud._x = xposition + _root.grass._x
cloud._y = yposition + _root.grass._y
cloud._rotation += 1;

updateAfterEvent();
}
right now I am just using "cloud._rotation += 1;", but it obviously doesn't rotate the correct way.

Can anyone help me out? Hope you understand what I mean.

Actionscrip Playing In Frame One. - But I Eventually Want To Move To Frame 2[MX04]
ok - heres a simple one I'm sure

I have 4 movie clip symbols. - each on a different layer - marching in a row

below is the script I have in a layer name "actions" on the main timeline

one_mc.onEnterFrame = function(){
this._x += 1;
}
two_mc.onEnterFrame = function(){
this._x += 1;
}
three_mc.onEnterFrame = function(){
this._x += 1;
}
four_mc.onEnterFrame = function(){
this._x += 1;
}
this works fine. but when my four_mc gets to 600 px accross the page, I want to move to frame 2 of the main timeline...and continue on with my movie.

Looking about I'm guessing I should maybe use the gotoAndPlay rule...but not really sure how.

I was starting with

four_mc.onEnterFrame = function(){
if (this._x <600){
this._x += 1;
}
}

- trying to say if four_mc is greater than 600px along X...I want to gotoAnd play from frame 2

...am I completely confussed?
PLEASE HELP...I'm very stuck!

thanks
tigercat

Facing Keyboard-controlled MC
I am making a fairly complex turret in my little-known space game that doesn't have a name and can only be seen on my hard-drive.

This turret needs to face the playership, which is a movie clip controlled by the keyboard. Every 2 seconds or so, the turret will fire a bullet at the playership.

Help.

Character Facing Directions.
Im really cracking here with this game i am making, a labyrinth sort of thing.
I have attached a sample file (made in Flash 5).
So, i want my character to face in the direction it is walking. When i press the UP key, i want the character to face upwards, and when i press the DOWN key, i want the character facing downwards. The green box is the facing direction. PLease help!!

onClipEvent(load){
moveSpeed=3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}else if (Key.isDown(Key.DOWN)){
this._y+=moveSpeed;
}
}
onClipEvent(enterFrame){
if (Key.isDown(Key.LEFT)){
this._x-=moveSpeed;
}else if(Key.isDown(Key.RIGHT)){
this._x+=moveSpeed;
}
}

This is the basic code i wrote to make the MC move.
I would really appreshiate the help -_-
Still need help!!!!! PLease please!!!!

Enemy Always Facing Player
i'm having trouble with a script that recognizes if player_mc is either (on a linear axis) +x or -x so that when player_mc is +x, enemy_mc & arrow_mc flips horizontal to face player_mc. enemy_mc & arrow_mc does not move because he is an archer.
please help
thanks

Muse Facing Problem
In my script i wrote this
onClipEvent(mouseMove){
if(mouseMove=_x,_y){
this._rotaion+=_x
}
}

but i don't know how to make the object FACE the mouse.
it seems to turn to whenever i move the bouse no matter where i move the mouse.
I can't find out how to change that.
plz help.

Facing Problems While Using SwapDepth
hi friends...
thanks for viewing my query...
I am facing problems while executing the following task:
There is a stack of photographs on the scene and on clicking on the topmost photograph it moves up and settles at the back of the stack, exposing the picture just behind it. Now similarly when i click on this photograph it should move up and settle at the back of the stack.
I succeeded in doing so with two pictures but as soon as i introduced the third photograph i saw the problem in the script I m using.
I made three movieclips with instance name cser,lm and morpho. went inside each of them and converted them in to a button. On release i wrot a script as:
on (press, release) {
_root.x += 3;
gotoAndPlay(2);
}
on the next frame i tweened them according to the desired motion. On the frame where they turn back to come back to original position I wrote:
_root.cser.swapDepths(_root.x);
changing the instance name of mcs in each one of them.
But this did not work as i wanted it to. The movieclips do not always settle at the back of the stack but sometimes in the middle. This is because the depth is swapped only between the current movieclip and the movieclip that i m calling in swapdepth script.
How do i make these photographs work the way I want them to work?
I have to keep atleast 8 photographs in the stack.


(Hope I made my query clear enough to understand. Thank you guys once again)

Facing Mouse Position
hello everyone i'm rather new to actionscripting i know some basics but that's it.
um i know how to make something follow mouse position but what would be the easiest way of making it rotate so it faces the mouse?

also if you can't help here could you check out my other question. link is below.
link: Click Here

Facing A Problem In Flash
Hai guys

I'm facing a problem in load swf concept. I have attached the source of the same concept.
Problem is this given below
1. In the main.swf I have a layout similar to which I have posted and in that I have so many buttons in it and in one the button I'm calling the drag.swf and in that drag.swf I have some buttons in it and some content.
2. when this drag.swf is loaded it should not distrub the main.swf it should be user friendly, when we are in drag.swf only this part should be enabled and the main.swf should be there but it should not affect the other one.

(for example: take a falsh and u have a new file when u press F2 u get action script window at the same time if u click reference book icon u get even that window but it did not distrubs u in any way. The same way I need it here.


If any body can help me in this would be greatfull for me guys.


Thankz for reading this.

By

K.H Basha

I'm Facing 2 Problem In Flash MX
1st Problem

I've done a site in flash using some pixel type fonts which i can view i my pc but when loaded in server others cant view the font instead they view different default font

how to avoid this problem? how to make the font i set visible to others aswell?

2nd Problem

i create preloader with a some animation.. like Loading text boucing..
the problem is the preloader is working but the animation not moving. i set it to Movie clip.

Flash MX 2004 Facing
I have a question. I have an idea for a game, and I'm still trying to figure out some actionscript stuff. I have two movieclips on the back ground that you move around seperately using WASD for one, and up, down, left, and right for the other. How can I make it so that they constantly face eachother? As in, no matter where I move those two MC's on the screen, they continue to face eachother.

Also, if I wanted to have another movie clip that stayed between them, and stretched with whatever distance they are apart, how would I go about doing that? As in a string attached to each of them.

Feel like an idiot, but enh, any help or links to a tutorial on the subject would be appreciated. Thanks for the help, ahead of time.

I'm Facing 2 Problem In Flash MX
1st Problem

I've done a site in flash using some pixel type fonts which i can view i my pc but when loaded in server others cant view the font instead they view different default font

how to avoid this problem? how to make the font i set visible to others aswell?

2nd Problem

i create preloader with a some animation.. like Loading text boucing..
the problem is the preloader is working but the animation not moving. i set it to Movie clip.

Facing IE/Safari Problems
Hello guys,

In fact i'm facing some wierd problems.
I have made some smooth simple transitions on flash with the use of AS too.
but i cannot preview them on Safari (MAC G3). So the elements just appear like BOOOMMM by the eng of the transition...no fade out, no nothing....is it normal?

i mean, sorry but i'm new to the MAC world...what is all about? did i missed something here? it's only a simple SWF file.

Thanks in advance for your replies,

Alain,

Facing Problem When Printing To Laserjet
From Flash when i print to laserjet .... some text diappears sometimes.. but when i print to Deskjet i get a proper print everytime.

Guys need a solution for this

B'cos i have to print on laser each time

Any suggestions would be appreciated

kaustubh

Facing Problem With Sound Objetcs.Can Anyone Help?
I am facing problem with sound object. I have cretaed a FLA named ST1. I have used movie clip inside that and used sound objects. when i run the file its working fine. Now there is one main FLA and if i am trying to load ST1.SWF from my main file its not working. Can anyone help what is solution for this.Sound object concept doesn't work if i try to load SWF file from my main file.

I have one more qustion can we use Sound object using swiftgen? As we all know swiftgen does not support sound object, is there any way i can use that?

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