ListenerObject control timeline

Hi,
I've set up a flash with FLV HTTP stream, and successfully
set up the following response to a cuepoint:
stop();
vid.contentPath = "CPI_introduces.flv";
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
play();
vid.addEventListener("cuePoint", listenerObject);
Problem is, the timeline plays to the point I want it to, and
then if the user scrolls back or plays again, the timeline is
progressed already. I need it to, upon pressing play or when using
seek slider, goto and stop frame 1 again (visually clearing the
screen until it hits the cue point again). Based on the cuePoint
script, I thought something like this would work:
stop();
vid.contentPath = "mhpp_preview_3.flv";
var listenerObject:Object = new Object();
listenerObject.play = function(eventObject:Object) {
gotoAndStop(1);
vid.addEventListener("cuePoint",listenerObject);
But it seems to have no response. The instance name is vid ,
and the code I'm placing on the last frame, where it stops when the
timeline plays.
Any insight?

Tiaqo,
I agree that cue points are the closest synch mechanism with streaming video. Nevertheless, if objects have to be synched in a such a way that they appear as a part of the video - cue points don't work very well. I worked on a project that required seamless syncing and we had to revert to embedded video because cue points event on every video frame did not deliver desirable tightness.
With that said, if requirements for synching are looser - cue points are the way to go.

Similar Messages

  • Effect Controls Timeline keeps zooming out

    So I'm currently working on a tutorial video that involves a lot of stopping and starting.  I'm loving Premiere's method of creating freeze frames (drop a keyframe in the Effect Controls timeline where you want it to freeze, option+cmd+drag it to the point where you want it to resume) however every time I do it, the Effect Controls timeline zooms out to show the entire project.  This is frustrating as I need to re-zoom in every time I want to freeze it; does anyone know a way around this?

    Ok, so here's a more detailed description.  The way I know to freeze a frame is to drop a speed keyframe (which has a left and a right half), and to then hold down Option+Command and drag the right half of the keyframe to where you want it to stop freezing.  This usually relies on zooming in to the Effect Controls timeline since I'm only freezing for a few seconds at a time; but the problem is as soon as I let go of the mouse to drop the end of the keyframe, the timeline snaps back to full view.

  • How to control timeline sound of external SWF

    Hi All,
    Basic Intro:
    I am new in Action Script and trying to create a video tutorial framwork. In this I have lots of animated SWF files in all the files I have multiple scenes as those are 5min. to 10 min. each and all the files have the relevent background and nurration voice place directly on the TIMELINE frame by frame to match lip syncing animated chreactors.
    My file structure :
    Login.swf with login box is embedded into the Index.html
    After logged in it will load another SWF which is Control panel.swf
    3. Controlpanel.swf has the controls to control the loaded external swf files i.e.: Chapter menu, Play, pause, replay, volume-bar, next and previous buttons.
    By Default Controlpanel.swf will open chapter1.swf as soon as user logged in so no one need to open 1st file.
    Here user can navigate to other chapter swf file through Chapter menu or Next and Previous buttons.
    All files are loading and playing properly, here I am trying to control the animation and Sound both at a same time with Pause, Play and Replay through relevant buttons.
    Problem:
    By pressing “Pause button” animation stops but not the sound. Sound remains playing, and if I replay the swf by “Replay button” than animation restarts but sound also restarts that overlaps already playing audio.
    Question: So could anybody help me finding out how to:
    1. Pause the sound with animation by the same click of Pause button, and
    2. Stop the sound with animation by the same click of Stop button, and
    3. On replay it should stop playing the previously running audio and restart it with the animation like fresh loaded file, it should not sound overlapping.
    Constraints:
    Here I am using the sound file on the same time line of each individual swf file which I cannot add into any single movie clip because all the chapter swf file are having multiple scenes in it.
    For my problem I have already done a lot of browsing online in various forums and didn't find the solution. So here I am sharing the complete information regarding the project and wishing to get some good solution out here but if I missed any helpful information please ask me anytime and please help me to quickly find out the solution.
    Thanks a lot to all of you in advance to help me.

    create one global sound variable
    you can write when you are pressing pause button
    globalsoundvariable.setVolume(0)
    to play
    globalsoundvariable.setVolume(100)

  • Controlling timeline sound

    Hey guys, i was wondering if you would be able to help, PLEASE!!
    I'm making a presentation in flash, it has 3 segments, 1st is sound in sync with timeline 2nd is a video which is streaming and third is sound insync with timeline again.
    I can control the video thats no probs, but i want to be able to control the sound/timeline.
    What i want to be able to do is put in some controls just pause play and stop and when i push pause it obviously pauses it, when i push play it continues to play and when i push stop it goes to frame 1 and clears what ever it was playing in the timeline previously.
    I know how to control the timeline but not the sound!
    any suggestions please?

    You will find sound quality options for individual sounds if you double click on the sound in the library.
    If you look in your Flash Publish Settings you will find sound quality options for all streaming/event internal sounds. These global settings can optionally override individual sound quality settings.

  • Control Timeline and FLV Together

    HI,
    Where can I find ready-made buttons that will control an FLV and a timeline together? I have a swf with an FLV and I animate images and phrases on a movieClip timeline timed to what they say in the flv. I set up cuepoints that trigger the animations, so when users scrub, pause, etc. the timeline eventually catches up with the FLV, but it would be a lot nicer if the pause, scrub, etc. would do the same to the timeline and there was no lag time. I can get rid of the scrub and just use play/pause ff, rr if that helps.
    Thanks,
    Brian

    you'll need to create those buttons yourself.

  • Control Timeline dynamically

    Hi,
    i'd like to control MovieClip timeline witch contain several DisplayObject (like Sprite, Button, ...) these DisplayObject have Motion (AnimatorFactory).
    How can i do seek frame-by-frame the MovieClip Timeline and use the currentFrame to control all Motion child.
    for example :
    package
         import flash.display.*;
         import fl.motion.*;
         public class  main extends MovieClip
              private var motion:Motion;
              private var animFactory:AnimatorFactory;
              private var size:uint    = 100;
              private var bgColor:uint = 0xFFCC00;
              public function main():void
       var textClip:MovieClip = new MovieClip();
                   var boxObj:Sprite = new Sprite();
                   boxObj.graphics.beginFill(bgColor);
                   boxObj.graphics.drawRect(0, 0, size, size);
                   boxObj.graphics.endFill();
                   addChild(boxObj);
       textClip.addChild(boxObj);
       addChild(textClip);
                   motion = new Motion();
                   motion.duration = 20;
                   motion.addPropertyArray("x",[0,50,95,134,169,199,225,247,265,280]);
                   motion.addPropertyArray("y",[0,1,0,4,12,21,32,44,52,38]);
                   animFactory = new AnimatorFactory(motion);
                   //animFactory.transformationPoint = new Point(2, 2);
                   animFactory.addTarget(boxObj, 0, false);
       textClip.gotoAndStop(10);
    textClip.gotoAndStop(10); //seem not work
    because textClip have no keyframe ?
    How can do it ?
    Thanks and sorry for my bad english.

    Tiaqo,
    I agree that cue points are the closest synch mechanism with streaming video. Nevertheless, if objects have to be synched in a such a way that they appear as a part of the video - cue points don't work very well. I worked on a project that required seamless syncing and we had to revert to embedded video because cue points event on every video frame did not deliver desirable tightness.
    With that said, if requirements for synching are looser - cue points are the way to go.

  • Controlling Timeline With Touch

    Hi! I use edge animate in adobe dps. I searched to control the timeline with touch (or scroll) in the forum. Even some solutions were discussed, i didnt find the perfect one. It could open so many possibilities like slideshows, parallax, diagonal textscroll etc.
    I would like to build a wide animation and control the timeline by scrup/swipe with my finger.
    I found something which works, but it seems the directions doesnt work in adobe edge animate anymore. Does anyone know how to resolve this problem? Demofiles would be awesome.
    Here is the solution i found, which doesnt work in the latest edge.
    http://codehandyman.blogspot.de/2011/12/adobe-edge-animation-controlled-by.html
    And here is the result. Works on ipads in indesign dps:
    http://www.northeastmagic.com/adobeEdge/scrollbar_scrubber/test7.html
    thanks,
    Klaus

    Hi Jerry, in my opinion the best for magazines right now is to swipe left and right to the article and down to see the full article. For that I want to decide if it's snapping to single pages vertically, or smooth scroll etc. Im my case I wanted to have a smooth scroll parallax version which I can build in adobe edge (it's possible to do with stellar.js - most of the other parallax html script doesnt work on ios). But it's s so easy to do in adobe edge animate! I also want to build full pages in adobe edge, since there are more ways to animate things (even it's a little button). But then I have the same problem. I dont get off the page if it's made in adobe edge and shown full screen in adobe dps. I got some other html scripts which are full screen, but are able to swipe to the next page.
    For example I searched weeks for a good slider. But most of them have the same problem. An example: I have an article vertically with a few pages in adobe dps. On the 3rd i want a full screen slider. I can swipe left/right, but cant go down or up anymore. But finally i found a solution which is so perfect for adobe dps.
    http://www.idangero.us/sliders/swiper/
    So many options and the abillity to get off the fullscreen page! but you need to know a bit html/css. I am not a coder at all, but enough to change some sizes etc.
    Have a look on swiper. It's awesome!
    Here is one feature they mentioned that's the problem with my above adobe edge animation:
    Scroll prevention
    Swiper will prevent vertical scroll when you touch it in "horizontal" mode, and horizontal scroll in "vertical" mode"
    That's why I think it has to be possilbe to make the adobe edge full screen animation with scroll acts the same. If its vertical, i want to swipe left/right to get off the page.
    Hope this wasn't to complicated.

  • Controlling Timeline sound in AS3

    Hello everyone,
    I have a timeline with a sound in it set to sync because I am
    scrubbing the main timeline....
    I now want to control the volume of the sound in the
    timeline..is that possible in AS3??
    sometime like : var my_globalSound:Sound = new Sound(stage);
    that of course doesn't work, but how would I get access to
    the sound set in the timeline...
    thanks!

    Thanks to all of you I was struggling with the same thing.
    The given code work perfectly for me.
    SoundMixer.soundTransform = new SoundTransform(0, 0); //volume, pan
    My issue: I am loading and external swf file(as3.0) wich have audio on timline and I want volume controller for that audio.

  • Scroll/swipe events controlling timeline for DPS

    Hi,
    Actually I am trying to controlling my timeline with events that I can use in my ipad. I export html from to Edge Animate, and I insert in Indesign to digital publishes (DPS).
    I found this example:
    https://www.dropbox.com/s/2mvc6l667nq79av/parallax_edge_demo.zip
    I would like to know if there is a way to make the scroll smooth. I mean, if you give a little push with your finger and it just scrolls by itself and goes slower at the stop (don´t stop suddenly like in the example). Is this possible?
    thank´s,
    Rubén Afonso

    Glad it worked for you, Graeme.
    Note that I've updated both Example and Source links, with a constraint so that if you swipe up, the "timelinePos" variable is constrained to 0, rather than becoming negative (line 25 @ Stage.compositionReady). You might want to re-download my example.
    Adding ease to the end of the swipe/timeline scrub is possible in Edge, but it would be a bit unwieldy. Here's the psuedo-code I'd start with:
    1) create a variable, "onTouchEndEasePosition", which you'll use to add/subtract from the "timelinePos" value
    2) run a setInterval on touchend (be sure to clear it when your value goes down to 0, or a touchstart fires!!)
    3) on each tick of that setInterval, decrease (or increase- depending on swipe direction) the "onTouchEndEasePosition" value, and position your playhead on the timeline based on the "onTouchEndEasePosition" value.
    Another thing you can try, and this would prob be cleaner than using setInterval, would be to leverage the powerful GSAP library to set the "onTouchEndPosition" variable. On touchend, you could create a Tween with the ease of you choice, and on "tick" of that Tween, increase/decrease your "onTouchEndEasePosition" variable, and position your playhead on the timeline based on that value. See FAQ #15 at bottom for how to listen to the "tick" of a Tween: http://www.greensock.com/get-started-js/
    The biggest challenge, I think is to figure out how fast the user was scrolling before lifting their finger. You would need this in order to get the "after scroll" to feel right.
    There are a lot of really good jQuery touch scroll plugins, but since you're not actually scrolling content, not sure if they apply to your project. Here is a list of good scroll plugins, but they operate on an actual scroll, so you'd have to make your content scrollable:
    http://jquer.in/category/jquery-plugins-for-awesome-scrolling-and-scrollbars-on-websites/

  • Touch-slide to control timeline

    Hello!
    So to begin with, I am very new to Edge and programming as well. What I'm trying to create is something that allows people to "turn" an object by sliding their finger (or mouse) either left or right. The way I've seen it done is by having an animation of the object turning, and then connecting the gesture of sliding left or right to turn the object similarly.
    I've seen a lot of examples of what I'm looking for:
    http://forums.adobe.com/message/4778404#4778404
    This does a pretty good job, but I don't like how it is basically tied to where the finger is in the space, I'd rather something that says "when finger moves right, move forward according to the distance the finger is moved. While if the finger moves left, the timeline moves backward in the same fashion"
    http://forums.adobe.com/message/5785130#5785130
    The example she uses with the fish bowl is almost exactly what I'm looking for, but I'd rather not rely on plugins if possible. As I'm extremely new to all of this I'd like to use it as a learning resource as well and I feel as though plugins sort of obfuscate that resource.
    Sorry if this isn't very clear, but I would more than appreciate any and all help. A good resource to help learn the coding language would be greatly appreciated as well. THANKS!

    Hi, mlovett1-
    You're going to need to do a lot of handcoding to make this work.  Instead of using swipe, you should use touchmove and calculate the distance between your movement.  You should find a good resource on programming in JavaScript, as that's what you'll use for all of your interactivity programming.
    Good luck, and I hope that gives you a good sense of the direction to take!
    Cheers,
    -Elaine

  • Use Slider to control timeline of tweened animation

    I have 3 pictures and animated it using motion tween as
    usual.
    Now, I want to create a slider so that user can drag along
    forward and backward so that the tweened animation moves
    accordingly. Eg the whole motion ends in 10 sec
    If user drag slider to far right it goes to 10 sec frame and
    if it position to middle the movie go to 5th sec. etc.
    How to do this to associate the slider to frames ? The adobe
    official site does not have document on this. Please help.
    Thanks.

    You have to make your own slider.
    Sliders are based on the idea to find the percentage of the
    position of scroller to it's maximum position as a ratio 0-1 (0
    left, 1 right) and multiplying that ratio with a value (in your
    case the number of frames). As least that way I can think of them
    and create them.
    You can utilize this link I just created to solve your
    problem, where you move a scroller/slider to navigate into the
    timeline:
    http://www.sp7.gr/adobe_forum_data/06_TimeLine_Slider.zip
    I tried to make the slider portable, thus you can initialize
    it with a preferred width and set the number of frames it will
    handle...

  • Keyboard Events Controlling Timeline

    I'm fairly new to this, so it could be something really easy
    (I hope)
    I want to control what frame I'm on with the "F" keys. Right
    now both F keys bringing me to frame 6 instead of F4 bringing me to
    frame 4.

    I got that part to work. It turns out that I just had some
    extra script in there.
    Now I'm trying to get the numbers across the top of my
    keyboard to work too. I can get the NUMPAD_2 to work, but if I put
    NUMBER_2 it just loops the animation and I get "1119 Access of
    possibly undefined property" as an error.

  • Controlling timeline of parent movieclip?

    Hi,
    I've just swiched over from FL8 to FL CS4 (3 days ago). I'm
    learning AS3 at the moment but am on a deadline with a project (a
    bit over it actualy) which uses AS3 and I don't know how to solve
    it.
    I have a movieclip (container_mc) on the main timeline which
    holds all the animation and a timer (timer1_mc).
    When container_mc reaches frame 2 it stops and a timer
    (timer1_mc) starts running.
    When the timer finishes, container_mc should continue to the
    next frame.
    The code I have to do that (from the timer1_mc) is:
    if (d> 260) {
    parent.container_mc.nextFrame();
    trace("blabla");
    this.gotoAndStop(1);
    }else{
    this.gotoAndPlay(3);
    trace("yess");
    This doesn't work, it gives me the error 1119: Access of
    possibly undefined property container_mc through a reference with
    static type flash.display:DisplayObjectContainer.

    My guess is you are having the "parent" problem.
    In AS3 parent returns an item of type DisplayObjectContainer.
    That is because the parent could be a MovieClip, a Sprite or even
    several other things. So the Flash builders in their wisdom follwed
    the inheritence tree up to before the first branch -- as it were.
    The DisplayObjectContainer class doesn't have a nextFrame()
    method. So that is why you see the error. You need to tell Flash
    that even though it thinks the parent is a DisplayObjectContainer,
    that you know it is really the special kind of DOC that is called a
    MovieClip and that does have such a method.
    MovieClip(parent.container_mc).nextFrame();
    By casting the results of parent.container_mc to MovieClip
    this will make it work. That is assuming that the parent of
    container_mc is another MovieClip!
    Of course that might not be it....

  • Controlling timeline playback

    Is there are a script that will run a swf file in reverse?
    For instance, if the beginning of a movie zooms in on
    something, a button can run the zoom in reverse?
    Any help on conrtolling timeline playback would be
    appreciated.
    Thanks in advance.

    try something like this, hope I put not errors in it ..
    yourClip_mc.direction = -1;
    yourClip_mc.onEnterFrame = funciton(){
    if (this.direction == -1){
    this.CF = this._currentframe-1
    if (this.CF==0) this.CF = this._totalframes;
    }else{
    this.CF = this._currentframe-1
    if (this.CF>this._totalframes) this.CF = 1;
    this.gotoAndStop(this.CF)

  • Control Timeline from base class?

    How do you do this?
    I'm extending the MovieClip class, and no amount of
    this.stop() is working.....
    wth?

    use trace(this) to see if you're in scope of your
    class.

Maybe you are looking for

  • Excise base value not updated

    Dear all, We have found that excise base value is not updated after creating excise invoices,later we corrected it, excise base value started updating in table J_1IEXCDTL, Intially for 2 months excise base value is not updated in table, Is there any

  • RasterizationResolution

    I'm trying to get my mind around how to manage the rasterizationResolution in Illustrator CS2 from a JavaScript. Hmm. In researching the specifics to ask my question, I realize I don't have a clue how Illustrator actually works. Apparently, when you

  • Is it possible to change the amount of storage in an iphone 5

    i have a 32gb of storage on my iphone 5 and ive almost topped it off. im wondeing if there is anyway to upgrde the amount of storage i have to 64gb

  • Need simple class for communicating with Solaris account

    Hey, gang. After over a week of searching this forum and the Web for a solution, I'm stuck. I hope someone here can help. I've got a Java application intended to run on both Windows and Solaris systems that needs to perform the following automated op

  • CS2 vs CS3 printing to Epson 3800

    In trying to diagnose a Photoshop/11880 printing problem, I made some test prints to an Epson 3800 from the same test file. Andrew Rodney's "printer test" image includes very smooth color gradations R > M > B > C > G > Y > R. This image was printed f