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




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.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 11-23-2007, 11:24 PM


View Complete Forum Thread with Replies

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

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

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 + Stop Independant Of Main Movie
Hi all,

I have an interactive Flash app I'm working on, where most frames advance by a user clicking a button that brings them to a new set of frames. I now want to play a motion tween in one set of frames when entered, however, having a bit of trouble controlling it.

Basically, when I use a button to navigate around I either call a gotoAndStop or have a stop() in the actual frame being entered. I created a new layer called animations and created a motion tween between 10 frames - works great. Here is my issue, the global stop being called, keeps the motion tween from actually doing anything obviously. If I change the stop to a play, when the frame is entered the motion tween plays great, but when it is done, I get sent out all the back to the 1st frame of the whole flash app, which is not what I want.

So...my question is, how do I play a motion tween when a frame is entered, while still stopping the rest of the movie, etc.? I can't seem to wrap my head around this one.

Thanks,

Scott

Shape Tween Mask And Loaded Movie Clip
I have a blank movieclip on the stage that gets an external .swf file loaded into it. This clip is masked by a shape tween that is controlled by a button elsewhere. When the shape tween is played and the final keyframe of the shape tween is reached, the .swf loaded in the clip is unloaded for some reason. What is causing this, and what can I do to work around it?

[CS3] X CS4 Flash Movie Clip Symbol Tween Not Working?
Hi guys, I'm making a website layout and in the background I want to have a length of code scroll up and down.

So I typed the code out into a text field and made it a movie clip symbol, and I went in and edited the clip so that on frame 30 it moves up to a certain height, and by frame 60 it moves back down into it's original location.

The problem I'm having is that when I right click between keyframes and click "Create motion tween", the frames between the keyframes turn the light greenish colour, but there is no arrow pointing from the first keyframe to the next...and when I run the clip, it sits at it's original location for the first 30 frames, then jumps up to it's position on frame 30, where it sits until it hits frame 60 and it jumps back down to where it was (no tween). Does anyone know what's wrong?

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.

Reverse Motion Tween In A Movie Clip
hello, i've searched on this site for my issue, but i'm not sure i've found what i need.

on the root timeline, i have an instance of a movie clip that contains a motion tween (12 frames to increase the size of the mc).

on the actions layer of the root timeline, i have written some code so that when the end user rolls over the mc instance, the motion tween plays. what i'm having trouble with is getting the movie clip to play in reverse from frame 12.

bookIntro_1.onEnterFrame = function(){
this.onRollOver = function(){
this.nextFrame();
this.play();
}
this.onRollOut = function(){


}
}

i've tried this.prevFrame, but it only does one frame, not completing to frame 1 of mc.

i appreciate any assistance offered. thanks in advance.

Putting Motion Tween Into Movie Clip?
Hello everyone,
I'm still new to flash and needs some help. I'm trying to make a simple walking skeleton move across the stage. I've made two graphic symbols and motion tween between them to make the walking motion. Now I need to make the skeleton move across the stage. It was suggested that I put the motion tween into a movie clip. However, I couldn't find the step to do this. Can someone point me to a good step by step tutorial? Is there a more efficient way to do this?

Thank you.
Eugene

Motion Tween- No Symbol
how can i make a motion tween without converting the image to a symbol?

thanx for any help!

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

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

thanks

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?

Fade Motion Tween With A Button.. Movie Clip?
Hi.... i want a roll over button that produces a picture which fades in... i.e i can set up a simple button but when the mouse rolls over the image it turns immediatley to the image i have put in the over part of my Frame. What i actually want it to do is fade in slowly.

I have a site which u can have a look at as an example and please please if someone can help me on what is most likely sa very simple question then please do! Link to the example site is below.

http://www.merivale.com/slipinn/slipbar

Looping A Motion Tween/movie Clip While Timeline Has Come To Its End?
I have a layer with a movie clip on it, this movie clip animates itself and has a motion tween to move across the screen. I want to repeat this motion tween while the main timeline has finished. I know its using actionscipt, but I cant seem to get it right.
Cheers for any help.

[F8] Duplicate Movie Clip And New Motion Tween Problem
Hi I am currently having a problem creating movie clips.

I have created a movie clip which is an animation containing 5 different layers and 3 different motion tweens. I duplicate this movie clip and wish to change one of the motion tween's but when I change the motion tween in the new movie clip, it also changes the motion tween in the old movie clip.

I have tried removing the motion tween in the new duplicated movie clip, and creating a new motion tween but this still gives me the same problem as above where the original movie clip now contains the new motion tween.

Please help.

Thanks,

Dan

[MX] Setting Motion Tween For Duplicate Movie Clip
I can't figure out how to set a new motion tween for a duplicate movie clip I create with

on (release, releaseOutside) {
amount = 10;
while (amount>0) {
duplicateMovieClip("_root.birdmov", "birdmov"+i, i);
setProperty("mc"+i, _x, random(275));
setProperty("birdmov"+i, _y, random(275));
setProperty("birdmov"+i, _alpha, random(275));
setProperty("birdmov"+i, _xscale, random(50));
setProperty("birdmov"+i, _yscale, random(50));
i++;
amount--;
}
}

Setting A New Motion Tween For A Duplicate Movie Clip
I can't figure out how to set a new motion tween for a duplicate movie clip I create with

on (release, releaseOutside) {
amount = 10;
while (amount>0) {
duplicateMovieClip("_root.birdmov", "birdmov"+i, i);
setProperty("mc"+i, _x, random(275));
setProperty("birdmov"+i, _y, random(275));
setProperty("birdmov"+i, _alpha, random(275));
setProperty("birdmov"+i, _xscale, random(50));
setProperty("birdmov"+i, _yscale, random(50));
i++;
amount--;
}
}

the movie copies alright but i can't get it to move

Symbol Swapping After A Motion Tween
hi, i have a problem with swaping symbols after i do a motion tween. after the tween is completeed on the next keyframe i end the tween so it does not carry through. but when i try to change the symbol in the next frame it just stays the same and if i delete it and try to put another symbol it trun it to the one i used in the tween.

please help,
thank you

Is It Possible To Stop A Tween In A Movie Clip
Hello Kglad and other forum expert!
I have a movie clip (really just an image converted to a movie clip).
I a "zoom" effect set on two layers - on for the zoom mask, and the other for the base image.

I just use the modify/transform in some keyframes to have the image motion tween from normal size to a larger size.
The tween (aka zoom) is shown through the mask layer.

I did not create the motion tween using actionscript, but in the timeline between 2 keyframes.

Is there a way I can stop the tween when the movie plays ( by clicking a "pause" button).

Thanks for a great info resource,

eholz1

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]

Problem Creating Duplicate Movie Clip But Changing One Motion Tween
Hi I am currently having a problem creating movie clips.

I have created a movie clip which is an animation containing 5 different layers and 3 different motion tweens. I duplicate this movie clip and wish to change one of the motion tween's but when I change the motion tween in the new movie clip, it also changes the motion tween in the old movie clip.

I have tried removing the motion tween in the new duplicated movie clip, and creating a new motion tween but this still gives me the same problem as above where the original movie clip now contains the new motion tween.

Please help.

Thanks,

Dan

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!!

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.)

How To Stop A Looping Motion Tween
Hey guys,

Very new at flash and a very simple question. I have a compy logo that I created a motion tween for. It goes big, then small, then explodes. But it loops indefinetly. I set it to just loop once, but it keeps going. Could someone tell me how to make it go through the animation just once and then stop? Thanks.

Stop Scroll Buttons While Tween Is In Motion
Hi again,

I'm at the last bug of my project! Please help me out on this one...

I'm scrolling a masked MC, which is basically a grid of thumbnails with a few rows. Right now, it works beautifully by scrolling row-to-row if the up/down buttons are pressed only after the tween has finished. However, if I press the up or down buttons in succession before it finishes scrolling, the positions get all messed up because it will start the motion tween from the current y position, which is halfway through a scroll.


Code:
new Tween(holder,"_y",mx.transitions.easing.Strong.easeOut,holder._y, holder._y+scrollAmt,1.5,true);
That is basically the only code in my onRelease function.

I've thought about 2 ways of tackling this problem:

1: to disable the up/down buttons while the tween is taking place.

2: to NOT have the tween start from the current y position since that is the root of the problem. But I think this is impossible due to the nature of the purpose of the function.

Either ways, I'm not sure how to implement them. Therefore, I urge you to help me out please.

Thank you for your time!

Stop Scroll Buttons While Tween Is In Motion
Hi again,

I'm at the last bug of my project! Please help me out on this one...

I'm scrolling a masked MC, which is basically a grid of thumbnails with a few rows. Right now, it works beautifully by scrolling row-to-row if the up/down buttons are pressed only after the tween has finished. However, if I press the up or down buttons in succession before it finishes scrolling, the positions get all messed up because it will start the motion tween from the current y position, which is halfway through a scroll.


Code:
new Tween(holder,"_y",mx.transitions.easing.Strong.easeOut,holder._y, holder._y+scrollAmt,1.5,true);
That is basically the only code in my onRelease function.

I've thought about 2 ways of tackling this problem:

1: to disable the up/down buttons while the tween is taking place.

2: to NOT have the tween start from the current y position since that is the root of the problem. But I think this is impossible due to the nature of the purpose of the function.

Either ways, I'm not sure how to implement them. Therefore, I urge you to help me out please.

Thank you for your time

Speeding Up/Slowing Down Motion Tween (fast->stop)
ok, i know how to do a constant motion tween (ie it moves across the page at a constant speed), but how would i make the speed increase smoothly? for example, a button coming on to the page, starting in fast, but slowing down to a stop?

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?

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