ActionScript 2.0 :: Origin Point Of Movieclip?
Jul 26, 2010Can anybody tell mw what is the origin point of the movieclip.
View 1 RepliesCan anybody tell mw what is the origin point of the movieclip.
View 1 RepliesHow do I move the origin point, or zero point, of a MovieClip to the same origin point of the stage without scripting in Adobe Flash CS3?
Example: While I'm trying to move objects within a MovieClip, the origin point is at (stage) 200,-300. This means that when I put objects in a MovieClip, the objects' X,Y coordinates, as displayed in properties, are off by that much.
This point is way off the edge of the stage and I'd like to move it back to the stage's origin point so that my X,Y coordinates are meaningful.
Can anyone tell me if an instance of a line as origin point and end point properties that can be read or changed? I know that if you create a line with actionscript you have to set them. But can the X and Y coordinates of the points be accessed once the line exists and moved to a different location?
View 3 RepliesI am making application which will dynamically create sprites via action script and copy the sprite's image to a bitmapdata object via .draw() function. I would like to store the location of the sprite's transformation point and insertion origin (which would be set within the flash editor when the sprite is created/imported.) Is there a way to access the location of the transformation point and the insertion origin via ActionScript? I just want to read it, I do not need to change it.
View 5 RepliesI tried to create simple animation from this Kirupa's tutorial My aim is to make a circle run from left to right and when it is almost to the edge it will move back to the origin point and it will loop only 3 times. So I came up with totally baby script like this:
[Code]...
But the MC is not move back to the original place. Sorry for not even finish the script for stop looping. Only tweak on play loop it make me very confused. My knowledge is quite in entry level but I eager to learn. Could you let me know what is wrong with the script?
How do I take Object_MC and have it attract towards the mouse cursor within 100px and return to it's point of origin when the mouse is 101px + away from the cursor, all while doing an "elastic" like recoil effect, and going from 50% alpha to 100% over that distance to the mouse?
View 1 RepliesI've got this simple code here:
this["recipe"+i] = new recipelistname();
this["recipe"+i].buttonMode = true;
this["recipe"+i].recipeid = i;
[Code]....
The problem is that the movieclip rotates around the center. The textfield inside the movieclip is starting at 0,0. But it still rotates around the center, how can I make it rotate at 0,0?
It's been a long time since I've done any work with actionscript, and alas I've forgotten nearly everything. I've tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.
Basically I'd like to do this:On the stage I have a movieclip and I'd like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.
I have a horizontal scrolling movieclip that scrolls when the mouse is left or right of a certain point of that movieclip. However, it only moves slightly then stops when the cursor goes over it, it doesnt actually scroll normally...
[Code]...
i have 2 intersecting movieclips.
is there a way to hit test point NOT detecting a bottom movieclip if the mouse is over the top movieclip?
I am trying to get the x & y values of a movieclip(contentMc) from inside a different movieclip. Is this the correct way? Here's my code:
ActionScript Code:
myMc.x = MovieClip(root).contentMc.x;
myMc.y = MovieClip(root).contentMc.y;
I am trying to get the x & y values of a movieclip(contentMc) from inside a different movieclip. Is this the correct way?[code]
View 1 RepliesI have a FLV playing (via FLVPlayback component), and I'd like to have a graphic/movieclip display on top of the video at one of the cue points.
The video is a person speaking, and I'd like to have his name and title fade in when he says it.
how can I make the green movieclip rotate in the point that the claw has catch it. To give an impression of physics. Here´s the image, to give you an idea:
The point (x,y) that the claw catches the colored movieclips below is not unique it can be any number. As long as the claw catches the colored movieclip.
I have a FLV playing (via FLVPlayback component), and I'd like to have a graphic/movieclip display on top of the video at one of the cue points.
The video is a person speaking, and I'd like to have his name and title fade in when he says it.
when i make a MovieClip by code
ActionScript Code:
var my_mov:MovieClip = new MovieClip()
where is register point on the movieclip?
[code].....
I am making a 'simple' template builder in flash which allows the user to add/remove text boxes and images to the stage.
I can rotate any of the movieClips fine but it rotates from the top left and i want it to rotate from midpoint. Is there a way to set the midpoint/rotation point using actionscript?
I have an action script for a movie clip to rotate around (instance_name.rotation -= 1. and this works fine, how ever i need it to rotate around a point outside of the movie clip. i think i need to move the registration point but i dont know how to do this.
View 1 Repliesi'm working on a flash game at the moment, and i would like to know if i am able to set the point that the movieclip rotates around using actionscript. i don't want to do it by simply moving all of the contents of the movieclip closer or nearer. is there any other way of doing it? i couldn't find any simple functions for it. am i just going to have to use some complicated maths?
View 3 Repliesi want to move a certain movieclip from a point to another , and i know this can easily be done with a few lines of code ...but just a few days ago i ran across some piece of code that you just entered the x and y positions of were you wanted it to go and the speed at which it should go there...i even saw a command were it would slide in to the position ,, slowing down the closer it got...
View 1 RepliesHow would I move a movieclip to a defined point?
View 4 RepliesI have read a few discussions on changing the registration point on a movieclip but don't seem to work. I have a movieclip with embedded mcs. I can se that the nly way of changing the reg point is by saving as a mc again ie: creating another one and upon creation choose the reg point.
View 5 RepliesHow to fix dynamic registration point in movieclip?
View 9 RepliesSo I've now realized that no mater what I do. my 3D vanishing point is relative to my stage coordinates and not my movieclip's coordinates. I'm trying to move my 3D movieclip from one point of the stage to another but with the strong perspective that I have, I do not want it to change. I would like to move it and preserve it's perspective and not change it's shape.
View 1 RepliesCan I set the registration point of a MovieClip (or other Display Object) to its center upon creation in AS3? the following
[Code]...
sets the registration point of myClip to its top left corner by default. Using Flash CS4 to set it to its center is just a couple of clicks, so I am wondering how I can perform the same action only with code.
I have a MovieClip, that is representing a character in my game. Id like to "create bullets" shooting out from the tip of my characters gun. Problem is that when my character turns around, also the point rotates around the MovieClips pivot.
Is it possible to anyhow easily track this point, so that I could dynamically create new objects at the same location.
I tried to add a new MC as a child to my character, with the initial position at the guntip. In some systems child-objects "follow" their parents around, but it didnt seem to work here.
Is there any other "native" way of doing this, or do I just have to have a Polar-coordinates representation of the point relative to character-MovieClips origin, and add the MC rotation to theta, so that I can calculate the X and Y coordinates?
Is there a way to change the registration point of a movie clip after you've made the movie clip?
View 5 RepliesI'm making a custom collision class, and I need to know the registration point of the targets so I can use the bitmap.hitTest(); function, and not all of my movieclips have their registration point in the upper left side, so I'll have to do a little calculation according to the registration point of each movieClip, but I don't seem to know how to obtain the registration point with as3.
View 3 RepliesHere I have attached using dynamic registration point on movieclip file.when I clicked on green button it was scaled depend up on the registration point.It was worked fine.but I expecting to drag on green button to scale image. I tried many ways, but I couldn't do it
View 0 RepliesI want to know how can i make a point (movieclip) move, i know that if i double click the movieclip e can manually change the 'x' an 'y' values and this way the point will move.
It is possibly to link this with java? And make java pass the x and y values to the animation?