Event Cue Points
I am working with event cue points and I have it working with
action script and embedded cue points. What I am trying to figure
out is how to tie a specific events or movie clip with specific cue
points. Right now all the movie clips play whenever I hit any cue
point. I have not figured out how to tie specific cue points with
specific events. Anyone have knowledge of this that can direct me
properly. I would highly appreciate it. Thanks
First of all thanks for the reply. I didn't explain myself
well. I know about the stop frame on the first frame. My cue points
are working. I want to be able to play different movies cued up at
different times in the video. Right now all my movie clips play at
all the cue points. I want a specific movie to play at a specific
cue point then later in the video another different clip play at a
difffent time element in the movie. Thanks. I really appreciate the
help.
Similar Messages
-
Actions for flv event cue point
I have an flv playing back from component in a nested
timeline (an actionscript 2 proj) and I want at the end of the
video to gotoAndPlay the label"vidend" in the this timeline. I
embedded the the event cue point called "end" on the last frame of
video when I encoded it in my new CS3.I placed the following on the
first frame of the nested timeline... The video plays fine but does
not trigger the action. Any suggestions???...I 've found reams of
info on navigation events but this is the result of everything I
could find on the adobe site and I still not there.
I'd really appreciate any direction anyone can give me.
//leave this as is
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
//change this info..."end" is the name that you called your
cuepoint when
//you embedded it into the video
if(eventObject.info.name == "end"){
//tell your movie what you want it to do once your cuepoint
has been hit
this.gotoAndPlay("vidend");
//_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
//my_FLVPB is the name of your video on the stage, the rest
stays as is
my_FLVPB.addEventListener("cuePoint", listenerObject);I have an flv playing back from component in a nested
timeline (an actionscript 2 proj) and I want at the end of the
video to gotoAndPlay the label"vidend" in the this timeline. I
embedded the the event cue point called "end" on the last frame of
video when I encoded it in my new CS3.I placed the following on the
first frame of the nested timeline... The video plays fine but does
not trigger the action. Any suggestions???...I 've found reams of
info on navigation events but this is the result of everything I
could find on the adobe site and I still not there.
I'd really appreciate any direction anyone can give me.
//leave this as is
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
//change this info..."end" is the name that you called your
cuepoint when
//you embedded it into the video
if(eventObject.info.name == "end"){
//tell your movie what you want it to do once your cuepoint
has been hit
this.gotoAndPlay("vidend");
//_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
//my_FLVPB is the name of your video on the stage, the rest
stays as is
my_FLVPB.addEventListener("cuePoint", listenerObject); -
Hi,
I am streaming and flv file with numerous event cue points.
When each cue point is reached I attach different movie clips. The
problem is I need to add custom fast forward and rewind buttons to
the video. I tried using netStream.seek(netStream.time +5) which
works, but it skips over the event cue points. So when you stop
fast forwarding the wrong movie clip is attached.
Is there another way to fast forward the video and still have
the event cue points recognized?
Thanks,
Carolineif (index="introductionText")
I think you need double =, like this:
if (index=="introductionText")
-rich -
Using event cue points to add buttons
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. Its been a long day and I have exhausted all other options, otherwise I would not have asked on here. Thanks in advance. Oh btw using Flash cs 5.5 and as 3. thanks
i just added x and y locations:
Movie01.addEventListener(MetadataEvent.CUE_POINT,cuepointF);
function cuepointF(e:MetadataEvent):void{
trace(e.info.name); // this will display your cuepoints when their dispatched. you'll use if-statements below this line to add your buttons. eg,
if(e.info.name=="middle"){
addChild(button1); // assuming button1 is already created.
button1.x=639;
button1.y=140.5;
it worked with no errors
thanks again! -
I cannot figure out how to get a embedded event cue point to
advance to the next scene of a movie and have zero experience at
writing action code. The event cue point is on the last frame of
video and was encoded with Flash 8 video encoder. The application I
am working on has three scenes. The first and third have audio and
graphics. The second scene uses the FLVPlayback component to play
the flv file. On test movie, the first scene plays fine and
advances to the second where the video plays. When video is over
the movie does not advance to the third scene. Thoughts? Any
assistance would be greatly appreciated.I truly apperciate you assistance but I am still doing
something wrong. I am getting the following error:
**Error** Scene=Scene 2, layer=Actions, frame=1:Line 3:
Identifier expected
var.vidList : Object = new Object();
I changed the name of the FLV instance to "vid" and changed
the "vid.contentPath = peopleStyle.flv" for my video.
Here's the code.
vid.contentPath = video_PS.flv // put in your flv file here
var.vidList : Object = new Object();
vidList.Complete = function (){
nextScene();// this is what will occur when the end of the
video is reached
vid.addEventListener ("Complete",vidList)
T
hanks again for your help. -
I have actionscript below that works perfectly to trigger cue
points in the order they fall...
BUT...., for the life of me I can't figure out how to make
it trigger from a specific cue point name. I have EVENT cue point
named SPRING. I need that to trigger the timeline to go to and stop
on frame 20.
ANY HELP is greatly appreciated. I have researched this and
worked on it for two days now.
playback_media.contentPath =
"rtmp://flash20.audiovideoweb.com/ca70fls25122/_definst_/Bouquet_400.flv";
var playback_mediaList:Object = new Object();
var playback_mediaList:Object = new Object();
playback_media.cuePoint = function(cues) {
gotoAndStop(20);
playback_media.addEventListener("cuepoint",playback_mediaList);You don't even need a cuepoint to do this.
Using the FLVComponent or the VideoPlayer object, use the
"complete" event to execute code. You set up an event listener
object to listen to the video object (using
videoobject.addEventListener(listenerObject) ), and create a
function for the listener object to do when the "complete" event
occurs (such as listenerObject.complete = function() { do whatever
Here's a link to a useful pdf about the VideoPlayer object.
http://download.macromedia.com/pub/documentation/en/flash/fl8/VideoPlayer.pdf -
Controlling external information using cue points
Hello,
I am trying to change information on my site using cue points in my video. My video is in a flash quiz and I am trying to change my objects such as an ad or photo with these cue points. In otherwords, when a video begins, or when a cue point is reached the photo outside the video would change. I am currently using cue points to go to the next frame after the video completes, but I don't know how to make it change things outside the video. Thank you for your help.I'm sure there is more than one way to skin this cat, but here is what I use with NetStream video to load other .swfs (could be photos or other videos) at certain points in the main video:
ns.onCuePoint = function(evt:Object){
trace(evt.name);
trace(evt.time);
if(evt.name == "play_vid1") {
trace("YO!Loading wide_holder!");
wide_holder.loadMovie("rm/images/black_bear.swf");
if(evt.name == "play_vid2") {
trace("YO!Loading standard_holder!");
standard_holder.loadMovie("rm/images/sqis.swf");
in this case using an "event" cue point object embedding at certain times in the video.
Lots of info on the Web, here is just one:
http://www.communitymx.com/content/article.cfm?cid=124DB
Best wishes,
Adninjastrator -
I'm hosting an FLV (with embedded event cue points) using
Flash media server 3.5 in the vod directory. While using Flash 9,
within component inspector, if I use rtmp protocol in contentPath,
I can populate the cue points information in the cuePoints section.
If I use rtmpe, I get failed to load FLV. I've tried using CS4 and
could not retreive cue points at all. Any help would be
appreciated.I found that captions do reset from the starting point when I
press reply but cue points (events) don't. -
Hi,
I was hoping that someone could help me out with this. I have
a SWF that plays a FLV with actionscript cue points that when the
cue point is reached the timeline plays. I need the cue points
variables (the timecode) to be loaded from a text file because non
Flash users will be adding content. The problem is that I can get
it to work with putting the variables in the actionScript. But if I
load the variables from the text file the playhead will not play
with the cue point is reached. Below is the code that I am using.
Thanks in advance.I'm sure there is more than one way to skin this cat, but here is what I use with NetStream video to load other .swfs (could be photos or other videos) at certain points in the main video:
ns.onCuePoint = function(evt:Object){
trace(evt.name);
trace(evt.time);
if(evt.name == "play_vid1") {
trace("YO!Loading wide_holder!");
wide_holder.loadMovie("rm/images/black_bear.swf");
if(evt.name == "play_vid2") {
trace("YO!Loading standard_holder!");
standard_holder.loadMovie("rm/images/sqis.swf");
in this case using an "event" cue point object embedding at certain times in the video.
Lots of info on the Web, here is just one:
http://www.communitymx.com/content/article.cfm?cid=124DB
Best wishes,
Adninjastrator -
How to trigger embedded cue points
Hi all
I need to trigger embedded cue points. I have navigation cue
points, and I want the video to pause when it reaches the end of a
section. I also have an event cue point where I want to import
graphics. Im new to actionscript and dont know what code to write
to implement this. Ive looked at many, many websites but to no
avail, I just dont know where to start. any info or tutorials would
be very much appreciated as im working against a deadline.
thanks!Hi,
you would need the ADF Faces context to PPR an area on a screen, the FacesContext doesn't help. Also, PPR is a feature of ADF Faces and not the external context in JSF. I would try to issue PPR through JavaScript using the AdfPage object
http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12046/oracle/adf/view/js/base/AdfPage.html
What I would try is
- define an af:serverListener on af:document
- look the af:document up using JavaScript
- invoke a managed bean through serverListener
- have this bean issuing the PPR
See: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#DAFBJGAH
Note that you don't need the clientListener since you invoke the server listener from extern (your SVG)
Frank -
I need help with my event-based cue points with audio
Im having trouble with my video game project for my action script 3 class at school. Here is what i did, i made a game called Tailgate toss up. I filmed my character and rendered it in Adobe Premiere. I than brought my .mov file into After Effects and I put event-based cue points-
my first cue point at 0:00:03:13 called "loop"
my second cue point at 00:00:03:27 called "draw"
my third cue point at 00:00:05:24 called "bang"
my fourth cue point at 00:00:13:29 called "dead"
my fifth cue point at 00:00:14:29 called "You Lose"
my last cue point at 00:00:19:14 called "End"
Here is my action script 3 code
///first frame:
start_btn.addEventListener(MouseEvent.CLICK, startGame);
function startGame(event:MouseEvent){
gotoAndStop(2);
SoundMixer.stopAll()
stop();
///second frame:
stop();
var loopTime
var hitHim:Boolean = false;
var vConnection:NetConnection = new NetConnection();
vConnection.connect(null);
var vStream:NetStream = new NetStream(vConnection);
var client:Object = new Object();
client.onCuePoint = onCuePoint;
vStream.client = client;
var myVideo:Video = new Video(418, 480);
myVideo.y = 0; ///this adjusts where the video is, right now it is the size of the canvas which is 418,480
addChild(myVideo);
myVideo.attachNetStream(vStream);
vStream.play("michelle.flv");
var throw_bottle:Sound
throw_bottle = new Sound(new URLRequest("audio/throw_bottle.mp3")); //change to button noise, will add sound into ae file
target_mc.addEventListener(MouseEvent.CLICK, shoot);
target_mc.buttonMode = true;
target_mc.visible = false;
draw_mc.visible = false;
function onCuePoint(cuePoint:Object):void {
if(cuePoint.name == "loop"){
loopTime = cuePoint.time;
if(cuePoint.name == "draw"){
var randomLoop:Number = Math.random()*10;
if(randomLoop > 2){
vStream.seek(loopTime);
}else{
setChildIndex(target_mc, numChildren - 1);
setChildIndex(draw_mc, numChildren - 1);
target_mc.visible = true;
draw_mc.visible = true;
if(cuePoint.time == "5:24"){
draw_mc.visible = false;
target_mc.visible = false;
if(!hitHim){
vStream.seek(15);
if(cuePoint.name == "dead"){
vStream.close();
myVideo.clear();
gotoAndStop(3);
if(cuePoint.name == "end"){
gotoAndStop(3);
function shoot(event:MouseEvent){
throw_bottle.play();
hitHim = true;
///my third and last frame
playAgain_btn.addEventListener(MouseEvent.CLICK, playAgain);
function playAgain(event:MouseEvent){
gotoAndStop(2);
SoundMixer.stopAll()
stop();
When I have no audio it works perfectly, no problems. When I bring audio in i re-render it as a .mov file and bring it back into After Effects and add the cue points to it. Than i re-render it out again as a flv file. When i bring it into my flash project it will work when the looping variable does just one loop and my target will appear so you can click on it or not. But when the looping variable makes it loop 2 to 10 times it skips over the catching (the part of the clip if you clip the button) and goes directly to the dropping of the can, not giving you the option of clicking the button. So basically it skips the "draw" or second cue point of my game and goes to "You Lose" cue point.
Any suggestions?Hi,
The latest audio driver for your machine is on the following link.
http://ftp.hp.com/pub/softpaq/sp59501-60000/sp59649.exe
Regards,
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience -
Using cue points to trigger events on the main timeline...
Hi--
I have successfully placed an flv (video) file (progressive
download) on the main timeline of my movie with controls to play
and pause (Flash 8 Professional). So far, so good!
NOW TWO PROBLEMS: Does anyone know how to set it up so that
when a specific cue point is reached in the video, it triggers an
action on the main timeline? In this case, once the video is over,
I want the main timeline to gotoAndPlay frame 3. Specific script to
do this would be great!
The other action I'd like to happen is that when the video
begins, it targets a scrolling text mc ("text") in the main
timeline and tells it to gotoAndPlay frame 2.
Any advice would be GREATLY appreciated!!! Many
thanks!!!I usually start off solving problems with the livedocs, as I
recommend for anyone. The following link will take you to the
NetStream.onCuePoint handler. This is what you need.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
You can have this code on the main timeline. When the
cuepoint is hit, it will invoke this event handler and inside is
where your gotoAndPlay( ) should go.
Your other question about the text will get activated by the
same handler. Just have a conditional statement (if, switch, etc.)
to differentiate between the two events. The text itself can be
mask inside a movieclip.
Does this help? -
Cue point event to display text link in movie
HI -- This may be a fairly mundane question but I am having a
hard time figuring it out. I have a movie with several cue point
events. I would like a text link to be added to the right of the
movie when a certain cue point is hit. I would like the link to
stay in place and each time a new cue point is hit, a new link is
added below the last link.
I am stuck and can't seem to get this to work. Having a hard
time figuring out the action script. Any suggestions? I have
already followed the macromedia tutorials on this subject and am
just floundering.
thanks!Since you are storing the number as an 'int' and then converting that int to a String for display, then you shouldn't expect 0's to be added on if the number is currently 0:
1) curnum = 0
2) 0 key is pressed
3) curnum = curnum * 10 + 0 = 0 * 10 + 0 = 0
A real calculator wouldn't keep appending 0's... at least, not a simple calculator comparable to the one you are writing. If you want to append 0's, try this:
- Keep a count of the number of 0's pressed.
- If curnum is changed to 0 (by pressing clear, for example, or turning on the calculator), reset the zero count to 1.
- Each time the '0' key is pressed, if curnum is 0, then increment the '0' count.
- When you update your display, use the following logic: if curnum is 0, then display the number of 0's specified in the zero count, otherwise just display the value of curnum.
Jason -
Cue points - listener vs event?
I'm a little over my head here...
I have a movie that loads an external flv. In the flv I have
a cue point at
the very end to mark the end of the movie. Once the flv is
done playing,
I'd like to advance to the next frame.
There are a few posts here and there and I'm not sure if I'd
be better
testing for the end cue point with a listener or if it could
be an event.
Any help would be appreciated.
I'm using Flash 8 Pro/PCDavid,
>> There are a few posts here and there and I'm not
sure
>> if I'd be better testing for the end cue point with
a
>> listener or if it could be an event.
Cue points are events, no matter how you handle them. There
are three
basic categeories of object functionality: properties
(characteristics),
methods (things the object can do), and events (things the
object can react
to). An "end" cuepoint is something your video object reacts
to, so it's an
event. How you *handle* (that is, manage) this event depends
on how the
object was written. Some objects, such as Button, TextField,
and MovieClip
instances require event handlers. Some require event
listeners.
I blogged on this just the other day, so for what it's
worth, take a
look here ...
http://www.quip.net/blog/2006/flash/event-handlers-listeners
Hope that helps.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
Video cue point events, or similar?
Hi,
In flex, the video GUI control has something called "cue points" -- you can get event callbacks when video playback hits time points of your choosing. This allows you to synchronize the video with other parts of your GUI. Is there something in JavaFX that allows the same thing? If not, are there plans to have it? When?
thanks,
RobYou don't even need a cuepoint to do this.
Using the FLVComponent or the VideoPlayer object, use the
"complete" event to execute code. You set up an event listener
object to listen to the video object (using
videoobject.addEventListener(listenerObject) ), and create a
function for the listener object to do when the "complete" event
occurs (such as listenerObject.complete = function() { do whatever
Here's a link to a useful pdf about the VideoPlayer object.
http://download.macromedia.com/pub/documentation/en/flash/fl8/VideoPlayer.pdf
Maybe you are looking for
-
I really need help with this
-
Save As Image fails with PDF files
Using Acrobat X Pro, version 10.1.7. After the most recent update, I can no longer crop a PDF file and save it in any image format. The options are there, but when I select File > Save As > Image > PNG (or JPG or any other image format) and enter the
-
Mac OS 10.5.4 Won't Install
I put in the CD and i select install and then restart.....the computer turns off then on to the grey background with the apple symbol and the spinnning circle and it stays like that please help
-
Delete database in a hybrid environment with Office 365
Hi all, In order to get more free space in my Exchange Server 2010, I was thinking to delete a database after move all mailboxes that are in this database to office 365. Is this a good idea? Because deleting logs is not enough for me, I need more fre
-
Can I program my hyperlinks to target a new window?
When exporting interactive pdf files from InDesign, my hyperlinks target the same window and permanently direct my readers away from my pdf. Can I program my hyperlinks to target a new window? The reader must constantly hit the back button in order t