Actionscript 3.0 :: Can't Read FLV Cue Points
May 22, 2009My script, below, can't seem to read cue points in my video file. Am I wrong in the script, or could it be that I simply don't have any cue points in the video? [code]...
View 12 RepliesMy script, below, can't seem to read cue points in my video file. Am I wrong in the script, or could it be that I simply don't have any cue points in the video? [code]...
View 12 Repliesi'm a novice to ActionScript but from failed Google function searches, i think i've choosen an advanced i hope possible task: how to read then apply bezier, anchor point and handle positions to different anchor points. What i need to do is precisely align a rectangular closed bezier path with a randomly shaped closed bezier path, both with the same number of anchor points.
View 9 RepliesI 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.
As the title says, suppose I have an hypothetical XML containing this:
[Code]....
I can check if a certain speech has a bg change by simply doing this:
if(bgs[i])
{
//true!
}
what should I compare in the case of sounds, I've tried many, like:
[Code]....
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
View 3 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]....
So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?
View 1 RepliesI 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?
I have found many posts on how to draw shapes using the drawing API. However, I'm trying to figure out if it is possible to get the coordinates of points along an exisiting path on the stage and then tween these points to new random coordinates (distort the path).
View 5 RepliesI've looked in the forums but couldn't find a related topic for this...I have a video with 6 cue points and a button to navigate to each point However I would like to add a getURL to each point.Is there a way to add that in the Video Encoder or another way with AS3? It's a progressive download and my code looks like this:
import fl.video.*;
var cuePoints:Array = ["orange", "green", "red", "blue2", "white", "yellow"];
var targetCuePointIndex:uint = 0;
[code].....
What I want is for a video to load and then four photos to load in over the top with linked text below each photo. This would then move onto the next piece of xml and load the next video, new photos and accompanying text. I have tried to simply duplicate some of the attributes that are already there but for some reason the xml is not loading into my created holders. Plus because of the way it is loading only the video changes and not the photos and text.
View 9 RepliesI have a fla file with a menu and flv video in it. The buttons for the menu are created with an xml file. I want to use the buttons to go to navigation cue points in my flv instead of a url, but I do not know how to do this or if it is possible. Here is an example of one of my buttons:[code]
View 2 RepliesIn FLVPlayback working in as2.0, created cuepoints for FLV and i added captions wit xml file. but captions not loading.I did following steps and script.[code]
View 1 Repliessay I have two points: 0,0 & 1,-1If i were to get the angle between these, it should return 45.But the function i have created below returns -45, and If i give it the points 0,0 & 1,1 it returns 45.
ActionScript Code:
function point_direction(x1:Number, y1:Number, x2:Number, y2:Number):Number
{
[code].....