ActionScript 3.0 :: Movieclip Between Those Points?
Mar 13, 2012I have to make constraints and it works but for now it draws a line between the two points but i want a movieclip between those points. But how do i do that?
[Code]...
I have to make constraints and it works but for now it draws a line between the two points but i want a movieclip between those points. But how do i do that?
[Code]...
I'm trying to use the MatrixTransform class to RotateAroundInternalPoint but it requires that the object I'm trying to rotate has matrix points defined. My question is, is there a way to add Matrix points to a non Shape object so I can rotate it, or is there another class that is used to rotate movie clips around internal points?
View 6 RepliesI'm using the new 3D tool in flash to let pictures rotate around there center. To not let it look distorted I will have to adjust the vanishing points for these images separately, however I can't find an option to control them separately. The seem linked for all my 3D movieclips. This will result in having only 1 moviclip animated right. So the question is: how do I control the vanishing points for each movieclip separately?
View 1 RepliesI have 2 objects set randomly apart. I want to send a movieclip between from one to the other. the movieclip must be able to calculate to coordinates itself.
View 4 RepliesI'm working on a project where I have to load multiple movie clips and center them on the stage.
PHP Code:
loaded_clip._x = Stage._width/2;loaded_clip._y = Stage._height/2;
Unfortunately, in this case that doesn't cut it. The move clips I'm loading all have different registration points, and they end up looking anything but centered. Is there a way to center them based on some other factor other than the registration point, so that they look centered?
I have been tasked with trying to create a drawing tool that draws dotted lines as you drag the mouse across the stage. I can easily capture the points on MouseEvent.MOUSE_MOVE and store them in a vector and then draw the points as dots:
The problem is that I need to calculate evenly distributed points on an ever growing Vector of points so I can only draw the line between say every 5th point (say using modulus). I have been battling away with Bezier curve equations both Quadratic and Cubic but still can't quite figure out how to convert my Vector of points into an evenly distributed Vector of Points without sucking the life from the CPU.
"Rotation Around A Common Center" Tutorial Posted at the following link [URL]I was wondering if there was a way to load different movieClips at Different Points in the rotation, instead of having the same movieClip for all; and if so how?
View 1 RepliesIm a bit stumped on this. I have a movie clip named mcMain that the player controls, and i want him to have it detect collisions at certain points of the screen (like at a certain X and Y co-ordinates). I have an array that contains those values, which is shown below:
Code:
//Array that holds x position of points
var xPoint:Array = new Array(150,400,200,300,100);
[code].....
Say User uploads a front facing photo. I give co-ordinates. I want to give user facility to move the points to match eyes and lips on their uploaded photo. So I want to get the editable shape. I think we will need to use bezier curves for this. How can I modify my code to line through the bezier control points?
View 1 Replieshow can i scale a movieclip by clicking it and drag the corner points of it.
View 3 Repliesi am trying to do is add a movieclip with the amount of points scored when a hit test occurs. I have a movieclip with some text and a motion tween. i add this with this code in the hitTest function:
[Code]...
How can i make a MovieClip object drag able by the mouse? If i have two MovieClip instances, is it possible to make a new shape/MovieClip objects in that looks like a line and which will connect then? I have functions checking if the 'nodes' movie clip instances collide with the 'line' movie clip instances, now these all are different functions and conditional, but is it possible to check if ALL of them are true?
View 2 RepliesI am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?
var line:MovieClip = new MovieClip();
line.graphics.lineStyle(1,1);
line.graphics.moveTo(ptOne.x,ptOne.y);
[code]....
I am following a good tutorial here:URl...And it uses the following example file to display an embedded FLV movie:URL...I am having a problem editing the cue points. If I open the compenent inspector for the FLVPlayback, and then open the cuePoints dialog, I should be able to add, remove, or modify cue points. However, I can't edit anything in the dialog at all. It seems locked.The tutorial clearly states you should be able to edit the points.
View 1 Replies[URL]In the tutorial, it says I should be able to edit cue points for the FLV video. I open the component inspector and the cuePoints dialog. All the cue points are listed, but it won't let me edit them. They seem ti be locked. I need to be able to edit cuepoints within flash for a linked flv file.
View 1 RepliesI am following the tutorial here at URL...and it links to the following tutorial file:URL...In the tutorial, it says I should be able to edit cue points for the FLV video. I open the component inspector and the cuePoints dialog. All the cue points are listed, but it won't let me edit them. They seem ti be locked. I need to be able to edit cuepoints within flash for a linked flv file.
View 1 RepliesI am SUPER confused on how to make use of the cue point that I embedded in my FLV.It is called "END", is at time 00:00:46.114 and is Event type.How do I go about calling an action, say loader.loadMovie("info.swf), when the movie reaches that point?
View 5 RepliesI'm currently streaming a video with AS2 using netstream.I have already found out how to pause my video on certain cue points, however I do not know how to skip to certain cue points.Basically I have buttons, which will each skip to a certain part of the video.All my cue points are embedded in the FLV.To pause my video I have the following code:[code]Any help on how I can use the buttons to skip to say "SecondCue" and "ThirdCue"?
View 1 RepliesI have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. I can trace them and see both name and time with this:
[Code]...
I am trying to use external xml to set cue point times (for video), titles, and other parameters. I have everything set up, except getting the proper data from the xml file to set the parameters for my cue points. I am researching hard and learning quickly
View 2 RepliesFor some reason I'm having trouble designating where my registration points are on my objects. When I create new objects the option is simply not there. Also, when I'm doing some actionscripting, my text does not change colors, even though I've set it to do so...
View 3 RepliesIs it possible to get the time of one of my navigation cue points. I am using the NetStream class and want to seek to it, but just realized that I can only do that if I have the time for it. Is that possible?
View 12 RepliesI have added an flv-playback instance to the stage in Flash CS4. The flv has some cuepoints named "01" - "10". The cue-points were set in AfterEffects CS4. There's some event- and some navigation-type cuepoints. I now attempted the simple task of getting a specific cuepoints' time using actionScript. Easy enough one should think, but apparently it isn't.[code]...
View 6 RepliesI am using Flash CS3 and AS2 on a PC. I am making a CD in Flash, for a client. The CD has videos, images and text. What I need is be able to go to the next scene once an FLV has finished playing. Also if a new FLV can be loaded once the curent ends. The FLV is in the FLVPlayback component. I need to add Cue Points which I can use to navigate with. The client would prefer a minimum of buttons, and thus auto navigation once a point is reached.I would prefer to avoid the need for me to use third party software or add-ons unless absolutely necessary.
View 3 RepliesI would like my video to play through the external flv once, and then loop back to the middle of the external flv.I have made 3 cue points on the stage in actionscript, labeled "beginning","middle", and "end.here is my code which seems like it should work, however, I get an invalid seek 1009 error.
stop();
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import fl.video.MetadataEvent;[code]......
How do I go about having buttons display in an external flv file? I know I can establish event cue points with Adobe media encoder. I want the the buttons and graphics to appear and stay on the screen, even though the external flv loops.
View 18 RepliesI can bring the two selected cards (out of 28 in a grid). Is there a way to get any two cards in the grid to line up inthe center? I'm thinking of having two invisible mcs and have one align to one and one to the other. I want to make sure they don't overlap (hence why the mc idea). trying to accomplish this without going crazy as its just aligning two things.[code]
View 9 RepliesI want to create line between 2 points ...such tht the line will start when i click the point A then i will drag the line by holding it to point B and i will join the line to point B by clickin on point B (somethin like the pen tool) ..then line will then be joined between the points ...
View 1 RepliesIs there any difference between: distance = point1.subtract(point2).length; and distance = Point.distance(point1, point2);
View 3 RepliesI have a component (link to Test class) which contain one line in it, and I put one point of this line to (0, 0).
Then drag it to Flash(fla), and get its Shape in AS3 like:
// in Test.as
// assume that the movie clip only contain one line.
var line:Shape = Shape(getChildAt(0));
And I can get one point of this line which is x and y of var line. But how to get another point of this line?
Edit:
Ignore component stuff above, here has another question but I guess it pretty much the same as the question above:
Draw a line from (0, 0) to (10, 10) and draw another line from (10, 0) to (0, 10), how to get those lines of two-point form in AS3?
If I access them as Shape then I get two similar shapes which have same x, y, width and height values. Does AS3 has some way to access line as a REAL line not just a shape? or does it has any way I can calculate it out?