ActionScript 3.0 :: Using SeekToNavCuePoint With Custom Cue Points?

Mar 20, 2012

i have custom flvPlayBack player, i want to do like add Custom CuePoints using ActionScript and making one button Event , On click of that button , Flv should seek to that CuePoints added using ActionScript .  I am using below code to do that.

var rtn_obj:Object; //create cue point object my_FLVPlybk.source = "sj_clip.flv";my_FLVPlybk.addASCuePoint(0, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(4, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(8, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(12, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(16, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(20, "abs",CuePointType.ACTIONSCRIPT);my_FLVPlybk.addASCuePoint(24,

[code]....

I thought ,this code should work properly.. but when i run this code , it give me next cuePoint which i find using findNextCuePointWithName() method but it does not seek to that point , which i thought seekToNavCuePoint() method should do.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Use SeekToNavCuePoint Outside Of A Component?

Mar 1, 2010

I'm trying to add a button which navigates to a cuePoint, but am getting this error:
 
TypeError: Error #1006: seekToNavCuePoint is not a function.
at videocue_fla::MainTimeline/buttonFunction()

I can make this work when using the FLVPlayback component, but when trying the same thing on a NetStream instance it chucks up that error.
 
Is this code no good for NetStream? Or is this not even possible? It doesn't work even after the cuePoint has happened.
 
Testmove.addEventListener(MouseEvent.CLICK, buttonFunction);function buttonFunction(evt:MouseEvent):void {client.seekToNavCuePoint ("Testmove");}

View 5 Replies

Flex :: Draw Custom Bullet Points?

Mar 29, 2010

how I can draw Bullet Points using Flex? instead of using image for 1, 2 and 3?

View 2 Replies

ActionScript 2.0 :: Custom Button Work With Cue Points?

Nov 26, 2009

I have a FLV with two Cue Points that I have created:
1. Music
2. Remote Access
[URL]. So this code works perfect with a componant button but I can't make it work with a normal one. Why? What is so different about them. Why can't I make a normal button and give it the same name "my_button". Why can't I make a custom button work?

View 1 Replies

ActionScript 3.0 :: VideoError:1003: Invalid Seek At Fl.video::FLVPlayback/seekToNavCuePoint()

Sep 4, 2009

I am using an flv file with navigation cue points.  When I try clicking on a button I created to go to "EndOfMovie" I get the following error: VideoError: 1003: Invalid seek at fl.video::FLVPlayback/seekToNavCuePoint()at vectorVideo_fla::MainTimeline/skipToEnd()

[Code]...

View 1 Replies

Actionscript 3 :: Calculating Evenly Distributed Points On A Line Of Points

Oct 3, 2011

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.

View 1 Replies

AS3 :: Points & Lines - Getting Lines To Follow Points As They Are Dragged?

Jul 21, 2010

I 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]....

View 1 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

Actionscript 3 :: Flex 4.5 Not Listening To Custom Event Dispatched In Custom Class?

Nov 4, 2011

I have the following situation:I have an event handler, that displays small messages in my application's statusbar.These messages get passes through by dispatching events from custom components.A simple message could be like "HTTP Error" or so.Now, the main event listener, in the main application file, listens to the event dispatched by any custom component,but seems to refuse listening to events dispatched by custom AS classes.Here is my code for the custom event:

package main.events
{
import flash.events.Event;[code]..

So to sum it all up:

- The event listener listens to the custom event dispatched by any custom component.

- The event listener does not listen to the custom event duspatched by an AS class.

Those who wonder, the event really gets dispatched, that's why I added a trace call.

View 2 Replies

Flex :: Put Custom Code In A Custom Component In Flash Builder?

Dec 11, 2010

In the main file, I would write[code]...

But if I want the component to have that behaviour innately, where do I write it in the mybutton mxml file to have it reference itself?[code]...

View 2 Replies

ActionScript 3.0 :: Custom Property With Custom Event- A Quick Way?

Aug 25, 2009

i am a bit embarassed to ask this, but i do this so much i have to ask. Occasionally, i need to pass/handle custom events on the fly. Rather than creating a whole custom event class, i will just do something like

Code:
myObject.dispatchEvent(new Event('thisCustomEvent'));
//and then handle it later

[code]....

View 12 Replies

Flex :: Access A Custom Property In A Custom Class?

Jan 25, 2010

I couldn't work it out yet...

package components {
public class templateSelection extends VBox {
static public var tempSelectionBag:Dictionary;

[Code]....

I want to have a custom class tempSelection with a Dictionary as a public accessable property of that class. If I use this code, the compiler tells me:

1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit- onstante:Dictionary

Which translates to:

Type was not found or was not a compile-time constant: Dictionary

View 1 Replies

Css :: Add Custom Style Property To MXML Custom Component?

Jun 22, 2011

I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :

[Code]...

My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.

View 2 Replies

Flex :: Dispatching Custom Event From A Custom Component?

Sep 8, 2011

I have a custom Flex 4.5 component (to be used in a List) -

Game.mxml (represents a clickable playing table in a card game):
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer [code].......

But I never see the "game clicked: " trace. Does anybody please know why? I'm probably missing something minor, because I can see the "Clicked: 8946" trace.

View 3 Replies

Flex :: Disptaching Custom Event From Custom Component?

Feb 16, 2012

This is similar to the question asked here. I am dispatching custom event "ShopEvent" but i am getting error "Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent"Note: Error is thrown from the parent custom component (3rd code snippet), I have added more details thereThis is my custom event. See the first constant, I copy pasted the event name in custom components.

package com.events
{
import flash.events.Event;

[code]......

View 3 Replies

ActionScript 3.0 :: Custom TreeItemRenderer Removes Custom Component?

Jan 16, 2009

I have created custom TreeItemRenderer in which i am trying to draw colored Hbox bar at each node except root. Intially when i click on root node it opens first child node with bar but when i open leaf node it does not showing bar and removing existing bard from other few child nodes. Its calling itemrenderer on mouseonver eventhough i have disabled.Attaching Code here

package Adodbe.renderers
{
import flash.display.DisplayObject;[code].....

View 0 Replies

Actionscript 3 :: Why Won't Visual Elements Display Inside Custom Component Extended From Another Custom Component

Sep 6, 2011

I created a custom MXML component, TurboContent, that extends the NavigatorContent class:

<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

[Code].....

In this case, the 'myButton' component never shows up, but all the elements of the base component do (3 buttons and a datagrid).

View 2 Replies

ActionScript 3.0 :: Create Custom Event Class If I Dont Need To Pass Custom Property With That Event?

Dec 28, 2009

Is there a point of creating custom event class if i dont need to pass custom property with that event?

View 3 Replies

F8 Can't Edit FLV Cue Points

Jun 18, 2008

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

[CS3] Can't Edit FLV Cue Points

Jun 18, 2008

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

Can't Edit FLV Cue Points

Jun 18, 2008

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

ActionScript 2.0 :: Using Cue Points In FLV's?

Jul 17, 2007

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

ActionScript 2.0 :: Skipping To Cue Points With FLV?

Apr 28, 2009

I'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 Replies

ActionScript 2.0 :: Using Cue Points With NetStream?

Mar 9, 2010

I 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]...

View 1 Replies

Use External XML To Add And Set Parameters For AS Cue Points?

Dec 3, 2008

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 Replies

Why Registration Points Are On Objects

Jun 18, 2009

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

ActionScript 3.0 :: Getting A Cue Points Time?

Aug 11, 2009

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

ActionScript 3.0 :: No Access To Cue-points

Dec 2, 2010

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

ActionScript 1/2 :: Navigating From Cue Points In A FLV

Sep 24, 2011

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

Professional :: Looping With Cue Points?

Dec 17, 2011

I 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]......

View 3 Replies







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