Looping FLV does not play when I use addChild

Hi all

Kglad wrote the code below (located in a frame of a clip to child script). It works very well to seamless loop the FLV in an FLVPlayback component in this clip.

In the main timeline, I use removeChild to remove this clip of film when it was used. Can I use addChild to add at the time where the clip must be used/seen again. (I do it to preserve the resources of the machine).

However, when I use addChild to add the MC back, for some reason, it does not immediately play like the first time it times. He expects a cycle before it begins to play again. Does anyone know why it does not play the moment where it is added in? ('Auto play' is checked in the FLVPlayback properties.) I can post more code if necessary.

Thank you very much!

The code in the script of the frame of the child clip that holds the FLVPlayback:

Fl.video import. *;

FLV animation loop
var int index = 0;
childMovieClip.addEventListener (fl.video.VideoEvent.COMPLETE, completeHandler);
childMovieClip.source = "FroggyTop.flv";
childMovieClip.play ();
readyNextPlayerF();

function completeHandler (e: fl.video.VideoEvent): void
{
childMovieClip.play ();
childMovieClip.visibleVideoPlayerIndex = index;
readyNextPlayerF();
}

function readyNextPlayerF (): void
{
index ++;
childMovieClip.activeVideoPlayerIndex = index;
childMovieClip.source = "FroggyTop.flv"; assign the source

}

Post edited by: paul_james123

The game of the FLVPlayback instance is not dictated by its presence as a child.  Using addChild does not reset it to a starting state.  If you remove it, it remains to do everything what is done out of sight of the scene.  When you add to this is probably in the middle of everything he did while sitting in its limbo deleted.  When you remove it, you should stop it, and when you add it back in you should start it.

Tags: Adobe Animate

Similar Questions

  • sound does not play when windows vista starts or stop

    sound does not play when windows vista starts or stop

    Hello

    • When the issue started?
    • Will there be any changes made prior to this issue?
    • Otherwise, the sound works well?

    Step 1: Refer to "the startup sound is not played correctly when you start Windows XP or Windows Vista
    ' http://support.microsoft.com/kb/321735 '.

    Step 2: To change the sound on closing down.

    Audio a.Open and Sound themes by clicking the Start button, clicking Control Panel, hardware and sound, and then clicking sound.

    b. the sounds tab and then, in the list programs, select the event you want to change the sound.

    c.Under sounds, click the sound you want to associate with the event. If the sound you want to use is not listed, click Browse to locate it.

    'Change the sounds of the computer '.
    ": http://windows.microsoft.com/en-US/windows-vista/Change-computer-sounds "

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • An embedded MP4 does not play when published as swf.

    An embedded MP4 does not play when published as swf.  The PlayBar is where. The swf embedded on the page works OK. I downloaded all the files generated to the Web site. Any ideas?

    I have not used the program for a while, so I'm a little rusty and I just know Captivate 8, so I hope I'm just something stupid. Oh yes, when I first publish and choose to view the project, he plays. If something must be different when it's moving online?

    And here is the link. I'm probably going to replace the voice to mine. My husband says that he looks like Siri and it really bugs. Mine is not great, but he assures me sound better than automated.

    http://susancvineyard.com/nav/portfolio/portfolio.swf

    Thanks for any help.

    Susan

    Post edited by: Susan Vineyard

    Make sure your video file is all characters lowercase and without spaces or punctuation characters.

    Check that your site administrator has set the video as a type of authorized file mime type.

    Link to the file that Captivate HTM publishes and not to the SWF that you did in the above link.

    Make sure that all THE published files have been downloaded successfully to the web site, including the video file.

  • The slide show feature does not work when I used my Apple TV new 4th gen. I have all the minimum requirements for Macbook and Macbook OSX the Airport express. The slide show starts and stops after that 7 photos are displayed on the TV. If I change the

    The slide show feature does not work when I used my Macbook with new Apple TV 4th gen. The slide show stops after that display 7 photos and display to select the options for the slide show is displayed on the screen. The selected interval was 5 seconds. If the interval is spent in 3 seconds the slide show would work for a time and then to display random images. Has worked with Apple on this issue Support Mike and he managed to reproduce the problem. Since I'm in the return period of 14 days for this product, I returned it to the Apple store

    Welcome to the Apple community.

    After returning, I'm not really clear on what your question.

  • Acer toggle display does not display when you use the Fn + F5 key secret on my Acer Aspire 5560

    What it does:

    When you use the Fn + F5 key combination on my Acer Aspire 5560, it brings up a screen changes on the laptop screen for the selection of an external monitor, I am currently using Windows 7 Ulitmate

    Before the problem:

    Display mode switch Acer existed prior to the upgrades of the drivers

    The problem:

    The toggle screen Acer does not display when you use the Fn + F5 key secret on my Acer Aspire 5560?

    Additon Information needed to solve the problem or any other information:

    I would like to know what driver or software operates the Acer toggle display Mode?

    Also where can I find this driver for computer: Acer Aspire 5560 to bring this Acer toggle display Mode function?

    Acer Toggle display Mode: this is a picture of it when you use the Fn + F5 combination:

    Thank you very much Ironfly Ace, it has worked Acer hero of the day

  • Foreground color does not change when I use the color picker.  CS6.

    Foreground color does not change when I use the color picker.  CS6.

    Your document is in grayscale, convert color (Image > Mode).

  • SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    I can open the SG of start menu/desktop computer and I can open the PP project in SG very well. The PP project contains 3 deadlines and I take one I want without any problem. Returning to the SG PP works fine as well. It seems only thing doesn't work does not automatically open the PP file and selecting the correct timeline in the Official Journal of the project.

    I had a glance at the "C:\Users\john Bishop images\AppData\Roaming\Adobe\SpeedGrade\8.0\logs\SpeedGrade.log ' but it is not updated when I try to use the link Direct from PP. command It updated when I invoke the start menu/desktop computer SG. Note that none of the other newspaper, the files are updated either (Plugin Loading.log, Database.txt Trace and Debug Database.txt). All these get updated when I run the desktop/start. It would appear that SG is not yet known.

    I uninstalled the SG and the PP and re-installed (all in the directories by default) and everything seemed to go OK but no change.

    I also added 2 political profile the NVIDIA Control Panel, just display a message when loading SpeedGrade.exe and another for a slightly different message when loading SpeedGradeCmd.exe. SG invoking the desktop/start causes the SpeedGrade.exe message to display. Using the 'Direct link' PP file option does not display anything, reinforcing my thought that SG is just never called from PP.

    SP1 Windows 7 Professional 64 bit

    12 GB OF RAM

    2-Intel Xeon E5640 (16 sons) processors

    NVIDIA GeForce GTX580 1536 MB memory graphics

    PS... I used the Adobe cleaning tool noted elsewhere and tried NVIDIA workarounds as well - all to nothing does not.

    Problem solved!

    My Antivirus software was in the way. Once I have updated, things work fine.

    Thanks for your help!

  • Audio does not play when you press the arrow keys.

    Hello

    When I'm working on a project and I press the left or right side of the keyboard arrow keys to move a picture in the timeline, the audio does not play.

    He used to play and also appear in the audiometer as a level, but recently he has ceased to be. Maybe it was because of an update?

    Is it possible to turn it back on? Maybe I hit a button by accident and disabled the function.

    If it is due to an update, is there a way to revert to a previous version?

    Looking forward to you soon.

    Thank you for your time and help in advance.

    All the best

    George

    Mac OS X El Capitan 10.11.1

    iMac 27 inches, end of 2013

    Processor Intel Core i7 3.5GHz

    16GB 1600 MHz DDR3 memory

    NVIDIA GeForce GTX 780M 4096MB graphics

    First Pro CC 2015.1

    9.1.0 (version 174)

    Please let me know if you need more information and I will be happy to provide it.

    Try pressing SHIFT + S, which is the shortcut for "toggle Audio while Scrubbing."

  • Audio does not play when editing my calendar...

    I had this problem where in my calendar if I press 'play' on the slide so that I can get an overview of how things work, it works through action, but it does not play the sound. I see my audio in the slide, I can hear the audio if I go in the audio editor or on the closed captioning thing closed... but when I'm actually on the timeline, nothing. I can right click on my audio in the timeline and select 'read' a so-called play just the audio, but does not slide.

    Anyone know what is happening? It's the second or third project that I had this problem with, I am currently on my updates. I use version 5.0.3.631 and Captivate 5... any help would be appreciated!

    Hello

    Look at the bottom left of your planning bar. You should see a small speaker icon. Click on it and I bet that your audio is.

    See you soon... Rick

  • Sometimes sound does not play when you play multiple sounds simultaneously

    It is also a matter of best practices, too.

    I built a game that uses many different sounds (about 48 I think). Many are short, less than a second and a few are longer, of the music cues, etc..

    Example problem: sometimes when there are a lot of play sounds and a music signal is supposed to fire, the sound of the music does not play. I did a trace on the function that plays the sound music and performs this function. Are there limits to how sounds can play at the same time? (It does not only happen to a particular sound, could be any noise)

    Also, regarding best practices, if there is a sound that could be played several times at the same time, a new instance of the noise must be created each time as its played? If there is that a single instance of this noise, will be the previous reading of this noise cancelled when it is called for replay?

    Thank you

    Adam

    There is a soundchannel 32 limit (which may exist at a given time) imposed by the flash player.  all two identical sounds may not play in a number of ms on the other.  There is no perceptible advantage and refusing the deductions that you may be able to play the sounds that are noticeable.

  • Adobe lightroom does not update when I use the application manager to download upgrades.

    Hello

    I have problems with adobe lightroom.  It is not updated when I use the application manager to download the new updates.  I tried to uninstall the application and re-download it, however the application manager will not allow that to happen because it shows that it is already installed and up to date. I think that the problem may have started when I installed lightroom using a link which you offered when creative cloud first started offering of lightroom.  This version of the program does not appear to work with the application manager.  Please let me know what I should do to fix the problem.

    Best regards

    S

    Hello

    Please, try to remove Adobe Extension manager and install again. The reinstallation of the extensions Manager try to day light the room.

    If it does not resolve that question please make a complete own using adobe cleaner tool and reinstall everything.

    Thank you

    Kapil Malik

  • Script error does not respond when I use Adobe Stock...?

    I get a script error does not either when searching for photos, or when I try to download.

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    Script: resource://gre/modules/commonj...scripts/kwift. FFJETPACK.min.js:1

    Hello

    Did you try any other browser or try to reset the browser and then check?

    You can also view Stock troubleshooting: FAQ: how to solve problems with images of Stock?

    Hope that helps!

    Kind regards

    Sheena

  • Audio does not play when discovers .swf in the browser

    When you view the .swf file in a web browser, the audio file does not work. The sound does not get played. However, by double-clicking the .swf file, it works very well with the sound.

    Any suggestion?

    I don't really know why the path is relative the HTML instead of the swf file.  but it's even worse: there are some things that are relative to the swf.  I don't remember what they are, but eventually the files called by the loadvars or urlloader class.

    so, you can always try both if your path doesn't work.  (btw, you use the debug version of flash player so you can see that you have a path problem during the test in your browser.)

    but the html file contains code to integrate the swf file into the html page.  then, I call it the html integration.

    in any case, all's well that ends well.  I'm glad that you have solved that problem.

  • One of the sites I visit does not respond when I use my wi - fi.

    I have an iMac, iPhone and the iPad. This site (www.cheapjoes.com) is accessible via my iPhone, using Verizon, only. When I am connected to WiFi, it says "the server unresponsive. This happened for several days, and this is the only site doing this. I have restarted the iMac and iPad, deleted the cookies from this site, restarted the wi - fi, all to nothing does not. Can you help me?

    You can try things:

    1 clear the DNS cache: http://osxdaily.com/2015/11/16/howto-flush-dns-cache-os-x-elcap/

    2. check the hosts file: cast Terminal, located in/Applications/Utilities/and type the following command (followed by enter): sudo nano/private/etc/hosts

    You will be asked your password, but that's OK. Copy and paste the result in a reply to this topic. Subsequently, you can quit Terminal (Type ctrl-X first).

  • Since last week, when I have several windows open in firefox, the pages back and forth between windows open by themselves. This does not happen when I use tabs instead of windows, however.

    window 1: gmail (example only)
    window 2: facebook for some company (example only)
    I will review my email and the screen suddenly changes the Facebook to say P & G for example.
    If I tab1 as gmail, tab2 as facebook P & G, it won't happen.
    And it only happens in Mozilla Firefox. When I use IE, that's fine.

    What Windows platform should not make a big difference. The screenshot may appear as coming from an older version of Windows, but the basics should be the same.

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

Maybe you are looking for

  • Cloud 5 TB storage

    Has anyone found cloud storage online for the larger amounts of files?  Everywhere seems to stop at 1 to.  I have at least 4 TB of data and which is always growing so 5 to would probably be good.

  • Sony NP-F970 battery SDS

    I am currently up-to-date Safety Data Sheet Database our company and the Sony NP-F970 battery SDS

  • HP recipe box

    What is the recipe for hp box?

  • The keypad does not work on my computer hp laptop g72,

    The keypad does not work on my laptop hp g72, NumLock, slash, star, dashboard and more keys only work all digital and 'point' or 'period' keys don't work. Help, please.

  • New on defragmentation

    If I cancel a defragmentation can I get when I start again or just disappears when I cancel? I know it will take more than a day, so it would be nice to be able to take a break and start again the next day.