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




Motiuon Tweening Via AS



I have an image that moves across the screen via a motion tween, exposing itself for view as it comes behind a mask.

I want this image to expose itself very slowly, but as I extend the tween along the time line, the file size/download time increases.

Is there a way to move an object from one position to another via action script rather than motion tweening?

My goal is to move it from these positions x = 79.7 y= 438.6
to x = 81.3 y = 152.4



FlashKit > Flash Help > Flash MX
Posted on: 11-19-2003, 08:16 AM


View Complete Forum Thread with Replies

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

Tweening Alpha Fade Without Tweening?
can this be done in one frame with a loop?

i have tried searching for anything like this in the movies and on the board.. guess i am just not asking the right question to the search engine....

anyway,
i have a button. onRollOver i would like to get the current _alpha of a moveclip (MC) and increase the _aplha of that clip by an increment to 100.

onRollOut this process would reverse.

i would like this to all happen in one frame if possible with the ability to set the speed of the fade through a variable.


definately not asking anyone to do this for me (unless you are feeling generous, haha) but at least point me in the right direction.

thanks.
kc
djshank@optonline.net

Tweening
I need help with a motion tween. Does anybody have a website I could go to to find out how to do it?

Tweening Using X And Y
Hey there folks_
I've seen this done a 100 times on sites and never could figure out how its done.
I have a background MC that i want to be able to tween from its current position to new positions, no matter where it is on the stage. For instance, when I click on the menu option "Gallery" I would like the background to shift to the left a little. If I click on " BIO" i want it to shift completely to the left.If I click on " Contact" I want it to go to a different place, But i want it to be able to tween from its current position (whether its in the Gallery state, Bio state, Contact state, so on) Without having to build out every scenario...

Something like you do a 'tell_target' then 'set_property' and choose '_x (X Position)' and give it a new position.

does this make sense?
Thanks
Donnie
[Edited by donniefrisco on 02-20-2002 at 06:26 PM]

The Little Tweening Box That Would ...
OK, here's the effect I want to accomplish:

The text in my Flash site will be contained in boxes. In my perfect world, the box will start its life as a 1 pixel dot, expand to being a wider line, which will in turn expand (top and bottom)to being a nice grown up box. Looks good on paper, but for some bizarre reason I can't get it to happen, no matter how much I play with the shape tweening.

Help!

Cheers,
Xenon.

Tweening
If got a bit of a problem. When i've tweened an cirkel into an box, I can't tween the box anymore??? Is there a way to do it. It seems the cirkel has turned into an symbol. There's probably an simple solution, but im a bit new so if you can help me please do.

Tweening & AS
Can ActionScript stop the tweening of a MC by modfying it's propertys?

Plz, anyone, help with this one
I've found this problem: I've got a constant-loop-tweening MC, but when I try to modify a property of it by ActionScript, the tweening stops. I've tried changing it's depth and modifying it's color, but both options result in the AS executing and the tweening stoping.
Does anyone can give me a hint to solve this prblm?
Thanks.

Tweening In Xp
Okay I have an easy compatibility error, IN XP(i think) the alpha tweening with my (static) text won't work for some reason, I recently switched to XP and it wont work now, it did as of 3 days ago on my other computer(98), any suggestions would be helpful..

~Zakarus2001

Tweening With AS
How do you motion tween with action script..
I kind of have the basic idea but I can't seem to get it to work properly.
Thanks in advance.

Tweening A Gif Into Another Gif ?
I have a gif and i'd like to tween this gif so that my start position is just a bunch of colours and my end position the full logo (same colour scheme, but with text).

So i'm trying to use the end point gifs and tween inbetween, but it's not working.....motion tweening doesn't give a morph, but i'm gettin an error with shape tweening.

how do i do this???

thx guys...you're all great! tammy.

Tweening ?
Im using a brightnesstweening on a movieclip, so that the brightness is 99% in frame 1, and 1% in frame 15.

Is there a way to do that, using scripting, so that my filesize is reduced ???

thanks

Per Haar.

Tweening
how come sometimes I tween an object it doesn't do the animation in between the keyframes but simply changes on the keyframes? What causes this problem? I have text that I broke apart and made into graphic symbols. when I tween them some are fine and work but some don't.
how do I fix it besides retyping everything in and breaking it all apart again, etc...

thanks

Tweening?
Hi all
My problem goes:
I have 18 pictures(gif) in my movie.
I've tried tweening a drawing I changed gradually in flash but when I try tweening the gif´s nothing happens
Is it possible to tween them? I wont work for me!
Is it the format?
Sorry for asking such a stupid question

Tweening
Hi guys-

I'm using the Photo Slideshow template from Flash MX (the one with the fish and underwater scenes)...modified it to my own taste....however, now, I need the photos to fade in and out when a new one is loaded. You can load the template in Flash to see how it is setup now. One pic per frame. Where exactly do I need to do the tweening, and will it still go to the next picture when the "next" button is clicked? Do I have to change actions anywhere? Thanks in advance for the help.

Tweening Help
ive created a animation and i have a play and stop button on it but when i test the movie and press stop,the motion stops but the shape tweening and other things carries on!. im wondering how do you stop all the movie including the shape tween and when you press play the movie starts up again bu using script?
please help

Tweening
I have Flash MX for Mac OS X and I am having trouble with shape/color tweening. I can't find the "Panel" menu under "Windows" like the book says it's supposed to be (my book is for Flash 5). Where is the Pane menu? Or is it under a different name? Either or, how can I set my Tweening to Shape/color? Thank you very much.

Tweening
Hey, I just got Flash MX, and I want to do some shape tweeniing, but I can't find the "Panels" menu under "Windows" where the book says it should be (my book is for Flash 5). Does anyone know where I can find it? Or is it under a different name? Either way, how can I do shape tweening? Thank you very much. ^_^

Tweening
Hey,

I just got Flash MX, and I want to do some shape tweeniing, but I can't find the "Panels" menu under "Windows" where the book says it should be (my book is for Flash 5). Does anyone know where I can find it? Or is it under a different name? Either way, how can I do shape tweening? Thank you very much. ^_^

Tweening
why can't i do it? i create the keyframe, change the image and insert motion tween (i want to make it unfold) but it won't do it, it stays a dashed line
sometimes it also changes it to a group so i can't change it either sometimes. please help


while im asking for help, how come i can't color shapes i have drawn?

Tweening
Here's the deal:

I created a piece of text, and then converted it to a graphic. In a new layer, around frame 60, I create a new keyframe and place an instance of the symbol above the screen. 15 frames later, I place another keyframe and move the symbol down onto the screen. I create a tween between the two.

Now, when I run this in Flash 5 (Enter key) it tweens fine. A solid arrow appears on the timeline. But when I test it, publish it to Flash or HTML, the text doesn't appear at all. Any clues as to why it's doing this?

CPU And Tweening Using AS
I have a client that wants an image scroller in flash similar to that you see on www.corbis.com

In addition to the pictures scrolling, they want some of the pictures to fade in and out while text describing the picture is fading in and out in contrast to it, so if the pic is a giraffe, the giraffe inage would fade out and the "giraffe" text would fade in.

So, I got the scroller working pretty well, and used some AS to set up a two frame loop to change the _x value each time the MC loops for each image and then change the _x value to wrap the image to the right side when it scrolls off of the left side, so the scroller moves smooth.

I upped the frame rate to 36 FPS to make the pics move smoother, and not totally kill the user's CPU cycles.

However, now that I am adding the fade in/out of the words, the images move slower and choppier...I don't want to up the frame rate much more and kill older machines, but I need this thing to run much smoother.

Anyone have any tips on this? I warned them that the more stuff you have "moving" on the screen, the choppier it will run, but you know the deal....they just say "fix it"

HELP!

RH

Tweening Help
This is probably a really easy question to answer. I'm really new at this and have been trying to make something like a movie reel opening where there is a circle with a line going around inside of it and then numbers counting down. The problem is that when I tween the line, instead of staying the same size throughout the whole tween, it shrinks in size and then expands in size. I've tried adding shape hints, but that doesn't seem to help. What should I be doing? Thanks in advance for you help.

Tweening?
Hey guys,

ive stumbled at a really nice effect. It is found at:
http://www.jamesgood.net/

You have the "frames" that resized at another different size....(shrinking and expanding)

Ive searched this forum, and one thing that a understand, for im a noob, was found here: http://www.kirupaforum.com/forums/sh...threadid=24605
(But for me that was just one picture, and not loading one pict into another....

I thought it would be best to try it in this section..so....i hope theres someone who can explain it in a very simple way (maybe tutes), cause im kinda lost here....thank you guys/girls..
(if you have anything, plz post it here, i would really appreciate it!)

Thnx Bokkie

Tweening Help
I really need help. I am a n00b with flash, and i am trying to make a shape tween. I understand that i cannot use symbols in tweens. But I have a jpeg image from photoshop that i want to do the tween effect with. How would i go about converting the image (bitmap or symbol) into something that i could use in a shape tween?

Tweening
trying to figure out how to do a non-basic tween. Here is what I mean. I can take a box and make it grow or shrink easy enough. Now here is the tricky part. I want to take the same box and have a 1 pixel border (gray) with a fill (white) on a white background. I want frame 1 to have this white box with 1 pixel gray border very small say 5px x 5px. Then say frame 40 have this same box 200px x 200px but the border still be 1 pixel gray. I have tried a motion tween, but it resizes the border appropriate to the size increase. Going backwards (making the box big and reducing it) doesn't work. I even tried reversing the frames after creating the motion tween backwards. It did some funky things when I tried that....I still don't understand.....any thoughts would be appreciated.

wd

Tweening A MC
I have a preloader scene that Im having a little problem with.
I have the background in one layer. A pic I made in PS in another layer. ( I could combine the two I guess)
Now, I want the load bar to tween from left to right across the pic I made. I have tried multiple different ways, but I keep getting stuck.
When I draw my little 1 pixle wide bar in frame one, then select frame 100, and finish the bar out to the right, choose shape as my tween, it looks great. Then I convert it to a symbol and my solid tween line turns to caca. Great, no more tween.
I then tried to just create a new symbol, thinking Ill just drag it onto my stage after I make it. No bueno. Still can not get a solid line for my tween between frames 1-100. I dont get it
Can I not tween a symbol? I have no problem tweening text. So what gives?
Help porfavor

MX: Tweening Using AS
I have three rectangles stacked on top of each other (A, B & C). How can I scale A to twice its size while simultaneously scaling B & C to 50% and moving them down? All this needs to be done "on mouse over" A.

Tweening Help
Alright i'm a total n00b at flash.. i was wondering how do i tween animation? I cant find the menu... thanx!

Tweening?
Hi,

2 questions:

1) Out of normal tweening and "action script tweening" which causes the least amount of slowdown? (I am just scrolling a large picture as a background over and over to give a loop effect)

2)If it is action script tweening, how do I scroll MC "BG" from 0 to -500 in around 3 seconds, or 90 frames?

Thanks,

W.

Tweening
I do know how to use the tweening function to an extent, but it's some of the specifics, I am having trouble with.. I'll go take a look at the tutorials and see if they have something on this specifically.
Thank you again.
Gin

Tweening Mc's
I've created an animation and converted it into a MC in its own timeline. When I returned to the main timeline, I dragged the MC on to the stage. With the MC selected I created a motion tween on it. When I replayed it, the motion tween occurs, but the MC is not "dancing" as it moves to it's destination. My question is what did I miss here? I'm using MX 2004.

Tweening
I have put some text in a movie and I have set it to fade from alpha settings 0% to 100% yet when I play the movie, it doesn't fade in. It just appears at the point where the percentage is at 100%. What's up with that?

Tom

Tweening
I’ve just started to learn flash a few days and I’m on tweening right now. I’m trying to make a scene of snows falling. I made it work smoothly with just a single snowflake on each layer but it doesn’t work when I try multiple snowflakes on one layer. Is it possible to have many objects moving in different direction using one layer? Oh yeah, I’m using the motion guide to do this.

Tweening
when you tween how do yo edit the thing that is tweened on each frame without out wrecking it.. say when you tween an animal how would you edit the feet so it looks like it is walking..you no what i mean

MC Tweening
So I want to figure out MC tweening. how do i do this with that elastic type effect. Does it always require an outside AS file?

thoughts?

3d-tweening
anyone got any resources on making "3d-tweens"?

like
http://www.rootylicious.com/flash.htm (simple)
or
http://www.pixelgasoline.com/ (advanced)

have tried some simple graphic-tweening, but doesn't
quite manage to make it look like 3d-motion... looks
only like zooming......

thanks

Tweening...
ok this is going to be a little hard to explain but what I'm wanting to do is have a line show up but look like its drawing itself. It will go from a line that has already appeared and then a line will go up then to the right. I want the one going up and to the right to flow and the line are all connected. if someone could help me out I would appreciate it.

Tweening
how do you motion tween shape tween ect.?

How Do I Do This Using Mx.tweening?
I want to have a series of movies move from the left to the right.
Each movie should leave 5 frames after the previous one.
This creates an elastic effect.
See the attached swf in a zip file.
(WHY can't we upload swf and fla files???)
(And what is a swi file? is this a typo for swf??)

I'm not sure what the best way to do this would be using Actionscript tweeining using mx.tweening.

Any ideas/help/pointers would be appreciated.

Thanks.


OM

Tweening
I can't motion tween multiple symbols on the same layer, is this possible?

Tweening
Are there different types of tween, besides motion tween? What are they, when should I use them, and where are they?

Smaug, the dragon

Tweening
Every once in a while I get into this corner and can't get out.

Here is a sample of my problem

I want to draw a box using a line that draws itself (tweening) so the first line draws from left to right, then the line turns down drawing top to bottom, THEN THIS IS WHERE IT GOES TO POT! Using the exact same method in creating the other tweening lines, the next line that goes right to left along the bottom, causes the entire shape to reform, sort of like a sponge regaining its shape.

I'd like to know what the hell I am doing wrong, but I can go weeks using the tweening and not have a problem, but today it is NFG!

I have cleared the entire layer and started over several time blah blah blah. still NFG.

help

Tweening Help
You know motion tween? Is there such a thing as a brightness tween? How do I do it? Thanks.

Smaug

Tweening In Tweening
I would like to create a movie clip that has animation that is also tweened. I tried creating a tweened movie clip, saving it in the library and later tried creating a tweening on layer 1. Unfortunately I could not get it to work correctly.

I want to have a
1. large red circle

2. that has a small blue circle at the top.

3. the blue circle tweens on the outside of the red circle, between the 10 O’clock and 2 O’clock mark and loops back and forth.i.e 10-11-12-1-2-1-12-11-10.

4. This animation “test_mvi” is than saved as a movie clip in the library.

5. I create a path that test_mvi follows

So what I have is a red ball with a blue ball rolling on the top all this follows a path.

[F8] Tweening?
I understand how to do tweening, but I am trying to figure out how to do an up and down motion. I have these bars on a logo that are suppose to be equalizers or volume bars. I am trying to figure out how to get the top part to go up and down.

[F8] Tweening Help
Hi, I'm fairly new to flash, but am fairly intermediate at photoshop.

I have created a website template using photoshop, which I want to put into flash to animate it. I want to make a motion tween when the web page starts, which simply involves a one image being turned into another.

I have a navigation panel, which i want to start off small and then grow larger down the page to its full size. I know how to do this in respect, as I have been shown it by getting the full size on the last keyframe and shrinking it for the first keyframe. However i lose a lot of a detail and quality of the image when I shrink it, So i was wondering if I could do a tween between two images, such as a ready-shrinked image from photoshop to the full size.

Thanks, please help.

Zinc.

Tweening Thru AS - [F8]
Hello there guys. Im new in this forum.

Im a beginner in action scripting and i need your help.

I want the movie clip to ease out when the user clicks the home button. Currently, i am experiencing jerky transition effects.

here's the code:
rhome_mc.onRelease = function() {

import mx.transitions.Tween;
import mx.transitions.easing.*;

var numPhoto:Number = 0;

//randomly select photo to be loaded
numPhoto = random(7);
if (numPhoto == 0 || numPhoto == 1) {
numPhoto = 1;
} else if (numPhoto == 2 || numPhoto == 3) {
numPhoto = 2;
} else if (numPhoto == 4 || numPhoto == 5) {
numPhoto = 3;
} else numPhoto = 4;

//stop the tweening and hide the movie clips
tween_handler.stop();
finalbg_mc._alpha = 0;
imagenoframe_mc._alpha = 0;
imagewithframe_mc._alpha = 0;

//load selected photo
LoadLogo(numPhoto);
LoadBW(numPhoto);
LoadNoFrame(numPhoto);
LoadWithFrame(numPhoto);

//tween(movieclip, "_alpha", Ease class, from alpha, to alpha, time/frame, true/false);
tween_handler = new Tween(imagebw_mc, "_alpha", Regular.easeIn, 0, 100, 4, true);
tween_handler.onMotionFinished = function(){
imagenoframe_mc._alpha = 100;


tween_handler= new Tween(imagebw_mc, "_alpha", Regular.easeOut, 100, 0, 2, true);
tween_handler.onMotionFinished = function() {
imagewithframe_mc._alpha = 100;
tween_handler = new Tween(imagenoframe_mc, "_alpha", Regular.easeOut, 100, 0, 4, true);
LoadFinalBg(numPhoto);
tween_handler.onMotionFinished = function() {
finalbg_mc._alpha = 100;
tween_handler = new Tween(imagewithframe_mc, "_alpha", Regular.easeOut, 100, 0, 4, true);
};
};
};

Thanks guys for helping...

AS3 Tweening
This might sound like a stupid question.

But just how do I use AS3 tweening to get a normal movieclip to just get bigger?
I basicly want to scale it up.

myTween = new Tween(submenu_mc, "alpha",Regular.easeOut,0,1,12,false);

This would be a simple turn on alpha tween, and so what I need to change is the "alpha" and maybe the Regualr.easeOut Im not sure, what I really would want is an easy help on the simple tweening that you can do, Ive been trying to read the API but I don't understand it very well.

http://livedocs.adobe.com/flash/9.0/...riptLangRefV3/

But when I just want something simple I can't seem to find it like what kind of attributes that can be tweened etc.
Would I have to create 2 tweens one for x and one for y? or is there a simple "scale" attribute?

Tweening With As
i have a few buttons(24) and 1 mc.what i want to do is when you click button mc*s alpha tweens to 0,after that mc goes and stops at some frame, after that mc*s alpha tween to 1.I wanted to do it through defining variable beacause it seems a lot simplier and less of code. so now i need to define 2 functions that would be called every time i call a button and to change variable every time button is pressed..this is how i tried to do it.(dont know how to define 1. function that tweens alpha to 0)
buttons are called tumb1_bt, thumb2_bt etc.
mc is called gallerylarge




Code:

import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.*;

var currentpage:Number = 1 ;

function 1{


var tw:Tween = new Tween(gallerylarge, "alpha", None.easeOut, 1, 0, 5, false);
tw.addEventListener(TweenEvent.MOTION_FINISH, alphaFinished);

}


function alphaFinished(event:TweenEvent):void
{
tw.removeEventListener(TweenEvent.MOTION_FINISH, alphaFinished);
tw = null;
gallerylarge.gotoAndStop(currentpage);
new Tween(gallerylarge, "alpha", None.easeOut, 0, 1, 20, false);

}


function fimg1(event:MouseEvent):void {
currentpage = 1 ;
function 1 ;
}
thumb1_bt.addEventListener(MouseEvent.CLICK,fimg1);

function fimg2(event:MouseEvent):void {
currentpage = 2 ;
function 1 ;

}
thumb2_bt.addEventListener(MouseEvent.CLICK,fimg2);

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