Help with basic button

Hello

I created a button to achieve one thing: mouse over the button to play the music and the mouse to stop the music.

I have six buttons on the same page. I tried to use the snippet of script, but was not enough knowledge to cusotmize it. Anyone can share code, or point me to resources?

Thank you very much!

that would be ok but for flash point has a very special meaning, then you must NOT use it in a class name, name of the variable etc.

If you have used, instead of using a class sound.mp3, sound_mp3 or soundMP3 or soundmp3, you'd be ok.  convention class names start with a capital letter, so you can as well use the correct convention: SoundMP3, Sound_mp3 or Soundmp3 etc.

Tags: Adobe Animate

Similar Questions

  • Help with basic tutorial - creation button

    Following the basic tutorial in Director 11 (pages 9-10) to create a new button, the tool button does not react as described in steps 4 and 5. The button tool creates a 'flash' and does not have the 'type' available button. If all right, I'm missing something basic, but it does not resemble the key "" which was included in the cast member tutorial. Not sure if there is a problem with the button tool or something that prevents me from creating a similar button with the given distribution. Thanks for any help.

    Hi Rick,

    I suggest you select "classic" on the toolbar and try again. Flash components are a PITA. Do not use until you really know how to use ;-)

    HTH,

    Udo

  • help with framework button

    I have create a button (b1) can I double clicked and to "over" frame change color, so whene I'm above this button, I saw the color where I choose to "over" frame.

    I also have a (b2) button more and I want when I clicked on that the b1 button go to the color of the frame 'more' up to what I called the b2.

    any help with this?

    Thank you antony

    If b1 and b2 are movieclips and you label their mounts up and clicked with what is obvious, you can use something like:

    B1.onRelease = function() {}

    B2.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

    B2.onRelease = function() {}

    B1.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

  • Help with active buttons

    I'm looking for a way toggle all buttons in a swf file. I found this search here, but I do not understand and am looking for some in many ways, as shown.

    http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=15 & catid = 288 & ThreadID = 1240137 & highlight_key = y & keyword1 = active

    I'm playing with having things to load in what I call 'windows' and when you close a window, basically he just collapses the .swf. The problem I have is that the cursor reacts to roll overs and I can still rollover buttons in the same swf if its collapsed. To see this prob go to:
    www.Custom-Differentials.com

    Open the Gallery, then drag the Gallery until the middle of the screen, close the Gallery, then move the mouse around the outside of the "title bar" and watch the change in mouse colors even if there is nothing there. I put a trace in working capital management, so I know the buttons that are the cause. I would like to just a disable a broad view, all of the buttons, then the window is closed.

    Thanks in advance for any help.

    Well, you really want to disable each button/movieclip in your swf file. But if you did you can use:

  • Need help with the button mute on my helmet XL-3000 of Microsoft Chat, please!

    Hi all!  Hope everyone is having a good TGIF!  If you use my helmet even, I need help understanding the region button mute in the middle of the rope.  The red light is on or off?  I suppose that if I hit the curve button with the microphone on this subject, and the red light, I'm turn off my mike?

    I did some tests with others on the phone calls.  Sometimes, some other hear me, sometimes they do not have.  BUT I NEVER HEAR THEM!  FOR MY WORK, IT IS IMPERATIVE THAT I MAKE CALLS TO OTHERS!  HELP PLZ!  Thank you very much and have a great wkend!

    Hello
     
    Please follow the links below to troubleshoot the computer.
     
    Method 1
     
    Connect one microphone, music player or other audio device to your computer

    Method 2

    Step 1

    Troubleshooting: headsets

    Step 2

    Open the troubleshooting of Audio recording

    Method 3

    How to adjust the microphone volume

    a. click Start, type mmsys.cpl in the search box and press ENTER.
    b.
    in the sound dialog box, click the recording tab.
    c. click Microphone, and then click Properties.
    Note Make sure that the work appears under Microphone. If the job does not appear, click Microphone, and then click on set as default.
    d. the Microphone Properties dialog box, click the custom tab.
    e. select or clear the box amp Microphone.
    f. click the levels tab.
    g. set the volume to the desired level, and then click OK.
    h. click OK to close the sound dialog box.
     
    How to adjust the setting of the voice
     
    a. start the game.
    b. connect to LIVE (the Guide).
    c. click personal settings.
    d. click on voice.
    e. make sure that the recording volume level indicator records at a bar when you talk.
    f. click done.

    If you are still facing problems then, I would say that you contact support for Microsoft hardware for more direct intervention.


    I hope this helps.

     
  • Help with 2 buttons, 2 entertainment and 2 audio clips

    Hey everybody,

    On board, I just animated in After Effects so bear with me here... I'm on a DPS project help for a friend and it left me speechless.

    I have a project to animate with 2 animations, 2 audio clips and 2 buttons. Let's call them Animation1 Audio1 and Button1. Animation2, Audio2 and Button2. I want to have the charge of the composition and wait for the user to click a button, the easy part. Now, I want to have Animation1 play with Audio1 when the user clicks Button1, but I don't want the other elements (Animation2 etc.) to play or be visible. Then vice versa when Button2 is clicked. I was able to get the elements of Button1 to work but then I still see items of Button2. The animations are sync'd to the audio files so they need to play in time with each other. I searched some tutorials on the web, but I'm probably not the right thing.

    Any help is very appreciated.

    RA

    You can bind a callback with the 'complete' event function of the audio tag and you can toggle the display property key to the function call back from events.

    IN the case of composition ready, add the code below

    {sym.$("YourAudioElementId").bind ("ended", Function ()}

    code to display the button here

    });

  • Help with coding button

    I do dress up games in ActionScript 2 and I have a problem.

    I want to find a button all elements of movieclip with, say, "shirt" in the name of the Instance and move them to the frame 2.  I know how to do this with a single element, (on (release) {}

    _root.shirt1.gotoAndStop (1);

    }

    and on the previous games, I just copied and pasted that several dozen times for each item.  However, on this game, I try to reduce code and learned how to use

    for (var i: String in _root) {}

    If (i.IndexOf ("_drag") >-1) {}

    _root [i] .onPress = function() {}

    (put in the code)

    (put the closing} s)

    on the stage to make items drag and snap into place.  I learned that this code does not have the buttons, which need static commands, I think?  I'm still very novice.

    Any help would be appreciated!

    You must remove all code objects.  so, no matter what button has code attached there an instance name (for example, btn) so you can use:

    btn.onRelease = function() {}

    for (var i: String in _root) {}

    If (i.IndexOf ("shirt") >-1) {}

    _root [i] .gotoAndStop (2);

    }

    }

    };

    }

  • I need help with my button to post a link to my Web site! EMERGENCY AID!

    Hello everyone. Recently, I tried to link a button on my site with Action Script 3, however, whenever I try to load my film, I get an error! The error that says: scene 1, Layer 'Button', frame 1, line 5 1071: syntax error: produce a keyword of the definition (for example, the function) after attribute fuction, no PSE.


    That's what I wrote...


    Stop();


    peshp_btn.addEventListener (MouseEvent.CLICK, PSE);


    Fuction pes(e:MouseEvent):void {}

    var pesLink:URLRequest = new URLRequest ("http://www.penguinentertainmentstudios.com");

    navigateToURL(pesLink,"_blank");

    }



    PLEASE HELP ME I HAVE IVE SUMMER TRYING NOW FOR ALMOST 2 HOURS!

    Use the following syntax:

    peshp_btn.addEventListener (MouseEvent.CLICK, PSE);

    function pes(event: MouseEvent) {}
    var pesLink:URLRequest = new URLRequest ("http://www.penguinentertainmentstudios.com");

    navigateToURL (pesLink, "_blank");
    }

  • Help with Radio buttons in form

    Hello. I inherited a site that has a simple form. Asked me to change the form of 4 radio buttons added to collect the consumer satisfaction with the content of the Web site. I added radio buttons using Dreamweaver MX, however, they do not work as I planned to do. I was under the impression that option buttons did not allow the user to select several options because when the user has selected a different option, the first option is deselected. My form is currently allowing all four options to choose from at the same time. The code for the form is below. I changed the @ in the email address of the form to avoid possible spam. Any help would be greatly appreciated.

    Looks like you need to change the name = the same on each radio button, if they all have the same name, you can go only one. Then, click the shape in the behaviors panel and don't forget that the name of the radio button is the insertion in the appropriate column db.

  • Need help with JavaScript button to save as an event.

    Hello

    I use Adobe Acrobat X Pro and am totally new to scripting of forms in Adobe (completely new to Adobe Acrobat as well!).  There is a backup on a form button that opens the Save dialog box under using a trigger (the mouse upward) and action (execute a menu item - file > save under... > PDF...) and it works fine, however, I want to now use javascript to change the behavior of the button so that it uses a trigger (the mouse upward) and action (run a JavaScript script) , and I want that JavaScript to combine the text values in two form fields (a location drop down and a date text field) and use this string concateneated + ".pdf" as the file name when he opens the Save as dialog box.  Make sense?

    This is what I added to the button as a JavaScript so far I use a test at this time string ("NewFile.pdf") and add the string that is concatenated to the script after that I know that the script works as it should.

    var NouveauNomFichier = "NewFile.pdf";

    var pathArray = this.path.split("/"); "

    pathArray.pop ();

    pathArray.push (newFileName);

    this.saveAs(pathArray.join("/")); "

    Up to present two questions:

    1. when I click the button nothing happens, no dialog Save as or whatever it is.

    2 when I check the properties of the button depending on the Actions tab shows property to select Action "Performing a menu item", even if I chose previously 'run a JavaScript '.

    Thanks for any help!

    The saveAs method will not work if the code is placed in a key event. It would need to be in a JavaScript file to the folder level, inside a function of confidence, inside a block of app.beginPriv/app.endPriv. Each user must have the JavaScript file to the folder level. The button can then call the code in the file. It will be possible for users of the form?

  • help with condensation button code

    Hello

    I have a grid composed of 16 rows, seven columns. So there are 7 buttons in each row. on the buttons, I have a name instance for example ButtonClick1_1, ButtonClick1_2, ButtonClick1_3, ButtonClick1_4 etc and for the second row, ButtonClick2_1, ButtonClick2_2 etc.

    my code AS the action is the same for each button. I currently have a ton of code such as the following.

    ButtonClick1_1.addEventListener (MouseEvent.CLICK, clickHandler1);
    function clickHandler1(event:MouseEvent):void {}
    ButtonClick1_1.alpha = 0; 50% alpha
    Stop();
    }

    ButtonClick1_2.addEventListener (MouseEvent.CLICK, clickHandler2);
    function clickHandler2(event:MouseEvent):void {}
    ButtonClick1_2.alpha = 0; 50% alpha
    Stop();
    }


    ButtonClick1_3.addEventListener (MouseEvent.CLICK, clickHandler3);
    function clickHandler3(event:MouseEvent):void {}
    ButtonClick1_3.alpha = 0; 50% alpha
    Stop();
    }

    I'm doing this for 112 buttons! I know there is a way to simplify this with a loop for, but do not know how to code. Any ideas?

    Mark this thread as answered, is it.

  • Help with transparent buttons on images

    I have photos of a piece of equipment and load images to slides in Captivate 3. Then using the jump to feature to do move from slide to slide, simulating a button is pushed and then what a person would see.

    The problem is that if they don't click on the button show advance automatically to the next slide, which is usually not the slide that they should be addressed to. do you know an easy fix for this?

    Thank you advance!

    Hi again of Serena

    Check if there is perhaps a click box already on the slide that covers the region. This could be the case if you have imported PowerPoint. If so, you need to remove this box click object. Basically, a click outside the click box should be ignored. This is why I think that you have a larger surface area behind the smallest.

    See you soon... Rick

  • Help with radio buttons

    I have a group of radio as follows STATIC2:; Yes; No.; NO.

    default value is no.

    the name is P1_MSD1 and the label is BUILT from MSD LEVEL 1.
    I just want to change this to Yes after a process is running.

    I use

    Select 'Yes' in: double P1_MSD1;

    But it does not work, please help.
    Thank you
    Doug

    Hi Doug,.

    Do your radiogroup source:

    STATIC:Yes,No
    

    Make your process to be an anonymous PL/SQL block with the code as follows:
    : P1_MSD1: = 'yes ';

    The value of the conditions of this process running at however desired.

    Edit: Oh I misread... place this statement at the end of your process... this way you can be sure it happens every time the process runs :)

    Mike

    Published by: Gerd 23 November 2009 14:30

  • Need help with basic sql

    Hello

    I use oracle 10g and having some small doubts associated with sql, goes here of the situation

    I have a Transaction table, which contains the records/operation made by an employee under a code of pattern on different dates, see below examples of data
    EMP_CODE          REASON_CODE     DATE
    
    A001           B1                            1st Jan 2009
    A001          B1          3rd Jan 2009
    A001          B1          6rd Jan 2009
    A001          C2          9th Jan 2009
    
    A002          D4          1st Jan 2009
    A002          D4          3rd Jan 2009
    A002          D5          6rd Jan 2009
    
    A003          E6          6rd Jan 2009
    A003          E6          7rd Jan 2009
    Actually I want to have the final result as follows (p. ex. some how hide A003, see below for reason)
    A001          B1
    A001          C2
    A002          D4
    A002          D5
    So basically, print employee ID and reason code only if the employee has made the transaction under more than 1 code of reason, since the employee "A003" completed transaction code Minus 1 SINGLE code ONLY reason *, I don't want his record in printed.*

    the current query I wrote is as follows:
    select      emp_cd, reas_cd
    from      employee_trans_table
    where     reas_cd <> '   '
    group by emp_cd, reas_cd
    order by emp_cd, reas_cd
    but this impression of results as
    A001          B1
    A001          C2
    A002          D4
    A002          D5
    *A003          E6*
    How to avoid printing A003/E6 since she had only 1 reason code attached to it...


    I hope that I am able to clearly state the doubt that I am, let me know if you need any other info/clarrification on it.

    Concerning

    Learner

    Published by: learner1 on October 26, 2009 13:33

    Published by: learner1 on October 26, 2009 13:34

    Published by: learner1 on October 26, 2009 13:36

    Published by: learner1 on October 26, 2009 13:36 (added code tag)

    A possible solution.

    with data as
    (
      select 'A001' as col1, 'B1' as col2 from dual union all
      select 'A001' as col1, 'B1' as col2 from dual union all
      select 'A001' as col1, 'B1' as col2 from dual union all
      select 'A001' as col1, 'C2' as col2 from dual union all
      select 'A002' as col1, 'D4' as col2 from dual union all
      select 'A002' as col1, 'D4' as col2 from dual union all
      select 'A002' as col1, 'D5' as col2 from dual union all
      select 'A003' as col1, 'E6' as col2 from dual union all
      select 'A003' as col1, 'E6' as col2 from dual
    )
    select distinct col1, col2
    from
    (
      select col1, col2, count(distinct col2) over (partition by col1) as distinct_count
      from data
    )
    where distinct_count != 1
    
  • Help with close buttons



    I have read forums and scouring the internet to find a way to write a flash button or create one in captivate 3 using the click on run javascript:self.close() javascript function and I tried the ActionScript on (release) {}
    getURL ("javascript:window.close ()" "");
    }
    Please help me.

    Thank you

    Alex

    Hi Alex

    Is it possible that you are overthinking?

    Try to set the end action of your project to close the project. Then insert a button object or area click simply jumps to the last slide. What is happening is that the user clicks on the button, the last slide appears and the project closes (if possible).

    See you soon... Rick

Maybe you are looking for