Movement Using Actionscript Not Tweening
I am wanting to achieve a popup tab type effect without using a motion tween on movie clip.
Basically I have a button, when I rollover it I would like a movie clip (called 'tab') to popup from the bottom with acceleration. When I rollout the tab will decelerate back out of view again.
Kinda like an easing-out/easing-in type effect, but with actionscript.
Any help here would be great.
Cheers,
DMAX
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Jun 5, 2003, 00:30
View Complete Forum Thread with Replies
Sponsored Links:
Movement: Scripting Or Tweening
I'm trying to design a web page using Flash 5 and want to move text from a stationary point to the side very quick, but I want it to make it look like a blur. What benefits are there to script movement vs Tween moving? When can you(or when should you not) use either one? Thanks.
View Replies !
View Related
Tweening With No Movement For Navigation
hey there im trying to create a navigation menu for my dreamweaver site and have just done the animation but its not working properly. basically i want the menu to stay in the same place but for the the words to move down like a drop down list. ive created the motion tween and it moves across the screen which i really dont want!have attached it so you can see what im talking about....
View Replies !
View Related
Robust Movement With Tweening
HI
I noticed that when making long lasting(or small amount) movement with tween or script the animation cannot be smooth...
I have also attached explaining file.
Is there any way to make a smooth animation?
Again, look at the file.
Thanks in advance
View Replies !
View Related
Tweening Rotation Independent Of Movement
So I have a situation where I need an object that's in motion to suddenly start to rotate about halfway through its move. How exactly do I do this? It seems like keyframing locks in the transformation data for EVERYTHING instead of simply what's changing. If that's not the case, I'd love to know the process that allows me to pick transformation elements at will. And If it is the case, then is there a way around this ridiculousness?
View Replies !
View Related
Slooow Tweening + Cache As Bitmap = Unsmooth Movement : (
Hi,
I've encoutered a problem while trying to tween an object really slow with the following tweening class: http://blog.greensock.com/tweenmaxas3/
The object I'm tweening (a simple, vector based graphic) moves smooth unless it's cached as a bitmap, which is inevitable if I want to blur or apply any filter at all later on.
I've attached a dummy that shows my problem by moving two vector boxes from A to B, really slow with one blurred (therefor cached as bitmap).
As far as I can tell it's not a matter of performance, since the not-blurred movieclip moves smooth as silk. : (
If anybody has an idea how to get that blurred movieclip to move without stuttering (replacing it with a blurred jpg is only a last resort option) it would be greatly appreciated.
View Replies !
View Related
Tips For Tweening Large Movieclips For Smooth Movement?
Hi there!
Ive always had problems tweening big movieclips, motion isnt as smooth as I would like. I usually work in video so I am used to seeing everything precomposed! Are there any tips or best practices I can employ for smooth motion?
Here is what I normally do:
I use the Zigo tween engine from the Fusekit.
Wherever possible, I cacheAsBitmap
I also avoid using strokes, and have solid filled objects.
Set my frame rate at 30fps
For my next project im going to need to recreate a world that rotates, very similar to the Patapon website. The motion on this looks pretty good! How have the achieved that?
Thanks!
Steve
View Replies !
View Related
"Electron Movement" Tricky Actionscript Movement Animation
Can anybody help me with the actionscript for this one?
Objects floating from right to left on a page, when they float into static objects instead of passing behind them or in front of them or bouncing off them and going the other way, they simply move round the static objects and carry on.
Like drunks walking through a jungle of lamposts.
View Replies !
View Related
Tweening With Actionscript?
Hi there,
I have made a movie that, when a button is in down posistion, it will tween a graphic 100 px to the right. And when rolled off of, it will tween it back to the original posistion. I can do this easly with tell targets and such, but after a while, it can really add up byte wise, so I'm trying it with Action script. Here is what i have so far
(in the button)
on (rollOver) {
setProperty ("_root.box", _x, "150");
}
on (rollOut) {
setProperty ("_root.box", _x, "50");
}
the thing is, I can only make it jump back and forth. I want it to actually tween over and tween back. Any ideas on how this can be accomplished. Remember that I am new to AS as well. Thanks
-MapexMitch
View Replies !
View Related
Actionscript Tweening...
Here's the situation...
I've got several movie clips, and upon a button push, the corresponding clip is supposed to slide to center stage... Only problem is, if I code any step value over 1, my clip just bounces around in the middle, since it never matches my center values...
Here's the important portion of my code from each movie's enterFrame event:
if (Math.round(_x)!=target_x || Math.round(_y)!=target_y) {
if (Math.round(_x)<target_x) { _x+=dx;
}
else if (Math.round(_x)>target_x) {
_x-=dx;
}
if (Math.round(_y)<target_y) {
_y+=dx;
}
else if (Math.round(_y)>target_y) {
_y-=dy;
}
}
*where target_y/target_x are my destination coordinates, and dx/dy is my increment speed...
Please let me know how I can clean this up...
View Replies !
View Related
Is Actionscript Better At Tweening?
I've heard a few comments that using actionscript to have objects move may be smoother or less processor intense than using tweening? The BIG question, is that true?
IF it is true, how do I tell an object in frame 5 to move from x =100, y=100 to go to x=250, y=250 going from frame 5 to frame 10?
Thanks!
View Replies !
View Related
Tweening With Actionscript
I have a movieclip and a button. When the button is clicked, i execute a code that moves the MC down the height of the MC.
ex:
on(release) {
movieclip._y += movieclip._height;
}
This works but I want the movieclip to slide (tween) to the target location.
Is this possible? (it must be)
Thanks
Tony
View Replies !
View Related
Actionscript VS. Tweening...
I am new to Flash. But I have a basic understanding of OOP. My queestion is this: Is it better to have actionscript performing animation or motion tweening? Let's say I want to make a bogus equilizer where phoney bars move up and down to the sound of music that isn't playing. Is it better to make a MC where the bars are motion tweened or to use some elements in actionscript that can draw the lines and animate via code.
My guess is actionscript. It seems as though that would be better (more efficient) than using motion tweens. Is that correct? What do you guys think?
View Replies !
View Related
Actionscript Tweening?
Hi all. I am wondering how to do what must be a fairly simple effect. I have tried shape tweening and shape hints don't seem to be working for me. The effect looks kind of like origami or vector shapes unfolding into different shapes. Some of the trendier web designer page use this effect but I can't for the life of me think of one right now. Does anyone know what I am talking about?
View Replies !
View Related
Tweening Vs. Actionscript
i'm making an flash intro that uses a lot of simultaneous motion and alpha tweens. file size is not a problem, but the animation obviously slows down when more than 4 alpha tweens occur simultaneously on-screen.
can i avoid the slow down by using using actionscript to control the gradual alpha changes?
thanks!
View Replies !
View Related
Tweening With Actionscript
i'm making clouds go across the screen, but at the moment i'm using just using one movieclip with a huge timeline, like 2500 frames to do it. my movie runs at 25 frames per second but i want the clouds to be very slowly, unnoticed. i tried using a counter in actionscript and updating the x position of the cloud symbol, but this resulted in a jerky (stop start) movement rather than a smooth transition that tweening allows.
View Replies !
View Related
Tweening Using Actionscript...
Hi,
I recently downloaded tween.as script from http://www.yayhooray.com/thread/24683.html. This script will make it possible to change a property of a movie clip with one command. Here is a sample:
#include "tween.as"
MovieClip.tween("_alpha", 0, 3, undefined, 1);
But it does not work when I try to do multiple tweens for the same movie clip using the following code:
#include "tween.as"
MovieClip.tween("_alpha", 0, 3, undefined, 1);
MovieClip.tween("_alpha", 100, 3, undefined, 4);
Has anyone used this script before? If so, do you know how I could fix this problem...
thanks,
JG
View Replies !
View Related
Tweening Actionscript
what i have is an object moving back and forth in a tween(all in a movie clip) when the mc i clicked, i want the object to move up to the top of the screen. how would i do this so that the object tweens to the top? i do not know at what position the object would be at when tweened, so is there a way to get the xy coordinates or anything like that? thanks for your help
ie: fiahy swims back and forth in tank. when clicked, fishy floats to the top of the tanks, dead.
View Replies !
View Related
Actionscript Tweening
Hey all - I'm trying to tackle something I've never tackled before, and I would like some help. I have the plan of making a bunch of rollover movie clips, that when you rollover them they get larger and the others get smaller. Basically a menu with a bunch of buttons that are roll-over sensitive. However, this is basically impossible to get a smooth large-small tranform in the timeline for multiple buttons.
How would one approach this problem in actionscript? I've got 3 buttons, that I would like to slowly expand over one-two seconds when rolled over, and then go back to normal size when rolled-off. Thanks a lot!
View Replies !
View Related
Tweening With Actionscript.
I could use some help on how to tween a simple line with AS.
I have searched and found out how to make a line but i want it to tween from beeing a dot to becomming a line.
I´m using mx and if you could post some examples of script that would be great!
View Replies !
View Related
Tweening With ActionScript 2.0
How do I tell "btn_home" to move from point "a" to point "b" using actionscript instead of frame tweening?
Point "a" would be the initial position of the instance, and Point "b" would be the destination. Just a liner movement from the top of the stage to the middle of the stage ( or there about).
I've looked all over, but it appears the majority of the "gurus" have forgot how to keep it simple.
Thanks.
Scott.
View Replies !
View Related
Tweening With Actionscript.
Hi Everyone,
I have tried to do the following but i am having some problems......!
I want to tween a shape (using AS) by clicking on a button which is placed within a movie clip.
The code works only if the button is not placed within the movie clip.
I probably need an identifier like "parent", "root" or maybe "global" in order to make the button work even if it is within the MC.
I have attached the example that i am working on.
Any help appreciated.
Chris.
View Replies !
View Related
Tweening With Actionscript
Hey people,
I got this script from gotoandlearn.com (which is offline right now) but i cant figure out how to get it working the way i want... any help?
Im using flash 8 so sometimes its coming up with problems loading the mx easing/tween transitions in the script when i add my own graphics in
Im sure this is very simple but im not sure how to change it to suit an OnRollOver event... It was originally for onRelease
basically I'd like to have a button and on RollOver it to scale up with a bouce effect... and drop back down again on RollOut and also to add two more buttons too...
I'd also like to be able to change the effects too... by changing the values
can anybody please help as Ive spent aaaaages searching this forum for an answer....... Ive come across similar but not exactly what i need...
thanks
Gar
(see attached fla)
View Replies !
View Related
Actionscript Or Tweening
Hi,
I've been using flash for a while but i've always done my animation by tweening.
I'm now starting to use actionscript.
I can do simple stuff like moving an object from one place to another and I do like the smoothness you get with actionscripts.
My question is if you have different objects on the stage how do you get them to move at different times. Do i still need to use the timeline or is there other ways of doing this.
I hope my question is clear.
View Replies !
View Related
Tweening With Actionscript
I have a movieclip masked in a window, with about 10 button s on the bottom. I want the movieclip to move along the x axis based on the button clicked. So if I click on button 2, the mc will move slightly to the right. If I ckick all the way on button 10, the mc will scroll alll the way to the right, etc.
I think its pretty easy, I see it a lot with sites, just don't know how to do it.
Thanks,
View Replies !
View Related
Tweening With Actionscript
Hi
I have a button, 285 x 285 px in size. On pressing this button I would like it to 'expand' to 580 x 580 px, in an elastic manner, ie. As it gets nearer to its final size, I would like the tweening to slow down (ease out).
Any ideas on how I might do this - any help or suggestions most appreciated!
View Replies !
View Related
Tweening With Actionscript
I'm just full of questions today
I'm working on a site that has quite a few 'fancy' transitions.
Mainly mask tweens and shape tweens.
The problem is that this is slowing down some of the older machines at my work.
Is it possible to do this type of stuff with actionscript?
If so, would I be wiser to use actionscript for all of my tweens and masks instead of using the timeline?
Which method will be less likely to slow down machines with older processors?
Thanks a bunch
View Replies !
View Related
Tweening Via Actionscript
Hi All!
I understand the actionscript behind making simple tweens. However, a client of mine wants to have something similar to General Mills® center navigation incorporated into a page of their website. Can anyone point me in the right direction of a tutorial or something alike? I have no idea of how this is done?
http://www.generalmills.com
Thanks!
View Replies !
View Related
Tweening With Actionscript
I'm just full of questions today
I'm working on a site that has quite a few 'fancy' transitions.
Mainly mask tweens and shape tweens.
The problem is that this is slowing down some of the older machines at my work.
Is it possible to do this type of stuff with actionscript?
If so, would I be wiser to use actionscript for all of my tweens and masks instead of using the timeline?
Which method will be less likely to slow down machines with older processors?
Thanks a bunch
View Replies !
View Related
Tweening Via Actionscript
Hi All!
I understand the actionscript behind making simple tweens. However, a client of mine wants to have something similar to General Mills® center navigation incorporated into a page of their website. Can anyone point me in the right direction of a tutorial or something alike? I have no idea of how this is done?
http://www.generalmills.com
Thanks!
View Replies !
View Related
Actionscript Tweening
When an object does not have frames on the timeline, it doesn't exist in the movie as far as I understand it. However, if I tween the alpha to 0 for an object using actionscript, I assume it still exists in the movie and is thus being tracked by the the flash player on the veiwer's computer.
This is not a big issue with just a graphic but with a complicated component like a flash gallery, it could be. Does setting the visibility property to false remove the component from the movie so it does not tax the player's processor?
View Replies !
View Related
Tweening With Actionscript
Last edited by vibetec : 2004-05-12 at 00:38.
Hello,
I have an account swf which I load into the
main movie's container_mc.
Account swf contains some tweening AS; I want
to use the mx.transitions.easing.Strong.easeOut class.
When I test the account movie through "test movie" it works, but when I test the account movie inside the main movie ( thus with loadMovie("") ) the tweening transition stops working.
Should I import the classes in my main movie to ?
This piece of code works fine, it stops working after I load account.swf inside my main movie.
ActionScript Code:
stop();
var y:Number;
function sliderTo(goal:Number){
y = this._y;
var easeType = mx.transitions.easing.Strong.easeOut;
var begin = y;
var end = goal;
var time = .5;
var mc = this;
var ballTween = new mx.transitions.Tween(mc, "_y", easeType, begin, end, time, true);
ballTween.onMotionFinished = function() {
//
};
}
nexter.onRelease = function(){
this._parent.sliderTo(250);
}
If I use the mc, that contains this slider code,
directly in my movie, it works like a charm.
The strange part is that the loaded swf does work inside a testSlider.swf ( testSlider is the main movie ) ...
View Replies !
View Related
Tweening With Actionscript
I have a movieclip and a button. When the button is clicked, i execute a code that moves the MC down the height of the MC.
ex:
on(release) {
movieclip._y += movieclip._height;
}
This works but I want the movieclip to slide (tween) to the target location.
Is this possible? (it must be)
Thanks
Tony
View Replies !
View Related
Tweening With Actionscript
I have a movieclip and a button. When the button is clicked, i execute a code that moves the MC down the height of the MC.
ex:
on(release) {
movieclip._y += movieclip._height;
}
This works but I want the movieclip to slide (tween) to the target location.
Is this possible? (it must be)
Thanks
Tony
View Replies !
View Related
ActionScript Vs Tweening
Hey everyone, its my first post - love the tutorials and the forums ace.
Hope some one could help me out, i am looking to make my Flash site more organised / optimised. At the moment i use the occasional tween of animation, mainly to create a flicker effect - from fully black graphic, to 20% alpha and backup again.
Is there a better way to do this with ActionScript?
Look forward to hearing from you. Ray.
View Replies !
View Related
Motion Tweening With Actionscript?
Motion tweening with actionscript
Would anyone provide me with a simple solution to moving an object?
From one specific location to another and back again through actionscripting
And not through traditional motion tweens. I have a line positioned at 90y and I would like this line to smoothly move to 200y. Once this line reaches 200y, I would then like it to smoothly return itself back to 90y. Lastly I would like this scenario to loop. I would greatly appreciate any feedback or solutions to my shortcomings to this scripting.
Best Regards
Chris P.
Snow Skinning, Rafting, Older Women, The Web,& Visual Arts
View Replies !
View Related
Motion Tweening With Actionscript
Motion tweening with actionscript
Would anyone provide me with a simple solution to moving an object?
From one specific location to another and back again through actionscripting
And not through traditional motion tweens. I have a line positioned at 90y and I would like this line to smoothly move to 200y. Once this line reaches 200y, I would then like it to smoothly return itself back to 90y. Lastly I would like this scenario to loop. I would greatly appreciate any feedback or solutions to my shortcomings to this scripting.
Best Regards
Chris P.
Snow Skinning, Rafting, Older Women, The Web,& Visual Arts
View Replies !
View Related
Dynamic Tweening With Actionscript
Hi, I'm pretty familiar with some elements of action script but I haven't needed this until now so I don't know how to do it.
I have a movie: http://members.tripod.co.uk/bluefigment/temp.htm
with a line of buttons along the top. I have a mc that is repositioned by _x _y to show what ever button is selected. However instead of the movie clip jumping to its new position, I want it to have a 1 sec slide to the new position. How do I do this?
The original .fla is here: http://members.tripod.co.uk/bluefigment/portfolio.zip
View Replies !
View Related
Alpha Tweening & Is It Actionscript?
I started making my first full flash movie and I'm finding that it takes a long time to change the colour of some text or an object using the alpha setting. What I want to do is have the text colour go from 0% alpha to 100% without having to go through each frame and change the colour manually. Is there a sort of tween method I can use to do this for me?
By the way, were do I learn how to make those buttons that you click and it plays you're movie plus other stuff ike that. If you learnt it from a book, what book is it or what would you recommend.
Thanks for your help.
View Replies !
View Related
Using ActionScript To Do Alpha Tweening
Ok, all I want to do is have one image fade out and another one fade in all through out my movie (it's kind of like a slide show w/o the user click through). I used symbols, did the alpha effects and motion tweening thing and encountered the bitmap shift bug that is in flash. I have tried all the listed suggestions to fix it, but none of that works. So I am attempting to do with actionscript. I am not a programmer so if someone could help me out that would be great! If I click on the frame where I want to start the fading out, make a new keyframe, and open the frame actions window, and try to set the alpha property, it doesnt' work...
Can anyone help?
Thanks.
View Replies !
View Related
Why Won't This Work? (Actionscript Tweening)
attachMovie("clip_mc", "clip_mc2", 10000);
clip_mc2._width=800;
clip_mc2._height=500;
clip_mc2._x = 400;
clip_mc2._y = -200;
if(clip_mc2._y <= 500) {
motion = clip_mc2._y+750;
clip_mc2._y = clip_mc2._y+(motion/50);
}
I created a simple mc box and want to dynamically size/position it (which this seems to do) and then tween it with the if statement. When I test the movie the clip basically does nothing. I've also tried a while statement instead of if with the same results. I'm new to all of this and know it must be something simple. Thanks in advance.
View Replies !
View Related
Actionscript Motion Tweening
I believe I've read before that you can do motion tweening through Actionscript...here's what I'm anxious to know:
I have an empty movie clip called "imageHolder". On a certain frame of my movie I load a jpg into my "imageHolder" MC. I'd like to put Actionscript on the frame where it comes in, having it perhaps fade in or something. What script could I use for this???
-Foochuck
View Replies !
View Related
Xml Menu - Tweening Actionscript
I'm building a movie that creates a vertical menu from an xml file - with one level of submenus.
When the submenu shows i'd like the options below to tween to the next position (and ease in) rather than just go there immediately.
I'm having a lot of difficulty doing this!
here's the function that shows the submenu..
function submenuShow() {
resetMenu();
name = "subItemClip"+(choice-1);
subMenuItem = menuItem[choice-1].childNodes
if (subMenuItem.length>=1) {
for (n=0; n<=subMenuItem.length; ++n) {
this[name+n]._visible = true;
}
this["itemClip"+(choice)]._y = this[name+(n-2)]._y+20;
for (j=choice+1; j<=menuItem.length; ++j) {
this["itemClip"+j]._y = this["itemClip"+(j-1)]._y+20;
}
}
}
thought that i could change the bottom few lines to -
for (j=choice+1; j<=menuItem.length; ++j) {
this["itemClip"+j].finalPos = this["itemClip"+(j-1)]._y;
this["itemClip"+j].onEnterFrame=function() {
this._y = (this.finalPos-this._y)/2;
}
}
but it doesn't work!!
..any of you got any ideas?
cheers
fil
View Replies !
View Related
Motion Tweening Via Actionscript
Hi, I allready made a thread on this but now I have another question.
Look at this code
Code:
onClipEvent (mouseDown) {
myXmouse = _root._xmouse;
myYmouse = _root._ymouse;
myCounter = 1;
trace("mouseDown Called");
}
onClipEvent (mouseUp) {
myCounter = 0;
trace("mouseUp called");
}
onClipEvent (enterFrame) {
if (myCounter == 1) {
if (_root.myMap._x != myXmouse and _root.myMap._y != myYmouse) {
_root.myMap._x -= 1; // I used 1 to see the action on the screen.
_root.myMap._y -= 1;
trace("If Loop Called");
}
}
}
Does anyone know how I can make the point that has been pressed on myMap go to the middle? Is there somesort of action like 'tweenTo' or something? =/
Thx ahead
View Replies !
View Related
Actionscript V/s Tweening/Drawing
Suppose I was stranded on a forsaken island for 2 years or so with a PIII and a copy of Flash MX. If I manage to build a site with ACTIONSCRIPT ONLY..... would it be worth it?!
I mean if I can create an animation using tweens and the same using actionscripts, is there a difference???
Does actionscript take less space than tweening and what about the processing power consumed?
View Replies !
View Related
|