ActionScript 2.0 :: Get The Move And Zoom To Be Smooth So The Users Can See It Move Across The Screen Then Gradually Get Bigger?
Apr 11, 2004
tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.
View 5 Replies
Similar Posts:
Feb 11, 2006
I'm trying to achieve a simplified version of the move to screen area and zoom nav similar to: [URL]. I've read and completed the macromedia tweening tutorials [URL] and gained overview of tween class etc., So, I created an example (credit :sophistikat) using the macromedia tween class:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
myBtn.onRelease = function () {
//first move to center in one second witih no delay
main_mc.tween("_x", 50, 1, "easeinoutElastic");
main_mc.tween("_y", 50, 1, "easeinoutElastic");
// and in 2 seconds scale closer
main_mc.tween("_xscale", 150, 1, "easeinoutElastic", 2, true);
main_mc.tween("_yscale", 150, 1, "easeinoutElastic", 2, true);
}
The script in layer 1, the bt in layer 2 and the main_mc in layer 3 - all correctly 'instanced'. But not working - the main_mc isn't moving and then zooming in when btn is clicked.
View 3 Replies
Aug 23, 2009
I just got Flash CS4 yesterday. This is the first time I have ever used Flash. I watched some tutorials and now I'm trying to do something on my own. I want some text against a white background to start out white in the lower-left corner. During the animation I want the text to move to the upper-right corner and turn black gradually as it goes. What I did was this:
created an actionscript 3 file
Made some white text at the bottom-left
Right clicked at the 90th frame on the timeline and clickedInsert KeyFrame
Right clicked between the 1st and 90th frames and clicked Create Classic Tween.
At the 90th frame I moved the text to the upper right. Then I clicked on proprties and set the text effect to brightness and set the brightness to 0 so the text would be black.When I hit enter to go through the timeline it shows me exactly what I expected: The text moves from lower left to upper right and gets darker as it goes.
When I hit Ctrl+Enter to preview it as a published movie the text stays white the whole time until it gets to the upper right. There it turms black. So all I see is nothing for a few seconds and then a flash of the black text.Also, if I click at each frame in the timeline I can see the text is in a different place and getting brighter gradually.I'd like it to play once rather than looping. Under the effects I clicked on a thing that says play once but it still loops. Where do you control this?
View 3 Replies
Dec 14, 2005
I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point
View 1 Replies
Aug 10, 2009
I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...
View 1 Replies
May 26, 2009
I am trying to figure out a way to randomly move a ball inside a bigger circle. The motion has to be smooth and completely random.
View 3 Replies
May 26, 2009
I am trying to figure out a way to randomly move a ball inside a bigger circle. The motion has to be smooth and completely random.
View 1 Replies
Mar 26, 2012
I can make a circle (filled) turn. I want it to go gradually smaller or bigger while turning.
View 2 Replies
Oct 22, 2010
just start to learn AS3 and I use simple MC with CODE SNIPPET for Drag and Drop action, so is anyone know how can I make effect after I drag MC that MC make smooth movement after drop...with tweener or and how? Here is my snippet code:
movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void{ movieClip_1.startDrag();}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);[code].....
View 14 Replies
Feb 3, 2006
I've written a bit of code that will allow users to move objects around the stage and detect if one has hit another. The problem is that it only works for a limited number of objects. how to rewrite the code so that it works with an unlimited number of objects?
View 4 Replies
Dec 7, 2004
I have the following script in both frame 1 and 2 to let a movieclip move from right to left on the stage:
[Code]...
And the clip is indeed moving from right to left on the stage and when it reaches _x -550 it is going back to it's starting position _x 250 only the movement isn't smooth at all. What should I do to make the movement more smooth or should I use a completely different script?
View 6 Replies
Jan 29, 2009
I have one very large movieclip, and I'd like to create a very smooth (eased), tween, that moves it around the stage, on mouse move. so far, I've read the "get mouse direction" article, and that's helped a lot. and I'm calculating the distance the mouse is moving.. and that's all good and dandy,.. but I'm having a little trouble converting that into a smooth scroll.. I'd like to use tweenmax preferably, and not an on enterframe.
View 14 Replies
Jul 15, 2010
I have a zoom slider, code is in red. I have buttons on stage (site39_mc). The zoom slider can be moved manually, that works fine. I need for site39_mc to move slider to 100% scale, no matter where it is currently located. The zoom slider goes from 50% to 200%.Trying to use the code below I get an error._root.slide_mc.onClipEvent(load){ The error is asking for a field name after the "." I keep looking at it, and this is proper reference. URL...This is the site where I am trying to use this code. To see what I mean, click on a gold polygon on map. The map will snap to 100% and center on polygon. But the zoom slider stays at 75% til you manually move the slider.[code]
View 2 Replies
Dec 4, 2009
I want to zoom/move an image.
I found there are many ways to do that:
1. to use an Image control , change the x, y, widith,height . Or to call move method.
2. to use zoom/move effect.
3. to create a custom control, using BitmapData and apply the specific metrix.
how to use these methods and what's the difference.
View 1 Replies
Nov 19, 2009
I have a zoom slider, code is in red. I have buttons on stage (site39_mc). The zoom slider can be moved manually, that works fine. I need for site39_mc to move slider to 100% scale, no matter where it is currently located. The zoom slider goes from 50% to 200%.Trying to use the code below I get an error._root.slide_mc.onClipEvent(load){ The error is asking for a field name after the "." I keep looking at it, and this is proper reference. [URL]This is the site where I am trying to use this code. To see what I mean, click on a gold polygon on map. The map will snap to 100% and center on polygon. But the zoom slider stays at 75% til you manually move the slider.
Code:
stopAllMCs = function(){
map_mc.site39_mc.gotoAndStop(1);
map_mc.site40_mc.gotoAndStop(1);
};
[code]....
View 2 Replies
Apr 19, 2004
how i could create a function to do the following:- I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.
View 4 Replies
Jan 12, 2004
[URL] setup the zoom and move for their site. When I try to do it, everything [eventually] ends up in the right spot, but it seems to "start" the scale at the middle and then after its completed the zoom, it moves the x and y values. I can't seem to get them to do both at the same time.
View 8 Replies
Sep 6, 2011
i'm making a game where a ship moves from a random starting position to a target but I want to be able to zoom in & out (its a plan view) so would therefore need some way of scaling all MCs on stage equally & move them closer together when zooming out.. how I might do this? I thought maybe putting everything within 1 MC possibly?
View 1 Replies
Jun 20, 2007
I have a point in MC (map/map1/icon1), I want to move icon1 to center of stage after zoom map.
View 4 Replies
Jul 10, 2010
I have zoom code here
Code:
onClipEvent(load){
scrollMin = _root.range._x+_root.range._width // minimum _x value possiible for scrollbar
scrollMax = _root.range._x // maximum _x value possiible for scrollbar
[code]....
Do I have to copy and paste all of the slider code into the frame where my btns are? _root.srchMC.dataMC.site1_btn.onPress...
View 2 Replies
Mar 13, 2009
I'm trying to create a site where all of its sections are laid out side by side and the user can zoom into each section to check it out, just like this site: [URL]I have the actionscript that allows the user move the viewing area around, but im not sure how to incorporate the zooming into it. What I need might be something different entirely. Here's that:
on (release) {
_root.motionx = -950;
_root.motiony = -700.0;
_root.motionScale = 100;
}
View 2 Replies
Sep 2, 2009
I'm getting into flash and am having a great time. I'm working on games and want to join a community that is active that I can hopefully learn from and contribute to. It will be a few months before I can probably be of much help but I certainly hope I can learn more from the thread. With introductions out of the way...I can't get a simple MC to move given this code:
ActionScript Code:
clickTest.addEventListener(MouseEvent.ROLL_OVER, rolldown);
function rolldown(event:MouseEvent):void {
[code]...
I found a cool 3D menu at developphp.com and want to fit it into my hud. I can get the button navigation working, add internal animations (eg, glowing) but for some reason I can't get the dang thing wired to a button.I put the object in another MC container with the hopes of accessing it that way but no luck.
View 7 Replies
Dec 15, 2009
well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
View 2 Replies
Dec 11, 2006
I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.
View 3 Replies
Dec 14, 2010
I am making a small flash game where my character releases a balloon into the air. I can get everything to work but when the character produces a balloon it will not float towards the sky. The code is below:
Code:
stop();
var tobpos:int;
tobpos = toby.x
[code]...
I've tried doing a loop but it gives me an error telling me that the script has run for too long.
View 2 Replies
Apr 5, 2011
I'm making a game like Super Smash Bros., and so far it's pretty good. However, I came across one problem: I can't get the camera to move. Basically, I somehow want the camera to always show 100% of everything on the screen. If a character goes really far down, I want the camera to zoom out. If they're next to each other, I want it to zoom in. How do I do this? I didn't get a single dang response to like the last 4 posts I made.
View 2 Replies
Nov 12, 2009
I have just re-installed Flash CS4 onto two Vista machines (laptop and desktop) and the response time of the authoring screens is ridiculously slow on both. For example with the Actions Panel displayed, it takes 18-20 seconds to move the cursor along a line of code.
All other CS4 appilcations such as Photoshop, Fireworks and Illustrator all work very well and have no such problems. The computers have plenty of hard disk space and RAM (eg. Acer Aspire Desktop new computer with 1Tb disk and 3Gb Ram) and the CPUs are running at less than 50% (task manager) and there are no other apps running. I have disabled Kaspersky Internet Security 2010 with no effect.
View 10 Replies
Apr 9, 2010
This the code to move my hero mc around the screen However, when you click directly under or over the mc it doesn't move. When I say directly above I mean the angle not the distance. ie: I am well above the mc but it doesn't move. Little kids are going to play this and it needs to be more responsive or they get frustrated.
[Code]...
View 7 Replies
Sep 4, 2011
I've 3 different MovieClips that I need to move at the same time across the screen. (From bottom to top) What is the best way of doing this without using a tweening class like Caurina?
View 2 Replies
Oct 20, 2009
but i have a problem i am triing to get a mc to move around the screen at random and bounce off the walls so it doesnt go off screen
View 1 Replies