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


Similar Posts:


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 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 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

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 :: 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 :: 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

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 :: 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

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

ActionScript 3.0 :: Detect Cuepoints Playing From FLV Movie That Is Playing From FLV Playback Component?

Oct 9, 2009

I was wondering, what was the best way to for actionscript 3.0 to detect cuepoints playing from a FLV movie that is playing from an FLV playback component?

View 1 Replies

ActionScript 3.0 :: Create A Series Of Scripts That Will Create Some Custom Event Listeners?

Nov 14, 2009

I'm trying to create a series of scripts that will create some custom event listeners.
 
I have three movie clips on my stage. One is a movieclip who's sole function is to hold array's and the event listeners. A second which moves around the screen. And a third that is motionless.
 
The problem is that the argument I want to test (which activates the custom event) is held within a string.
 
What I want to know is, how do you test to see if the string argument is true?
 
Is it something similar to this:
  
var myCode:String="1<0";if(myCode){
trace('one is smaller than 0'); //Strangely apparently one IS smaller than 0!!!
}

I think I'm going about this in the wrong manner, however this is the only way I can think of this working... (since I need to be able to dynamically create these events)

View 7 Replies

Professional :: Create A Flash Program That Uses It's Own Code To Send And Create Images?

Sep 29, 2010

I'm trying to create a flash program that uses it's own code to send and create images. Each square has a colour and that colour gets added into the array. A black, then grey, then white is:

filecode = ["Bl", "Gr", "Wh"];

That works fine, but when I try to paste it into an Input text box it will only fill in the first part of the array.

filecode = ["Bl,Gr,Wh"];

So the program has NO idea what I want.The only ways I can think of fixing this is by putting in 402 text boxes to suit every box...But every one of them needs a Variable Name.Or by sending the information straight into the array. But this way you are just looking at what you just drew, and that is not at ALL practical.

View 3 Replies

ActionScript 3.0 :: Create A Style Sheet To Create Objects For Each Element?

Aug 26, 2010

Is the only way to create a style sheet to create Objects for each element?
 
import fl.controls.TextArea;import flash.text.TextField;import flash.text.TextFormat;import flash.text.StyleSheet;

I do this when a user clicks on a MovieClip:

var style:StyleSheet = new StyleSheet();
 var heading:Object = new Object();heading.fontWeight = "bold";
heading.color = "#FF0000";[code]...

View 1 Replies

ActionScript 2.0 :: Create A Menu In The Contextmenu Making It Possible To Create A Window?

Jan 26, 2007

It is possible to create a menu in the contextmenu making it possible to create a window (component�) ?

example:
function tab()
{
}[code]....

View 2 Replies

ActionScript 2.0 :: Movie Clip Path - Create An Empty MC And Then Create Another MC Within The First

Mar 21, 2004

OK frame 1 new fla and I type the following code:

[AS]createEmptyMovieClip("clip1",0);
clip1.createEmptyMovieClip("clip2",1);[/AS]

I have tried over and over again to get this to work but it won't! I want to create an empty MC and then create anoth MC within the first!

View 5 Replies

ActionScript 2.0 :: Create / Delete / Create Event Handlers

Oct 19, 2006

At the moment I create an onEnterFrame function to ease a movie clip into view. I then delete it. I want to be able to recreate a similar onEnter Frame function later to swoosh the movie clip out of view. At the moment weird things happen when I try and do the second onEnterFrame.I know I could put this all in the original onEnterFrame, but I don't wanna be wasting processor time doing an if statement every frame to work out if it's time to swoosh out the movieclip. Or should I not worry because that's negligible cpu time?

View 3 Replies

IDE :: How To Create Create Dynamic Variables?

Feb 24, 2009

I am trying to create dynamic variables. Lets say: I read a file where I have: building, restaurant and hotel.

[Code]...

View 1 Replies

ActionScript 2.0 :: Create A Custom Class (Testing) That Would Create A Box When An Instance Of The Class Is Created

Aug 29, 2007

I've been playing around with custom classes. My objective was to create a custom class (Testing) that would create a box when an instance of the class is created. I've tried three different approaches, however only (3) seems to be showing up. I'm just curious why (1) or (2) doesn't work?

Also is there a better approach than (3)? Since at the moment it's been created on _root. I hope the box can only be accessible through the instance. Since I'd like to incorporate the whole idea of public, private, encapsulation, etc.

[Code]...

View 3 Replies

ActionScript 2.0 :: Create A Rollover Button That Once Hovered Over Would Create The Snow And Once 'un-hovered Over'

Nov 29, 2007

create a rollover button that once hovered over would create the snow and once 'un-hovered over' (<---:s) the snow would stop falling. I tried creating the button but kept getting errors etc.... Im a total noob (been using flash for about 1 month) if you could give us a hand that would be great....

View 5 Replies

Business Card Maker - Create An "app" With Flash That Will Allow An Employee To Create Business Cards?

Feb 23, 2010

I am trying to do is create an "app" with flash that will allow an employee of the company to create there business card on the fly. The business card templates will have been pre approved and uploaded into the "system". The employee will be able to choose the card template that he likes the most and edit information on the card template such as Full Name, Title, Office Number, Cell Number, Fax Number, and Email. After he inputs his own information onto this template he will have the option to save the file as a pdf file, that will be used to print his business cards.

View 1 Replies

Flash :: Create A Separate Class Then Create An Object Of That Class Within The Main Class?

May 17, 2011

I'm new to Flash AS3. I started making a game and I am a bit confused. Let's assume that I want to create a game that has multiple levels/modes, how can I do this in an object orientated way?

When i create games in other languages e.g. XNA C#, i create a separate class then create an object of that class within the main class and run the game based on a simple statement.

[Code]...

View 2 Replies

ActionScript 3.0 :: Cannot Create Property - Error #1056: "Cannot Create Property _ld0 On Tsl"

Jan 28, 2009

[Code]...

I get "Error #1056: Cannot create property _ld0 on tsl." error.

View 4 Replies

Php :: How To Create SWF

Jun 11, 2011

I wish to create SWF (Flash) files with PHP but what is the best option for that nowadays? When I use Google I find all kinds of old pages about this subject, but not much is happening in this field lately, it seems..Ming is no longer part of PHP 5.3, and I can't figure out how to install it with PECL.('pecl install ming' doesn't work... but neither does any pecl package I try, so I guess I do it all wrong...)Is anybody actually using PHP to create SWF's or is this a bad idea anyway?

View 3 Replies







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