Play different cue point in a movie
I need to have an interface that runs several movies with cue points.
In the interface I need to have many buttons. Movies can be different with different cue points.
The first button should perform the first part of the movie (cue point from "a" to "b"), the second button must perform the second part of the movie (cue point from "b" to "c") and so on.
How I must set the script and wich objects is better to use.
Thanks.
It seems you're adding the MP3 as a legacy media object, which is strongly discouraged (and impossible as of Acrobat X).
MP3 files don't support genuine "cue points", but with Acrobat 9+ Rich Media annotations you can easily set a button to play a file from a specified offset time (in seconds) - by choosing a button action of "Multimedia Operation (Acrobat 9 and later)", then "Seek to time", and entering the offset in seconds from the start of the track in the bottom field of the dialog.
With legacy media it's possible to do a similar thing with JavaScript, by entering a settings:startAt value in the argument object passed to media.openPlayer(), though this is not documented in the latest SDK and can't be used when authoring in Acrobat X, it's explained in the SDK for version 9. For example this starts playback 2.5 seconds in, provided the external player supports that operation:
var args = { settings: { startAt: 2.5 } };
app.media.openPlayer(args);
Remove the existing script on your button and paste in the above code, changing the value as required. This assumes only one media object is present, if your existing code is more complex you will need to edit in the extra settings obbject by hand. With Rich Media, it's all done for you and there's no scripting involved.
Similar Messages
-
How to play a cue point with mixer
I know how to play a cue point of sound with the method:
sound(1).queue([#member: ... #startTime: ... EndTime: ... ])
How can I transfer the method of cue point using the mixer?
I need to have any hint about this because I must use both cue
point with playrate, at my begginer level of knowledge I know that:
1) I can't use "playrate" with "sound(1).play()" method.
With this method I can use cue point;
2) I'm trying to know If I can use cue point with mixer method.
With this method I can use "playrate" .
It is also for me important to know if it is possible or
impossible to solve this problem in director.
Thanks.iPhone 3gs, 4 or 4s?
With the former two, just drag the videos to the desktop iTunes and sycnhronize to your iPad. They will be synched to the stock Videos.
With the latter, you can either resize the video to 720p (or less) OR use a third-party app (It's Playing, AVPlayerHD, GoodPlayer being the best choices) to play it back. I'd go with the latter to avoid quality degradation and long-lasting reencodings. -
Using cue points to acrivate movie clips
I'm trying to write a simple piece of ActionScript that I can
adapt and re-use easily. (I'm not very good at programming and I've
been finding the "help" information very confusing.) I've devised
quite an elegant solution, if only I could get it to work!.
I'm using a single frame loop with an onEnterFrame
construction that deletes itself when the flv has finished playing.
I've set up a movie clip with various start points for animations
to be activated at cue points. I'm testing for the cue points in
the same frame, storing previous cue point names so that each cue
point triggers the corresponding animation once only. I know the
main logic works because I've tested it with trace statements to
prove that the cue points are actually being reached. The problem
is that the goToAndPlay instructions don't seem to activate the
movie clip as intended.
My best guess is that the stop action on the self-looping
frame is also stopping the movie clip as soon as it starts. Even if
that is true, I don't know how to solve the problem. And I'm sure
one of you much more clever people will know better. Here's the
code. Any suggestions?You can build out a menu by reading the cuePoints array in
the NetStream.onMetadata handler, or by using the MetadataEvent
with the FLVPlayback component (AS3). The simple thing for me to
say is to refer to Chapter 9 of my new Flash Video book. :) (see
link in my signature below.) -
How do you add cue points to a MOV file that Director 12 can read?
I have just downloaded the Trial of Director 12 - and unless I can add cue points to video that it can interpret - I am not going to be able to achieve what I need to. I've spent the last day and a half looking over the scant documentation provided by Adobe, and anything else I could find online - but the only answers that came anywhere near were for old versions using discontinued xtras.
Please can anyone help? - I am using Windows 7 64 bit - CS6.
Thanks in advance. :-)Probably too late for your project but...
You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
Apply this script to each of the 3 sprites.
property mySprite
on beginSprite me
mySprite = sprite(me.spriteNum)
end
on mouseUp me
case mySprite.name of
"videoPlay":
sprite("video").play()
"videoStop":
sprite("video").stop()
"videoRewind":
sprite("video").stop()
sprite("video").rewind()
end case
end -
How do I listen/respond to a specifice cue point by name in AS3?
I have this listener which runs a function as soon as a cue point is reached, but I can't figure out how to run different functions for different cue points.
center_flv.addEventListener(MetadataEvent.CUE_POINT, interactive);the following will show you the properties you can use:
center_flv.addEventListener(MetadataEvent.CUE_POINT, interactive);
function interactive(e:MetadataEvent){
for(var s:String in e.info){
trace(s,e.info[s]); -
Help - Using Cue Points to Play Movie Clips
I have a FLV, into which I have placed about 8 cue points. I
want a movie clip to play - (each movie clip is simply a snippet of
supporting text for the video) - when a cue point is "hit". I am
really quite baffled by most of the documentation that I have read
so far.
How can I do this? Many, many thanks for any support you can
give.
tommy53You can build out a menu by reading the cuePoints array in
the NetStream.onMetadata handler, or by using the MetadataEvent
with the FLVPlayback component (AS3). The simple thing for me to
say is to refer to Chapter 9 of my new Flash Video book. :) (see
link in my signature below.) -
How to jump to a cue point when your buttons are on a different scene??
hi guys!!!
well, im new here and more or less new with action script,
that´s why i want to ask you this:
im making a flash movie which is going to have a video with
cue points, what i wanted to do is to create a menu of buttons in
one scene let´s say scene 1 and the video is in scene 2, what
i want is that when you press one of the buttons who are in the
menu of scene 1 it takes you to the cue point on the video which is
on scene 2, think of it like one of those chapter selection menus
that you see on dvds, now my problem is that i don´t know what
i have to do in order to let the button know that i want it to jump
to the cue point, i´ve been able to do this if the buttons are
on the same scene where the video is, but when i try to make this
with the buttons on a different scene i can´t jump to the cue
point, so far i´ve only been able to make the button go to the
video and play it but it doesn´t go to the cue point, this is
driving me mad please can anybody here tell me how to do this??? i
have found hundreds of ways to do it with the buttons on the same
scene but none with the buttons on a different scene,
thanks!!!!Hi Anthony,
Thank you for your post.
It would be better if you share any link or actual composition with us.
Regards,
Devendra -
Cue Point To Load A New Movie...
Hi,
I'm a graphic designer. Actionscript is arcana for me now. It
has changed over time and I haven't had time to upgrade.
I would really appreciate a simple script that load another
flv when the current finish playing. I know this done by adding a
cue point at the end of the video, but even though I have tried, I
don't seem to find a way to do this.
Please, can someone give me a simple scrip that I have to
change only the name of the movie or tell me where I can find a
simple tutorial that teaches me how to do this?
ThanksPS, all of the frames, in the main movie, and the loaded
movie, (which is in the library) have stop actions with goto
next/prev frame actions on each frame
(just giving you a bigger picture in case it helps) -
Load movie and go to the specific cue point?
How can I load movie(1.swf) into the current file and make it go play the specific cue point (of the child's file)? Can someone please correct my code below?
on (release) {
loadMovieNum("1.swf",0);
// Seek to Cue Name Behavior
var c = vid.findCuePoint("second_start");
this.seekSeconds(c.time);
// End Seek to Cue Name Behavior1. no code following loadMovieNum("1.swf",0) will execute.
2. it's not clear there's an flvplayback component named vid anywhere. if there is such a component, where is it? in 1.swf? -
Using audio cue points in a flash movie
Hello all,
I am trying to put together some simple videos for my kids to
play on their ipods to study on the way to school.
I put together a real simple slide show, and prepared an
audio track. I polished it up in soundbooth, and included some
markers in the audio track. I was hoping to find a way to pause the
slideshow, until the marker is reached in the audio track. I have
done this before in director, but just cannot seem to figure it out
in flash cs3. Any help you can give would be appreciated.
Thanks, BobRHi,
The following AS2 code may help you
stop();
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
<your flv playback instance name>.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
<your button instance name>.onRelease = function () {
playback.seekToNavCuePoint("<your cue point name>");
<your flv playback instance name>.addEventListener("cuePoint", listenerObject);
\\replace all the placeholder things including the < >
Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
Thanks!
ps: pls mark this post as answered if this is of help to you -
Cue point to jump to next frame of movie
Hi. I'm a bit lost assigning an action script created
CuePoint (Entered in Paramenters Window for FLV media component) to
tell my SWF movie to advance to the next frame and thus call the
next video I want to throw onto that next keyframe.
I know this must be basics to most, but somewhere I'm
missing it. Once a CuePoint is created, how do I link that to
trigger an action?Thanks for reply. I was out of things for a week with flu.
Serious flu. Now I have to catch up. Grrrr.
Does that mean ("cuePoint" , ... needs to be replaced with
the actual name of the cue point to work?
+ The Cue point Parameters. What should they be set
as? -
Playing different Movie Clips onRollover?
I have several buttons that I would like to play different
movie clips
onrollover on the stage. So if button 1 is rolled over it
plays a clip
in the lower right corner and when rolled off it stops and if
button 2
is rolled over it does the same.
How is this done?
Thanks!This is the code I am currently using to play and stop a
movieclip:
myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
function playMc(e:MouseEvent):void{
my_mc.play();
function stopMc(e:MouseEvent):void{
my_mc.stop();
1. How do I drag my movie clips onto the stage, but not have
them
display until the button is rolled over?
2. Would this code just be applied for each button and
modified from
CLICK to OnRollover?
Thanks!!!!
kglad wrote:
> assign a rollover listener to button 1 and in its
listener function apply the play() method to your right corner
movieclip. likewise for button 2. -
In creating a playlist in iTunes of two different versions of a classical string quartet, can the movements be alternated in play order. In other words, Movement 1 by group A, followed by Movement 1 by group B?
In creating a playlist in iTunes of two different versions of a classical string quartet, can the movements be alternated in play order. In other words, Movement 1 by group A, followed by Movement 1 by group B?
-
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 -
Can you set up 2 apple tv's to 1 mac and 1 itunes account to play different movies to 2 tv's?
Can you set up 2 apple tv's to 1 mac and 1 itunes account to play different movies to 2 tv's?
sure the appletvs just access the shared iTunes lib on the computer thats all
it been a thing for ages before Apple TV came out where computers on the same network could also access each others shared iTunes lib
Apple TV does the same thing only problem could be if the network is not fast enough to transfer 2 streams of data at once
Maybe you are looking for
-
SCSI Bus doesn't work with OS 10
I recently upgraded my G3 Desktop with a Sonnet G4/500 ZIF Upgrade, a 120 GB Hard Drive and System 10.2.8. I partitioned the drive into three partitions, two less than 8 GB and the third with the remaining. I have been able to install OS 10 and it ap
-
Unable to update airport express. When connecting msg says to install 5.6, download and will not take install says it is not compatible.
-
Hello all, We have a fresh R12 install since May-09 and it's DB actual size is 250 Gb. We have estimated a 600 Mb daily growth and need to know if that's somewhere close to a normal install. To give you an idea of our installation: Modules -> GL, AP,
-
Hi, Could u tell me the Process of PR RFQ and PO. Tell me in Step by step. Thanks & Regards, Dhanush.S.T
-
Starting a program from an icon icon
Is it possible to create a application which is started by an executable icon, and if so how do you do this?