Populating a ComboBox with names of all Cue Points
I'm working with Flash CS4 and ActionScript 3. I have a .flv file with about 30 cue points created in Soundbooth. When I run my video my listener picks up the cue points as expected. What I am trying to do now is populate a combobox with a list of all the cue points in the .flv file. Seems like it should be a super easy task to access an array of all the cue points in the .flv - but so far no luck.
I am using FLVPlayback to run my video.
Appreciate any advice as to how to access a list of all cue points. Thanks.
Got it!
For anyone else looking, here it is:
// this assumes you have a copy of FLVPlayBack downloaded to and instanced as my_FLVPlybk
import fl.video.*;
my_FLVPlybk.addEventListener(MetadataEvent.METADATA_RECEIVED,
handleMetadata);
function handleMetadata(e:MetadataEvent):void {
var data:Object = e.info;
recurseTrace(data, "");
function recurseTrace(info:Object, indent:String):void
for (var i:* in info) {
if (typeof info[i] == "object") {
trace(indent + i + ":");
recurseTrace(info[i], indent + " ");
} else {
trace(indent + i + " : " + info[i]);
Similar Messages
-
Populating mx:ComboBox with database info
Ok, so I set out on a quest to populate <mx:ComboBox with
info from a database using Flex and Ruby on Rails. I had a really
hard time finding tutorials about this subject, but using
information from a large set of tutorials and tweaking the code
over and over, I finally figured out something that works.
My model is sourcer
My controller is sourcers and contains the followign code:
class SourcersController < ApplicationController
def create
@sourcer = Sourcer.new(params[:sourcer])
@sourcer.save
render :xml => @sourcer.to_xml
end
def list
@sourcer = Sourcer.find :all
render :xml => @sourcer.to_xml
end
def update
@sourcer = Sourcer.find(params[:id])
@sourcer.update_attributes(params[:sourcer])
render :xml => @sourcer.to_xml
end
def delete
@sourcer = Sourcer.find(params[:id])
@sourcer.destroy
render :xml => @sourcer.to_xml
end
end
My migration file had this code:
class CreateSourcers < ActiveRecord::Migration
def self.up
create_table :sourcers do |t|
t.column :sourcername, :string
t.timestamps
end
end
def self.down
drop_table :sourcers
end
end
and finally the application code contained:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" >
<mx:HTTPService id="listSourcers" url="
http://localhost/sourcers/list"
useProxy="false" method="GET"/>
<mx:VDividedBox x="0" y="0" height="100%"
width="100%">
<mx:Panel width="100%" height="300" layout="vertical"
title="Create/Update Denial Reasons">
<mx:Form>
<mx:FormItem>
<mx:ComboBox
dataProvider="{listSourcers.lastResult.sourcers.sourcer}"
labelField="sourcername"
creationComplete="listSourcers.send()"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
</mx:VDividedBox>
Now this can be condensed to the following important items:
<mx:HTTPService id="listSourcers" url="
http://localhost/sourcers/list"
useProxy="false" method="GET"/>
<mx:ComboBox
dataProvider="{listSourcers.lastResult.sourcers.sourcer}"
labelField="sourcername"
creationComplete="listSourcers.send()"/>
Things to note -
- if you leave out the labelField="sourcername" in the
<mx:ComboBox> tag you will "object: Object" in the dropdown
after compile.
- if you leave out the
creationComplete="listSourcers.send()" in the <mx:ComboBox>
you will get a dropdown that is blank, but is sized correctly. Also
something to note on this line is it can be included in the
<mx:Application> tag but then if you have multiple ComboBoxes
you're going to need it in each of the <mx:ComboBox> tags.
Anyway, I hope this helps someone.Hi,
Try logic similar to this instead:
listOfIds as String[]
for each element in
SELECT prsnombre
FROM nameOfYourTable
WHERE prsrut = 12486023
do
listOfIds[] = element.prsnombre
end
return listOfIdsThis logic assumes that "prsnombre" is the name of the attribute you want returned, "nameOfYourTable" is the table's name and "prsrut" is the attribute with one or more rows in the table that has the value 12486023.
The underscore characters in tables and columns are a bit wacky unless you are using something called Dynamic SQL. The above statement does not use Dynamic SQL and note that I did not include them in the logic. Not sure if this is your problem, but try it without the underscore characters if your logic uses the JDBC SQL syntax shown above.
Hope this helps,
Dan -
SMQ2 - Found a queue with name "*" and all other queues stuck in STOP state
Hi all,
We have a problem on the ECC side, on outbound asynchronous proxies. Sometimes a new queue appears on SMQ2 there with name "", and with status "STOP". At this time, all other queues stuck with STOP status... the only way of resetting all those queues to RUNNING state again is to delete the queue named as ""...
Some of you has any idea how this queue "*" appears there and stop all other queues?
thanks
robertiHi Ravi,
Is not only about one queue stopped... the problem is this queue named ""... with status STOP, all other queues stops too with it. The only way to make things work again is to delete the queue named as ""... the problem is to discover what or who is creating this stupid "*" queue. I think that this is a procedural error on datacenter, but they are saying is not the case... I'm investigating, but if someone else has any idea about I would appreciate
thanks!
roberti -
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 -
Need help with Audio controller or cue points
Haven't set up the actual project yet. Just trying to
determine best method. Will be using Flash Pro 8.
Goal: create an initial page showing a TOC that represents
chapters in an hour long audio piece. Clicking a topic brings them
to a certain point in the audio. Once leaving the TOC, the user
will see a still PPT jpg associated with that section of audio. But
they'll also need access to an audio controller so they can scrub
to different portions of the audio. Once they let up, the PPT image
needs to change -- if they went to a different section.
So at first I thought about a regular flash set-up with the
audio spanned throughout the timeline, PPT images set-up throughout
the timeline, and frame labels to jump to. But I couldn't figure
out how to set up an audio controller with this set-up.
Then I thought about a Flash Slide Presentation set-up using
a Media Playback component with the Media Controller component and
cue points. I've looked at some of the on-line examples of this and
they seem to work when playing forward but I notice that when you
scrub backwards that the images fall out of synch. It seems if you
have cues A, B and C and if you begin dragging from the C cue and
let up BEFORE the B cue the image displays B. It should be
displaying A though since your somewhere in-between A and B. But A
doesn't show unless you scrub back far enough to cross the A cue
time.
So what is the best method. It seems the latter if there was
only a way to calculate the time between the two cues. For instance
"if time is >A but <B then display A".
But the first example with the long timeline and frame labels
would be fine if there was a nice controller out there that I could
implement.
And remember I need to be able to jump to any spot in the
audio clip from the TOC menu on the first screen.
Thanks!Is it AVCHD, Mini-DV, or DVD? What format does the camera record to?
-
A limited edition of Jobs pic on the back cover with names for all country?
We will like to have a rememberance of Jobs pic and names on the back cover for a limited edition for every country that sell the 4S.
Can there be a way to put it up carving of a picture of Steve Jobs and name on the cover of 4S.
a Limited edition for every country at 1000 setsI'm sorry to say but this is a user-to-user forum with people who have issues with their devices.
if you want this to happen then leave a feedback at:
http://www.apple.com/feedback/iphone.html
It is unlikely Apple would do this in remembrance of him to put a picture of S.J on the iphone 4S. -
Using cue points to change a text box
Ok I asked a simlar question before but I am still having trouble getting it to work.
I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
import fl.video.MetadataEvent;
flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
function section2Cue(event:MetadataEvent):void{
for(var String = "section2" in event.info){
typebox.text = "Hello"; }
So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do thisOk, I tryed that code Basically I want to call upon each cue point individually and have an event for each one. So how i tell it to display this only when Cuepoint1 is reach and display that only when Cuepoint2 is reached. What data would help ?
Most of my code is just buttons to reach each cuepoint within the video. I got that to work fine.
I'll supply it anyways
import flash.events.MouseEvent;
// Assign a new skin to my FLVPlayback instance using ActionScript
flvplayer.skin = "player.swf";
flvplayer.fullScreenTakeOver = false;
//select section menu button
selectBtn.addEventListener(MouseEvent.CLICK, openMenu);
function openMenu(event:MouseEvent): void{
trace("working");
selectMenu.gotoAndPlay(2);
selectMenu.closeX.addEventListener(MouseEvent.CLICK, closeMenu);
function closeMenu(event:MouseEvent): void{
trace("closing");
selectMenu.gotoAndPlay(11);
//Cuepoint Buttons
selectMenu.sec1.addEventListener(MouseEvent.CLICK, section1Button);
function section1Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section1");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Orion Health EMR Lite Overview";
selectMenu.sec2.addEventListener(MouseEvent.CLICK, section2Button);
function section2Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section2");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Adopt Electrionic Patients Records Easily";
selectMenu.sec3.addEventListener(MouseEvent.CLICK, section3Button);
function section3Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section3");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Introducing Orion Health EMR Lite";
selectMenu.sec4.addEventListener(MouseEvent.CLICK, section4Button);
function section4Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section4");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Meet Mr. Smith - Patient Registration and Intake";
selectMenu.sec5.addEventListener(MouseEvent.CLICK, section5Button);
function section5Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section5");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Orion Health EMR Lite in the Exam Room - Clicnical Documentation and Orion Health HIE Integration";
selectMenu.sec6.addEventListener(MouseEvent.CLICK, section6Button);
function section6Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section6");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Working with Orion Health EMR Lite - Documentation";
selectMenu.sec7.addEventListener(MouseEvent.CLICK, section7Button);
function section7Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section7");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Order Entry in Orion Health EMR Lite";
selectMenu.sec8.addEventListener(MouseEvent.CLICK, section8Button);
function section8Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section8");
flvplayer.seek(cuePointInstance.time);
typebox.text = "ePrescribing";
selectMenu.sec9.addEventListener(MouseEvent.CLICK, section9Button);
function section9Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section9");
flvplayer.seek(cuePointInstance.time);
typebox.text = "ePrescribing";
selectMenu.sec10.addEventListener(MouseEvent.CLICK, section10Button);
function section10Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section10");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Quality and Utilization Reporting";
selectMenu.sec11.addEventListener(MouseEvent.CLICK, section11Button);
function section11Button(event:MouseEvent):void
// Replace video_instance_name with the instance name of the video component.
// Replace "Cue Point 1" with the name of the cue point to seek to.
var cuePointInstance:Object = flvplayer.findCuePoint("section11");
flvplayer.seek(cuePointInstance.time);
typebox.text = "Summary";
As for data? This is all I know about my CuePoints
Would the best way to acheive changing type is to change the way my movie clips are set up? Instead of telling it within the actionscript maybe telling it to go to next frame within a movieclip with the content? I don't know exactly how to word what I am trying to acheive but I'm trying!
thanks! -
Hi there,
I'm a total newb to this forum, so hello adobe premiere community! I'm perplexed by Adobes documentation on Premiere (and I'm sure I'm not the first ) anyway on the live documents page below:
http://livedocs.adobe.com/en_US/PremierePro/3.0/help.html?content=WS9390BED7-9466-46ea-A0E A-3240F1AFC36C.html
it states that:
“The cue point data in the Chapter field of a sequence marker in Adobe Premiere Pro will be encoded as Flash XML. For the XML protocol required, see Flash Help.”
Which is great…except this information doesn’t exist seemingly in either the Premiere documentation or Flash either for that matter, but as I’m interested in working with the chapter/marker area in Premiere – should I really be told to go off and search the documentation for another application, probably not! What would have been useful would have been a code snippet saying you do it like this, but of course, that would make things too easy!
Basically, I understand that in After FX you can add Flash marker information specifically for interpretation when exporting to Flash Video (i.e. name, type and parameters etc) and it suggests that you can do the same above in Premiere CS3 using some kind of concatenated string in the chapter area…it just doesn’t tell you how anywhere seemingly – WHY ADOBE!
Currently when I export markers as cue points based on the advice in the page above, anything I put in the chapter section to force Premiere to create a cue point is converted to a string, which becomes the cue point ‘name’.
This cue point name is then automatically appended to the ‘time’ the marker was inserted at and is always encoded as type ‘navigation’, with no obvious means of adding ‘parameters’ into the equation.
So (finally) does anyone know if you can insert this information into the chapter area for correct interpretation by flash (i.e. thus allowing you to choose between either 'navigation' or 'event' types, and pass as many 'parameters' as you wish etc) or are you just limited to supplying a name, and it being automatically set to the navigation type with no parameters?
I’m sorry for this long essay but at least the issue is well defined for you to answer, honestly any help you can provide what so ever would really be most appreciated!
Best regards,
Kat
PS – I have utterly no knowledge of XML either just in case you were wondering – and my only interest in XML is getting this basic information encoded into the FLV file from Premiere Pro CS3! Please help, pretty please with daisy’s!!!Hi dradeke,
Thanks for your reply, which is indeed useful as clearly Adobe have made this task easier and less obscure in CS4 by adding simple interface functionality, however I'm stuck with using CS3 for the moment. Its not majorly a problem as the video material in question can be exported uncompressed then setup with cue points using the Flash encoder as an alternative (i.e. or even After FX CS3 also) which both provide the same features as Premiere CS4 seemingly. It is just that it would be much easier to be able to drop in simple markers whilst working with Premiere CS3, as this is what we are going to be using primarily, I just wondered if anyone knew how to invoke this in CS3 - its possible you can't, the documentation is vague at best!
However I really appreciate your response and help, thanks -
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? -
I just can't understand it. I've read though the help docs
and looked at numerous code samples but i just can't find out what
the hell i'm doing wrong. Help!
ok. so on my stage i've got this.
<mx:VideoDisplay
x="438"
y="11"
width="400"
height="300"
id="theVideo"
name="theVideo"
playheadUpdate="updateTimer();"
ready="theVideo_init();"
cuePoint="theVideo_cuePoint(event)"
/>
on my application initalize, i've got
theVideo.source = "edit.flv";
..my video plays fine.
I've got a button to set up cue points.
private function updateCuePoints():void {
var i:int = new int;
for(i=0; i<1; i++) {
var cueObj:Object = new Object;
cueObj.cueTitle = "cue1";
cueObj.cueTime = 10;
createCuePoint(cueObj.cueTitle, cueObj.cueTime);
private function createCuePoint(cTitle:String,
cTime:String):void {
var cuePt:Object = new Object(); //create cue point object
cuePt.time = Number(cTime);
cuePt.name = cTitle;
cuePt.type = "actionscript";
theVideo.cuePointManager.addCuePoint(cuePt); //add AS cue
point
this is where i get the error ...it insists i'm referencing a
null object or method, but all the livedocs says otherwise. Also,
that button is a manual click until i get this bloody thing
working. (and no, its not clicked before the video is playing.)-
Of course, I have my imports too..
import mx.events.CuePointEvent;
import mx.controls.videoClasses.CuePointManager;
somebody PLEASE help :<Howdy,
Firstly, I haven't got to video in Flex yet, but here's a
crack at it for you.
Looking at:
cuePt.time = Number(cTime);
cuePt.name = cTitle;
cuePt.type = "actionscript";
According to the
CuePointManager reference, the function
addCuePoint() requests the parameters:
array - the Array of all cue points.
index - the index into the Array for the returned cue point.
Therefore, if I'm right, it's giving you the error because it
has no idea what you mean by
time, name or
type.
Hopefully, that helps you.
Let me know how you go, and if I'm off the mark, I'll give it
another look for you.
Cheers.
Oz -
Premiere, Media Encoder and Flash Cue Points - bug?
I've been encoding a number of FLV On2 VP6 videos recently and using the new Media Encoder. For this project we need flash cue points (nav and event). I've discovered some weird things in Media Encoder - it's been duplicating cue points (or maybe the export from Premiere is buggy with cue points?).
I've seen the first couple of cue points getting duplicated with the first letter of the name capitalised and moved a frame on in time - very weird.
Anyone else seen this behaviour?
Paul.OK, I think I've found out why - not a bug - user misunderstanding!!! (although tricky to find!)
Some of my source footage was created in After Effects. It turns out that there were a couple of cue points in the AE comp that had similar names to the cue points in Premiere - the AE comp was saved out to an AVI (with metadata enabled I think).
Premiere wasn't seeing this metadata and the cue points, but Media Encoder was (and it couldn't be deleted in ME - just kept coming back).
So - moral of the story - be careful with metadata!!!
I guess that Premiere should really show this embedded data though?
Paul. -
FLV Cue Points from Soundbooth
I am having a strange issue. I have several audio files that I have opened in Sounbooth and added cue points. I saved the files as FLVs. Upon importing into Flash CS4 with the FLVPlayback component, my cue points are not loading. The component inspector shows "cuePoints: None". In a test I did before the New Year, the cue points loaded fine. I have no idea what I did differently this time. Any ideas? I know I can add the cue points in the FLVPlayback component, but I'd rather be able to do it in Soundbooth.
Thank you!This is an annoying work around, but here's how I got the cue points from Soundbooth to be recognized in Flash:
Opened the original MP3 in Soundbooth
Added my markers/cue points
Saved As ".AVI"
Saved again as ".F4V" (not FLV)
Imported the F4V into the FLVPlayback component
NOTE: If you add a new cue point to the FLV and try to resave as the same file name, the latest cue point will not import into Flash. I had to do yet another save as and pick a new file name.
Going to try to eliminate the AVI step, but note hopeful.
Hope this helps others. -
I have an FLV loaded into a video player component. The FLV
has embedded cue points, from Flash video encoder:
<mx:VideoDisplay id="vidScreen"
cuePoint="cpHandler(event)" />
And the handler:
private function cpHandler(event:CuePointEvent):void {
Alert.show(event.cuePointName);
It works, since the Alert boxes open on cue and show the name
of the cue point. However, if I try to get the array of cue points
with something like trace(vidScreen.cuePoints) I get null. I need
to get the array, since I want to do something on each of the items
in the array of cue points. What am I missing here?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 -
Hi all,
I need to use cuepoints on a quicktime video and I'm having
problems implementing them. I have tried two ways
- The first way was Inserting cuepoints as text layer in
quicktime pro. I have inserted the cuepoints into the video file
and they are working fine in quicktime but when I import the video
into director it tells me I need to enable the preload function on
the qt video. I have read a number of tutorials that tell me to do
this in the movie info pop up. However the 'show movie info' in my
versoin of quicktime (Pro ver. 7.1.6) is an info window with no
clickable or editable options so I can't perform this task.
- The second option that I explored is Mpeg Advance
link
This xtra seems to install properly and it appears in the
options and functions to a certain extent... the problewm with it
is that when it imports a video all I get is a blank screen
(instead of the actual footage) - the same footage imported as a
regular qt movie displays correctly.
Really running out of ideas here. Any suggestions greatly
appreciated.
IreneI've set cue points for videos based on specific times
before. First I
create a text member with a list of cue point times, then I
have a frame
script like this which creates a list of those cue points:
global TimeChange, i
on exitFrame me
-- Set up a clean list to store time changes in based on cue
points --
TimeChange = []
-- Fill the Time Change List with values --
repeat with i = 1 to
member("VideoMarkerList").text.word.count
add TimeChange, ((the ticks) +
(float(member("VideoMarkerList").text.word
)*60))
put float(member("VideoMarkerList").text.word)
end repeat
-- Set the starting cuepoint for the "TimeCheck" behavior to
look at
set i = 1
end
Then on any frame I want to wait for a cue point on, I have
this script:
on exitFrame me
global TimeChange, i
if (the ticks)<TimeChange
then
go to the frame
else
if i < TimeChange.count then
i = i + 1
end if
go to the frame + 1
end if
end
Hope that helps,
Matt -
Can you link flash buttons to a embedded cue point
I have a video that I exported to flv with 10 embedded
navigation cue points. I also have 10 buttons in a flash file that
I would like to link to those cue points. I can't find any info on
how to do that. I see info on making a cue point make a event
happen, but nothing on linking a button to a cue point. Basically
I'm looking for the same interaction as a DVD were the user clicks
on a chapter they want and the video goes to it.There are players that will play a swf with volume mute stop start that sort of thing I downloaded one a couple of years ago I don't recall where I got it.
Maybe you are looking for
-
today the first time ,my phone (E51) advanced the time by one hour and in the settings of clock ,my region changed from GMT2+ TO GMT3+, why is that?? although the network operator cant change my time, cos this option is disabled, is it a defect in my
-
Use of MYSQL when installing Business Objects Enterprise XI 3.1
Hello Team, I am quite new Business Objects and right now I am using Business Objects Enterprise XI 3.1. when installing BO XI 3.1, I was prompted to select the database server to be created. I chose MySQL. Now, I am curious to know the pupose/involv
-
i got a up date on my phone ,,,, but lost all my phone numbers ,,,,how do i get them back
-
Different display aspect ratios between Mac and PC
I am working with some NTSC DV .mov files (720x480). When I view them in OS X Lion (Quicktime 10.1), the Quicktime Movie Inspector shows the video correclty at 4:3 Aspect Ratio with the correct dimensions of 640x480 (using square pixels). However, wh
-
Submit report = raise exception class
Hello experst, i have to call a report from one of my programs. In this report it can happen that an error occors. So there i call RAISE EXCEPTION TYPE zcx_exceptionmng EXPORTING t100_msgid = 'QY' t100_msgno