IDE :: Recreate The Sky With A Rotating Clip In The Shape Of An Arc
Aug 30, 2009
I'm trying to recreate the sky with a rotating clip in the shape of an arc. I've tried the built-in timer that changes the rotation, I've tried the TweenMax class, and I've tried hand-building the animation with a motion tween. In all cases, the movement is jerky--smooth for about five frames, then a sudden jerk of motion. What can I do to make this animation smoother? Clip is about 2400px wide, 400px high, with a reg point about 3000px away that it rotates around.
View 3 Replies
Similar Posts:
Jul 1, 2009
In my project are pages of text with each word having a button that when pressed will display a movieclip presentation about that word (its pronounciation and spelling etc..). In the project I am working on now I have over 450 unique presentations of words to deal with. I don't want to have all of these hundreds of movie clips on the stage and tell them one at a time to stop and rewind and then have one play each time a word button is pressed. That seems to be very inefficient to me.
add movieclips to the stage using addChild(movieclipname) and remove them using removeChild(movieclipname) but there is a problem. I have hundreds of unique movieclips and I don't want to have to manage hundreds of variables containing the indivudual movieclip instancess. It is a real pain having to figure out what instance is still on the stage before i delete it.In Adobe Director all I have to do is this:
View 5 Replies
Sep 16, 2009
I have a rectangular movie clip which I am rotating along its y-axis according to the position of the mouse, using this code:
PHP Code:
rotateClip.addEventListener(Event.ENTER_FRAME, doTilt);
function doTilt(e:Event):void {
var clipToTilt:MovieClip = MovieClip(e.target);
clipToTilt.rotationY = (stage.mouseX-400)/10; // The stage width is 800
}
When I position the clip in the centre of the stage (x=400) the function works fine - the clip rotates from -40 to 40 degrees, and the perspective effect looks the same at each extremity. However, when I change the x co-ords of the clip to 600 it still rotates in the range -40 to 40 degrees; but it looks as if it's turned much further round at -40 degrees than it does at 40 degrees. Surely if it's rotating by the same amount it should look the same, wherever it's positioned on the stage? I've changed the vanishing point of the object to x=600, but it doesn't seem to make any difference.
The reason I'm using the centre of the stage as a reference is because I want the clip to appear un-rotated when the cursor is in the centre of the movie. Is there another value I should be setting, or have I misunderstood the concept of rotating along an axis?
View 4 Replies
Aug 23, 2009
I'm trying to create a puzzle/platform game where the environment flips (180 degrees) rotates (90 degrees) by increments when the player touches a power-up so to speak. The code I have for the power-up is:
onClipEvent (enterFrame) {
if (_root.powerup, hitTest(_root.player)) {
gotoAndStop(2);
[code]....
View 1 Replies
Jan 5, 2011
I ran into a problem, I'm trying to create a class where I can rotate a clip according to the position of another marker. I attached my source code, it's hard to explain but I think the project speaks for itself.Initialy it works great the way it should but after just one rotation the clip to be rotated starts moving in the wrong direction. I feel like I'm almost there but I could be wrong.
ActionScript Code:
package
{
[code].....
View 2 Replies
Aug 19, 2008
I created a scene that allows the user to attach multiple instances of several movie clipsI want the user to be able to manually rotate any movie clip they wish via a button. While I understand how to create the button and write the rotation script, I am completely at a loss on how to go about writing the code that would allow the user to select the MC they want to rotate by first clicking it with their mouse and then rotating it with the button.
View 1 Replies
Apr 1, 2010
I need with a menu witch has 5 buttons moving along an ellipse. When I click on a button, I need to call an "arrow" movie clip, locate it BETWEEN the button being pressed AND center stage, and make sure it's pointing toward the middle. Much like the picture below: I've spent the whole week trying to make it work but I guess I don't know enough about AS2, or geometry to succeed on my own.
View 2 Replies
Feb 10, 2006
Hi, is there any way to rotate a movie clip during runtime? Also, do movie clips have a width property that can be accessed with actionscript?
View 2 Replies
Feb 29, 2008
I made a simple fla with explanation and actual failed attempt in it. seems logically right to me but still not working...
View 2 Replies
Jan 22, 2010
How do I convert a shape tween into a movie clip on a Mac?
View 2 Replies
Jun 21, 2010
I have Video Screen on my background image. Where I have masked the movie file to fit that screen. But still it is in square shape, because I can't shape my movie file exactly as screen. I tried with free transform tool but it is also not useful. The perspective tool like in Photoshop sure will work. Is there any such tool in flash cs4? Please help me in this regard.
Still there is black right top and right bottom which to be covered by movie.
View 2 Replies
Dec 12, 2004
I have a movie clip with a square inside. I want to use actionscript to distort the movie clip into a perspective shape, like this: [URL]
View 2 Replies
Nov 16, 2006
I have a movieclip that contains code for an API drawing shape. I can use it to mask a movieclip containing an image but not a moviclip that contains a dynamic gradient.
Code:
// CREATE MASK SHAPE WITH DRAWING API
// create empty movieclip
[code].....
View 3 Replies
Sep 15, 2002
I can't get the hit test (true) to work on a clip that animates (all it does is grow in size). If I set the hittest to false so it just reads the box of the clip, and not the shape it works just fine. The clip in question is simply a circle.
View 11 Replies
Sep 14, 2010
I have 4 shapes which fit into 4 boxes and would like to modify my code so when a shape is placed in the correct box a movie clip appears e.g. if a triangle is placed into a triangle shape the movieclip for triangle appears. if the shape is placed into the wrong box a message appears saying try again.
View 9 Replies
Feb 5, 2007
I downloaded an Mc Tween Class from [URl] so I can use the ColorTransformTo method. However, the method only works when my movieclip is an image; and I need the method to work when the movie clip is a shape...
View 1 Replies
Sep 23, 2009
Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it (so underneath the buttons are still rotating so other people can click them where they are)to explain the context, I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the topI've included my .fla file which shows the four buttons moving and a little diagramexplaining what I'm trying to do.
View 5 Replies
Nov 30, 2009
ActionScript Code:
package {
import flash.display.MovieClip;
public class Base extends MovieClip {
public var baseHP:int = 50;
var newRect:Shape = new Shape();
1046: Type was not found or was not a compile-time constant: Shape. 1180: Call to a possibly undefined method Shape. What does it mean by "undefined method"? I am somewhat of a newby, so sorry if there are any stupid errors
View 1 Replies
Jun 22, 2010
Whenever I add shape hints to a shape tween the shape disappears in the between frames. I am using CS5 on Vista. I using files from [URL]to practice.
View 2 Replies
Nov 1, 2005
I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image. Anyone know of an action script that would keep the labels upright?
View 8 Replies
Oct 11, 2011
need to draw the shape of a existing movieclip which is irregular shape.
View 2 Replies
Oct 11, 2011
need to draw the shape of a existing movieclip which is irregular shape.
View 1 Replies
Aug 27, 2009
I am trying to recreate an xml through php as I am pulling information from a database. I know the problem is with the php code as the actionscript code works with a normal xml file[code]...
View 0 Replies
Jun 24, 2003
i'm trying to recreate gravity. this is what i have so far:
[AS]G = 0.005;
m1 = ball1._width;
m2 = ball2._width;
scrnW = 550
scrnH = 400
[code]....
the script looks alright to me but when run, the effect is wrong...
View 14 Replies
Apr 8, 2008
Im trying to convert my company's logo from a jpg to a flash movieclip...I need to do this because the jpg has a static background of white...but I need the background to be transparent so that only the text graphix show up above everything else...assuming I can get a hold of the font used for the logo...how would I do all the fancy shading/lighting with the "bent horizon" look across it? I am by no means a designer...merely a wannabe developer...so I know nothing as far as the pretty part of flash is concerned...here is the logo I am trying to duplicate..
View 2 Replies
Jul 9, 2009
Id like to know if there is a way to do a shape hitTest.Not as the normal hitTest would do, but shape colliding another shape, not the rectangleof a movieclip.It can be in a movieclip.
View 23 Replies
Jul 4, 2009
I want to load in external swfs into an mc on the root called 'holder'.In As2, I would just do loadMovie("whatever.swf", this.holder); And if I loaded another swf into that same holder it would replace the contents with the new swf.
But now, I'm trying As3 and doing..var i =new Loader();i.load(new URLRequest("contact.swf"));this.holder.addChild(i)
When I repeat this code, for another external swf, I want it to replace the first one, but it appears to not be doing that. I fear that this addChild, is simply adding more mc's within my main holder mc.
So I don't know how to match the functionality that I liked from As2.
View 2 Replies
Mar 4, 2012
I've been looking all over with no luck for a way to code the pen tool in AS3. What i want is, in the flash application, the pen tool as it functions in Flash itself. So, for example, i push Ctrl + Enter and test my program, then can use the mouse to click and create a point, click again and it connects with a straight line, or click and drag to create a curve. I don't need anything like hinges where you can go back and edit curves, i just want the click/click drag line functionality.
View 6 Replies
Oct 20, 2003
Does anyone know how to recreate the TV snow effect, you know when you're trying to tune in a tv channel and all you get is the 'fuzz'?
View 10 Replies
Feb 12, 2009
I have flash and i wat to recreate a dragable object that will blur anything behind it.
View 3 Replies