How to insert AS to fix audio in imported swf ?

Thanks to Whyves... This previous post seems to have a solution, Im just not sure where i create layers in my Captivate 4 file? As I go into Project > Actions >???
Cheers
5. Mar 31, 2010 4:23 PM in response to: Whyves_
Re: Captivate 4, interaction SWF using XML and the Reviewer tool Problem
Part 1:
Found a way to stop the imported SWF audio when a user switches slides. The following AS3 code was inserted into the imported swf:
My actions layer:
root.addEventListener(Event.ENTER_FRAME, checkSlideInfo);
My functions layer:
function checkSlideInfo(e:Event):void {
    /* if user moves to next or previous slide in Captivate, stops the interaction audio */
    if(root.cpInfoCurrentSlide == 4) {
        null
    } else {
        /* stops audio */
        if (savedChannel!=null) {
            savedChannel.stop();
        /* resets interaction */
        loadContentToBox(contentBox.contentText, instructions);
So, for those trying to find a way to stop their audio from imported swfs, there's one piece to the puzzle!!! You CAN stop your imported swf audios or animation audios using the above function in AS3!
BTW, it would be nice if Adobe would create a book on Essentials to Advanced Actions, just a suggestion since it is somewhat of a programming language and it would be nice to have samples and more informative tutorials to use.
NOTE: The above function calls on other variables and functions are specific to the interaction. The main piece to focus on is the roo.cpInfoCurrentSlide. It had to equal slide 4 in order to allow the interaction swf audio to play. If the user switched, I stopped the savedChannel (named soundChannel variable in AS3) from playing.

Hello,
About your suggestion for a book on essentials for advanced actions. Rick Stone has such a book, for Captivate 4 (Goober Guide).  I have been blogging a lot about advanced actions, with links to tutorials published with Adobe Publishing Application. It is not a book, but could perhaps help you if you did not yet visited the blog. The feedback from readers is pretty positive. Here is a link to a post that has a list with the published articles, a lot of other blog posts explain use cases and principles:
Articles on Advanced Actions
Lilybiri

Similar Messages

  • How to insert landing site and impression code into swf files

    Hi guys!
    i got problems.
    Actually, i dont have  knowleage about tracking and clicks.
    I want to find out how to use it and use it in swf files.
    i want to insert landing site and impression code into swf files but i dont know how to do it.
    i want insert two link below into swf files.
    Impression:
         http://impgb.tradedoubler.com/imp?type(inv)g(xxxxxxx)a(xxxxxxx)
    Click:
         http://clk.tradedoubler.com/click?p=xxxxxx&a=xxxxxxx&g=xxxxxxx
    Can you show me how to do that?
    Thanks for your helps.

    You would need to creat a invisible button or movieclip on a new layer on top and have it fire a external javasctipt function you create in the HTML header that will then call those URLs .

  • How to insert video without affecting audio on Mac

    I'm trying to insert video but it keeps displacing my audio in soundtrack.  I hold the alt button as it says in help instructions but it doesn't work.  How do I do this seems a simple thing a program like this should do.

    Welcome to the forum.
    It sounds like you are running up against PrE's default to do a Ripple Edit, when you want an Insert Edit. The modifier key to use to toggle between Ripple and Insert, is Ctrl (on a PC, which should translate to the Cmd key on the mac). If the Ctrl key is held down, then the editing process becomes an Insert Edit.
    Let us know if that works, and good luck,
    Hunt
    [Edit] Steve, thanks for affirming that it IS the Cmd key on the Mac.
    Message was edited by: Bill Hunt

  • How to insert a streaming audio file/link into a basic HTML page?

    I am a novice webmaster managing the website for our arts organization.  I am trying to build a simple table on a page of our site that will have about 30 streaming MP3 audio clips for our members to review.  I'm using Amazon CloudFront and Amazon S3 to host and stream these files (using an embedded JW Player?).  Can someone explain to me how to insert these media files into my Dreamweaver page in the most simple way? 
    Up until now, I've been just inserting downloadable MP3 files as quicktime plugins (also hosted at Amazon S3) but with 30 files that gets pretty cumbersome because they all begin to progressive download at the same time. 
    Thank you.

    I simply want a basic playlist for  MP3 files.  What is the type of playlist I want in that case? 
    XML would work.
    http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/5768/how- to-embed-jw-player-with-an-xml-mp3-playlist
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How does PrE 9 fix audio levels automatically?

    Hi,
    In one of my projects, I'm combining multiple pieces of footage with different audio levels. I've read somewhere that PrE 9 fixes audio levels automatically. How do I use this? Where is this feature in the app?
    Thanks,
    Sam

    The main thing I want is to make sure that audio level is too high for one footage and then too low on the other. At the end, all the clips are put together to produce a single video and I want the audio to be consistent throughout the video.
    Would I then select all the clips and do what you're suggesting? Do I do this one clip at a time or do I select all at once -- not sure how to do it?
    Thanks,
    Sam

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to insert audio – not overwrite – in multitrack view

    Very often, I need to insert audio into a project. This means all tracks after the insert need to be pushed back along the timeline to make way for this. (As happens in PP when inserting a clip from the source monitor into the timeline.) I used to use Digigram's Xtrack, which has been able to do this since 15 years ago. The only way it seems possible in Audition is to insert silence that's exactly the same time length as the audio I want to insert, then add the audio to the space that has just been created. Fine if it's a one-off, but I need to do this regularly and it's pretty cumbersome. Any way to speed up this operation?

    Yes, it is a limitation. Generally the easiest (and almost certainly the quickest) way to do this isn't to bother with inserting time - just group all the clips after the point you want to insert, drag the lot forward along the timeline, insert your new clip, then drag them back again to the end of it. No it's not perfect - but it works.

  • I have an ipod touch and lyrics dont show up when i play a song. i know how to insert lyrics they  just dont show up. what can i do?

    i  have an ipod touch and lyrics dont show up when i play a song. i know how to insert lyrics they  just dont show up. what can i do?

    Are you trimming the videos on the iPod?
    http://blogs.vancouversun.com/2010/09/20/how-to-fix-out-of-sync-audio-on-videos- taken-with-your-iphone-or-ipod-touch-4g/
    Also see:
    https://discussions.apple.com/message/12873340#12873340

  • Help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    There are many possible causes for this issue. Take each of the following steps that you haven't already tried. Some may not apply to your model. Back up all data before making any changes.
    1. Start with the steps recommended in this support article. Don't skip any of the steps. It's the starting point for further efforts to solve the problem.
    2. Make sure you have a fully up-to-date installation of OS X.
    3. If you've installed an application called "Memory Clean" or any other third-party software that is supposed to "clean" or "purge" memory automatically, remove it according to the developer's instructions and restart. You should do that even if the software is not causing the problem, because it's useless.
    4. Other third-party software that has been reported to interfere with sound output includes "Boom" and "Samsung Kies." If applicable, uninstall according to the developer's instructions (not by dragging something to the Trash.)
    5. If an AirPlay device is selected for sound output from iTunes (or from other applications via third-party software such as "Airfoil"), deselect it.
    6. Launch the application "Audio MIDI Setup" by entering the first few letters of its name in a Spotlight search and selecting it in the results (it should be at the top.) Select Built-in Output from the list on the left. If the Mute boxes are checked, uncheck them.
    7. If a red light is visible in the audio-out port when sound should be playing, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a mini-stereo jack of the proper size. If not, the machine needs to be serviced. Inserting any kind of tool in the port may cause damage that won't be covered by the warranty.
    If there's no red light, the switch may still be stuck in the headphone position. Try to free it the same way.
    8. Disconnect all wired peripherals except keyboard and mouse, if applicable. If more than one display is connected, disconnect all extra ones. Restart and test.
    9. If you have a MacBook Air, turn off Bluetooth and restart.
    10. Start up in safe mode. Don't log in; just restart as usual when the login screen appears. When you do, make sure the words "Safe Boot" do not appear in the login screen. If they do, the system is still in safe mode and sound won't work.
    11. Reset the NVRAM.
    12. Reset the SMC.
    13. Triple-click anywhere in the line below on this page to select it:
    /Library/Preferences/Audio
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and empty the Trash. Recreate your settings in the Sound preference pane.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    14. Reinstall OS X after backing up all data.
    15. Make a "Genius" appointment at an Apple Store.

  • How do i start video and audio at the same time in ios

    How do i start video and audio at the same time in ios?
    I have tried a lot of different ways but i cant figure it out?
    I can get the sound and animation (timeline) to start playing.
    There is no problem to start the video and the animation at the same time.
    But i cant get both the video and the audio to start playing when i press a button.
    It works great in OSX and on windows?
    Here is an example:
    // insert code for mouse click here
    // Play an audio track
    sym.$("_1")[0].play();
    // Play a video track
    sym.$("host")[0].play();
    // Play the timeline at a label or specific time. For example:
    // sym.play(500); or sym.play("myLabel");
    sym.play("marker1");

    If the game has sound in it (and possibly even if it doesn't) it may be overriding the Music app and causing it to stop playing - in which case there is nothing that you can do about it.

  • How can I code to play audio continuously from page to page in iBooks for reflow ePub

    Hi,
    I have tried and successfully completed the iBooks ambient soundtrack option in Fixed Layout ePub. It works fine.
    But while trying the same in Reflow ePub, it is not working in iPad iBooks. I have latest iBooks version and latest iOS version in my iPad.
    Please let me know how can I code to play audio continuously from page to page in iBooks for reflow ePub?
    Thanks,
    Sundaram

    As soon as the user turns to the next page, the audio stops.
    That's how it works in all cases.
    the book is a read aloud book.
    See the 'How-To Read Aloud' section in iBA Tips and Tricks 01

  • How do I sync my AIFF audio to my NTSC 29.97fps video?  It's out of sync.

    How do I sync my AIFF audio to my NTSC 29.97fps video?  It's out of sync.
    If searched the forums looking for an easy fix.  It has to be a common problem with a simple solution, yes?

    Surely you have a backup of your old laptop?  If you don't, follow this tip from wjosten... https://discussions.apple.com/docs/DOC-3141
    Then, purchase an external hardrive and backup your new computer.

  • How to insert a LaTeX equation in a quiz? Captivate 8

    How to insert a LaTeX equation in a quiz? Captivate 8

    Video was based on an explanations somewhere on my blog, both for replay and for audio (in 6-7: http://blog.lilybiri.com/toggle-shape-buttons). Same for the mute button, where I told the author that there is a bit of a maths mistake in his expression:
    Expression cpCmndMute = 1 - cpCmndMute     
    He reversed it, which will lead to negative 1. Lucky for him that Captivate doesn't understand negative numbers, -1 will be translated to +1. But as an engineer, this feels terribly wrong to me. I don't know why he deleted my comment....
    Sorry for ranting...
    As for a replay button, in CP5.5 maybe this easier expression could work as well: Assign cpCmndGotoSlide with rdinfoCurrentSlide.  
    Should check, but for the moment on this system no 5.5 available

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • How to insert a value from sequence in Bussiness Components?

    How to insert a value from sequence in Bussiness Components?
    I would like to do it, but without a triger that would do it before insert.
    I know that there is a type DBSequence in BC where you can insert a sequence name but it does not work when I type there my sequence name.
    Do you now how to fix that problem?
    Bart.

    The newer way to do it is to make the type DBSequence and enter the name of the Sequence object in the sequence field. It must match the same name of the sequence object in the database. Next, you have to create a before insert for each row trigger on the table. Basically, something like this:
    CREATE OR REPLACE TRIGGER TGB_THEME_SEQ
    BEFORE INSERT ON THEME
    FOR EACH ROW
    DECLARE
    BEGIN
    -- Assign the id from the sequence if null
         IF( :new.theme_id IS NULL ) THEN
              SELECT THEME_ID_SEQ.nextval
              INTO :new.theme_id
              FROM dual;
         END IF;
    END;
    In the above example, THEME_ID_SEQ is the seuence object name in the database. If you have the name right but it still fails, then the user you are logging in as probably doesn't have access to the sequence in the database.
    Hope this helps.
    Erik

Maybe you are looking for