a loop with cue points, round 2

OK, so I've done it before, and it worked.  It should be as simple as copying the code and rename the FLV Player, but I get an error "invalid seek.  As I said, it worked on previous sites, I did, if any explanation would be great.  I'm trying to get a video replay and then looped around the middle of the video and play at the end in a loop continues.   The only difference I see is that on my other site, it is live from my ftp.  This should not make a difference, as apposed to be local, does?  I also use embedded cue points.  Thanks again.  Here is the code:

Stop();

Import fl.video.MetadataEvent;

Movie.addEventListener (MetadataEvent.CUE_POINT, loopFunction);

function loopFunction(e:MetadataEvent):void {}

If {(e.info.name=="introEnd)"}

Movie.seekToNavCuePoint ("introMiddle");

Movie.Play ();

}

}

Draw your cuepoints to confirm there is a named introMiddle

Tags: Adobe Animate

Similar Questions

  • using cue points

    What is the proper syntax and functions to address within a flv cue points and what do average parts and react?

    I want to have the flv files with cue points in them, I can get to do other things in the swf file and I want to know how to set up on both sides, including which must import, what type of events to capture benchmarks and other...

    my mistake.  use:


    Import fl.video.MetadataEvent;

    flv.addEventListener (MetadataEvent.CUE_POINT, f);

    function f(e:MetadataEvent):void {}

    {if(e.info.Name=="wingsdown")}

    do something with e.info.WINGSDOWN elsewhere on stage

    }

    }

  • Problems using Cue points in video loop

    OK, so I want to use landmarks to navigate the video.  First, I simply loop the video of the end of the beginning.  I get an invalid error 1003 search.  Here is my code.  Any help would be appreciated.  Thank you

    Import fl.video.MetadataEvent;

    Movie.addEventListener (MetadataEvent.CUE_POINT, loopFunction);

    function loopFunction(e:MetadataEvent):void

    {

    If (e.info.name is "end1")

    {

    Movie.seekToNavCuePoint ("beginning1");

    Movie.Play ();

    }

    }

    At least you get informed even if the search does not work.

    A quick workaround would be to iterate on landmarks than detect in the metadata, by assigning to each cue point name and time into an object. Once you reach the cue point you want, see if the object has the time value and seek() at the time for this landmark rather than searching for it by name.

    for example (written briefly, you see the idea):

    object to store time values

    var cuePointArr:Object = new Object();

    function onMetaData(infoObject:Object):void

    {

    var cueIndex:String;

    for (cueIndex to infoObject.cuePoints)

    {

    trace ("cue add name [" + infoObject.cuePoints [cueIndex] .name + "] at the time [" + infoObject.cuePoints [cueIndex] .time + "]");

    store as a name = time

    cuePointArr [infoObject.cuePoints [cueIndex] .name] = infoObject.cuePoints [cueIndex] .time;

    }

    }

    function loopFunction(e:MetadataEvent):void

    {

    correct point of reference and has a value in cuePointArr?

    If ((e.info.name == "end1") & (curPointArr [e.info.name]! = null))

    {

    seek to time value

    Movie.Seek (Number (cuePointArr [e.info.Name]));

    Movie.Play ();

    }

    }

    Lived 900 mph up to forgive the typos but turning it into a normal search based on the value of time should work for now.

  • video with actionscript cue points

    Hello! I'm trying to put in place an array of landmarks and when each cue point is reached, it raises an event. I have the updated table in place, but I'm wrong configure action events.

    Any help is VERY appreciated!

    Here's the code so far:

    Import fl.video.MetadataEvent;

    flvPlayback.addEventListener (MetadataEvent.CUE_POINT, onCuePoint);

    flvPlayback.play ("final.flv");

    aCues var = new Array ();

    aCues = [{time: 14, name: "part1"}, {time: 1, name: "part2"}, {time: 3.66, name: 'part3'}, {time: 9.43, name: "part4"}];

    for each (var q in aCues)

    {

    flvPlayback.addASCuePoint (q.time, q.name);

    }

    This is the part that doesn't work

    function onCuePoint (evt:MetadataEvent): void

    {

    if (evt.name = "part1") {}

    part1.gotoAndPlay (2);

    }

    }

    MetadataEvent has the property of information. Try:

    function onCuePoint(evt:MetadataEvent):void
    {
         if (evt.info.name = "part1"){
              part1.gotoAndPlay(2);
         }
    }
    

    Or even better:

    function onCuePoint(evt:MetadataEvent):void
    {
         switch(evt.info.name) {
              case "part1":
                   part1.gotoAndPlay(2);
              break;
    
              case "part2":
                   // do whatever
              break;
    
              case "part3":
                   // do whatever
              break;
    
              case "part3":
                   // do whatever
              break;
         }
    }
    
  • How to sync the button in the mainVI with a Subvi round?

    (1) son?

    (2) global variable?

    ================

    I want to stop some programs in Subvi execution by pressing the button in the mainVI. How to connect the button in the mainVI with a Subvi round?

    (1) son?

    It does work if I connect the button with the cycle via cables and connectors (from mainVI Subvi). That's because by the time press the button, Subvi has already asked the value (and it's remaining = FALSE until the Subvi ends).

    (2) global variable?

    I basically got same result.

    The position of the button is transferred to mainVI Subvi, but delayed.

    (3) the only solution I've found so far is to completely remove the Subvi and paste its code in the mainVI.But is not a good solution, because the code of the Subvi runs several times in a different parts of the mainVI.

    Thank you

    Solution: use a reference.

    Create a reference to the button in the main vi (right click on the button and select Create - reference).  Create a control on the front (Refnum palette - Refnum control) reference in your Subvi.  Connect refnum to a terminal.  In the main block diagram, wiring in the control reference at the entrance of reference Subvi you just created.  Subvi block, use node property to get the value of the order.  This will be a Variant, but you can use the variant data to convert it to a Boolean value.

    What is happening is that the reference that you pass to the Subvi is in fact an address (pointer) at its location in memory where the value is stored.  For example, when you click the home button, the value at this address gets changed.  Subvi, the property node can read the value at the same address because it is the address that you have spent in the Subvi.  If an instant change at hand is read by the Subvi.  Similarly, you can display an indicator of the Subvi for the most part, and it will update without having to wait until the end of the Subvi.

  • Trapezoid with only 2 rounded corners (CS6)

    Hello everyone. I am a beginner in Illustrator and I am familiar with the basic tools and actions, but I couldn't draw a trapezoid (or indeed any shape) with only 2 rounded edges while the other 2 still strong. I work at the CS6.

    I found a workaround to draw a path with a sharp angle, using the effect of round corner, a copy of the mirroring and lining up properly with the original and finally creating a trace (or triangle) to fill in the empty parts. (See pictures attached) but when I unite or join all the corners are rounded or the form becomes disfigured. I can group together and use this way, but I think that there must be an easier way.

    What I want to draw:

    trapezoid.jpg

    How to draw it:

    trapezoid 2.jpg

    Thanks in advance for anyone who could point me in the right direction.

    Use the round any corner script.

    mustapha page: Scripts for Adobe Illustrator CS

  • Flash H.264 navigation cue points

    I export the first h.264 format videos that have flash navigation points. When I load the video in an flvplayback component in Flash, navigation points do not work. Flash navigation cue points are taken in charge in the H.264 format, or what I need to add with actionscript during the loading of the video?

    Flash navigation cue points are supported in H.264 format

    No they are not. "Cue point" information can be incorporated into the metadata of a H.264 file as markers, but it is placed in a totally different place that Flash Player can not see.

  • I can't move the anchor points on a shape, I've drawn with the pen tool.  There are also small circles with a point in them (think focus), who they are and they are part of my problem.  If I open a new document and draw randomly everything is good, no foc

    I can't move the anchor points on a shape, I've drawn with the pen tool.  There are also small circles with a point in them (think focus), who they are and they are part of my problem? If I open a new document and draw randomly everything is good, no anchor and focus points behave.

    Bubble icons are the widgets corner. You can drag inward to round the corner. They are not part of your problem. If you want to hide them, select view > hide corner Widget. I have a hotkey defined for this menu item.

    If you see multiple bullseyes, you may have your set with the shape selected, that would prevent you from being able to move individual anchor points. Deselect the shape first, and then move the anchor with the direct Selection tool.

  • Read and use the cue point in mp3 file

    Hallo,

    It is possible to manage the cue point in the mp3 file with as3.

    If so, no allusion?

    Thank you.

    It is likely that you need to import the CuePointEvent class, if the error indicates it is not.

  • For loops with the cursor line and indexing

    Hi all

    I have a question about the loops with the cursor, line and indexing.

    How can I scan via a cursor with an iterator?

    I would use an iterator as

    Whole LoopIndex;
    Whole LoopIndex2;

    for LoopIndex at the beginning of the cursor at the end of the cursor
    loop
    line =: cursor [LoopIndex];
    for LoopIndex2 of LoopIndex at the end of the cursor
    etc...
    end loop;

    I need to use an iterator because I need to use a nested for loop.



    OR


    How can I solve the following problem?

    Class name % ofClass average test Score
    1 Niobe 7 8 8.4
    1 alena 4 7 7.5
    1 9 7 8.9 Estia
    1 Lilly 10 8 9.8
    1 Sandra 6 8 8.3
    1 Melanie 8 8 8.1
    Nadia 2 8 3 4.4
    Sayuki 2 9 8 8.4
    Diasy 2 7 8 8.0
    Flower 2 7 8 6.5
    Diana 2 6 8 7.3
    3 Flora 7 8 5.8
    Sukiya 3 4 8 8.4
    Samantha 3 10 8 7.7
    Roxanne 3 7 8 6.9
    Eline 3 8 8 7.4

    I need to
    -By class, I need to recalculate each average people
    -By class, I need to calculate the % of class score (sum averages / people in the class)

    So it can be done in a nested for loop?
    Or do I just step by step?

    Well, based on this information it would be something like...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as Class, 'Niobe' as Nm, 7 as Score, 8 as Tests, 8.4 as Average from dual union all
      2             select 1, 'Alena', 4, 7, 7.5 from dual union all
      3             select 1, 'Estia', 9, 7, 8.9 from dual union all
      4             select 1, 'Lilly', 10, 8, 9.8 from dual union all
      5             select 1, 'Sandra', 6, 8, 8.3 from dual union all
      6             select 1, 'Melanie', 8, 8, 8.1 from dual union all
      7             select 2, 'Nadia', 3, 8, 4.4 from dual union all
      8             select 2, 'Sayuki', 9, 8, 8.4 from dual union all
      9             select 2, 'Diasy', 7, 8, 8.0 from dual union all
     10             select 2, 'Blossom', 7, 8, 6.5 from dual union all
     11             select 2, 'Diana', 6, 8, 7.3 from dual union all
     12             select 3, 'Flora', 7, 8, 5.8 from dual union all
     13             select 3, 'Sukiya', 4, 8, 8.4 from dual union all
     14             select 3, 'Samantha', 10, 8, 7.7 from dual union all
     15             select 3, 'Roxanne', 7, 8, 6.9 from dual union all
     16             select 3, 'Eline', 8, 8, 7.4 from dual)
     17  --
     18  -- END OF TEST DATA
     19  --
     20  select class, nm as "NAME", score, tests, average
     21        ,round(((average*tests)+score)/(tests+1),1) as avg_person
     22        ,round((average / sum(average) over (partition by class))*100,1) as class_average
     23  from t
     24* order by class, nm
    SQL> /
    
         CLASS NAME          SCORE      TESTS    AVERAGE AVG_PERSON CLASS_AVERAGE
    ---------- -------- ---------- ---------- ---------- ---------- -------------
             1 Alena             4          7        7.5        7.1          14.7
             1 Estia             9          7        8.9        8.9          17.5
             1 Lilly            10          8        9.8        9.8          19.2
             1 Melanie           8          8        8.1        8.1          15.9
             1 Niobe             7          8        8.4        8.2          16.5
             1 Sandra            6          8        8.3          8          16.3
             2 Blossom           7          8        6.5        6.6          18.8
             2 Diana             6          8        7.3        7.2          21.1
             2 Diasy             7          8          8        7.9          23.1
             2 Nadia             3          8        4.4        4.2          12.7
             2 Sayuki            9          8        8.4        8.5          24.3
             3 Eline             8          8        7.4        7.5          20.4
             3 Flora             7          8        5.8        5.9            16
             3 Roxanne           7          8        6.9        6.9          19.1
             3 Samantha         10          8        7.7          8          21.3
             3 Sukiya            4          8        8.4        7.9          23.2
    
    16 rows selected.
    
  • Handling in Javascript Flash video cue points

    Can any kind person giving me directions on how to get the JavaScript in an HTML page containing a video FLV for cue points in the video? I understand how to get benchmarks, but most people seem to only want to deal with the landmark events in Flash. I want to use Javascript to display different text in a page to each element. The method vary it depending on which player you use? What about when it's the standard Flash Playback component? Should there be any special Actionscript in the SWF file containing the FLV file?

    Thank you

    Fred

    Look at ExternalInterface in online help. It's the external API that you can use for communication between Flash and html page that got him.

  • Flash CS4 ActionScript using buttons to go to cue points in an FLV

    Hello.
    I'm pretty much a novice Flash, so I don't think that this issue is particularly difficult, it's just something that is painful for a few days. I know it's possible based on all the literature I've read, but I can't seem to do it properly.

    Basically I have a video file that I made to FLV format with 5 points of navigation called 1, 2, 3, 4, 5.

    What I want to do, is to use buttons to navigate to the five cue point in the flash animation. I think that this is possible using ActionScipt 2, but I don't know what the code of the script function.

    Any help would be much appreciated.


    Thank you
    Javier

    Hello

    The following AS2 code can help you

    Stop();

    var listenerObject:Object = new Object();
    listenerObject.ready = {function(eventObject:Object):Void}

    }

    .addEventListener ("ready", listenerObject);
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = {function(eventObject:Object):Void}
    .onRelease = function () {}
    playback.seekToNavCuePoint ("");

    }

    }
    .addEventListener ("cuePoint", listenerObject);

    \\replace all things placeholder which the<>

    Also just take a glance to the description to http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts & file = 00003003.html for more details

    Thank you!

    PS: pls mark that message as if it were a help to you have it

  • MpegAdvance Xtra and Cue points

    I currently use benchmarks successfully to access the different chapters of movies using:

    A BUTTON
    on mouseUp
    SendAllSprites (#MpegAdvance_CuePointCommand, #GoToCueName, "shape_cue_5")
    end

    With the HELP of hyperlinkClicked

    (data begin "4.1.5"):
    SendAllSprites (#MpegAdvance_CuePointCommand, #GoToCueName, "shape_cue_5")


    How do I do to get these same reference points to interact with other members É.g.i interpreters want a cast member to view or highlight when a cue point is reached - a member of text or graphic saying "Chapter 5" become visible when the mark 5 is reached.

    Thank you

    Mike

    Try the following as a behavior attached to your sprite #TBMPEGADVANCE
    (adjust the cuePointName as needed):

    on cuePassed me, consolidate, aNumber, aName
    If aName = "CuePoint1" then
    Sprite (66) .visible = TRUE
    end if
    end

  • Problem with access point or wireless adapter

    Hello world

    tried to connect to my WiFi, but the convenience store detects that the problem with access point or wireless adapter.
    The drivers are up-to-date and functioning normally. There were discussions on BIOS but I don't know if I would be able to complete the task without bricking your laptop.

    Is there any online support?

    Hi smert

    Your message is not really useful.
    Why? Because no one knows all the details of the laptop, wireless network card system...
    So please would you be kind enough to provide more details.

    But despite the missing information, I recommend:
    (1) reset your router WLan
    (2) check the connection to the WiFi unsecured. (of course for testing purposes)
    (3) check the different (WPA/WPA2 AES, TKIP) encryption

  • several loops with error handling and controll

    I have a project where I spin 4 loops at the same time and must stop all the loops with a stop button as well as all the loops if one of the loops will receive an error.

    Loop 1.

    Loop start

    control the other 3 loops

    Loop 2.

    Analog voltage reading

    Loop 3.

    Digital inputs to read

    Loop 4.

    Write digital output

    Someone knows how to do this?

    Two other methods not mentioned in the otherwise excellent document that mentioned Matt are the use of a global variable 'stop all' and a relative using a Global Variable of VIG/functional.  The reason to talk about, is that they can be used also stop 'detached' live, live which are defined to run asynchronously (and therefore a bit 'out of control') regarding the main VI.

    I use a "combination of ingredients" for some projects I'm developing using LabVIEW 2016 and its support of the channels.  For example, I use a Messenger channel to create something akin to a message in queue manager.  When the event loop detects that the exit button has been pushed back, it puts a Message "Exit" on the channel of Messenger and stops himself.  When the Message Loop sees "Exit", it sends one release Message who else has need to see (in one case, the producer of a producer/consumer model) and stops himself.  When the producer Gets the output Message, it puts a "last element is invalid" on the flow of the channel for consumers and stops himself.  When the consumer gets the message of the last element, he stops himself.  A magnificent waterfall.

    And I work (not yet 100% complete) how to extend this to start the asynchronous calls that do not (yet) support channels as easily...

    Bob Schor

Maybe you are looking for

  • Its control on Inspiron 2330 with HDMI input

    I can watch live TV on 2330 Inspiron AIO, digital decoder output HDMI to HDMI in on 2330 and switching input button on the side of the screen. The sound comes through the speakers, but I have found no way to control the volume. I would appreciate any

  • Help, please. Screen touch dell inspiron 5559 HID-complaint does not work.

    Screen touch dell inspiron 5559 HID-complaint does not work. I have to keep this option disabled because all of a sudden he starts to feel the uncontrollable different key. Sometimes it works fine for a day, but it continues to be. I have restored th

  • best way to download files by 2 with winzip and rar files

    I have winzip pro I'm having problems to download rar and 2 files

  • USB bootable Windows 8 Pro key

    Hi I upgraded to Windows 7 Windows 8 Pro. But after everything, I noticed there was a lot of files and programs that I wanted to get rid of so I decided to install a copy clean od Windows 8 Pro and format my hard drive. How to create a USB bootable W

  • Windows 8 - start screen tiles are black after waking from sleep

    Recently installed Windows 8 Pro x 64. Whenever I have wake my computer from sleep and go to the home screen all the tiles are black, and the upper right corner where it shows my login and my avatar is missing. The rest start screen works as expected