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








Move Toward Object [AS 2]


I have a simple AS request. I have a moving movie clip symbol and would like little particles to gravitate toward it. What code would I put on the particles if the moving symbol is labeled "bigthing"?

Thanks.




Ultrashock Forums > Flash > ActionScript
Posted on: 2005-06-14


View Complete Forum Thread with Replies

Sponsored Links:

Allowing The User To Move Move An Object (graphic Asset)
I'm working on a Flash presentation that will be an instructional tutorial. I'm teaching users how to navigate a map and I'd like to have them move a ruler or legend to measure distances between two points. Can anyone direct me to a reference source that can help me set this up?

I'm a fairly new Flash user but very eager to learn this technique.

Thanks,

Jerry Marino

View Replies !    View Related
Tween Class To Move An Object Called From Within The Object
I have a custom class that I want to move with the Tween Class
I am calling the Tween constructor from within that class but when I pass the keyword "this" as the object of that constructor , it doesnt move at all the code is as follow


PHP Code:



package{import fl.transitions.Tween;import flash.display.MovieClip;public class PortViewer extends MovieClip{var _twn:Tween;public function PortViewer(){    _twn = new Tween(this, "y", None.easeNone, 0, 100, 2, true);}}} 




how do I reference the object from within itself is there another keyword?
There are no errors it just doesnt move

Thank you Kirupa forums

View Replies !    View Related
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

View Replies !    View Related
Making One Object Move Towards Another Object In Flash 8?
Hi, I need help on making one object move towards another object at a set speed, in Flash Professional 8.
So far I can get one object to move to another one but only doing a fraction of the distance at a time, as with this code:

PHP Code:



onClipEvent (enterFrame) {
    var xspd = (this._parent.redsquare._x - this._x) * .1;
    var yspd = (this._parent.redsquare._y - this._y) * .1;
    this._x += xspd;
    this._y += yspd;





How can I make it so it moves with a set speed? Anyone able to help?

View Replies !    View Related
How Can I Move My Object
Hi. I have seen an animation, where a stick-man goes. I pressed Ctrl + > to see every frame in the flash player. The guy moves every frame, but the legs are always moving. Even if i don´t press any frame, the guy walks. How can i create a animation where a guy alwys runs, so that I don´t have to draw the legs new in every frame? Thanx, Leu

View Replies !    View Related
Object._y Move Down Instead Of Up?
Ok so this is a bit hard to explain and I think I know what the problem is but I have no idea how to fix/troubleshoot it. I have a movieclip inside my main program (a streaming mp3 player) which is a draggable volume control. When it is first loaded it is supposed to get the current volume and set the slider's _y value accordingly (top if volume is 100, bottom if volume is zero). I know that my calculations are correct, because I put a trace on the value that I am sending to the _y, and it *should* work correctly. The problem is, the higher _y coordinate I set the slider to, the farther it goes down, and vice versa. I'm pretty sure that this has something to do with the x-y bounds of the movie clip changing, but I'm not sure how. I looked into the getBounds command but I'm not quite sure I know how to use it to my advantage. Any help?

View Replies !    View Related
Move Object
Hi,
I have object, which is moving on scene from up to down.
Problem: if object repeatly sliding, in place up it jumps.
I need its repeat comming from up is continuous.
Thanks for help.

View Replies !    View Related
Move Object
hi

can someone please give me some simple code for moving an object from one area of my screen to anther.

for ex
on click move. mcgregor. to wahtever area.

i don't know anyting about fflash, and it hink this will look nice than my motion tweens right now.

something simple, with a bit of excelleration

thanks in advance.

View Replies !    View Related
Object Move
Ok well in my game i have an object(ball)but i want to make it so when the character touches the ball it moves...Any ideas on how to do this??

View Replies !    View Related
Is There Any Way For A Grouped Object To Move...
Is there any way for a grouped object to move from one place to another instead of having to make tons of frames?

View Replies !    View Related
How Can I Move An Object By Keypresss
I would like to know how to move an object in flash by keypress, sofar I have tried and only got to the setproperty of the object and changing the xposition to -2 but that's obsolute not related to the actual xposition..

HELP ME OUT PLEASE

View Replies !    View Related
Move Object On X Axis
I can't seem to figure out how to move an object on the _x axis through animation script, not a static/hard chop. Instead of having the object just appear, and then reappear in one spot, I need to move the object through script where distance=time are proportional to one another. I know that I could do it through tweening, but the overall effect is much better when done through script.

Thanks for anyone's help!!!

View Replies !    View Related
Move Object Actionscript
How can you move an object with different speeds and acceleration with action scripting?

Any one know of a good tutorial or some scripting to help me out

Thanks in advance for you help

D

View Replies !    View Related
Please Help Button To Move Object
i have a slide show, 6 pics and 6 buttons to directly view each picture. i also have a next and previous button.
i have a script that moves a little red dot (mc) under the pressed button to indicate which picture is shown. that animation is decelrated.
now what i need is the same movement, just on the next and previous buttons, so that when im watching pic1 and push the next button the red dot moves under button2.

any idea? please!

View Replies !    View Related
Making An Object Move In An Arc
Ok im not very smart, so im trying to figure out how to make something(a movie clip) move in an arc like a car turning or a ball being thrown in the air...

ive seen many games do this, but how would I do make an object do this? can someone help?


Also: how can I make something reflect (like when a light ray hits an object the light ray bounces off at an angle...) Ive drawn the 'light ray' but when it hits ive used _rotation to rotate it but that didnt have the right result.

View Replies !    View Related
Using Actionscript To Move An Object
Hello, ive just started using flash and im really stuck.

Ive made a movie where a helicoptor (with moving rotors and sound!) follows your mouse around, after reveling in the joy of it working i decided to make it a little more interesting and changed the canvass to blue then added some clouds.

I made the clouds in the library and put them into my movie (the scene1 bit) but what id really like is for them to randomly scroll across my screen at different heights, sizes and speeds.

Is there a way to do this? I use flash 5

Thanks alot


***EDIT***

Ive uploaded my movie to http://www.deviantart.com/view/5954985/

This is what it looks like now, i think it will be great with all the clouds and stuff

View Replies !    View Related
Trying To Move Object With Actionscripot
Howdy,
I have a movie clip on the stage placed in frame one. On frame one I have the following actionscript:

// initial position
var finish = gw_mc._x - 100

// movement
if (gw_mc._x>=finish){
gw_mc._x=gw_mc._x-1
}

The movieclip is named "gw". I am trying to get the movieclip to move 100 spaces to the left. My code does not work. Can anyone tell me how I could get it to work? Also how could I change its speed?

Thanks,
mperla

View Replies !    View Related
Move Object Using X Y Coordinates
How can i move an object using X Y coordinates. i cant use a motion tween in this project, i have to specify each pixel to move the object.

i'm a complete flash newb so as many details you can give me would be great.

thanks
GK

View Replies !    View Related
The Bast Way To Move An Object....
Basically, i have a file that shows when you rollover the button the ball movie clip moves up and on rollout the ball movie clip moves down. I don't think this is the best way to do it because, if you were to move really quickly over the button, the movie gets confused it seems. It will then move down when rollover and up when rollout. My question is, Is there a better way to do this?

as of now, the ball movie is a simple movie with a simple motion tween and three actions on a differant layer.
frame 1 = stop
frame 10 = stop >>(ball reaches vertical peak)
frame 20 = gotoandstop(1)

here's my script for the button

on (rollOver) {
ball.play(2)
}
on (rollOut) {
ball.play(11)
}

thanks for your help,
-chip

View Replies !    View Related
Move-dependant Object
I am trying to create a simulation that has has the user move an object into a particular position. There is a line connected to this object at one end and connected to a fixed position at the other. How can I get the line to move with the movable object but yet stay fixed at the stationary object at the other end.

View Replies !    View Related
Move An Object With Actionscript
I'm looking to do a smooth movement of a movieclip onPress of a button. Only the X position will change. I was thinking that something with setInterval would work, making the MC move +1 x value every 100 milleseconds. I just can't piece together the code. The X value is movign from 6.5 to 11.1. Any help would be appreciated, this should be pretty simple. Thanks in advance!

View Replies !    View Related
Is There A Better Way To Move An Object With Code?
I've been using this code to move objects around with a nice easing effect...

however, I notice that is making the whole flash piece move slow and tax the processor, because, I believe it is cranking out the code over and over...

Is there a better way to move an object with code, so that it doesn't slow everything down so much?

onClipEvent (load) {
var easing = 5;
var xFinal = this._x;
var yFinal = this._y;
var xScaleFinal = this._xscale;
var yScaleFinal = this._yscale;
var alf = this._alpha;
}
onClipEvent (enterFrame) {
this._x += (xFinal-this._x)/easing;
this._y += (yFinal-this._y)/easing;
this._xscale += (xScaleFinal-this._xscale)/easing;
this._yscale += (yScaleFinal-this._yscale)/easing;
this._alpha += (alf-this._alpha)/easing;
}

View Replies !    View Related
Is There A Better Way To Move An Object With Code?
I've been using this code to move objects around with a nice easing effect...

however, I notice that is making the whole flash piece move slow and tax the processor, because, I believe it is cranking out the code over and over...

Is there a better way to move an object with code, so that it doesn't slow everything down so much?

onClipEvent (load) {
var easing = 5;
var xFinal = this._x;
var yFinal = this._y;
var xScaleFinal = this._xscale;
var yScaleFinal = this._yscale;
var alf = this._alpha;
}
onClipEvent (enterFrame) {
this._x += (xFinal-this._x)/easing;
this._y += (yFinal-this._y)/easing;
this._xscale += (xScaleFinal-this._xscale)/easing;
this._yscale += (yScaleFinal-this._yscale)/easing;
this._alpha += (alf-this._alpha)/easing;
}

View Replies !    View Related
Can't Move A Drawing Object
Code:
this.createEmptyMovieClip("triangle_mc", 1);
triangle_mc.beginFill(0x0000FF, 30);
triangle_mc.lineStyle(5, 0xFF00FF, 100);
triangle_mc.moveTo(200, 200);
triangle_mc.lineTo(300, 300);
triangle_mc.lineTo(100, 300);
triangle_mc.lineTo(200, 200);
triangle_mc.endFill();

triangle_mc._x=50;
I have a problem! I can't move the mclip triangle_mc to the x=50 coordonate. Please help me!

View Replies !    View Related
Move Object Slower
I have a MC that I am moving across the stage using this:

PHP Code:



// -- home
this.home._x = (this.home._x + 10)/2;




and then the next frame says:
gotoAndPlay("home");


how can I make this move slower ..
beside cutting down the frames per second.
That makes it real choppy. I want it smooth,
but slower.
I tried to divide it by less then 2, but that doesn't work.

and how about adding a small bounce to it
once it gets to the destination _x

here is what I have so far:
http://enstudios.com/subs/auto/main.html

thanks in advance.

View Replies !    View Related
Can Anyone Help Me Make This Object Move?
Hello

I'm stuck on my coursework which is in for Tuesday

I've got a shape that is a movieClip and i want it to move around in random directions inside a larger shape and bounce off the walls. I can make it move around by itself when i enter the frame by using this:

onClipEvent(enterFrame) {
speed = 10; //if it is, then set a variable we call speed to ‘10’
angle = random(2); // set desired angle
speedX = Math.cos(angle*Math.PI/180)*speed;
speedY = Math.sin(angle*Math.PI/180)*speed;
this._X += speedX;
this._y += speedY;
}

But I want it to stay still and only start moving when it is clicked with the mouse. So i tried putting this at the beginning:

onClipEvent(mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
if (this.hitTest(x,y, true)) {

This makes the object move when it is clicked on but it only moves if the mouse is down and is over the object so when i click it it moves and then stops.

Is there a way i can make the object move only when it is clicked on and keep moving and bounce off the walls?

Also, there are several small shapes inside the larger shape and i want them all to move when clicked on. How do i make sure that only the shape clicked on moves and stop them from all moving at the same time?

Please help :S

I hope that made sense

View Replies !    View Related
[F8] Move An Object On A Circle
I found that .swf-file.
did somebody know the way to build it?
please help me!

http://dateihoster.de/preview.php?fi...1dffd49a93.swf

View Replies !    View Related
[F8] Move An Object On A Circle
I found that .swf-file.
did somebody know the way to build it?
please help me!

http://dateihoster.de/preview.php?f...31dffd49a93.swf

View Replies !    View Related
Making Object Move By Itself
i'm currently making the game pong...
i'm stuck at the part where i want the ball to move randomly in all directions...
can anyone help me in dat part?

thnx a lot...

View Replies !    View Related
For/Next Loop To Move An Object
Hi all,

I've been trying to write what I thought would be a simple script for a "for/next loop" to be able to scroll through a movie position. I have the script working partly but it just jumps to the end position and I want it to increment slowly so that it scrolls across. I tried to put a pause loop in between the increments but all it did was pauseX and then jump to the end!

My flash symbol is in a continuous loop at frame 3 back to frame 2, it has a button contained which is there to move a movie entitled "timemovie" to the left. timemovie is simply a strip of photos.

Basically when the button is pressed, I want the movie position to increment by 1 slowly so it scrolls across until it reaches value 111 where it stops, resets the increment value back to 0 and then jumps back to frame 2 into the endless loop until the button is pressed again.

I have the button object's action set to gotoand Play(4) and frame 4 contains my script below: I have put // before the pause that I added incorrectly.

movieincrement == movieincrement + 1
finished = int(111);

//var starttime = Math.floor(getTimer()/1000);
//var endtime = Math.floor(getTimer()/1000);
//while (endtime<starttime+1) {
//endtime = Math.floor(getTimer()/1000);}

moviePos = Math.round(moviePos+movieincrement);
timemovie._x = moviePos;

gotoAndPlay(4);

if (movieincrement == finished) {
gotoAndPlay(2);
}

This works but it just jumps to 111 instead of scrolling there slowly?

Any idea what I'm doing wrong.

Many thanks,
Terrence.

View Replies !    View Related
Move Object Along 3D Angle
Stupid math...
I have a script to move a ball to a new x&y, and it calculates the angle between the 2 points in order to move it at a consistent speed.
something like this...


ActionScript Code:
var startx=ball.x=0;
var starty=ball.y=0;
var endx=100;
var endy=50;
var speed=5;

var dx = endx - startx;
var dy = endy - starty;
var angle = Math.atan2(dy, dx);

var vx = Math.cos(angle) * speed;
var vy = Math.sin(angle) * speed;


stage.addEventListener("enterFrame", efh);
function efh(event) {
    ball.x += vx;
    ball.y += vy;
}

but now, if i'd want to add a z variable and calculate the 3D-angle between the 2 points in the 3D space, and move the ball along that, in a consistent speed, how would I do that?

I would apreciate the answer to this a lot =)
Thanks!

View Replies !    View Related
How Do I Move An Object By Angle?
Hello guys!

Im pretty new to flash and trigonometry, and when i read the "detecting the mouse angle"-tut, i wanted to create a minigolf-style game. I have created the mouse-angle MC, and made it return values between 0 and 360 degrees.

My problem now, is that i want the ball to be shot in the selected angle - no powermeter yet Lets say i stop the rotation at 120 degrees (it would then strike the top left corner), how do i get the ball to move, from where its located, by an angle of 120 degrees and the exit the screen?

To simplify my question: I want to move an object by 120 degrees from its current location. How do i do that? The movement must be animated

Hope you understood my quasi-english guys! Greetings from a stupid norwegian

View Replies !    View Related
Move All Object In Layer
hi,

i have a tons of differenct objects on one layer that i want to move up whenever the "UP" arrow is pressed.

i could move the objects one at a time, but it'll take forever.

note: these objects have quite diff names, so i cant quite make a for-loop running ["object"+i]._y -=1;

Thank you very much, this will save me a lot of time. Thanks again!

View Replies !    View Related
Fluent Object Move
Hello, can anybody help me. I want my object to be moving fluently from right to left, while it seems to me like jumping from frame to frame. The move is snatchy, torny. Is there any help?

View Replies !    View Related
WHY DOES THE FLASH OBJECT MOVE...
THE FLASH OBJECT MOVES UP AND DOWN WHEN I SCROLL THE PAGE.... IS THERE A REASON FOR IT? I GUESS IT'S A TINY PROBLEM BUT FOR ME IT'S GIGANTIC... SCROLLING DOWN THE PAGE AND SEEING THR OBJECT MOVE MAKES THE WEB PAGE LOOK BAD... HOW CAN I GET RID OF IT. THIS WILL BE MY FIRST FLASH THING IN THIS PAGE!!!! SO I WANT IT TO BE GOOD... I WAN TO START WITH THE RIGHT FOOT. HELP!!! THANX!

View Replies !    View Related
WHY DOES THE FLASH OBJECT MOVE...
THE FLASH OBJECT MOVES UP AND DOWN WHEN I SCROLL THE PAGE.... IS THERE A REASON FOR IT? I GUESS IT'S A TINY PROBLEM BUT FOR ME IT'S GIGANTIC... SCROLLING DOWN THE PAGE AND SEEING THR OBJECT MOVE MAKES THE WEB PAGE LOOK BAD... HOW CAN I GET RID OF IT. THIS WILL BE MY FIRST FLASH THING IN THIS PAGE!!!! SO I WANT IT TO BE GOOD... I WAN TO START WITH THE RIGHT FOOT. HELP!!! THANX!

View Replies !    View Related
How To Move Object And Fade It?
I've gotten this code from another tutorial site but trying to modify it so I can apply it to my other flash movies.

Firstly what this does is it moves the object around 300 x 300 document in random coordinates. But what I want it to do is make it transparent as it decelerates or have it's alpha go down to 0 as it nears the destination. And when it gets a new destination it's alpha resets back to 100 again to repeat the process. Any help will be greatly appreciated!


Code:
onClipEvent (enterFrame) {
currentlocx = this._x;
currentlocy = this._y;
differencex = newX - currentlocx;
differencey = newY- currentlocy;
accelx = differencex/accelFactor;
accely = differencey/accelFactor;
this._x = this._x + accelx;
this._y = this._y + accely;
if (Math.round(this._y) == Math.round(newY) && Math.round(this._x) == Math.round(newX) ) {
newX = Math.round(Math.random()*300);
newY = Math.round(Math.random()*300);
accelFactor = Math.ceil(Math.random()*4) + 2;
}
}
onClipEvent (load) {
newX = Math.round(Math.random()*300);
newY = Math.round(Math.random()*300);
accelFactor = Math.ceil(Math.random()*4) + 2;
}

View Replies !    View Related
Move Object From Button
does anyone know of a tutorial that can show me how to move an object to a specific x,y coordinate by pushing a button? i've checked the tutorials here but they only show how to move using keys.

View Replies !    View Related
Move An Object With Scripts
Hello,

I got an instance I wanna move when clicking the background.. and I want it to move to the place I click, Its for my volume bar. At the moment you can drag the volume instance but if you click on the background you wont go there..

This is how the code looks like now:

Code:
var music:Sound = new Sound(vSound);

// initial x position fo the dragger
mp3Player.dragger._x = mp3Player.line_mc._x+mp3Player.line_mc._width+3;
mp3Player.dragger.onPress = function() {
this.startDrag(false, mp3Player.line_mc._x, this._y, mp3Player.line_mc._width+mp3Player.line_mc._x+3, this._y);
// drag function for the volume slider
this.onEnterFrame = function() {
Volume = _root.mp3Player.dragger._x-_root.mp3Player.line_mc._x;
// set the volume variable
music.setVolume(Volume);
// set volume
};
};
mp3Player.dragger.onRelease = mp3Player.dragger.onReleaseOutside=function () {
this.stopDrag();
delete this.onEnterFrame;
};

startVolume = 30; // use the start volume variable and set it to 50
_root.mp3Player.dragger._x = _root.mp3Player.line_mc._x + startVolume; // set the dragger x position equal to the startVolume
this.music.setVolume(startVolume); // set the volume of the sound object
Dragger is the actual volume bar and line_mc is the background, This is how the player looks like now

View Replies !    View Related
Move An Object While It Is Rotating
Hi, I have have two objects: one is a spaceship and the other is a ball that rotates around the spaceship (shield). I want to be able to press a button have ball move forward (while still rotating), the code I used for the ball rotation is

function moveFireAround(evt:Event) {
evt.target.x = reallyThisObject.x; //reallyThisObject is the ship
evt.target.y = reallyThisObject.y;
radian = angle * (Math.PI/180);
evt.target.x = reallyThisObject.x + radius * Math.cos(radian);
evt.target.y = reallyThisObject.y + radius * Math.sin(radian);
angle+= angleChange;
}

This works fine of course, but I’m having a hard time moving the ball forward while simultaneously rotating, any ideas?
Thanks

View Replies !    View Related
How To Move Object And Fade It?
I've gotten this code from another tutorial site but trying to modify it so I can apply it to my other flash movies.

Firstly what this does is it moves the object around 300 x 300 document in random coordinates. But what I want it to do is make it transparent as it decelerates or have it's alpha go down to 0 as it nears the destination. And when it gets a new destination it's alpha resets back to 100 again to repeat the process. Any help will be greatly appreciated!


Code:
onClipEvent (enterFrame) {
currentlocx = this._x;
currentlocy = this._y;
differencex = newX - currentlocx;
differencey = newY- currentlocy;
accelx = differencex/accelFactor;
accely = differencey/accelFactor;
this._x = this._x + accelx;
this._y = this._y + accely;
if (Math.round(this._y) == Math.round(newY) && Math.round(this._x) == Math.round(newX) ) {
newX = Math.round(Math.random()*300);
newY = Math.round(Math.random()*300);
accelFactor = Math.ceil(Math.random()*4) + 2;
}
}
onClipEvent (load) {
newX = Math.round(Math.random()*300);
newY = Math.round(Math.random()*300);
accelFactor = Math.ceil(Math.random()*4) + 2;
}

View Replies !    View Related
Move Object From Button
does anyone know of a tutorial that can show me how to move an object to a specific x,y coordinate by pushing a button? i've checked the tutorials here but they only show how to move using keys.

View Replies !    View Related
Is There A Better Way To Move An Object With Code?
I've been using this code to move objects around with a nice easing effect...

however, I notice that is making the whole flash piece move slow and tax the processor, because, I believe it is cranking out the code over and over...

Is there a better way to move an object with code, so that it doesn't slow everything down so much?

onClipEvent (load) {
var easing = 5;
var xFinal = this._x;
var yFinal = this._y;
var xScaleFinal = this._xscale;
var yScaleFinal = this._yscale;
var alf = this._alpha;
}
onClipEvent (enterFrame) {
this._x += (xFinal-this._x)/easing;
this._y += (yFinal-this._y)/easing;
this._xscale += (xScaleFinal-this._xscale)/easing;
this._yscale += (yScaleFinal-this._yscale)/easing;
this._alpha += (alf-this._alpha)/easing;
}

View Replies !    View Related
Move Object Using Actionscript
Hi,
I'd like an movie clip to tween to a different position when a button is pressed.

Does anyone know the actionscript for this?
Thanks,
Mark

View Replies !    View Related
Rotating Object Via Mouse Move?
I would like to build an object that controls the volume of the music playing in my movie.

I would like it to alter the sound as you rotate the volume without a mouse release e.g. volume goes up and down as you rotate the control.

How is the best way of doing this? Are there any good tutorials?

View Replies !    View Related
Want An Object To Move Smoothly Across The Screen
When using motion tweening to move an object across the stage the object appears to move in a jerky manner. I have tried changing the Frame rate(fps)but the result is the same. Does it have something to do with the alpha setting?

View Replies !    View Related
How Can I Move An Object That Is Outside Of A Scrollpane With The Scrollbars? (MX)
I posted this in the MX forum last week, but perhaps this is a better place for this question:

Is there a way to move an object outside of a scrollpane, in a way that it stays in register with the contents of the scrollpane? (i.e., its movement is linked to the scrolling action.)

Here's what I'm trying to do, ultimately. I've got a large interactive table... it's wider and taller than the available window space on the website. The table is a movie chock full o' buttons. I can put it in a scrollpane with no problem, but I don't want the column headings to disappear off the top when the user scrolls down the table. I can make the scrollpane shorter than the Flash window and put the table headings outside (above) the scrollpane... so when the user scrolls down the headings stay visible. But that only works until the user starts to scroll horizontally. Then the headings no longer line up with the table columns.

I had another thought... another approach to this problem that might be a better angle than my original plan (or maybe not... I don't know!)

Maybe I could have the entire window be a scrollpane, and the column headers as a separate object in a layer above the rest of the table (still inside the scrollpane). Is there a way I can set it up so that object scrolls horizontally with the table, but when the table is scrolled vertically, the headers object retains its position at the top of the window..?

Any ideas?

Thanks...

View Replies !    View Related
Make Object Move To Sound
is there any way to make an object (mouth) move to the lyrics of a song?

View Replies !    View Related
HOW CAN I MOVE A Object Whith Actionscript
HOW CAN I MOVE a object whith actionscript, i know the equations, but de object don't move!!!

View Replies !    View Related
How Do I Move An Object On A Button Release?
I want to move an object from one point to another with friction on a button release. So far I have this:


onClipEvent (load) {
speed = 5;
movie_width = 600;
movie_height = 600;
}
onClipEvent (enterFrame) {
// calculate x and y so that
// the square is in the middle
target_x = 200;
target_y = 100;
// distance away from square
distance_x = target_x-this._x;
distance_y = target_y-this._y;
// move + friction
this._x += distance_x/speed;
this._y += distance_y/speed;
}


but i can't make a button execute it.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved