Tweening With Mx.Transition
My tweening of _x and _y properties of _mc are always off by a factor. I dont know why. Could it be that Im tweening the _mc from off sage. I really dont know but I will be glad if someone could help me out. I also tried laco's tweening class and I got the same effect. Here is a sample of my code
function MoveSlide1()
{
//this.slides1_mc.tween("_x",234,3,"easeoutBounce",0,MoveSlide6);
Tween = new mx.transitions.Tween(slides1_mc,"_x", easeType, slides1_mc._x,234,20);
Tween.onMotionFinished = function() {
MoveSlide6();
};
}
the commented out code uses the laco tweening class. This code tweens an object on stage but not in the dimension of the stage. So basically, the _mc is out the the (width,height) dimension of the stage. The tween is suppose to move the _mc to postion _x=234 on stage. But its some how off everytime it tweens. PLEASE HELP!!!!!!
Ultrashock Forums > Flash > ActionScript
Posted on: 2005-03-17
View Complete Forum Thread with Replies
Sponsored Links:
Transition Tweening Problem
Hi I am trying to emulate a space invaders style gun control, but it will all be set up and move automatically to 6 different positions. For example it starts off screen and then moves to xPos 200, once that tween has finished it then moves to xPos 400, then to xPos 300 etc etc.
Here is the code. I can only get it to do the first move, but it continues to loop through the Array of x positions until it stops, but the moveclip on the stage doesn't move past the first call.
FYI - gun is the movieclip on the stage and I try and start each move from it's current xPos.
Code:
Move = [175, 350, 125, 300, 400];
function moveAndFire(xPos) {
easeType = mx.transitions.easing.Strong.easeOut;
begin = gun._x;
end = xPos;
var time = 1;
trace("move from:"+begin+" to "+end);
var mc = gun;
moveMe = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
moveMe.onMotionFinished = function() {
newPos = Move.splice(Move.length-1, 1);
if (Move.length) {
moveAndFire(newPos);
}
};
}
moveAndFire(200);
Can anybody explain what I am doing wrong, please.
Many thanks
Mark
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
Transition Causing Colors To Be Off In Transition
I'm trying to recreate a transition/fade of an image from a flash file that I only have the swf to. It looks great on my box, but once live a viewed through Firefox, the colors get almost pschycodelic during the transition. I am using a tween between 0% alpha setting to 100% alpha, and selecting the blend to 'Hard Light'.
Has anyone else seen this and know of a work around?
Thanks.
jean
View Replies !
View Related
In/out Transition From Voetsjoeba : Problem With The Out Transition
hello,
I have some problem with a in and out transition Voetsjoeba explain here
My problem is that my 'out' transition is in a movieclip in the clip loaded so i tried to target it like this
ActionScript Code:
on (release) { if (this.currMovie == undefined) { this.currMovie = "print"; container.loadMovie("print.swf"); } else if (this.currMovie != "print") { if (container._currentframe == container.midframe) { this.currMovie = "print"; container.content.play(14); trace("???"); } }}
It is the code i have for my buttons that load the page, the trace command is read succesfully but it won't play my animation out.
On my loaded movie i have
ActionScript Code:
midframe=content("out")
on frame 1 because my transition is in the movieclip content.
The button that load the file is 'print' and 'web' in the soumen movieclip. I've posted my file here :
FILES
If someone can help me, it would be a great help !!
Thanks
Ubik
View Replies !
View Related
In/out Transition From Voetsjoeba : Problem With The Out Transition
hello,
I have some problem with a in and out transition Voetsjoeba explain here
My problem is that my 'out' transition is in a movieclip in the clip loaded so i tried to target it like this
ActionScript Code:
on (release) { if (this.currMovie == undefined) { this.currMovie = "print"; container.loadMovie("print.swf"); } else if (this.currMovie != "print") { if (container._currentframe == container.midframe) { this.currMovie = "print"; container.content.play(14); trace("???"); } }}
It is the code i have for my buttons that load the page, the trace command is read succesfully but it won't play my animation out.
On my loaded movie i have
ActionScript Code:
midframe=content("out")
on frame 1 because my transition is in the movieclip content.
The button that load the file is 'print' and 'web' in the soumen movieclip. I've posted my file here :
FILES
If someone can help me, it would be a great help !!
Thanks
Ubik
View Replies !
View Related
AS2.0 Fade Transition - Value Before Transition
I've been all over the forums this evening trying to find my answer before posting but I haven't quite found the answer.
I have a navigation section that has a series of buttons and when those buttons are rolled over I want to initiate a few actions. One action being a fade in of a movieclip that contains a graphic element.
Using the mx.transitions.fade class I have been able to sucessfully fade the mc in when I rollover the specified button. My problem is that I don't want the mc to be visible until it is faded in, and since the fade doesn't happen until I rollover a button I'm not sure how to setup the mc to be "invisible". Also when fading in I'm not sure what value that is affecting. I don't want to have it re-fade in if I rollover a neighboring button while it is still visible. I know I need to have some kind of check in place I'm just not sure what it is.
Maybe it's just my train of thought, but I've tried to think this through and I'm having some troubles. Can anyone offer any suggestions please?
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 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?
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
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
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
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 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
[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.
View Replies !
View Related
[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.
View Replies !
View Related
|