How do i actionscript my flash button to play the sound while being transfered to another url?

Hi!
As the title says:
How do i get my flash button to play my sound when i click on
it while being transfered to another url?
I did get it to work, but only when i set the script to
"_BLANK". When i clicked the button then it played the sound and
opened the url in a new window. I want it to be in the same window
and still play the whole sound.
Now i get just 1 or 2 sec then when im transfered, it stops
playing the sound.
I hope this explains it..... if any typo....its because im
Swedish =)
Thanks in advance!

If you are jumping to another URL using the same window you
cannot have a sound start on the press of a button and that sound
to continue on.
Reason
You are removing all trace of the sound and the swf that
contains that sound file.
Work arounds
1.Take a look at "frames". This way you are keeping the
container page and opening another page inside of that page.
2. Div's. again you are importing a page into a particular
area yet keeping the swf, with the sound playing, in the parent
frame.

Similar Messages

  • ActionScript on Flash buttons

    I am just getting back into using Captivate 2.0 to create
    some online training and I need some assistance using
    JavaScript/ActionScript in Flash buttons. I created a series of
    buttons that are part of a single Flash .swf file. I'm using these
    buttons as kind of a "main menu" and I would like each of the
    individual buttons in the exported Flash .swf file to perform one
    of the following functions:
    - Open another Captivate project in the same (parent) browser
    window, or...
    - Jump to a specific slide in the current project
    I layed out all the buttons in a single .swf file so I
    wouldn't have to import individual buttons into my Captivate
    project. So how do I define the ActionScript for each button in
    Flash to achieve these functions?
    Any help is greatly appreciated.
    Brian

    Hey Brian,
    You can easily open another .HTM file using Javascript, but
    doing so generally won't allow you to do any tracking of results.
    Successful results tracking pretty much requires that an LMS is
    launching each file. That said, opening a new file requires only
    the following line of Javascript, where the path can be either
    relative or absolute:
    window.location.href = "<path to new file>";
    As for jumping to a specific slide in a given file, Adobe
    Community Expert Paul Dewhurst contributed to a discussion topic in
    these forums that references using an undocumented internal
    Captivate array to navigate to a specific slide via Actionscript.
    You can check it out here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1149498&highlight_key=y&keyword1=variable

  • How do I let local Flash content communicate with the Intranet?

    How do I let local Flash content communicate with the
    Intranet if you don't have intenet access to set it up? you se like
    a host for example with is out of an internet conexion, but the
    flash file use a web service that it's on the intranet but can't
    config the Global security settings.....
    help!!!

    That variable could be simply called... nextSection
    If you plan to use frame labels, than nextSection would be a String, otherwise it would be an Int (integer).  So when you click the button for section X of the site, the nextSection value is assigned either the frame label or the frame number of that button's section.  Then at the end of your outro, you have a line of code.... gotoAndPlay(nextSection)
    The nextSection variable should be declared in an actions layer that only has code in frame one but extends unbroken for the full length of the timeline.  This makes it available to anywhere along the timeline where it needs to be either read or assigned.  I sually use two layers for actions... one to hold such things like this that get shared anywhere along the timeline (function/variables)... and another for frame-specific actions (stop, value assignment, function calls, etc)

  • Can someone provide a simple button which plays a sound for ios?

    I need a sample fla or the code for a button that plays a sound when touched, adobe air for ios.
    I have tried multiple tutorials and nothing seems to go right.
    a sample fla would be awesome.
    i used to be an actionscript 2 programmer so everything is new to me in actionscript 3.

    actually i just seen you cant put actionscript for iOS...is that true?
    well to develop this for android i have this code.
    but when i hit the button nothing plays, yet it plays find on the computer.
    import flash.events.MouseEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
    var mySound1:Sound = new Sound();
    var mySound2:Sound = new Sound();
    var myChannel:SoundChannel = new SoundChannel();
    mySound1.load(new URLRequest("myFavSong.mp3"));
    mySound2.load(new URLRequest("myFavSong2.mp3"));
    mission_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickPlay1);
    stop_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickStop);
    ntl_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickPlay2);
    function onClickPlay1(e:TouchEvent):void{
              myChannel.stop();
              myChannel = mySound1.play();
    function onClickPlay2(e:TouchEvent):void{
              myChannel.stop();
              myChannel = mySound2.play();
    function onClickStop(e:TouchEvent):void{
    myChannel.stop();

  • How do i use my apple express speakers as the sound from apple tv?

    how do i use my apple express speakers as the sound from apple tv?

    Welcome to the Apple Community.
    You can't with the Apple TV 2 or 3, with the Apple TV 1, you can choose them from the Airtunes option in the settings menu.

  • I have rented a video on my iphone but when I got to play it on the apple tv it is only playing the sound how do I fix this?

    I have rented a video and when I go to play it on apple tv from my iphone it only plays the sound, how do I fix this?

    if it's not iphone4s or later it does not support airplay mirror

  • Ok here goes.  I have so much music I don't want to store it all on my computer and would like to store on an external hard drive.  So if all my music is on the external hard drive, how will iTunes see it in order to play the music.  Thanks

    ok here goes.  I have so much music I don't want to store it all on my computer and would like to store on an external hard drive.  So if all my music is on the external hard drive, how will iTunes see it in order to play the music.  Thanks

    This article might help you moving/relocating your library :
    http://support.apple.com/kb/ht1449
    Cheers AF

  • I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up ever

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

  • How do you change a device's name in the sound setting? For example, Let's say I want to change " logo headset" to "log microphone." Please help it's urgent!

    How do you change a device's name in the sound setting? For example, Let's say I want to change " logo headset" to "log microphone." I need to do this in order for Rosetta Stone to recognize my USB Logitech headset. I'm extremely confused. Please, just help.

    It is very difficult to offer troubleshooting suggestions when the "os version" you are using is unknown as each os has their own troubleshooting solutions.
    You can also post in your installed os section of the message board.

  • Macking button to expand the tree and collapse tree and another to add node

    macking button to expand the tree and collapse tree and another to add node and saving the changes in the database ( this is problem)
    and finally delete node from database
    so what is proper code for those buttons
    thanks my mail is :
    [email protected]

    Hello,
    Use the ftree package's functions
    code to expand all nodes:
    PROCEDURE explose_tree IS
    node    ftree.node;
    htree   ITEM;
    state   varchar2(30);
    BEGIN
       -- search the tree ID --
       htree := Find_Item('BL_TREE.TREE_1');
        -- search the root --
           node  := Ftree.Find_Tree_Node(htree, '');
        -- expand all nodes --
       WHILE NOT Ftree.ID_NULL(node) LOOP
          state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
          IF state = Ftree.COLLAPSED_NODE THEN
            Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
          END IF;
          node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
       END LOOP;
    END;and to collapse all nodes:
    PROCEDURE Implose_tree IS
       node   ftree.node;
       htree  ITEM;
       state  varchar2(30);
    BEGIN
       -- search the root ID --
       htree := Find_Item('BL_TREE.TREE_1'); 
       -- search the root --
       node  := Ftree.Find_Tree_Node(htree, '');  
       -- Collapse all nodes --
       WHILE NOT ftree.ID_NULL(node) LOOP
         state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
         IF state = Ftree.EXPANDED_NODE THEN
          Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
         END IF;
        node := Ftree.Find_Tree_Node(htree, '', Ftree.FIND_NEXT,Ftree.NODE_LABEL, '', node);
       END LOOP;
    END; Francois

  • My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    Hi Kappy Thanks for your answer. I did a reboot on my Macbook as suggested and this operation is going on non stop for 14 hours and on the screen always appears the same message that you can see in the picture in attachment. Any ideas?

  • I found an iphone3 and it has a passcode... I tried holding down the home and power button to reset the phone while connected to my itunes, but the phone doesnt reset or even turn off. What can i do to use this phone

    I found an iphone3 and it has a passcode... I tried holding down the home and power button to reset the phone while connected to my itunes, but the phone doesnt reset or even turn off. What can i do to use this phone

    I found an iphone3 and it has a passcode... I tried holding down the home and power button to reset the phone while connected to my itunes, but the phone doesnt reset or even turn off. What can i do to use this phone
    We were going by your post. 'What can i do to use this phone"...
    No offense intended, it's just that we see thousands of posts where people have different reasons for trying to use a stolen or lost device.

  • Video streaming from iPhone to Apple TV only plays the sound.  How can I fix this?

    Video Streaming using AirPlay from iPhone(5s) to Apple TV only plays the sound.   The TV screen goes blank when I choose AirPlay but only the sound plays.   How can I fix this?

    Is this using a specific app or apps?  Not all apps support video out over AirPlay, the option is up to the app developer.

  • My Theme disappears from the DVD after I burn it on to a disc. I know it's there but my DVD player doesn't "see" it. How do I burn an iDVD that will play the theme?

    My Theme disappears from the DVD after I burn it on to a disc. I know it's there but my DVD player doesn't "see" it. How do I burn an iDVD that will play the theme?

    It sure is. It also plays on my PC using VLC Player. So, I know that it was burned onto the DVD.

  • Flash button to turn off sound

    Can anyone help please! I want to add sound to a webpage but
    offer the user a chance to turn it off. I thought I could create a
    Flash button and asign a behaviour to turn the sound on and off but
    can't make it work..Any advice very welcome - thanks ....
    Heather

    Sure this can be done and is known as a 'toggle' button. What
    you need to do is make a MC with two 'states', 'off' and 'on' with
    labels just like that. then you will control the MC button from the
    on handlers, and use a boolean variable to determine which 'state'
    the button is in, and then execute the opposite state.
    A Sound Object is a sound class instance that you can use to
    control the playback of a sound from that is attached from the
    Library or load a streaming sound from your sever (in this code I
    chose the latter as an example), rather than placing the sound on
    the timeline, saving file space and download time (I'm assuming
    this may be BG music). Using a Sound object also gives you more
    control over the sound.
    So with you MC set up, a sound in the same directory as the
    fla/swf files, then add this kind of code to the main timeline
    where the button (MC) resides, I'll call the button instance
    'mute_btn':

Maybe you are looking for

  • Raw by raw contitional link in interactive report

    hi all, i need an I.R. to show, or not, in a column always visible a link to another page. For example, i want an IR to show a list of records and some of these (not all) could be modified. So i need a column with dynamic content where to put a link

  • How to include a template from a different directory

    Hi, I have a page navigation menu that I placed in a template file.  All the browsing files would then call this template file using cfinclude.  I now want to call this file from a different directory.  However, this causes all the url and image link

  • How can I automatically rename files based on an excel doc?

    I am a scientist and recieve data files from some of my experiments with arbitrary, computer-generated names. For example, if I perform an experiment with four samples, which I name Sample1, Sample2, Sample3, and Sample4, I get back 4 data files name

  • Integrating Apex 4.0 with R12.1

    Hi, I am trying to install and run Apex 4.0 on a R12.1 instance. Details are below: Database: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production PL/SQL Release 11.1.0.7.0 - Production CORE 11.1.0.7.0 Production TNS for Linux

  • Set images on to JTextPane from JTextField or JTextPane using ":)"

    Hi, Please see my problem jtf = JTextField(); ae = ActionEvent jta = JTextPane();      if(ae.getSource() == jtf)                String Sticon = jtf.getText();                //jta.setText(Sticon);                System.out.println(Sticon);