ActionScript 3.0 :: Creating Video Object - How To Add CuePoints

Mar 9, 2007

My question deals with adding a cuepoint in actionscript 3 using code. In flash 8, I made use of the FLVplayback component which included a method addASCuePoint(). In Actionscript 3, I am now using the standard method of creating a video object, except i can't figure out how to use actionscript to add a cuepoint. In the AS3 LiveDocs entry for NetStream , it list only event and navigation as cuepoint types. Previously there was a third type of cuepoint: actionscript.

Code:
public function LoadVideo(){
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var vid:Video = new Video(320, 240);
[Code] .....

I am guessing one option is to create an onEnterFrame function that compares the NetStream.time to each value in my cuepoint array, and then do a addEventListener(EventType.ENTER_FRAME, onEnterFrame); Although this might work it requires my application to loop through my cuepoint array every single frame, which isn't really efficient.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Skipping Between CuePoints In Custom Video Class?

Apr 25, 2009

I am creating a custom video class and was wondering is anyone knows how to turn cue points embedded in an flv into a time in an array.

I have tried the following but, although it doesn't give me any errors, it simply rewinds 1 second rather than skipping back to the correct cuePoint. I can't figure out why? :

Code:
public var _durationArray:Array = new Array();
public function makeArray(info:Object):void {
for (var i:Number = 0; i < info.cuePoints.length; i++) {

[Code].....

This previous code is amongst other code, which makes does things. Then in a new class I call it inside a function (which triggers fine):

Code:
_vidStream.seek(_durationArray[0].time);

View 1 Replies

ActionScript 3.0 :: F4v Cuepoints Not Working

Aug 10, 2010

I have an object that when I use an flv with a CuePoint, it all works fine. When I changed the flv out with an f4v, also with a CuePoint, the code does not work.[code]

View 2 Replies

ActionScript 3.0 :: Cuepoints Without Flv Component?

Aug 14, 2009

I'm creating a video player with closed captioning and navigation. Is it possible to as AS cuepoints to a video object and not a component.
 
Like this:
 
//Create video screen and position it
var vid:Video = new Video(320, 240);
vid.attachNetStream(ns);

[Code].....

View 2 Replies

ActionScript 2.0 :: Interacting With FLV Cuepoints?

Oct 22, 2009

First, I should mention that I haven't used Flash for years and I'm feeling a bit out of my depth.I've created an offline presentation for a client using ActionScript 2, authored with Flash CS3 (to run off a laptop).The presentation has an FLV (currently attached to the stage via the FLVPlayback component) which must play through it's entirety and at the end present 3 questions. Each question will present an answer once clicked. The user will then be presented with a "watch again" button which should restart the FLV from the beginning.

The second time the FLV plays back it should pause at 3 key points and present the user with questions and answers as before. Once the user has dealt with the Q&A's they should see a button to continue and the FLV should continue playing from where it was paused.I'm happy making the various interactive Q&A's, but have no experience of interacting with video. After a brief search in the web "cue points" look like the best tool for the job.

View 9 Replies

IDE :: CuePoints Work In Some FLVs, Not Others?

Mar 12, 2009

I am having an issue with setting CuePoints in a FLV that is not natively FLV. My code works on files that were exported directly from AfterEffects to .FLV. However, some of the video files I am working with are originally .MOV files. When I pass them through either Adobe or Flash Media Encoder, the CuePoints are not recognized. It seems very strange.

Here is the code, although the code works perfectly with native FLVs, so I don't think that is the problem. I'll put it on here just in case.

Code:
myFLVPlayBack.onRollOver = function () {
playHover.gotoAndPlay(2);
}

[Code].....

View 1 Replies

Flex :: Null Object Reference After Creating The Object?

Aug 22, 2011

I have one MXML File as

<objecthandles:ObjectHandles xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" backgroundAlpha="1" xmlns:mx="library://ns.adobe.com/flex/mx"

[code].....

View 1 Replies

ActionScript 3.0 :: Add Cuepoints After Setting Source

Dec 2, 2010

I had to add the cuepoints after setting the source.Iam trying to use cuePoints on a flvPlayer component but it wont work for me.I have a flvPlayer 2.5 in my timeline (vid_mc) and this code:[code]

View 1 Replies

ActionScript 3.0 :: How To Create Reactions To CuePoints

Dec 14, 2010

I am having some issues creating reactions to CuePoints when using NetStream();. I can get what I want to work when the video is embedded directly onto the stage by using the following code:

vid.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
function cp_listener(eventObject:MetadataEvent):void {
obj = eventObject.info.parameters;
for (key in obj) {
if (key == "CuePointName1") {
[Code] .....

The trace statement is returning the name of the CuePoint correctly, but 4 times like this:
CuePointName1
CuePointName1
CuePointName1
CuePointName1
Which I assume is why the if statement isn't picking it up.

View 3 Replies

ActionScript 3.0 :: Creating Object Inside Another Object?

Aug 11, 2010

is it possible to create instance inside method of another instance? But I want new instance to be sibling of instance where it was created.something like this:

ActionScript Code:
parent = new Parent();
childA = new Child();
parent.addChild(childA);

Child class would have this onclick event function:

ActionScript Code:
public function child_click(e:MouseEvent):void {
childB = new Child();
}

I want "childB" to be child of "parent", no property of childA. so I could do:

ActionScript Code:
parent.addChild(childB);

how is this possible without passing "parent" instance as parameter?

View 2 Replies

ActionScript 3.0 :: Receive CuePoints With FLVPlayback Component?

Jan 25, 2010

I've been trying to get cuepoints out of my flv video with the following code without success:

[Code].....

View 1 Replies

ActionScript 3.0 :: CuePoints Using FLVPlayback In Projector Executable?

May 26, 2010

I have a Flash CS3 project that uses the FLVPlayBack component to play 5 FLV files. Each of the files has between 1 and 15 navigation CuePoints embedded in the video (MOV files encoded using Flash Encoder).

When I test the app using Ctrl-Enter from the IDE all works fine.

When I test the published projector EXE on the hard disk all works fine.

When I burn all the files to CD-ROM and start the projector EXE not all is fine.

When I click on one of my buttons that will navigate to the desired cuepoint within the FLV, it acts like it is unable to find the cuepoint and thus goes to the end of the FLV file.This is very annoying and I can not find anything listed anywhere. I suspect it has something to do with buffering or something because the CD-ROM is slower than the hard drive.When playing the video all I am doing is:

vidPlayer.stop();vidPlayer.source = "name of flv file";vidPlayer.play();

When I navigate to the cuepoint I am using the following:

vidPlayer.seekToNavCuePoint(cueName);

View 1 Replies

Actionscript :: Professional : Flash CS5 Dropping Cuepoints?

Jun 29, 2010

I've just upgraded from CS3 to CS5 and have discovered an annoying issue with cue points. When I open an existing FLA that has a movie with actionscript cuepoints and try to replace it with another movie (an updated version), Flash drops all my cue points and I have to re-enter them. Is there some way to prevent this?

View 2 Replies

Professional :: CuePoints Not Working Properly Netstream?

Jul 15, 2010

Im trying to get cuepoints working on an old as2 project.I have a netstream video component and want the cuepoints embedded in the FLV to trigger buttons to appear. I have embedded them as Event Cuepoints. 
 
ns.onCuePoint = function(infoObject:Object){    trace(infoObject.name);    if(infoObject.name == "CP1") {         trace("yes working");    }}; 

[code]...
 
This shows all of the cuepoints within the FLV. I cant figure out how to change the code to trigger actions WHEN the FLV hits a Cuepoint.

View 2 Replies

ActionScript 3.0 :: Create A Flv File Thats Got Multiple Event Cuepoints

Sep 20, 2010

I used After Effects to create a flv file thats got multiple event cuepoints. When i try to use these cuepoints in Flash, it says :

[Code]...

81.88 is the first position where two Cuepoints are set on the same point of time. I named them 81.88a and 81.88b in After Effects but it wont make a difference. Each of these points has some important parameters (cornerpoint data) so that i need them all.

View 1 Replies

ActionScript 2.0 :: Preloading FLV With Cuepoints - Animations Slow To Start

Jan 7, 2009

This is the first time I have used a FLV with cuepoints. I have a flv which loads into my swf which I have added cuepoints to on import. I have a series of buttons over the flv and when you rollover these you skip to various points in the flv. This works in principal but in reality it is a little slow, especially when it first loads. I am assuming this is because the FLV is still loading (although I am testing this locally and it will never be used on the web). If this is the case I think I need to make sure the entire flv is loaded before i show it. Secondly, is this the reason the rollover animations are slow to start or is this an inherent problem when using FLV? Is there anything else I can do to make it more responsive?

View 3 Replies

ActionScript 3.0 :: Create A Function Which Will Search The Cuepoints For A Specific Time?

May 24, 2010

I have the following XML file structure:

Code:
<VideoData>
<CuePoints>[code]....

And I am trying to create a function which will search the cuepoints for a specific time, I'd also like the function to be re-useable, so I could just feed it a xml tree path and a search term then it would return a reference to the matching node.So far I have only managed to return what is in the node:

Code:
public class Search
{
public static var returnData:Array = new Array();[code].....

View 2 Replies

ActionScript 2.0 :: Put Together A Class For Playing Video Using The Video Object?

Aug 23, 2008

I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.

Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;

[code].....

I am getting the following error with this script.

Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.

View 3 Replies

Media Server :: Read Or Extract Cuepoints Created Live With Nestream.send()?

Sep 17, 2010

Im doing live streaming directly from webcam like Ustream.TV. Im  using Flash Media Server 3.5, and I record cuepoints of broadcaster with  the method ns = new NetStream(); ns.send('functionName' , 'value'); I publish the content and record it in a .flv file. However when I  download this FLV file and extract the metadata with tools like  FLVTOOL2, or FLVMETA, the cuepoints that I recorded with ns.send()  method doesn`t show. I know they are there since when I play the FLV file in another client, I  can receive the calls for the 'functionName' in the exact time that I  call while recording. What I`m doing wrong? I would like to encode recorded video with Flash Media Encoder and  insert into it CuePoints that can call to the same function that I do  with live streaming. To do that, first I need to know how the CuePoints  are created and fixed into the FLV file that I record directly from  webcam. I need to know how they are stored to do it manually in Flash  Media Encoder.

View 19 Replies

Object :: Video - Create An Actionscript Object In Haxe?

Mar 26, 2012

I am creating an actionscript video player in Haxe and to avoid the asyncError I am trying to create a custom Object. How do I do this is Haxe? The client property specifies the object on which callback methods are invoked. The default object is the NetStream object being created. If you set the client property to another object, callback methods will be invoked on that other object. Here is my code.

public function new()
{
super();

[code].....

View 2 Replies

ActionScript 3.0 :: Creating A Video Gallery?

Aug 31, 2009

I'm creating a video gallery and i have some issues because i'm new ot action script.I have a gallery.swf which loads into main swf. this gallery has thumbnails that link to the video.So the issu is the following:When i roll over the thumbnails, I would like to show the name and the description of the video and if i click on it, it should load the video.I was wondering if there is a way to do this dynamically with xml instead of working on every thumbnail button ans linking it to its video.

View 2 Replies

Professional :: Creating The Flash Video?

Jun 1, 2010

I am extremely new to Flash (using CS4) and want to create flash videos for display in web pages.  I have used a few of the wizards and have gotten some rough, very amateurish looking results, but at least they work.  I owuld now like to create a more professional looking product that has a nice looking player skin, a thumbnail preview that is typically included, and some sort of "Click to Play" button. 

View 1 Replies

Xml :: Creating A Customized Video Using Flash And XML?

Jan 4, 2011

The problem: I have to create a Flash video (in CS3) that will query a MySQL database and display that data at certain points in the video. I've divided this project into two parts: a.) dynamically generate an XML feed from the data using PHP (using an ID number passed in the URL's query string), and b.) be able to work with it in Flash. I've got the first part working, but am pretty lost in Flash. I can parse the XML, but I'm not sure how to set the data up as variables and attach it to a video's cue points.

View 1 Replies

JavaScript :: Creating DIV Overlays Over Any Video?

Apr 12, 2011

I would like to create a div overlay over videos in a html page. (Google Ads in YouTube). The videos could be embedded YouTube videos, or from any other source. Any ideas on how to do this? I have done a similar task of overlaying divs on images but never did for videos.

View 2 Replies

ActionScript 3.0 :: Creating SWF Of Video With Scrubber?

Aug 21, 2009

I'm new to flash. I'm trying to create a swf of a video with scrubber and at a certain point through the video the web address pops up and is clickable. I have tried embedding the flv within the timeline but it warns me that things could get out of sync.

View 2 Replies

ActionScript 3.0 :: Creating A Video Player

Jan 7, 2010

i really need something to begin a Video Player development. Can you show me any arcticle or tutorial explaining how I should proceed? As a matter of fact I simply need a manner to change the source file whenever o click on a different button.

View 0 Replies

ActionScript 2.0 :: Creating A Video Player?

Dec 11, 2006

I want to create a video player like some tutorials about creating video player in flash using actionscript and XML.

View 1 Replies

ActionScript 3.0 :: Flv - Creating A Video Program In Flash CS4

Aug 4, 2009

I am creating a video program in Flash CS4 with AS3. I have a main video FLVPlayer and small FLVPlayers at the bottom(click on the small video to view in main video)... simple What I would like to do is, instead of loading the whole movie in each small FLVPlayer, I would like to load the first frame and stop loading (kinda like a first frame screen shot). Is there any way that I can start the loading process and then stop after the first frame is loaded?

View 3 Replies

ActionScript 3.0 :: Creating A Video Rewind Button?

Jul 14, 2009

I'm using the FLVPlayback component and I need a rewind button. I don't want it to go back to the beginning of the video, only go back a couple of seconds everytime the button is pressed.

View 16 Replies

Professional :: Creating A Bookmark For A Streaming Video?

Jun 23, 2011

I was talking with a friend and we were trying to figure out if it's possible to have people create a bookmark on a streaming video so, if they leave midway they can come back and pick up from where they left off?
 
If this makes sense and is possible how could you do this?  Would it be in the Flash encoding or is it through HTML?
 
Also, would this be called VideoMarking?  I see 2 other posts on here regarding videomarking, sound similar.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved