How to add a toggle play/pause button for a flash video

Hi,
Can someone help me with this flash video. I am creating a
custom video controllers and I need to have a toggle play and pause
button. How would do I go about that. I tried to use it on a play
button and the video pauses and play, but I need to get the pause
image and play image in there. So, can anyone give me the code for
that . I really appreciate it.
Thanks

this is not truly an event driven state machine....
too many loops
data flow dependencies
wrong use of boolean controls
not a true state machine
here is a template...
Spoiler (Highlight to read)
Attachments:
event driven state machine.llb ‏27 KB

Similar Messages

  • Creating a Replay Button for a Flash Video

    I want to replay a flash video by clicking on a "replay" button. I know how to creat the buttons. I can't figure out how to create the action script. Thanks in advance for any help.
    I know how to create the Action Script to replay flash, but when I have a flash video that I want to replay that's when I run into trouble.

    Hi,
    This snippet should hint a solution to you (NetStream class):
    netStream.seek = 0;
    netStream.resume();
    Anyway, you would need to know when the movie has finished playing.
    On a Flash Media server, there should be an event just for that.
    If you are not running on such a kind of server, make yourself a cuepoint to listen to, at the very last frame of the movie, so your app knows when its time to offer the replay functionality. You can insert cuepoints in a movie when you are in the Flash Video Encoder options.
    Design Cyboïde
    Création de sites web Montréal

  • Play - Pause button for external .swf?

    I'm trying to create buttons so a viewer can pause and then play an externally loaded swf. My project can be accessed at the linke below. This is how I want the project to function
         -Click a room on the building (choose Accounting for this discussion)
         -Click one of the demo options (choose Ending a Period for this discussion)
         - Now that the demo plays, I want the user to be able to play and pause the demo swf.
    The demo .swfs were created in Captivate so I don't have access to their timeline. They are loaded into an empty Loader component using the MovieClipLoader Class. Can anyone post some possible solutions to this problem? Thanks!
    http://distribution.activant.com/demos/prophet21-on-demand/

    What would that look like? Right now they're loading using the following code:
    btnCashCollect_btn.onRelease = function () {
          mcLoader.loadClip("CashCollections.swf",myLoader);
          btnEndPeriod_btn.enabled = false;
          btnCashCollect_btn.enabled = false;
          btnFinancialMGMT_btn.enabled = false;
          _root.btnHome_mc._visible = false;
    So would I use something like:
    btnPause.onRelease = function() {
         myLoader.content.pause();
    Actually I just tried that and it didn't work...I need the buttons to work for multiple external swfs that will be loaded into myLoader

  • Play/Pause button for embedded video

    I'm working with an embedded video file and have set up some
    basic controls. The client wants the play button to be able to go
    from Play to Pause and have the button visually do this as well.
    Currently I have one Play button and one Stop button. How do I do
    this?
    Right now I have this for the play button:
    on (release) {
    _root.embeddedVideo.stopped = false;
    _root.embeddedVideo.play();
    And for the Stop button I have:
    on (release) {
    _root.embeddedVideo.stopped = true;
    _root.embeddedVideo.stop();
    Any thoughts or ideas?

    What would that look like? Right now they're loading using the following code:
    btnCashCollect_btn.onRelease = function () {
          mcLoader.loadClip("CashCollections.swf",myLoader);
          btnEndPeriod_btn.enabled = false;
          btnCashCollect_btn.enabled = false;
          btnFinancialMGMT_btn.enabled = false;
          _root.btnHome_mc._visible = false;
    So would I use something like:
    btnPause.onRelease = function() {
         myLoader.content.pause();
    Actually I just tried that and it didn't work...I need the buttons to work for multiple external swfs that will be loaded into myLoader

  • No full screen button for many flash videos (with the exception of youtube).

    I am using windows 8.1. I have updated flash and firefox. I can watch full screen videos on youtube but on sites like thedailyshow.com or southparkstudios.com there is no full screen button (only a cc button). I can find the button in chrome but not in ie or ff.

    If I understand correctly, your instructions enable a web page to be viewed in full screen. I'm having trouble viewing videos in full screen. No button exists to expand a video. I can expand any video on any browser on YouTube but the button isn't there when watching videos on sites like dailyshow.com or southparkstudios.com (it's there in Chrome but not in ff or ie, which leads me to believe it's not an Adblock plus, et al issue.
    Thanks in advance for your help.

  • Central Play/Pause button

    Is there a way to have one 'Central' Play/Pause button in Captivate?  I have inserted 4-5 video files into Captivate and either have "Autoplay" selected or leave the control to the end user in the skin.  However, when that user presses pause on the Captivate playbar the video file will keep playing if I select "Autoplay."  If I don't select "Autoplay" then there are two play/pause buttons (one controlling the video file and the other the whole captivate project)...is there a way to combine these two play/pause buttons into one central play/pause button?

    Sounds like your videos were inserted as Event videos.  Look into trying inserting them as Slide videos instead.  Then you lose the skin on the video but the playback bar for the entire module will pause the videos as well.

  • Add a play/pause button on old Macbook

    I got pretty used to have a play/pause button on my new iMac. But as I still have an old Macbook Pro (the first Intel core duo 2006 model) Apple didn't make buttons on the keyboard to navigate through your media in iTunes or Spotify or whatever media program is active.
    I'd like to add a play/pause functionality to my F11 and a forward functionality to my F12 button. I've managed to do so in system preferences > Application Shortcuts. But the thing is that the buttons only work if the program (I'm mainly using Spotify at the moment) is active. I want to make these buttons in all other programs (just like the play/pause buttons on new Macs). How can I do that?
    PS: I don't mind using terminal for this.

    Does anyone know if it's impossible?

  • Is it possible to add audio with a simple play/pause button and also have a clickTag attached to the full stage?

    my client wants to add audio to their banner ad (which always has a full stage clickTAG set). I'm trying to figure out a way to just use a simple play/pause button and attach a toggle action to it. Problem is when the user clicks it's going to the clickTAG URL that's attached to the full stage. Is there any way around this?
    Please advise and thank you in advance.

    I have the same issue. It is pretty annoying but at least the audio remains within the motion project. It just isn't accessible it seems as an FCPX template. So what I'm doing is this:
    I still use the video within FCPX's generator section so that you can edit the parameters as you need to
    For the audio, open the project in motion then under Share, click 'Export Audio'. Select 'CAF' format and save to your hard disk
    I then import the audio file into an event I set up specifically for this purpose (per BenB's suggestion).
    When I need it, I then insert the generator from the generators section and then attach the audio file below the primary story line for the audio track
    It isn't pretty but it works.

  • When I was setting up the language Setting, I pressed the play/pause button three times and now the voice that talks you through everything speaks extremely fast. How do I get her to speak slower?

    When I was setting up the language Setting, I pressed the play/pause button three times and now the voice that talks you through everything speaks extremely fast. How do I get her to speak slower?

    Hi Magsrobby,
    Welcome to the forum and thanks for posting. I'm really sorry to hear you've had so many problems. I can look into this for you if you wish. Drop me an email with the details. You'll find the "contact us" form in the about me section of my profile. Once I have the details we'll take it from there.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Removing client's ability to use play/pause button

    Hi all
    I am keen to use Presenter to put together a language listening test for some clients. My clients want their students to not be able to pause the presentation so, say, they can't pause, translate word, pause, translate word and so on. In order to do this, I need to remove or lock the Pause/Play button that appears in the skin of a Presenter module.
    I realise I can completely remove the Player bar by opening up the vconfig.xml file and changing the value next to <uishow name="playbar"> to false. This is a quick and dirty solution and may do the trick. However, I would like the students to still be able to see the time count down for each slide in the player bar. Why? Well, because my clients want their students to listen to an audio track, receive one minute's thinking time and then go on to answer a question about the track. The students should know how much time they still have available. This means somehow either removing the Play/Pause button or at least locking down its functionality.
    I'm not a Flash wiz (though I do have it) but I don't mind making changes to a few codes here and there. I just need to know which file/s and which code.
    Your thoughts/expertise would be greatly appreciated. Thanks in advance
    Peta

    Hi Peta,
    You're right...you could hide the playbar by setting that value to "false", but as you have no doubt already seen, that modification eliminates everything, which won't totally solve your problem.
    Since you have Flash, I'd recommend that you create a simple .swf file that will ultimately hide the Play/Pause button in the playbar area of Presenter content.  I'll be honest...I haven't "locked" the Play button, but that might be something to investigate IF what I'm proposing here doesn't do the trick for you.
    So here we go....
    In Flash, create a small stage area and on frame one in your timeline add the following:
    this.onEnterFrame = function () {
    _root.m_controlBar.m_playBtn._visible= 0;
    Save the Flash file as "playBtnKill.fla" and then publish it.  Then head back to PowerPoint and add the swf to the first slide in a presentation using Presenter's Import Flash function.  Publish the content and the Play button should be gone!
    Programming NOTE: because Presenter is set up for Flash Player 6/7/8, its best to code everything using Flash Player 6 / Actionscript 2.0 as the coding environment.
    A couple of things to keep in mind about this:
    First, by placing the swf file on the first slide of your PPT deck, the Play button will be affected for the entire duration of your presentation.  If you need it to show / hide / show /hide periodically throughout the deck, then you might want to think about how you want to handle the overall stucture of your course.  Meaning, that what might work is to kill off the Play button entirely, but use a PowerPoint graphic (that looks like a Play button) and then time that object to appear after a certain amount of time.  Of course, then you'd have to hyperlink the PPT object to the next slide in your deck so that folks will be given an opportunity to advance to the next slide.
    Second, since your intention is to remove the Play button, you should probably leave the "Advance by user" feature set to "NO", otherwise you will ahve to provide some mechanism of navigating from slide to slide (as mentioned above).  At least this way, by the time you've reached the end of the audio for a slide, the presentation will automatically advance.
    Hope that helps!
    Rob
    http://www.robrode.com/yabb/

  • Play & Pause buttons work...but not with each other

    V!P and dzedwards were a big help to me yesterday but now
    I've come up against something else...
    I've got 3 music buttons on a page. The code that I have
    plays and pauses each button perfectly. But if I have Button 1
    playing and I click on button 2 (without stopping button 1
    manually), and button 1 is still playing...both play at the same
    time. Which, I understand why it's doing that but I'm not sure how
    to fix it.
    What do I need to add to the code so as to stop the first one
    from playing if I don't manually click it to stop? The first
    button's instance is monkey7, the second button's instance is
    iBelieve and the third button's instance is Perfection.
    monkey7 = new Sound();
    monkey7.attachSound("monkey7.mp3");
    monkey7.start(0);
    var elapsedTime:Number;
    var played:Boolean = false;
    pauseButton.onRelease = function() {
    if (played) {
    monkey7.start(monkey7.position/1000);
    played = false;
    } else {
    monkey7.stop();
    played = true;
    Thanks. And I apologize to V!P and DZ in advance.

    Well..not exactly. Crap, how do I explain this? The
    pauseButton is where you're applying the stop commands but from
    what I can tell, it's not doing anything because the play/pause
    button (pauseButton) isn't the problem, it's the button for the
    next song.
    My problem is when they don't click the play/pause button and
    go directly to the next button with the next song.
    If it makes it easier to see what I'm talking about, you can
    go to
    http://www.monkeypunk.com/,
    click on the music button, click on Monkey #7 button and you'll see
    the layout. It takes a couple of seconds for the preloader to
    appear.
    The arrow button on the right of the songs is the
    pauseButton. My problem is, when they don't click that but click
    the next button beneath, the button previous to it continues to
    play.
    Again, I apologize if I didn't explain it better
    originally.

  • 30GB Play/Pause button won't work.

    Yes, another iPod Classic's play/pause button is messed up. I got it in March '09 so I believe that's over the 90 day fixing range. I've tried resetting, holding the menu & center button, & all of the suggestions on the Mac site, but it still won't work.
    Any ideas what could be wrong & how to fix it?

    Besides resetting the iPod, have you attempted restoring it? You can do that by clicking the "Restore" button on the the iPod's Summary page in iTunes.
    Assuming that doesn't work, you can check your [warranty status|https://selfsolve.apple.com/GetWarranty.do] to see if you are still covered for hardware repair. I doubt any 30GB iPods are still under warranty, since they were discontinued over two years ago, but you said you got it in March 2009 - did you purchase it used?
    Whether it's under warranty or not, you can always make a Genius Bar appointment at your closest Apple Store and see if they have any other suggestions, free of charge. If it's a hardware problem, they can replace the iPod for you, but there would be a charge to do so if you're out of warranty.
    Shawn

  • My play/pause button on my Ipod Classic is not working, I am unable to turn off my Ipod or push play. Can this be fixed?

    The play/pause button on my ipod classic is not working, I am unable to turn off or push play on my ipod. Is there away to fix this?

    Do other devices now connect?
    Did the iPod connect before?
    What encryption/security is the router using?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I have a IPOD classic late 2009 160gb ... Only my play/pause buttons doesn't work ? Do I need to replace the click wheel ?

    I have a IPOD classic late 2009 160gb ... Only my play/pause buttons doesn't work ? Do I need to replace the click wheel ?
    May try DIY due to cost
    Just wondering if anyone's had this fixed how much it costs
    Or if it's another problem before I order parts

    I have found the solution for myself for the above.  I use a specific scripting program which is accessed by Control A. To pause it, you need to use Control B. not sure if this would work for any other application but it resolves my dilemma after hours of trying!

  • Play/Pause Button Captivate 3 not working properly

    I am using Captivate 3, but my play/pause button is not working properly. I can publish and upload to my LMS, but when I click the pause button the first time the mode changes but the project keeps playing. I have to click two more times and then it works. Can anyone offer any assistance? Thanks so much!

    Hello @Unit_27 ,
    Welcome to the HP Forums!
    Thank you for the information about your keyboard! I'll see what I can do to help
    I think it would be a good idea to take apart the keyboard, or some of it, to determine if the keys are obstructed somehow. Some information on the supported method of cleaning the keyboard is mentioned in this document: Cleaning your Notebook PC
    If this does not resolve the issue, I would reinstall Windows on the computer. The issue at this point would be software related, to some unknown extent. A recovery will address any software issue. First, make sure you backup everything you need to. Here is some information on how to do this: Backing Up Your Files
    Once this is done, it is safe to reinstall the computer. Here is some additional information on how to do this properly: Performing an HP System Recovery
    Please let me know if you have any other questions. Thanks and have a great day!
    Mario
    I worked on behalf of HP.

Maybe you are looking for

  • I lost my i-tunes library on my vista pc  while trying to install  an update. How do i get it back

    I have a pc running Vista.  I got an update notice, but it would not upgrade. I tried to upgrade from download folder as suggested but somehow my entire i-tunes library is now gone. I have an external hard drive on this computer.  Can I transfer my i

  • Cannot get XP to print

    Hello! I've been working all morning on getting my really weird network going Right now, I'm stuck on an issue between my old Windows XP box and my new iMac G5 (running OSX 10.5.5). Ive got the two computers networking and file sharing okay, but I ha

  • Creating List of values in the Pk field show it in af:table

    Hi folks,               i'm using jdev 11.1.1.6.0 i'm having departmentvo in that vo i'm having departmentid it has primary key. i needed to create to list of values for that departmentid. so i use createofvalues pallete i did it. just map the depart

  • I am getting duplicate emails

    I have a .me account, that seems to be separate from my iCloud account.  I still you my .me email address which I don't plan on giving up. When I try to delete emails on my computer where I had my .me account popped to, which now seems to be the iclo

  • Select multiple separate lines in Indesign

    I would like to know how to select multiple separate lines of text? For example, selecting the a few words of the first and last line of a paragraph and applying a style? I am trying to apply the same function as cmd+mouse would do in Microsoft Offic