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




How To Remove Motion Tween



Anybody can tell me if we accidently create a motion tween and then remove it then what is the procedure.



FlashKit > Flash Help > Flash Newbies
Posted on: 09-26-2001, 05:08 AM


View Complete Forum Thread with Replies

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

Is It Possible? Motion Guide + Motion Tween + Actionscript Api Drawing
Hi

Im looking for some help I've done a lot of research and spent hours trying to find a way to do this so any input is appreciated.

I have drawn a shape in actionscript

_root.createEmptyMovieClip("myMoon",6);
with (myMoon){
beginFill(0x999999, 100);
drawCircle(50,120,30);
endFill();
}

new Tween(myMoon, "_x", Elastic.easeOut, 0, 300, 3, true);

Basically I have a tween on it that works fine but what I need to do is motion tween along a motion guide.

Of course I know how to achieve this through the normal way of drawing a circle through the tools box but I have to figure a way out to do this to the shape drawn in action script via the drawing api. How can I do this?

I presume I have to someway make this shape appear in my library as a symbol possibly? Hope someone has a soloution thanks a lot

Using Stop(); On A Shape Tween Of A Swapped Movie Clip Symbol Within A Motion Tween
Thanks a lot for your time. I'm new to actionscript, and language syntax and I never really got along to begin with so I appreciate any help in the matter.

Basically the title says it all - I made a motion tween in the main scene, made a movie clip symbol (to shape tween a gradient) and added a stop(); inside the gradient-tweened-symbol. I then swapped the movie clip symbol with the motion tween in the main scene, and got exactly the effect I wanted (the item moved, then tweened itself) but the stop(); seems to have no effect.

I know this looks like one of those "that idiot didn't google before posting" questions, but I've been looking for about a half hour with different permutations of stop, doesn't work, actionscript, and flash, and I haven't found anything that seems to target this problem specifically.

If you've got any idea what's going wrong, please feel free to respond or show me how to better seek help on my own. Thanks again.

Script Motion Vs Tween Motion Question
I have asked for help before on scripting that slows down text or smooths it out, etc.

My question is this.. (and i havent experimented yet so..)

If you were to use script to cause alpha changes and motion changes, as opposed to tweening everything, would it make the flash file move much smoother, especially if you had alot going on at one time???

It also should make the file quite abit smaller too correct?

Thanks

Tween Class Scaling Breaks Motion Tween?
I have a movie clip which uses a motion guide to animate the entry (and eventually the exit) of a bunch of other movie clips. These smaller clips contain buttons, and animate on rollOver and rollOut using the following code:


Code:
on(rollOver) {
this.swapDepths(2);
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Back.easeOut, this._xscale, 100/.6, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Back.easeOut, this._yscale, 100/.6, .5, true);
play();
}
on(rollOut) {
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Bounce.easeOut, this._xscale, 100, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Bounce.easeOut, this._yscale, 100, .5, true);
stop();
}
However, once an object has been moused over, it doesn't exit with the others. Any ideas why it seems to "fall off the track" of the motion guide?

Shape Tween Like A Motion Tween, Using Guide Layer
How if possible, can i make a shape tween behave and follow a set path (like using a guide layer)while morhping/tweening?

So far it seems as each time i try it always goes in a straight line from a to b and in this case that's not what i'm after.

Diference Between Motion Tween And Shape Tween
What exactly is the difference between a motion tween and a shape tween?

What's The Best Way To Do A Motion Tween And A Shape Tween At The Same Time?
Hi all,

I'm having some difficulty doing this. I have tried motion tweening a movie clip containing a shape tween but it just doesn't look right. Anybody have any ideas?

Cheers

Do I Use A Shape Tween? Mask? Motion Tween?
How do I make this arrow grow into shape? I want it to slowly appear...but not fade in...

it's hard to explain...but here is the arrow, hopefully you will understand what I want...

I tried using a mask, but instead of revealing the arrow little by little, it dissapeared little by little...(basically the exact opposite)...

I also tried putting a white box over it & motion tweening the box to reveal the arrow...but that didn't look good...


any ideas?...suggestions?

thanks in advance...

What's The Difference Between A Shape Tween And A Motion Tween?
Hi!
I just wanted to ask that what is the difference between a shape tween and a motion tween???

Not to bother you.

please reply me back

[MX04] Shape Tween And Motion Tween
Why do Flash doesn't allow ungrouped objects into motion tween and symbols into shape tween?

Change From Motion Tween To Shape Tween
I am trying to have a motion tween of some text move on the page and then change into a shape (i.e, a shape tween). I can't seem to make this work. I put a keyframe at each end of the motion tween and that works fine. Then I add another keyframe, delete the text and replace it with my shape. Then I select just those frames and add the shape tween but nothing happens. How do I accomplish this successfully?

Thanks.

Shape Tween / Motion Tween Problem
I must be missing something very obvious.

I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?

If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.

I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com

Shape Tween / Motion Tween Problem
I must be missing something very obvious.

I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?

If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.

I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com

Seperating Motion Tween From Alpha Tween
I am trying to fade in the alpha on a graphic symbol rather quickly at the same time the symbol scrolls very slowly up the stage, but the two seem linked, so that a very slow scroll means a very slow opacity gain. How can I fade the photo in quickly while the photo motion tweens slowly?

How To Motion Tween Thats Not Linear Using Script Or MC Tween?
If you wanted to do an animation of a ball that goes from A to B but not linear, how would you do it by code or Mc tween. How would you make the ball go in a curve line for example instead of a straight line from A to B?

I understand you can use a guide to get all types of non linear motion tweens on a timeline, but how would you do it using MC tween or coding.

Motion Tween (fade) Text Converted To Symbol No "motion"
I am using flash mx and my file includes text that is supposed to fade in and out.

I do exactly as I do with images - alpha 0 fades into 100 % etc, and it looks fine on the stage, but when I publish the text simply pops on and off with no recognition of the alpha channel fading in and out.

I create the text as static text - old english font - and then I convert it to a symbol. I tween the symbol from 0 to 100 alpha and back again. Presumably making it a symbol essentially makes it an image, right? no?

I am relatively new to flash so I may be missing something obvious?

(yes I have checked out places like flashkit.com, but not exactly what I am looking for, want more control.)

Motion Tween & Shape Tween In Same MC? How?
I have created a shape tween on my first layer. On my second layer I would like to create a motion tween. But the motion tween says it will not occur with layers with shapes or more than one group. Can anybody enlighten me a little bit on this.


Thanks for any help that is given.

Derek

MOTION TWEEN Vs. SHAPE TWEEN
What slows down a .swf file more?

I have a site I'm re-doing from scratch, and I see quite a few places I got lazy and used a lot of Movie Clips. I could use shapes and have the same result. The main .swf did suffer from a little slow down...

I've read most of the literature there is on the net [on this subject], and I was wondering what first hand experience some of you had?

I know you're going to say, "It depends...", but I mean...

as a rule... which plays faster/more taxing on the browser?

G

Motion Tween, Tween Back
hey guys, its been a while.

i have a pretty strange problem, strange in the way that i dont understand why its happening, any help would be appreciated.

im creating a bejwelled game.

what im doing is:

when you click on two adjacent blocks, i call a function that uses a motion to swicth them. This works great. The i call a function to test whether the move has resulted in a combintion of >2 blocks. If it returns false, i recall the previouse tweening function to reverse the blocks to their original positions, this is where my script breaks down, it executes the function but nothing moves !

Heres the relavent code:

ActionScript Code:
import mx.transitions.*;
import mx.transitions.easing.*;
 
var bt1:Tween;
var bt2:Tween;
var initBlock:Object = new Object();
var b:Board = new Board(); //external classes no issues here
var g:Game = new Game(); //external classes no issues here
var counter:Number = 0;
var x1:Number;
var x2:Number;
var y1:Number;
var y2:Number;
 
initBlock.onEnterFrame = function() {
    this.onRollOver = function() {
        this.gotoAndPlay("rollOut");
    };
    this.onRollOut = function() {
        gotoAndPlay("rollOut");
    };
    this.onRelease = function() {
        var s:String = this._name;
        getClickCoord(s);
        _root.counter++;
        if(_root.counter == 2){
            _root.x1 = g.fromX;
            _root.x2 = g.toX;
            _root.y1 = g.fromY;
            _root.y2 = g.toY;
           
            if(g.isValidInput()){
                swapBlocks();
                updateMcName();
                updateBlockArray();
                if(isValidMove()){
                    /* ommited for space */
                }else{
                    trace("no combination");
                    //switch position variables
                    var m:Number = _root.x1;
                    _root.x1 = _root._x2;
                    _root.x2 = m;
                    m = _root.y1;
                    _root.y1 = _root.y2;
                    _root.y2 = m;
                    //change everything back
                    swapBlocks();
                    updateMcName();
        updateBlockArray();
                }
            }
            //reset variables
            _root.counter = 0;
            g.fromX = g.fromY = -1;
            g.toX = g.toY = -1;
        }
    }
};
/* ********************************************
* Display blocks
******************************************** */
function display(a:Array) {
    var k:Number = 1;
    for (var i:Number = 0; i<6; i++) {
        for (var j:Number = 0; j<6; j++) {
            var blockName:String = "Block"+k;
            var blockDepth:Number = this.getNextHighestDepth();
            this.attachMovie(a[i][j].__type, blockName, blockDepth,initBlock);
            this[blockName]._x = j*50+100;
            this[blockName]._y = i*50+50;
            k++;
        }
    }
}
/* ********************************************
* Get co-ord of click block, from block name
******************************************** */
function getClickCoord(s:String):Void{
    var x:Number;
    var y:Number;
 
    if(String((Number(s.substring(5)) / 6)).length == 1){
        y = (Number(s.substring(5)/6) - 1)+1;
    }else{
        y = (Number(String(Number(s.substring(5))/6).charAt(0)))+1;
    }
    if(Number(s.substring(5) % 6) == 0){
        x = 6;
    }else{
        x = Number(s.substring(5) % 6);
    }
    if(g.fromX > 0 && g.fromY > 0){
        g.toX = x;
        g.toY = y;
    }else{
        g.fromX = x;
        g.fromY = y;
    }
}
// i knows it an insain way to do it, but it works fine for the moment
/* ********************************************
* Swap Adjacent Block
*      - From (x, y)
*      - To (x, y)
* ******************************************** */
function swapBlocks():Void{
   
    var s:Array = b.getBlock();
    var block1:String = "Block" + String((_root.y1-1)*6 + _root.x1);
    var block2:String = "Block" + String((_root.y2-1)*6 + _root.x2);
   
    if(_root.x1 == _root.x2){
       
        var blockTween1:Tween = new Tween(this[block1], "_y", None.easeNone, this[block1]._y, this[block2]._y, .5, true);
        var blockTween2:Tween = new Tween(this[block2], "_y", None.easeNone, this[block2]._y, this[block1]._y, .5, true);
   
    }else{
       
        var blockTween1:Tween = new Tween(this[block1], "_x", None.easeNone, this[block1]._x, this[block2]._x, .5, true);
        var blockTween2:Tween = new Tween(this[block2], "_x", None.easeNone, this[block2]._x, this[block1]._x, .5, true);
 
    }
   
}
/* ********************************************
* Update MC names
******************************************** */
function updateMcName():Void{
    var s1:String;
    var s2:String;
    var block1:String = "Block" + String((_root.y1-1)*6 + _root.x1);
    var block2:String = "Block" + String((_root.y2-1)*6 + _root.x2);
    s1 = block1;
    s2 = block2;
    this[block1]._name = "bob";
    this[block2]._name = block1;
    this["bob"]._name = block2;
}
// working fine
/* ********************************************
* Update block array
******************************************** */
function updateBlockArray():Void{   // working fine
 
    var s:Array = b.getBlock();
    var t:String = s[_root.y1-1][_root.x1-1].__type;
    s[_root.y1-1][_root.x1-1].__type = s[_root.y2-1][_root.x2-1].__type;
    s[_root.y2-1][_root.x2-1].__type = t;
}
 
display(b.getBlock()); // working fine
 


sorry for the size, i trie to cut out as much as possible.
ive debugged the code a hundred times everything else dose its job, as far as i can tell the tween AS just isnt working.

Thanx in advance.

Is It Possible To Remove A Button When You Tween It Away?
I was wondering if its possible to remove a button once its faded away. Or if its possible to make it inactive just during the time its alpha = 0?

Im going to make a control panel that I want to fade in when over and fade out when move the mouse away but if I put a layer over the control panel the control panel wouldn't work even though I don't have a onPress/Release function on the layer over.. I cant really come up with a good solution for this if its not possible to make an alpha = 0 layer inactive.. any ideas?

Scope Trouble... Unregister/ Remove Object / Tween ?
Hi,

I hope somebody can help with the following problem.
I'm trying to make a powerpoint kind of projector:
- Main flash movie: works as a container to load different flash files.
reacts on the left and right arrow buttons to go to the next or previous movie, which is loaded in a movieClip.

- Several external swf files all exported from the same: slide.fla only adjusting xml node settings make the differences in text and pictures.
This works, but after loading into the container I use to show the images the tween of my images gets messed up. (Not in the first loaded movie, but sure after around the third)

Please can anybody look at my code and tell me what could be the problem?
I'm sure it has to do with the scope after loading into the container.fla, and all the objects having the same name, for the submovies. (exported from the same .fla)
Do I have to unregister/ remove these objects after usage - I think this might be it, but don't know how.

In the container.fla I already set:
clipLoader_mc._lockroot = true;
but this doesn't solve the problem.


Code:
/// **************************** ///
/// START TWEEN METHODS FOR SCREENS ///
/// **************************** ///
var mcl_obj:Object = new Object();
mcl_obj.onLoadInit = function(target_mc:MovieClip):Void {
target_mc._width = 500;
target_mc._height = 395;
target_mc._x = 500;
var distance:Number = 5;
var angleInDegrees:Number = 45;
var color:Number = 0x000000;
var alpha:Number = 75;
var blurX:Number = 7;
var blurY:Number = 7;
var strength:Number = 1;
var quality:Number = 3;
var inner:Boolean = false;
var knockout:Boolean = false;
var hideObject:Boolean = false;
var filter:DropShadowFilter = new DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject);
var filterArray:Array = new Array();
filterArray.push(filter);
target_mc.filters = filterArray;
var tween_target:Object = new Tween(target_mc, "_y", Back.easeInOut, Stage.height, 300, 1, true);
tween_target.onMotionFinished = function() {
intervalClearScreenId = setInterval(ClearScreen, 8000, counter);
};
screenCounter++;
//initiated on top of the page.
};
function ClearScreen():Void {
var tween_screen:Object = new Tween(mover_mc, "_x", Strong.easeInOut, mover_mc._x, 1250, 1, true);
tween_screen.onMotionFinished = function() {
if (screenCounter<screenMaxCount) {
ShowScreens();
} else {
screenCounter = 0;
ShowScreens();
}
clearInterval(intervalClearScreenId);
};
}
ShowScreens = function ():Void {
// Create a movie clip instance.
this.createEmptyMovieClip("mover_mc", getNextHighestDepth());
var img_mcl:MovieClipLoader = new MovieClipLoader();
img_mcl.addListener(mcl_obj);
// Load an image into the movie clip
img_mcl.loadClip(imageArray[screenCounter], mover_mc);
};
//load XML voor screens on the left:
function loadScreensXML(loaded) {
if (loaded) {
_rootNode = this.firstChild.childNodes[imageNodeNr].childNodes[0];
trace(_rootNode);
total = _rootNode.childNodes.length;
for (i=0; i<total; i++) {
//add images to imageArray:
imageArray[i] = _rootNode.childNodes[i].firstChild.nodeValue;
}
screenMaxCount = imageArray.length;
//initiated on top of the page
//Show the screens:
ShowScreens();
} else {
content = "file not loaded!";
}
}
xmlScreens = new XML();
xmlScreens.ignoreWhite = true;
xmlScreens.onLoad = loadScreensXML;
xmlScreens.load(urlImagesXML);
/// **************************** ///
/// END TWEEN METHODS FOR SCREENS ///
/// **************************** ///
I'm trying all day already to solve this so please can anybody help?
Thanks in advance!

Motion Tween
i want to know how to motion tween with actionscrtipt.. like a slidding scrollbar.. i want it to slide... to the other side.. how do i do this? what is the MAIN script?

Motion Tween Help
how can you slow down the motion tween, with out adding more keyframe

Motion Tween Q
Hey. Just starting out on flash 5.0 and I'm trying to create alittle short flash movie. I am trying to do some motion stuff (of course) and I only want one little picture to move in the whole frame. I cannot seem to figure out how to do it (motion or shape?) and if I try motion tween, it moves the whole frame instead of that one image. So what other layers or motion guides do I need and what am I doing wrong?!? Thanks for your help, swampfox

Check out http://www.JackassOnline.net !

Motion Tween?
Motion Tween: I know what it is.....but how do I get to the menu where I can use it?

Motion Tween Help Plz
i have a really simple motion tween set up

it uses a graphic symbol that i made and it flips around - and changes the alpha rate - now for some reason it only shows up at the end and the the whole tween doesn't show!

whats up?

when i play it on the timeline it works fine!

thanks

yechiel

Motion Tween MC
Is there anyway to motion tween a movie clip....Im importing a jpg dynamically and want it to move around on the stage. and i cant get it to tween. Please help if you can!!!!

Help W/ Motion Tween
I've made a motion tween guide work before, but I can't repeat the process again. 2 questions below:

These are the steps I'm following - I boilded them down from a tutorial on this site. I'm using FLASH MX v6.0.

1. Create layer with graphic, make symbol
2. Add motion guide (new layer will appear above)
3. Select Frame 1 of new motion guide layer – draw the guide on new layer
4. Create Keyframe on symbol layer timeline at the end
5. Create Keyframe on same point in guide layer
6. Activate "snap" tool
7. Select frame 1 of symbol layer - drag symbol to start position
8. Select last frame of symbol layer - move object to end position
9. Select frame 1 of symbol layer - choose motion tween

#1 - it's not working when I hit play - the "head" of the arrow doesn't lead to the key frame, the arrow looks dashed. I don't know why/how i made it that way. Just kinda sits there, then jumps a little at the end.

#2 - Now, what I'm trying to make is what looks like an atom using 3 ovals as guides. What I thought I would be able to do is make both the atom and guide a symbol and follow the above steps and just paste instead of draw, making sure the correct key was selected in the symbol and guide layers when I pasted on the stage - and just rotate the guide and move the symbol before I made the tween.

But absolutely no joy whatsoever.

What am I missing that will enable me to cut and paste to do this project?? (the joy of windows!)


Thanks much.

Tween/motion Help
I have an object in teh middle of the screen and i want it to pan off the screen after i click on a link to go to a different area in my "movie"
If posible please attach an example to your reply.

Motion Tween
I guess this is a really simple question for you to solve, but it's driving me mad.

Its kinda tricky to explain and with my English it dosent make it easier, but I'll try.

What i wanna do is a box that should grow

step 1 (frame 1-5)
The box should stand in same point, but just grow widely (when i do this, my box grows in both ways. Beacuse i can't set the round point exatly the same to the left corner in both frame 1 and frame 5

step 2 (frame 5-10)
Same as step 1, but now it should grow heightly. Its the same problem as with step 1

so if someone could help me solve this i would be really greatful

thanks for your time

Motion Tween.
Hiya.
Is it just a fact that if you put a big graphic (forexample i made a picture of a pin board with notes) is just really buggy when you put a motion tween on it?
My purpose was just simply "slide" the pinboard to the centre of my animation from the right side of the screen. But it is like the most sticky animation I've ever seen.
Is there any way to make it more smooth? reduce the graphic heavyness or something?
Any tips?

Help With Motion Tween Plz
Can Someone Please Help Me With Motion Tween Please,
Step By Step Would Be Great, Thanx In Advance.

Motion Tween
Can anyone help me create a motion tween with a motion guide plz, step by step would be great, thanx for your help in advance.

=( Motion Tween ? Noo >=(
hi
i have this menu that i did with motion tween and action script, does someone know a different way to do it without using motion tween??

the principal button in rollover takes me to a frame label that has motion tween and makes appear the sub-menu
but i dont wanna use motion tween... i have another .fla where i use set properties to move an object.. is there anyone who can combine this two actions to avoid use motion tween??

here is the 3 files

the first one called "menucachoron" has my menu with motion tween

the second and the third one called "prototiporollover" and "prototiposinboton" has different actions that move an object without action script

thanks.

Motion Tween Help
Okay. This has really aggrivated me. I am trying to make some objects in my flash movie rotate, which I did successfully. That's not the problem. My dilemma is after the animation ends, the stationary objects, which are underneath the moving ones, dissappear and the ones that move remain. I want it all to disappear simultaneously. How could I rectify this? I can post the FLA if I'm not explaining it well enough.

Motion Tween Maybe?
hey

I want to make a a line become bigger and bigger but like i want it to start off as a small dot then become a line then the liine get bigger.....would i use a motion tween or what?

Help With Motion Tween
How can you specify a motion tween to go on and on for the rest of the movie while you have other animations in another layer that will continue after the unlimited one , say:
from 1 to fram 10 - Circle moves to left
from 11 to frame 20 in an another layer - traingle fade out

Motion Tween
Does someone know how to create a object move from one place to another place with slow to fast motion.
Attached file show the motion from beginning to end which position at cross.


Should I use actionscript?

Motion Tween
ok I know motion tweens move a object fomr place to place but can it make a non stick arm bend? if so how? please IM me if you know My screen name is JAnimeRules. (at least for the day it is)

Motion Tween Help
I tried to do a motion tween of a word being written out, but it always move from the beginning to the end without going through the path. It moves straight from point 1 to end!! Help what might be the problem???

Motion Tween
Oh..

That got kinda weird..

Anyway heres my problem:


I want to make my charachter move by means of motion tweening..
I think iv got the hang of it, but i also want my charachters legs to move :/

Iv made the torso and the legs into 2 different graphics..


But when i motion tween them to for instance, walk to the other side of the screen, i cant seem to "edit" the legs to move :/

How do i do this?

By means of acrion script?

Anyone? :/

Motion Tween
There is something wrong with my motion tweening. I'm not sure what it is. My steps for creating one are:
-create object
-create new keyframe
-move object in that keyframe
-click inbetween keyframes on the timeline and select motion tween.

It has worked for me many times before. I'm not sure what is wrong with it. I have also restarted flash to see if that is what it was. Thanks in advance.

Motion Tween
hi.
i have a flash file in wich i let firework fly.
the firework moves with a motion guide.

my question is..

i want the arrow to fly where i click with my mouse but it has to fly with the movie guide.

is this possible?
and how?

Help With Motion Tween
I'm trying to make a stargate to use as a quick intro, all I need to do is make that silver part with all the symbols on it spin around, stop at certain places, and continue spinning.

But when I try and rotate it, the whole thing changes into an oval shape, and I have no idea how to stop it from doing that.

I tried to completely re-size it, but then it doesn't really match what it original looked like. And when I did put a motion tween on it, instead of just spinning around on the point, it moves around the whole page.

here are some pictures so you can better understand what I mean:

http://img181.exs.cx/img181/2066/egthispart2bp.jpg
http://img224.exs.cx/my.php?loc=img2...pinsoff0tt.jpg
http://img224.exs.cx/my.php?loc=img2...blonged4zx.jpg

Any help you can give would be greatly appreciated. Thanks.

Motion Tween Help
Some of my motion tweens work (the arrow appears in the timeline where the tween is) but some dont and i just get a row of dots in the timeline. I think I am creating the tweens the same way every time. Why would this happen?

Motion Tween
Whenever I make a motion tween they always seem to be jumpy. How can I make the movement smoother??
Thanks

Motion Tween Using AS 1.X
how do u make a motion tween using actionscript. I want to move an object from point A to point B using AS.

Motion Tween 2MC's With AS
Hello,

I am try to create a nice bit of code that I can re-use for Motion tweening between 2 points. I've got it working just how I want it, but.... It only works on 1 mc at a time and I need to be able to move 2 or move MCs at the same time.


Can you look at my code and let me know where I am going wrong.

Thanks

Kaan.



Script on a Frame

function moveClip() {
speed = 60;
// moves
target_mc.distanceX = (target_mc.targetX-target_mc._x)/speed;
// easing
target_mc._x += target_mc.distanceX;
if (target_mc.targetX == Math.round(target_mc._x)) {
delete onEnterFrame;
}
}
function updateTargets(NewMC, x) {
//sets the new x coords
target_mc = NewMC;
target_mc.targetX = x;
target_mc.onEnterFrame = moveClip;
}


Script on My Button

on (release) {
_parent.updateTargets(_parent.test_mc2, 400);
_parent.updateTargets(_parent.test_mc3, 400);
}

[F8] Motion Tween Help
Hey guys

I have been working on an image slider for my new project and it looks great,
at the moment it works on mouse re action but I would like it to scroll left to right automaticly no mouse involved.

here is my code:


Code:
onClipEvent (load)
{
xcenter=327;
speed=1/60;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0.3) _x=-3278.3;
if (_x < -3278.3) _x=0.3;
}


Cheers guys

http://www.triaduk.co.uk

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