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





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

Add Motion Guide To Shape Tween?
Is it possible to add a motion guide to a shape tween?

thanks

Can You Tween A Motion Guide Layer?
I'm trying to tween both an object along a path and the path that the object follows. Can you do this?

I'm not having success. Once I add a shape tween to the motion guide layer, Flash will ignore my guide and the object will travel in a straight line.

Maybe I need to use a motion tween to tween the guide?

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.

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

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

Using The Tween Class As If Using A Guide Layer...is This Possible?
Hi all,
I am trying to create a menu with a series of balls which tween and move in realtive position with each other, and give the illusion they are tweening in 3-d space around an elipse. (I will posted a .fla file at www.richcolicchio.com/flash for reference ).

I am having trouble figuring out how to get this to work dynamically, and was wondering if anyone out there has done such a thing.

Is it possible to use the tween class in conjunction with a guide layer? Every time I try to use the tween class, it ignores that the menu balls are on any kind of guide layer, which leads me to believe that I have to alter the code somehow to get it to tween along the guide.

Any help would be greatly appreciated!
-Thanks!
-Rich

Guide With A Weird Shape Tween Question.
I was wondering if anyone knows how they did these little flare thingy's. I know how to make a shape follow a Guide Layer but how do you get the shape to morph like these do:

http://www.cirquedusoleil.com/Cirque...banco_home.htm

click enter and look at the flares going up the left side, If anyone know of a tutorial the gives a basic idea of how to do this that would be cool too!

Thanks,
Josh

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

HELP Motion Tween Guide (ADD DOT)
Hi ok here is my situation I’m trying to do a motion tween its basically a square I’m trying to twist like 35 degrees to the right in the box there is a dot where when I do a guide the line I draw snaps into well the box isn’t twisting the way I want so I put that dot at the corner of the box so it snaps in the corner and it will be where I want but the other side isn’t where I want it to be so how do I add another dot to the other side so I can draw another line to guide that side???

HELP Motion Tween Guide (ADD DOT)
Hi ok here is my situation I’m trying to do a motion tween its basically a square I’m trying to twist like 35 degrees to the right in the box there is a dot where when I do a guide the line I draw snaps into well the box isn’t twisting the way I want so I put that dot at the corner of the box so it snaps in the corner and it will be where I want but the other side isn’t where I want it to be so how do I add another dot to the other side so I can draw another line to guide that side???



Ok in detail



Ok I have a box a black box I’m trying to make a motion tween where it turns 25 degrees to the right so its not standing straight up but half way like this so right now the box is straight like this -- i'm trying to make it turn like this
Ok when I do the motion tween it doesn’t move like I want so I made a motion guide layer I drawled a line to snap it to the little dot on the box you know hen you make a symbol there is a dot in the middle ok so I moved the dot to the top corner to make it end up where I want with the line I draw on the motion guide but the other side is still not where I want it at the end of the tween so I want to add another one of those dots on the bottom of the box so I can draw another line on the guide layer and make it end up where I want it

How Do I make Another White Dot on the Symbol to Snap Another Line To It and Make Another Line On The Motion Guide To Direct It Where I Want It?

[CS3,AS2] Motion Guide Tween With AS2
Hi guys
currently my game is set up so that MCs move across a motion guide at different speeds - on every frame, they run the action gotoAndStop(_currentframe + curSpeed), since their speeds are all variable. They can also slow down and speed up depending on effects that have been cast on them. unfortunately the huge timeline I have to make, which represents the slowest possible movement the enemy can make, is bogging down flash big time
so I was wondering if there was a better way to do it
can I tell something to tween along a complicated motion guided path using actionscript?

Motion Tween To Follow A Guide
how do i motion tween to follow a guide??? i used a tut in newbies sector but i cudnt do it successfully

Motion Tween On Guide Line
what happened to this tutorial^
am i just blind, or is it gone?

Build Motion Tween Guide Using Actionscript?
im creating a mc consist of a map. i wanted to used a guide line if people wanted to go someplace in the map. i wanted to go from point a to point b, other time i wanted to go from point b to point a. can i use actionscript to developed? plz help me... it's for my thesis.

Circle Tween Animation / Motion Guide
I can't get a 'picture' to go around a circle / rectangle with the help of a motion guide (tweened animation)

Motion Tween To Shape?
Hey, Major newbie here, i was just wondering how to make a shape tween right after a motion tween, i have flash 5. Thanks for your help

Shape Vs. Motion Tween
If you have the option of converting a rectangle to a symbol and making a motion tween, or leaving it as a shape and using a shape tween, is there any difference as far as performance or file size?

Motion Or Shape Tween
I got everything set up and fit right, I am trying to do the box effect its on this site http://www.jpeggraphics.com/ you see how the box scale it self in and out.

Motion And Shape Tween
I am having trouble figuring this one out and would appreciate any help!

Basically what I want to be able to do is move a drawing from one corner toward the center of the stage, as it approaches the center of the stage, change shape and then change direction to an opposite corner.

Can anyone provide me with a simple tutorial?

Thanks in advance!

Motion Or Shape Tween
ok I got everything set up and fit right, I am trying to do the box effect its on this site http://www.jpeggraphics.com/ you see how the box scale it self in and out.

Combining Shape And Motion Tween
I just started learning flash and i found these boards they have helped me with everything so far. But now i am stuck i can perform motion tweens and shape tweens but how can you use both shape and motion on one layer. please help me

Masking W/ Shape Motion Tween
I am trying to use some masking that utilizes some shape tweening as well. It seems that this only works when I publish in the Flash 6 player. So my question is does the Flash 5 player support masking layers with shape tweening? It does not appear that it does, but I did not think this was a new feature in the Flash 6 player and swear I have seen some sites that use this with the Flash 5 player. Here is a example of what I am doing. You will obviously have to have the Flash 6 player in order to view the masking effect. Thanks in advance for all your help! TC

http://www.webdivo.com/topnav2.swf

Shape + Motion Tween At The Same Time?
hey dudes n dudettes

was just wondering if anyone knew how to create a motion tween and shape tween at the same time?
what i wanted to do was make a shape change while fading out

thanks in advanced

Scriptable Motion Or Shape Tween?
Hi, is it possible to acomplish this without creating an animated movieclip? And if so, does anyone know how to do it?? What I want to do is a simple change in size of a movieclip.

CPU Usage: Motion Or Shape Tween?
Hey

Just wondering if there is any difference in the CPU usage of a motion tween and a shape tween.

I know what each are capable on doing, but say both were doing basically the same thing, like a simple Alpha tweens. Which would you prefer to use and why? does either of them take greater amount of processing power?

Help With Bitmap Motion/shape Tween
I have a book i'm attempting to animate. The cover opens and the problem is I need to distort the bitmap in order to make the animation completely realistic. Obviously, I could do a (size costly) frame by frame version, but I'm not too thrilled about that. I can obviously do a motion tween with scaling and the book cover closes fine. Problem is that with perspective, I need the height of the cover's edge to get larger as it approaches the 90 degree angle point. Get what I'm saying? How can I apply a tween that will allow me to scale AND distort the bitmap while retaining a good, clean tween on the bitmap (without unwanted affects)?

CPU Usage: Motion Or Shape Tween?
Hey

Just wondering if there is any difference in the CPU usage of a motion tween and a shape tween.

I know what each are capable on doing, but say both were doing basically the same thing, like a simple Alpha tweens. Which would you prefer to use and why? does either of them take greater amount of processing power?

Layer Looping With Motion Tween
Hey I am kinda stuck on how to loop an individual layer with a motion tween? Is there a way to do it? Thanks in advance.

Shape Twen / 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

[CS3] How To Move An Entire Shape Or Motion Tween
scenario is i've created a motion tween for fading purposes, have my object with alpha 0% at point A and end 100% at point B as normal.

now i want to move the entire sequence to a new location, the way i'm doing it now, is i have to move the beginning graphic, then manually move the ending graphic as well, and try to even match it up so that there's no movement during the fade.

is there anyway to way to just grab the entire thing and move it on the stage?

Create Shape And Motion Tween Of A Line
I am trying to create a line graph in which the line is following a certain path over time like in a simulation. The line starts with a point in frame 1 and ends with a smooth not straight line in e.g. frame 50. The line has to "run" like in an electrocardiogram.
Is it possible to create this in flash?
If so, how? I tried to combine shape and motion tweening, but that didn't work.

Thanks for your help

The First Frame Of My Shape Tween Should Look As The Last Frame Of My Motion Tween...
How do I make a motion tween go over in a shape tween? When breaking apart my instance, I loose all effects. (Gradient fill/tint/alpha (newbie...)). How can I start a shape tweening with an object that at least LOOKS like the instance in the last frame of my motion tween -since I cannot add tint or alpha to it- ?

(a simple star that morphes into a raindrop)
[Edited by spip on 01-05-2002 at 05:59 PM]

Tweening. It Says I Can't Motion Tween Due To Multiple Objects On Layer?
Hello.


I'm trying to do a tween, that I've done before, wherein a block slides down after a button press, going from alpha 0 in frame 1 to alpha 100 in frame 10.

For some reason, Flash won't let me do this anymore, giving me the "!" icon and saying I can't do this with ungrouped objects or with multiple objects on the layer.

As far as I know, I don't have either.

I created the box in keyframe1, added a keyframe to frame 10 and changed the settings, then inserted the motion tween and it's not working.


Any ideas as to what I'm doing wrong?

Thanks!

-Ax1

Weird Lines Appear During Motion Tween That Involve Size/shape Transforms...
Hey guys, I've encountered a strange problem while making my new flash cartoon;
It happens during motion tweens involving a size or shape transformation of a movie clip - For some reason these weird lines appear and flicker on and off while the tween runs. The lines can't be erased, and I have no idea how to get rid of them or what is causing them; it tends to happen when the movie clip is more of a geometric shape like a box or a table drawn using the pen tool. I've attached some images of what they look like;
See the lines? They flicker on and off, its really distracting and annoying.
I've tried to break apart the movie clip and do the size transform as a shape tween rather than motion tween but the lines still pop up RIGHT when I try to change the image's size or shape. It's happened on more than 1 occasion, after restarting the program too so I dont know whats wrong.
As you can see in the images, the lines kind of flicker on and off,change color as the tween runs.
Does anyone know how to remove these/avoid these? I would really appreciate any tips or suggestions. Thanks alot guys!!

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?

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.

Shape & Motion Tweens With Motion Guide? Can It Be Done?
Hello everyone

I am currently trying to make a line shorten gradually as it moves.
In other words I want to combine a shape and motion tween, using a motion guide to direct it.

Could someone supply an explanation for how to do so??

Thanks

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.

Masking A Motion Guide Layer
Hi,

I created an animation using the motion guide layer (an object travels along a guide. Now I want to mask the animated object, but can't seem to get it. I tried adding a new mask layer, and placing the animated object under the mask layer, but that did not work. Any help is greatly appreciated.

Tommy

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