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

Similar Messages

  • 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

  • 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

  • Can i add play/pause button when playback swf file??

    Hi all
    i have a script to convert ms office docs to pdf then to swf files and display it in my web site, the problem is that the output files (swf file) contain each page of my documents in a separated frame and when i load the page there no possibilitie to control this file (play / stop) or (next/previous) buttons, the only way is to use the right click menu options.
    i am asking if there are any solution to embed my converted swf files and control it.
    thanks

    Hi,
    It sounds like you'll want to talk with the author of the script that builds the swf.  If that's you, then I'd recommend reposting this question over on the Flash Professional forums.
    Thanks,
    Chris

  • 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 Button in AS3

    I have search the internet, but I cannot find a simple way to
    create a play/pause button in AS3. All the solutions I find are for
    older versions when buttons could have actionscript directly
    applied to them.
    I created a flash animation and exported it as a .swf to work
    with only one layer in a new .fla file. I have three layers
    created, button, video, and actionscript. What I need is a button
    that will look like a pause button when the animation is playing
    and to pause the animation when clicked. It would be nice if it
    could also switch to a play button when paused.

    I made a movieclip (ppBtn) with 2 frames. The first has the
    pause button and the frame label 'pause'. The second frame has the
    play button, 'play'. I placed your script into the action layer.
    When I preview the animation, the buttons just alternate really
    fast and have no fuction.

  • Play/Pause Button no longer working

    I updated to iTuned version 11.1 so I could update my phone to iOS 7.  Now the Play/Pause button on my mac no longer works.  Not only that, but the same button on my external keyboard doesn't work as well. Even if iTunes is the window I am currently on, nothing.  Wondering if anyone else is having this problem.

    Didn't know this but just tested on my Apple TV v3-rA and pressing and holding play/pause does put it into sleep mode.
    Thanks for sharing that, it's not 5 seconds mind you, it only took 2-3 for me.

  • 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?

  • Mini's Play/Pause Button

    Hello I was wondering if anyone else has had such an issue. It's not a major problem but it does bug me sometimes.
    I have a 2nd generation Ipod Mini that's still under warranty. I usually turn off my Ipod by pressing and holding down the play/pause button. Lately however, I've noticed that this doesn't always work. Somtimes I have to try a couple of times for the Ipod to recognize that I'm actually holding down that key for it to turn off and not just pressing it to enable pause or play mode. The problem isn't always consistent but this was definitely not an issue before.
    Now my question is, is it really worth it to send it back to Apple? I understand that all Mini's that they send back now are refurbished..but is it worse to get a refurbished one back? Also, my warranty is expiring in November. If I do send my current Ipod back and get another one back does my warranty still only go until November? What if something is wrong (or goes wrong) with the one that they send back after the November deadline? Am I screwed?
    Thanks for any answers!

    Don't keep postiong with nothing else to say...saying "anyone?" is not going to make us answer any faster.
    Try this:
    when you go to turn it off, don't touch any buttons for a couple seconds before hand. I seem to have the same problem with my nano and I think the problem is just that the processor can't keep up.
    I hope this helps!

  • 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

  • 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.

  • 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

  • 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.

  • 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 :-)

  • 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!

Maybe you are looking for

  • Help please, my iTunes store app is not opening expet at morning , and afternoon I can't access it neither on my iPad nor on my pc

    Well I have bought my iPad two weeks ago and my iTunes  used to open on my pc and iPad,  but in the last four days it never opens except at morning when I wake up, what's wrong, please help.

  • Format hard drive and use the TM

    the story is long but start from downloadingthe mountain lion. i try to install but the system told me i need to run hard drive repair utility becouse the hard drive is damaged. i did that but the software told me is too much and i need to format the

  • Cannot reinstall photoshop cs3 extended on vista

    I bought Photoshop PS3 Extended 4/26/07 and have been running it on a Vista PC.  I tried to launch it in 4/2011, but it said something about the license not working and to uninstall and re-install. I uninstalled and have been trying ever since to rei

  • Airport drive remembers password, but I don't want it to

    hi, I just upgraded a Gen2 Airport Extreme to a Gen5 and I am having an intermittant issue with a USB thumbdrive Disk connecting without a password prompt here is a screen shot of the settings I believe should always ask me to enter the password (unc

  • Gain and loss account

    Hi, My scenario is Mae to order, when i m going to make new Finished material , i put 1 INR in with Price control "S".Then Created sales order - creation of BOM - production order - confirmation of production order - Then Dispatch the Finished good.T