Need to flv video to stop once loaded

Hi, I created a document that has 3 buttons. When everyone is pressed action happens... loads a movie, jumps to the next section, plays the video. The problem I have is when I click on the button image, my video playback and stays. The film should play only when the movie button is selected, and then deleted when you press another.

It may be possible to indicate to the video controller to stop once loaded, but I do not know the command. The way the movie is imported, the controllers are integrated in the wrapper, but I don't know how to stop playback of the movie.

Any ideas? As much detail as poss please! My film is called movie.flv, but the instance is called vid.

< CODE >

package {}
import flash.display. *;
import flash.events. *;

import local classes the MyClasses folder MyClasses.*;//Import

/*
This application displays 3 different ways to show the video and animation. The video must be included in the scene by importing
By clicking on the buttons at the bottom brings to the top of each type of object. All have their own actionscipt classes to control.
If you have imported a video placed on the stage and gave him the name of the vid, then you can uncomment the video code
*/

SerializableAttribute public class VideoMain extends Sprite {}

Create objects, we can use with actionscript. These are related to the symbols of the library.
Each has its own actionscript file to control internal...
private var banner: AnimationBanner = new AnimationBanner();
private var frames: AnimationFrames = new AnimationFrames();

public void VideoMain() {//This code is executed at the start of our application. It has the same name as the flash file...
//
addChild (banner);
addChild (frames);
The value that they are invisible...
Banner.Visible = false;
frames. Visible = false;

Set up actions for the buttons at the bottom of the screen...
banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
frames_btn.addEventListener (MouseEvent.CLICK, showFrames);

Cannot refer to vid if you imported a component video and called it "vid".
VID. Visible = false;
vid.addEventListener (MouseEvent.CLICK, showVid);
}

The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
private void showBanner(event:MouseEvent):void {}
Banner.Visible = true;
frames. Visible = false;
VID. Visible = false;
movie_flv. Stop();
}

private void showFrames(event:MouseEvent):void {}
Banner.Visible = false;
frames. Visible = true;
VID. Visible = true ;);
movie_flv. Stop();
}

private void showVid(event:MouseEvent):void {}
Banner.Visible = false;
frames. Visible = false;
VID. Visible = true;
movie_flv. Stop();
}

}

}

< code >

use:

package  {
import flash.display.*;
import flash.events.*;

import MyClasses.*;//Import local classes from MyClasses folder

/*
This app shows 3 different ways of showing video and animation. The video must be brought into the stage by importing it
Clicking the buttons at the bottom brings up each type of object. The all have their own actionscipt classes to control them.
If you have imported a video, placed it on the stage and given it the name vid, then you can uncomment the video code
*/

public class VideoMain extends Sprite{
 
  //Create objects we can use with actionscript. These are linked to symbols in the library.
  //Each has its own actionscript file to control it internally...
  private var banner:AnimationBanner = new AnimationBanner();
  private var frames:AnimationFrames = new AnimationFrames();

public function VideoMain() {//This code is run when our application starts. It has the same name as the flash file...
   //
   addChild(banner);
   addChild(frames);
   //Set them to be invisible...
   banner.visible = false;
   frames.visible = false;
  


Set up actions for the buttons at the bottom of the screen...
banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
frames_btn.addEventListener (MouseEvent.CLICK, showFrames);
  
Cannot refer to vid if you imported a component video and called it "vid".
VID. Visible = false;
vid.addEventListener (MouseEvent.CLICK, showVid);

movie_flv.addEventListener (Event.REMOVED_FROM_STAGE, removedF);  assuming that movie_flv is a flvplayback component existing at this stage.

}
 
The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
private void showBanner(event:MouseEvent):void {}
Banner.Visible = true;
frames. Visible = false;
VID. Visible = false;
movie_flv. Stop();
}
function removedF(e:Event):void {}

movie_flv. Stop();

}
private void showFrames(event:MouseEvent):void {}
Banner.Visible = false;
frames. Visible = true;
VID. Visible = true ;);
movie_flv. Stop();
}
 
private void showVid(event:MouseEvent):void {}
Banner.Visible = false;
frames. Visible = false;
VID. Visible = true;
movie_flv. Stop();
}

}

}

Tags: Adobe Animate

Similar Questions

  • Video do Stop once-closed

    I'm building a set of rich media on the edge ads that its animate an extensible video component. I added a border closure button, which closes the enlarged video. However, the audio from the video continues to play in the background. Can you please help?

    Here's the announcement: Untitled

    In the case where someone else needs the answer, figured this out on my own. Here is the code needed on the close button (I missed the break before code):

    SYM. Play ("Nat_League_Back");

    Pause a video track

    SYM.$("BaseballVideo") [0] () .pause;

  • I need to stop her only flv video and keep the bg music playing

    HelloW,

    I made a Web site with bg good House, Gallery, portfolio, contcts. These are the links. When click on portfolio, which contains the flv file, when you click the stop bg flv file and video music will play smoothly. But if I navigate to the other links the sound of flv rest their and my bg music only plays not as... Please help me, here for every question there is only one answer / a code SoundMixer.stopAll ();  I got this code b4 it vile stop all sounds... i dnt need to stop the background music, I need to stop that my noise flv video... There is a bg music, playing a sound from EV when entering, to the portfolio section thers, flv video. I can stop all of the other sounds Fri play this flv video but I can't stop it its Fri navigate to other sections and I need to continue the its bg Fri, navigate to other sections. ...

    TNX

    LIJO SPIDEY

    You must explicitly stop your video stream when you navigate away from portfolio.

    If you are using a component flvplayback, you can use the removedfromstage event to trigger this action.

  • When starting, my windows xp hangs or crashes when you try to load 'personal settings '. I can't do something, but stop once again on commissioning, she repeats the same actions.

    When starting, my windows xp hangs or crashes when you try to load 'personal settings '. I can't do something, but stop once again on commissioning, she repeats the same actions. What now? Thank you

    Hello

    Disconnect all external devices from the computer and try to restart the computer and check what is happening.

     

    Step 1:

    Try to boot to the desktop in safe mode and check what is happening. Only basic files and drivers needed to run Windows are started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic as possible cause device drivers. To start in safe mode follow the link.

    http://support.Microsoft.com/kb/315222

    Step 2:

    If you are able to boot to the desktop in Mode safe, it means that the third-party application prevents the computer from starting in normal mode. To check you can configure the computer to clean start State and then try to boot into normal mode and check what is happening. To set up its own start-up follow the link below.

    http://support.Microsoft.com/kb/310353

    If the problem does not continues when the computer is in the clean start State follow the steps listed to identify which application is causing the problem.

    Note: When you are finished troubleshooting, follow step 7 article to start on normal startup.

    Hope this information is useful.

    Amrita M

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

  • Insertion of FLV videos which allow students to start and stop any where

    Hello

    I am inserting the flv videos that students must be able to start and stop anywhere, and when the video gets to the end, the student click on the button NEXT to go to the next slide.

    As long as the student allows playback of the video without interruption, the button NEXT appears at the end.

    The problem I have is that everything works except the button FOLLOWING does not appear at the end of the video, unless the button NEXT is visible for the duration of the video is.

    If the button IS visible all the while that the display of the video, the student is able to skip the video without looking.

    I need the students access to the entire video as part of the course.

    Is this possible?

    Here is what happened.

    I did what you suggested. I also had to insert another Widget playback bar to allow the student to stop the video and restart in a different position. The problem is that the student can stll drag the cursor in the horizontal position at the end of the video, and spend the rest of the video if they want to.

    What I had to do was to show only the playback bar near the end of the tail of the video to allow the student to maniplulate the position of the video if they want to replay one somewhere else. If they don't do anything, the video will automatically switch to the next slide.

    Thanks for the suggestion insert you as a "multi-slide synchronized video" that helped a lot.

  • Windows media player 12 win7 stopped to load my music

    Hello

    Recently when I open windows media player stopped to load my music, videos and

    photos. I tried the fix as tools of Microsoft without success. Also, I ran the troubleshooting

    program and it detected that my library was corrupted, I tried to solve this problem by following the instructions of

    Microsoft help but also for nothing doesn't.

    The strange thing is that when I attach my external hard drive were to only keep a copy of my music, windows

    media player, then begins to load my music.

    Yours Sincerely,

    Kenneth Dwyer.

    Hello
    Welcome to the Microsoft community. Sorry for the delay in responding.
    Will there be any changes made before that the problem started? What are the FixIt and the steps that you have already tried to fix the problem?

    To correct the path where Windows Media Player adds the files, please follow the steps in this article.
    Add items to the Windows Media Player library

    To rebuild the library, please follow the steps in this thread:

    Hope that the information provided has been helpful and let us know if you need help. We will be happy to help you.

  • Pkg of SCORM composed of several FLV files takes time to load in LMS

    Hello world

    I m create scorm packages in captivate. The source, I got to the MP4 format that I convert FLV files. I loaded these FLV files on slides in captivate. In this way, I create the scorm package using parameters of scorm 1.2.

    Problem: I've loaded the scorm LMS package and tested. It takes more time to load the files at the usual time. I can reduce this time somehow? I know video needs a buffering time, but if there is no way to reduce this time - it would be a great help.

    Pls help...

    Thanks and greetings

    Vikas

    Hi Vikas,

    The time it takes is due to the size of the project and the load on bandwidth on your side.

    Basically, you need to reduce the size of your package. So do what encoding your FLV videos to a smaller size using Adobe Media Encoder. And then add to the slide and re - publish the SCORM package.

    Tip: While encoding, maintain the level as basic or low and target bit rate as being less as possible, it would appear you are the expected file size to the below, when you use the custom encoding settings.

    Good luck.

    Anjaneai

  • Problem with switching between two streaming flv videos

    Hello! Coconut I m of course! I have 2 streaming flv videos in the timeline panel. Reading flv containers are in different settings that you can view with two buttons. Once I pass the first video in the second... When I go back to the first he won´t see the worms the top (it goes on the framework, I said, but video doesn´t load) and this position can´t go to the second. (It works fine on place).
    This is the page: www.spyltd.com.ar go to the MEDIA button.

    I thank very much for your help and excuse my English!

    Add a random variable on behalf of these two so the aborted file flv is not retrieved from the cache to the users.  for example,.

    whatever_pb.source = "diiaSkate.flv? NoCache = "+ math. Random();

  • Problem adding FLV video to an actionscript 3.0 file

    Hi I'm new to Flash, and I try to add a second 20 long FLV video to a script file 3.0 of action in order to place an animation during this video import. The video is my dog run and I want to animate a sprite in a layer on top of that to make it look as if the sprite is on the heels of my dog. Is this really possible? I tried to import the video into the file, but the video does not play it just shows screenshot one of the video during preview for all the time he plays and when I try to preview the video in an own window, it cannot load it, it freezes just then loading (the program not crushed by the loading bar crashes).

    Any thoughts on where I'm wrong or what I could try or if this idea is feasible using flash professional CS5.5 and my laptop has more capabilities proposed by Adobe for the software?

    Thank you!

    If you want to have a type of interaction or layer on the video, you must import the .flv in the main scenario where he will play frame by frame... do not use the FLVPlayback component.

    Set the framerate doc Flash exactly match the video file.

    Once you get the video in the timeline and play, then go to the addition of other parts of the animation. Synchronization of the animation to video, not the reverse.

    Good luck!

    Adninjastrator

  • iOS 10 video playback stops working until you restart

    I have an iPad Mini retina, and since the upgrade to iOS 10.0.01, a short period of use causes videos to stop working.

    Videos in Safari, Chrome, YouTube etc. appear in the cache (saturated with progress on the top bar), but no response to play. The first image of a video appears, but only in the form of static image. I am able to change the static image displayed by rubbing them at any point in the video, but playback will not occur.

    The only thing that allows video playback is again restart the device (apps force closing, locking and unlocking etc. doesn't help).

    Hello, Sunkai!

    Thank you for using communities Support from Apple. I understand from your post that you're having trouble playing videos on your iPad mini; the video will start but will be stuck as a single image, as if the buffering and never take back (at least until you restart). I mainly use my iPad for watching videos, so I know it's important that they play in fact; I'm happy to help you!

    I have some troubleshooting I can offer to you. Before you begin, create a backup of your iPad using iCloud or iTunes, following the instructions here: How to back up your iPad, iPhone or iPod touch

    Once you have your backup, try the following steps, in order. A video test after each step and will stop when the problem is resolved.

    1. Make sure your iOS software is up-to-date. In the last week, iOS 10.0.2 came out. Use the following article to get help update: update the iOS on iPhone, iPad, or iPod touch software
    2. If this happens on a Wi - Fi connection, try restarting the network you are using from the router or the modem (if possible). If it is a private (for example, your home network) WiFi network, try to remove all the devices on the network, then by simply adding your iPad in return.
    3. Try a different network.
    4. Reset the network settings on your iPad under settings > general > reset > reset network settings. This will affect all personal data (like your photos, contacts, calendar of events, etc.) but it will remove saved passwords, and Wi - Fi networks one previously used settings APN or VPN and all paired Bluetooth device.
    5. Restore your iPad settings, following the steps described here: use iTunes on your Mac or PC to restore the iPhone, iPad, or iPod touch to factory settings

      Once the restore is complete, configure the iPad as a new device (i.e. without using the backup that you created earlier, at least temporarily). You can sign in iCloud, iTunes and App Store, iMessage and FaceTime with your Apple ID test then a video.

      If the problem is resolved, you can restore your backup by the information here: restore your iPhone, iPad or iPod touch from a backup

    Have a great day!

  • I have a problem with an error in windows media center: ERROR VIDEO files needed to display video are missing or corrupt.

    The error is: ERROR VIDEO files needed to display video are missing or corrupt.

    I Run Setup and restarted my computer at a later date.  I've always been unsuccessful.

    Can anyone help. Thank you

    Update your graphics card driver. Visit the manufacturer's Web site to download and install the latest graphics driver. Once proceed as follows: -.

    You must uninstall and reinstall the tv tuner card driver.

    1. start.

    2. in the start search box type:devmgmt.msc and press the Enter key.

    3. scroll sound, video and game controllers and expand it.

    4. right click on tv tuner card and uninstall it. Uninstall the device as software driver.

    5.reboot.

    6. visit the manufacturer's Web site to download and install the latest update and compatible tv tuner card tv tuner driver.

    7. now open Windows Media Center and re-run the whole upward.

  • Where can I find a list of services that XP Professional needs to start and run successfully without loading unnecessary things?

    I seem to have a long boot of extradanry sequence. I checked with the listing services under administrative tools, and according to the list that appears, I have excess of 127 or so listed services.  Some are in automatic mode, some are on manual, none are disabled.  My question is, where can I find a list of services that XP Professional needs to start and run successfully without loading any of this filth?

    Yes, I understand that some of this "gunk" is things I need for installed applications, but I'll sort that once I put my minimal optimal operating system to boot the system.

    I appreciate the help.

    * original title - "Minimum started for xp services."

    Here is where you can find what services should be automatic, manual, or disabled according to your needs. It is really useful.
    Source: http://ss64.com/nt/syntax-services.html

    I hope that helps!

  • How to stop to load at startup of indexing

    I use Win XP Pro, and I want to stop indexing load at startup in my system tray.  I somehow it started about 2-3 weeks ago and now I want to put an end to its use.

    Thanks for any help.

    If it's the windows index service you can turn it off via the admin tools Control Panel.
     
    If it's a third party indexing service, you may need to disable the program by clicking on the Start button > run > msconfig > Startup tab
     
     
     

    --
    db·´¯`·...¸><)))º>

    .

    "JHL1951" wrote in message news: e8e61b15-0624-44 CF-a54d-0e41cf3de646...

    I use Win XP Pro, and I want to stop indexing load at startup in my system tray.  I somehow it started about 2-3 weeks ago and now I want to put an end to its use.

    Thanks for any help.

    DB·´¯'·.. ¸ >-))) º > ·´¯'·.. ¸ >-))) º > share nirvana mann

  • How can I control a FLV video using exhibit main bar (not FLV skin)?

    I need to have the ability to play/pause a FLV video on a slide with the bar of main games.  Research showed me that in previous versions, there is a checkbox "synchronize with project" which allowed this.  I don't find this in version 8.  Is there another way to do this?

    Hello

    Welcome to the Adobe Forums

    Try to insert the video like video instead of event video synchronized slides,

    Then down below it will be an option to distribute video through the slides and you can select Slide n to n (where n is the number of slide).

    Hope that this will serve as your need.

    Concerning

    Himanshu

  • GAL/jumping images when executing 3 flv videos Netstream.

    Why do I not Lagie jump video images during the use of Flash CS5 and 3 flv videos Netstream. If I play only 2 videos they work well. It is not a CPU or memory reaches max. Videos are for download locally (cached anyway).

    Conditions:

    Windows 7

    Flash Player 10

    With or without hardware aceleration - same experience

    More than 2 videos of netstream

    CPU i7

    8 GB RAM

    GeForce GTX 650

    Windows Flash (no browser) application / Windows Projector (tried too)

    Result:

    Videos all the laggie and jumps frames

    What I want:

    -Magic way to fix the lag
    -Alternative to load the video (with cue point of control and search)

    CODE:

    3 x MovieClips containing:

    var vid:Video = new Video (640,1080);

    this.addChild (vid);

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    vid.attachNetStream (ns);

    NS.client = this;

    NS. Play ("someVideo.flv");     10 MB of video

    Problem/Bug fixed in Adobe Flash CS6 windows player!

    Thanks for your help.

Maybe you are looking for

  • Satellite Pro 6100 - what CD/DVD drive that I can use

    What DVD player is supported by the Satellite Pro 6100?I need to upgrade Thank you much for the help.

  • Acer Aspire switch 10 - Wi - fi randomly stall

    Hi all, I have problem with my Switch 10. The internet connection drops frequently. It is followed by the icon of signal strength showing "Limited." I then turn WI - FI off and back on and it recognizes not all networks at all. I then go into network

  • Password recovery of Compaq Presario CQ57

    Hi guys,. I have a compaq presario CQ57... When I turn it on, it asks an administrator password or power on password. After 3 attempts having failed, it says 'disabled system 91636716'... someone at - it a password, please & thank you. Also if, given

  • DRAIN OF HARD DISK SPACE

    Recently released 20 GB of disk space to use.  A few weeks later, I'm up to 1.3 GB.  I have not downloaded any single file or group of files that corresponds to 20 GB.  Which file or files are in residence on my HD that are so self-propagating whenev

  • Major LMS parameters

    200 GB main system memoryI saw a few allocations of memory to other companies.Currently on 11G on AIX I allocated 16 GB to db_cache_size8GB to keep_cache_size4 GB to recycle_cache_sizewith a 16GB so PGAI was wondering if someone has allocated more me