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








Tweening & Actions....?


Hi there,

In my flash movie i've got some text fading in and out, made possible with tweening. What I would like to do is to have the text stay there for at least 2/3 seconds befor it fade's out again. Is there any action that I can apply to make this possible.




FlashKit > Flash Help > Flash ActionScript
Posted on: 03-13-2002, 10:08 AM


View Complete Forum Thread with Replies

Sponsored Links:

Making An Image Gallery Using Actions Script Insted Of Tweening.
How do i o about making a photographic image gallery using action scripting. Can someone point me in the right direction of a good tutorial or explain the principle.

thanks!

View Replies !    View Related
Actions Are Overriding Other Actions Or Being Caught In A Loop Only On Double Click
I have a movie which I use actionscript to move things on/off stage to create different pages. Everything works great unless you double click a button.
When double clicking it makes objects "stick" in place and they will not move even though another command should make them move off stage (movie gets stuck). On a single click, the objects do what they are commanded to do. I even tried setting a variable to disable the button click if it has already been clicked. What causes this?

In the code below, the objects in the function home() will not leave the stage once the services button is double clicked (they are commaned to ease off the stage once other mc's are pressed) . BUT it works if only the services mc is only single clicked...please help. I'm pulling my hair on this one and about to start pulling my teeth.


if (_global.whichMovieLoaded != "services" && _global.isMovieLoaded != "stop") {
_global.whichMovieLoaded = "services";
services.onPress = function() {
remove();
function Pause() {
// bring home
home();

clearInterval(PauseInterval);
};

PauseInterval = setInterval(Pause,1000);

valet.easeY(400, 1.09);
itinerary.easeY(425, 1.09);
dining.easeY(400, 1.09);
ground.easeY(425, 1.09);
};
};



function remove(){
valettxt.fadeOut(9);
diningtxt.fadeOut(9);
itinerarytxt.fadeOut(9);
groundtxt.fadeOut(9);

mindtxt.fadeOut(9);
nauticaltxt.fadeOut(9);
scenictxt.fadeOut(9);
terrtxt.fadeOut(9);

mind.easeY(650, 1.09);
nautical.easeY(650, 1.09);
terr.easeY(650, 1.09);
scenic.easeY(650, 1.09);

valet.easeY(650, 1.09);
itinerary.easeY(650, 1.09);
dining.easeY(650, 1.09);
ground.easeY(650, 1.09);

logo.easeX(950);

imageLoader.unloadMovie();

};
//takes objects back to the home page
function home(){
maui.easeX(200, 1.09);
con.easeX(200, 1.09);
bar.easeX(625, 1.09);
patio.easeX(400, 1.00);
patio.fadeIn(2);
discover.easeX(625, 1.09);
discover.fadeIn(1);
imageLoader._alpha = 0;
VIP.fadeIn(.9);
};

View Replies !    View Related
Actions On The Main Page..do They Affect Actions On Movie Buttons?
ON the home page I've created, the buttons I used with the code in my previous thread ("two questions about HTML publishing and buttons"), I added an on rollover action to the actions layer of the main timeline (not the movie button timeline) so that on rollover, a picture would change according to the button that was rolled over. I did this for all three buttons. The rollover action works great, but now the links don't work in either the html OR the swf version. Would the added action disable the movie-clip button actions? Here's the added main timeline code, edited for space: photobtn_mc.onRollOver = function() {
gotoAndStop(2);
photobtn_mc.onRollOut = function() {
gotoAndStop(1); ( Again, help is greatly appreciated!)

View Replies !    View Related
Actions On Clip Kill Parent Actions? Workaround?
Hello, i have a nav clip, with rollover actions. When the nav clip is rolled over, i want the nav to zoom in. Which isn't a problem,
there are 6 buttons inside the nav clip which have onRelease actions. However, since the nav clip (the parent to the buttons clip) has the rollover state, it kills the actions of the buttons. Is there a workaround for this?

here is my code, the clip structure is nav.buttons.but1 etc.

code:
Stage.scaleMode = 'noScale';
import flash.filters.*;
//------------------------------------------------------------------------------------------------------------------
this.nav.onRollOver = function() {
};
this.nav.onRollOut = function() {
};
//------------------------------------------------------------------------------------------------------------------
for (i=1; i<=6; i++) {
nav.buttons["but"+i].onRelease = function() {
trace(this._name);
};
}

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

View Replies !    View Related
[mx2004] Actions Window Won't Show Actions
Well the problem is rather annoying and stops me from doing any work...

If I open my actions window, it opens up, but I just have a gray area inside the window, I can't put any scripting in, and even funnier, if I try to put my actions window locked into place it will actually crash flash entirely without any error message.

Any help would be much appreciated, thanks in advance!

View Replies !    View Related
[F8] Rewriting Button Actions To This.on Actions
Evening! I could do with a little help if possible - basically I need to combine a number of different button commands into script for a movieclip button.

I want these actions

PHP Code:




on (rollOver) {    // slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.    slider.xMove = button_1._x;}on (rollOver) {    tellTarget ("_root.PC_Cursor") {        gotoAndStop("Finger");    }}on (rollOut) {    tellTarget ("_root.PC_Cursor") {        gotoAndPlay(1);    }}on (release) {    if (_root.CENTERpages.clip._currentframe == 10) {        _root.CENTERpages.clip.gotoAndPlay(11);    }}on (release) {    if (_root.world._currentframe == 2) {        _root.world.gotoAndPlay(1);    }}on (release) {    tellTarget ("_root.CENTERpages") {        gotoAndStop("name");    }}on (release) {    unloadMovieNum(1);}on (release) {    if (_root.CENTERpages.A1._currentframe == 1) {        _root.CENTERpages.A1.gotoAndPlay(2);    }}on (release) {    if (_root.CENTERpages.A2._currentframe == 1) {        _root.CENTERpages.A2.gotoAndPlay(2);    }}on (release) {    if (_root.CENTERpages.A3._currentframe == 1) {        _root.CENTERpages.A3.gotoAndPlay(2);    }}on (release) {    if (_root.CENTERpages.A4._currentframe == 1) {        _root.CENTERpages.A4.gotoAndPlay(2);    }}







to work like this in a movieclip:

PHP Code:




this.onRollover = function() {    // slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.    slider.xMove = button_1._x;}this.onRollover = function() {    tellTarget ("_root.PC_Cursor") {        gotoAndStop("Finger");    }this.onRollout = function() {    tellTarget ("_root.PC_Cursor") {        gotoAndPlay(1);    }this.onRelease = function() {    if (_root.CENTERpages.clip._currentframe == 10) {        _root.CENTERpages.clip.gotoAndPlay(11);    }this.onRelease = function() {    if (_root.world._currentframe == 2) {        _root.world.gotoAndPlay(1);    }this.onRelease = function() {    tellTarget ("_root.CENTERpages") {        gotoAndStop("name");    }this.onRelease = function() {    unloadMovieNum(1);}this.onRelease = function() {    if (_root.CENTERpages.A1._currentframe == 1) {        _root.CENTERpages.A1.gotoAndPlay(2);    }this.onRelease = function() {    if (_root.CENTERpages.A2._currentframe == 1) {        _root.CENTERpages.A2.gotoAndPlay(2);    }this.onRelease = function() {    if (_root.CENTERpages.A3._currentframe == 1) {        _root.CENTERpages.A3.gotoAndPlay(2);    }this.onRelease = function() {    if (_root.CENTERpages.A4._currentframe == 1) {        _root.CENTERpages.A4.gotoAndPlay(2);    }







but it doesn't work!!! period! am I supposed to be keeping all of the functions together after I call the action? ie; all of the onrelease functions run on after a single this.onrelease call?
or have I took the wrong approach altogether on this?

Any pointers welcome!

View Replies !    View Related
Frame Actions Vs Object Actions
In preparation for AS3 which no longer supports object actions, I am on the process of converting flash movies created with Object actions in AS2 to Frame actions. While I understand some valid reasons for switching to Frame actions, I am discovering that converting button and clip actions to Frame actions is a very tedious process and so far, more than half the files I have tried to convert do not work. Having worked with Flash since version 3, I know about timelines, targeting and variable scope but this whole conversion process is driving me nuts! Is there a place that I can go to or tutorials available that teach how to attack this conversion? What are the main guidelines in converting from Object to Frame Actions? I have looked in the CS3 Help (from the program or Adobe online) and I have not found anything to guide me. Am I the only one experiencing this? Thanks for your help.
Yvan

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

View Replies !    View Related
Tweening
how do you motion tween shape tween ect.?

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

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

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

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

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

Smaug

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

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