Event cue??
I have an event structure with a "drag ended" event for my graph. Everytime when the cursors of the graph (2 separate cursors on the graph) is dragged and dropped, the code within the event case will execute.
If the user does two "drag ended" events back to back, and the code inside the event case has not completed after the first event, would the second event be ignored? If so, is there a way to get around this? Actually, I only want the multiple event to occur before the event case is execuate. Is there an easy way to do this? Thanks!
Kudos and Accepted as Solution are welcome!
jyang72211 wrote:
I have an event structure with a "drag ended" event for my graph. Everytime when the cursors of the graph (2 separate cursors on the graph) is dragged and dropped, the code within the event case will execute.
If the user does two "drag ended" events back to back, and the code inside the event case has not completed after the first event, would the second event be ignored? If so, is there a way to get around this? Actually, I only want the multiple event to occur before the event case is execuate. Is there an easy way to do this? Thanks!
Use a dynamic event and unregister it when it is no longer useful?
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
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 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. ThanksFirst 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. -
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 -
Disabled button fires events to event structure
Hi all,
I was trying to disable a Button on the frontpanel by using its enabled property while the event was executed. The ide wa not to create more events of this buttopn while its fucntion was executed. However thsi did not work.It was creating events even though it was greyed out.
I troied two different versions:
1) in the event case of the button (value changed) in a sequence I first dispalbned the button, execuded the code and then enabled it again
Result: All events were generated even though the button was greyed out
2) in the event case of the button (value changed) in a sequence I disbaled the Button and then started a second event. The Second event executed the code and then enabled the Button egain
Result: Even though the Button was greyed out events were generated
3) in the event case of the button (value changed) in a sequence I first dispalbned the button, execuded the code and in the timeout event I thenenabled it again
Result: No additional events were generated
it seems that the enable state of the button is analysed at teh time when the event is execute din teh event case but not at the time when it was created?
So I Tried the Time Input of the case expecting that it woudl give me a time stamp of the time when the key was pressed - but instead it gave me the time point when teh event was executed...
Teh only othe rsolution was to set teh cursor to busy (however I dont want to see the changed cursor during the busy cycle)
So how can I make shure that no additional events are fired during the time teh code of the Button s executed?
Thanks for any help,
Rainerto altenbach:
The evet takes about one or two seconds - I checked the behaviour as shown in the attached examples with LV 8.5, LV 2010, TV2011, LV2012 - allways exactly the same behaviour.
It does not make any difference weather you use switch when pressed or latched when pressed.
It does not make any difference weathe ror not you tag "Lock front panel" for that event
to sth:
> If you disable a front panel control (ie the button) you cannot click on it and a value changed event will not be
generated.
This is my experience so far as well, but if you disable and enable the control within the same event it does not work (see attaced example 1) and 2). It only works if you do the enable in the timeout event.
> The time stamp from the event case left hand property is the time of the event not the time of execution.
> If you ask for the timer value inside the event case it will be the time of event case executing.
In the attached exampel this is not the case. The time differecne between the Time input on the left and the Tick count
placed in the event is 0 for all events generated whil the button is supposed to be disabled.
As I wrote before, the explanation I have for this behaviour is that the events are generated by windows weather or not
the button is disabled and they are queued to the event cue. Only when the event is handeled LabVIEW tests weather
or not the button is disabled and ignores the event in case it is disabled. If the Disabling and enabling is done
withim the same event the button pressed events are added to thw event queue and the button is set to enabled before the next event (button pressed while it shoul be disabled) is handeled. When that event is handeled the button is enabled again (by the original event) and therefore the evenet is not ignored (because by the time of execution of the event the button is enabled again).
If the button is enabled in the timeout event instead of the button change value event all event in teh queue are executed before teh timeout event. At their time of execution therefore the button is steill disabled. Only then the timeout event enables the button again.
If the vi is set to busy (sand clock) this is activating actually a windows function/property and no events are queued to teh event queue by windwos. Therefore no button change event is added to teh queue.
Funtciomn of the 3 attached Vis (LV 2010):
Run the Vi, then press the Test button once - when it is greyed out click it a few more times. The test button value
changed event has a 2 second delay. You will see the event counter increase, and you will see the time difference
between the time property on the left of the event and the tick count vi whci is displayed in the waveform chart.
DisableButton 1: Disable and enable are ste in teh same event
DisableButton 2: The button is disabled then a second event is called to do the work and then enable teh button again
DisableButton 3: The Button is disabled in button change value event and it is enabled again in teh timeout event.
Attachments:
DisableButton1-3.zip 29 KB -
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 recorded a screencast with Acrobat Connect and wanted to do some simple edits with it in Premiere Pro. I'm having trouble figuring out how to get reasonable output size.
My original single clip is a 1920x1088 FLV, allegedly at 7.88fps. It is 17 megabytes.
I placed it into a 1440x1088 sequence (because I wanted to crop the right edge off).
I made a handful of cuts with the razor tool, deleted some sections, ripple deleted the empty space.
I also sped up one clip 143%.
(I experimented with trying to record a voiceover track, but Premiere crashed 2 or 3 times and I couldn't get the the "Enable Track for Recording" button in the Audio Mixer to work, so I gave up on that).
When I export my sequence to FLV, with On2 VP6 frame rate "same as source" bitrate VBR/One Pass/Low, I get a 59mb file.
But my original was 17mb.
What am I doing wrong?
Selecting 8fps pops up a red stopsign, "Adobe Media Encoder: Property Data Invalid!"
What am I doing wrong?
If i lock the output framerate to 8fps, I get a 44mb file.Well of and by itself, video is NOT interactive. There is no way to make the video file be interactive. You can however embed cue point signals into the video and listen for those events (cue points) or just listen for when the video is complete.
But the fact that you listen and detect those events, still doesn't actually do anything, you still need some actionscript that says "when the event is detected, do this....".
So you'll need to do some editing of the .fla that includes the video player (which gets published as the .swf file).
If you don't have the .fla file, I don't see how you can make it work.
But since there are a lot of ways to create flv video players, why not just create a new .fla and then code in what you need?
Or perhaps try using a 3rd party video player that allows for cue points, can detect and act on the cues.
http://flowplayer.org/documentation/events/cuepoints.html
On the other hand, if you were using Flash NetStream method to play the video, it's simple to redirect at the end of the video... but you still need to edit the .fla file.
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
trace("Video complete")
ns.seek(60);
// ns.play();
ns.pause();
// gotoAndStop("end");
getURL("http://www.cidigitalmedia.com/video.html", "_blank");
Reading thru the code:
When player detects that the video has ended:
trace the message "Video complete"
then reset the playhead to 60 sec into video and (play or) pause the video.
could jump to (gotoAndStop at) another part of the main timeline (but that is commented out for now)... instead
getURL... go the the web page shown and open in a new window.
What you are asking will take a little actionscript is all, but you need the .fla.
Best wishes,
Adninjastrator -
Playing two FLV files simultaneously
Hi all --
Need a little help with my video player. Currently, I have
one video (with an alpha channel) playing in the foreground.
Embedded in that video are event cue points. When a specific cue
point is reached, I would like a second video to start playing in
the background. I've been unable to get this to work.
I know my cue points are being recognized because I am doing
a trace and they pop up. However, my video does not play.
I may be using the wrong method, but currently I am using a
second netConnection to play the video into a second video object.
This obviously doesn't work.
Please help!Thanks for your help everyone... here's the code. I'm trying
to get a video to start playing when cue point "3" is reached in
the first video... -
Are AE CS3 cuepoints readable by Flash 8?
I'm having difficulty getting Flash 8 to read event cue points encoded with AE CS3. I have no such problem with the Flash 8 video encoder. Can anyone here shed some light on this?
thanks, Craig UmanoffNot really. This should work just fine as its basically using the same components. I could only imagine that something frowns on the marker comments not having the right data in them, but beyond that I'm at a loss as to what may trigger this misbehavior.
Mylenium
Maybe you are looking for
-
Is it possible to view VIs remotely on windows 7 if VI was built with LabView 8.2?
So I know i'm probably dealing with software compatibility issues here, BUT, I wanted to make sure every option was exhausted before considering the idea of upgrades. Im using LabView full development system 8.2 on windows XP 32bit os. Currently,
-
Invoice line items report from DSO compared to Infocube (in HANA)
Hi Folks, As you know Invoice line items are very granular level information. We are facing performance issues on reports based on the Infocubes to display this information. We are migrating to HANA and looking for options to improve the performance.
-
Flex 3: Update SQLite Table Structure?
I don't have any issues with creating my table when it doesn't exist but I have a quesion about updating the table structure. For instance I want to add two new fields if they don't exist. Does anyone have an example of updating table structure? Pr
-
System Copy of R/3 4.6C using R3LOAD ( Error )
Hi, System Copy of R/3 4.6C using R3LOAD. System Environment Source: R/3 4.6CSR2 4.6DKernel Oracle8 HU-UX Target R/3 4.6CSR2 4.6D-EXT Oracle9.2 HU-IA64 R3SETUP -f CENTRAL.R3S Setup was started, and after the parameter input has been given, R3SETUP-f
-
Computer authorized, purchased songs won't sync...
I just recently reinstalled iTunes back on to my computer (Windows Vista) and now the purchased songs will not transfer to my iPod. I keep getting asked to authorized my computer. It says I have successfully authrized it but the songs still will not