Need Help Disabling Button

Hello
I'm having mega problems with the following script. Here's
what I'm trying to do:
I have a multiple choice quiz - There are 4 buttons when
clicked on will reveal a tick or cross depending if the answer is
correct or not. Fine, all working!
However, I can't work out how to disable any more clicking
which is affecting the final score.
Can someone please help and show me how to deactivate any
more clicks on the script.
Would it be possible for you to edit the script.
Many thanks in advance.
Andy

Ah Yes, you are correct. You need to send a message to all
the buttons
telling them the question has been answered. So send the
message on mouseUp
on mouseUp me
if Not pQuestionAnswered then
sendAllSprites(#QuestionAnswered)
-- the rest of your code
and add this message handler to the buttons
on QuestionAnswered me
pQuestionAnswered = TRUE
end
That should do it (I think), but let me know.
andyulrika_is_back wrote
> Hi Dave
>
> Thanks for the replies. I've added your code and this is
what happens...
>
> If I click on the correct answer it plays its
appropriate sound and when
> clicked on again - plays no sound, which it should,
since its now inactive.
> Same applies to clicking on a wrong answer.
>
> However, when I click on another button it sounds once
and then silent
> thereafter.
>
> So, my guess is that the code is affecting only the
sprite that is clicked on
> first and not all the sprites at once, which makes sense
since I don't have any
> sendsprite info going out to the other sprites - Would
that be right?
>
> Any ideas how I can fix this - I haven't a clue about
sending info to other
> sprites.
>
> But, I've uniformly put all the buttons on the same
channels throughout my
> movie - 56,57,58,59 - so maybe there's leeway for adding
a piece of code to
> make the other sprites behave or should I say -
unbehave!
>
> Thanks
>
> Andy
>
>

Similar Messages

  • Need help about button

    Hi everybody!
    I'm from Italy, so I need help regarding button
    I create an animation, I put a button to replay the movie by this code:
    on (release) {
    gotoAndPlay(1);
    but in AS3 doesn't work. Can you help me pls?
    Another problem...I need a very simple preloader that display only percentage, stop.
    Anybody knows a template or tutorial about this?
    Thx in advance!

    What do you mean by scene2?. You can only preload external content like a picture, another swf, etc...a much simpler example:
    var myLoader:Loader = new Loader();
    addChildAt(myLoader,0)
    myLoader.load(new URLRequest("http://www.snowman-jim.org/science/images/north-pole-sun-moon.jpg"))
    myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading)
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading)
    function loading(e:ProgressEvent):void{
        info_txt.text="Loading.."Math.floor(e.currentTarget.bytesLoaded/1024)" Kb";//e.currentTarget is referring to myLoader.contentLoaderInfo
    function finalizado(e:Event):void{
        info_txt.text="I'm done!";
    Just change myLoader.load(new URLRequest("http://www.snowman-jim.org/science/images/north-pole-sun-moon.jpg")) path for the relevant path to the file you want to preload.

  • Need help disabling bios cache and shadowing

    Can ANYONE help me put get rid of bios shadowing and cache I keep getting blue screen and I'm tired of it every time I login to the Internet. Please show me where directions are for that or what I can do

    Hi @davidknox ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Pavilion dv7t-6100 Notebook and needing to disable BIOS memory options. Here is a link on help  from Microsoft.  Here is another on bug checking.
    Hope it helps you.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Compatability Issue: Need Help Disabling Additional Functions - URGENT!

    I am experiencing a problem with running Pro Tools 8.0.4 LE on my HP Pavilion dv7, which is encountered as a DAE error -6006 when loading Pro Tools. Research indicates that this error relates somehow to the firewire connection, and I am able to use Pro Tools on this system with a different interface (one that only has two microphone inputs) that allows me to connect via USB.
    Also, when I do run Pro Tools via USB it seems that I can't use the Quick Punch feature without a minimum 10 second (usually a lot longer) delayed response after pressing the playback or record button!
    I have been emailing Pro Tools support back and forth daily for 10 days now, and in the most recent email, they have said:
    "This might be an incompatibility issue. HP Pavilion dv7 laptop is not tested by our US headquarter testing team 
    and not officially supported.
    As you have found by yourself, each PC manufacture pre- installs their own features (as TV tuner) and the program into 
    Windows OS , the motherboard and BIOS. They work differently to Pro Tools and sometimes conflict. That is why we cannot support those PCs we have not tested.
    Please turn off all the additional function by HP from BIOS. Please ask HP support how to do."
    Therefore, I am requesting assistance with disabling all unnecessary services and processes on my HP laptop. I am assuming that the TV tuner is not a necessary service, but I have no idea about most of the others, and obviously I don't want to disable something that is necessary.
    If you could help me ASAP I would really appreciate it, as I need to get on with recording urgently! Thank you.
    This question was solved.
    View Solution.

    UPDATE:
    I have also been advised by Pro Tools support that if I add a supported FireWire card with Texas Instrument FireWire chip onto my computer, it may solve the problem. When I asked them how to go about doing this, they responded:
    "If your PC has Express Card slot, 
    http://avid.custkb.com/avid/app/selfservice/search.jsp?DocId=352647
    SIIG FireWire 2-Port ExpressCard
    is tested and supported FireWire card.
    Please ask HP about the spec of your computer."

  • Need help with buttons in a phone simulation

    Hello
    I have built a telephone interface to be used for training in a Call Center.
    I am attempting to allow the user to press on the numberpad to enter passwords and such.
    It is only a simulation and will only work if the user presses the correct buttons.
    I am able to create the simulation when the user presses different buttons such as 1234
    but I need them to press 0000 (zero 4 times)
    I am not sure how to do this...
    I have been playing around with the advanced actions, which has allowed me to accomplish the hide and show actions when the user clicks a button, but wondering if there is a way I can
    have them click the 0 on the dialpad so each time it brings up the next zero
    once its gets to the 4th one, it will advance to the next slide...
    Hope that makes sense
    I appreciate any help or advice
    thanks
    Melissa

    Hi there,
    What I did, I took a variable 'counter123' and assign '0' value to this variable.
    I then added a button with Advanced action, I am sharing the Screenshot of the advanced action panel.
    Screen shot 1 :
    Incrementing the Value on click :
    The value of the variable should increase on every click, so lets add a true statement as a condition.
    Screenshot no 2 :
    As normally on buttons/click boxes, the project will continue as soon we click them.
    lets compare the value of our variable and then pause the project.
    Screen shot 3 :
    last if our purpose is solved, here we have clicked the button 4 times, so that has updated the value of our counter to 4, so as soon as the counter exceeds the value, we want the project to continue.
    please let me know if this helps you.
    This will help you in pressing a button 4 times, and i think you can also add actions to show and hide 'zeros' in your project.
    I find such scenarios very interesting and I always find help on Lilybiri's Blog : http://lilybiri.posterous.com/
    Thanks

  • Need help with buttons that react to rollover that create a scoll effect

    hey everyone,
    I'm new to flash and actionscript and am having trouble
    creating what I need. I want to create a scroll area that scrolls
    left and right when you rollover a left or right arrow. what I want
    to scroll looks like a piece of film negative that has about 20
    thumbnails in it. I only want it to show about 4 thumbs at once
    though (thus the scroll is needed). so when the mouse rolls over
    the arrows, it scrolls, and when it rolls out it stops in place.
    eventually, i will add links to the thumbs for a better image.
    I've checked out a couple tutorials on scrollbars and such
    thinking that I can just go in and modify the code a bit, but the
    two turorials i've tried to do have left some of the pieces out...
    not very helpful when you don't know actionscript well. does
    anybody have any tips or ideas?

    Hi there,
    What I did, I took a variable 'counter123' and assign '0' value to this variable.
    I then added a button with Advanced action, I am sharing the Screenshot of the advanced action panel.
    Screen shot 1 :
    Incrementing the Value on click :
    The value of the variable should increase on every click, so lets add a true statement as a condition.
    Screenshot no 2 :
    As normally on buttons/click boxes, the project will continue as soon we click them.
    lets compare the value of our variable and then pause the project.
    Screen shot 3 :
    last if our purpose is solved, here we have clicked the button 4 times, so that has updated the value of our counter to 4, so as soon as the counter exceeds the value, we want the project to continue.
    please let me know if this helps you.
    This will help you in pressing a button 4 times, and i think you can also add actions to show and hide 'zeros' in your project.
    I find such scenarios very interesting and I always find help on Lilybiri's Blog : http://lilybiri.posterous.com/
    Thanks

  • Need help with buttons

    stupid question maybe but i'm a beginner, and hey..there are no stupid questions, right? well, i may prove that wrong...anyway...
    I can't relocate a button, or any other component for that matter. When I try to make a simple applet with just one button showing, then it works perfect...but when I make the applet a little bigger with some graphcis and text, the setLocation() and setSize() methods don't work. the wierd part is that I don't get an error message, the compiler just ignores those lines...so it seems anyway.
    If anyone can help me I'd be very greatful
    thanx a lot

    Boss,
    there is something called Layout Management in Java,
    see types of layouts in the Java API.
    Applet default is FlowLayout,
    so modify your layouts and try,
    u need a basic understanding and reading of Layouts
    in Java..take a tutorial...
    gud luck!

  • Need help with buttons and fading clips

    howdy,
    I have 3 buttons on a stage that play 3 different movies.
    While no button is pressed, there is a looping video on the stage
    playing. When a button is pressed, that looping movie needs to fade
    out and fade in the movie that button calls for. I have attached
    script but it isn't working at all. Not sure where to go from here.
    thanks for your help.

    Hello again,
    Now I'm completely lost. Where should I add that code in your
    last post?
    thanks.

  • Need HELP with BUTTONS (help! help!)

    I am trying to create a "return to previous page" button, one that acts like the "Back" arrow on your web browser.
    I want to add this on my Master page, so that every chapter will have the same button in the same place with the same result.
    My manual says that "Return to Previous View" is a button option. But I can't get it to work.
    Please help, I need to finish this thing TODAY (July 16)

    Hate to be the bearer of bad news, but I don't think what you want is going to be so easy. It isn't something you can set up in a snap. And buttons may not be what you want at all. Buttons serve rather simple functions. I think you are looking at Indexing, and some fairly complex indexing at that.
    Now having said that, Return to Previous View does work (You do realize that these buttons only work in a PDF exported with Include Interactive Elements checked, right?), but you need something to get you to that next view in the first place. And I'm not sure how you can define that without indexing. Perhaps you could use anchored objects and Go to Anchor button, but I think the anchor would have to have something placed in it because it's found via the link in the object. Then a button in the appendix could be defined as Return to Previous View to get you back to the page you came from.
    As you can see, this could get pretty messy. Indexing tends to move you around the book much more seamlessly. But it is also something that has to be meticulously set up after the book is completely laid out.
    The InDesigner Podcast has a lesson on indexing as a request from one of his viewers. But in order to explain it he started with a lesson on Book Basics, then one on Table of Contents, Advanced TOC, Indexing, and finally Generating an Index. You can download the five podcasts from the InDesigner.com and watch them to get an idea of what's involved and how it may help in your situation.
    Sorry, but even if someone here with more expertise than I in this matter comes to your aid, you still have quite a bit of learning ahead of you to pull this off.

  • I need help with buttons

    I am creating a GUI program, and I would like to know how to recognize a "mouseover" event on a button. Right now I am using "private JButton Button;" -- is it possible to have a mouseover for that?
    If not, please tell me the steps I need to take in order to be able to have a mouseover event on a button. It is relatively important to the program =P
    Thanks.
    Edit -- I am going to be AFK for a while, please respond with as much info as possible. Thanks again ;-)

    I went to the help section on setRolloverIcon, and I kind of understand it, but what is an "Icon"?
    What I want to happen when I move my mouse over the button is this: TextBox.setText("This button does this: bla bla bla");
    Then I want the text in TextBox to go away when my mouse leaves the button. I know this is possible in some programs, but is it in Java?

  • Need Help Disabling Phone of Palm Treo 700w!!

    Hi all - 
    I recently bought a cheap, used palm treo 700w to use as a PDA only; I have specific programs that need to run on a windows mobile 5 PDA, and the treo was much cheaper than an ipaq or other handheld device. However, the phone still has the original owner's phone number saved, as well as their pin number. Even though the phone is no longer hooked up to any wireless carrier services, I'm concerned that one of my children is going to pick up the phone and make an emergency call or somehow interfere with the original owner's current phone since the phone number is still saved. Is there a way to completely disable the phone features of the palm treo 700w and still use the PDA, not just "turn off" the phone by pressing the power button but preventing it from being used as a phone completely? Thank you so much!!
    Post relates to: Treo 700w (Verizon)

    Thank you!  That certainly seems to be the one I have, and the age isn't important for what I need.  Now, though, that leads to the next issue, which is that I can't sync my contacts and calendar, although I think I've figured out why for myself.  Still, it generates another question.
    I am currently using Palm v 4.2.1 on my desktop (Mac 10.4.11)  I bet it's too new, isn't it?  Is it going to be possible for me to back off to Palm 4.0 without losing the information that's currently stored in 4.2.1?  I don't mind installing an older version of the software (and I found the download), but if it means losing my information, I'll just pass this free Treo on to some other unsuspecting person. 

  • NEED HELP   Highlighting Buttons  (using an overlay)

    I am using DVD Studio version 4.0.2. I'm working on a menu and I have 2 buttons I need. A play movie and chapters button. How do you make these buttons highlighted when you simulate the menu? I know the tutorial tells you to import the "pre-made" overlay....but how do you make that overlay? Please help. Thank you very much
    Jake

    Hi Jacob
    Welcome to forum.
    You can make the overlay in Photoshop. Make whatever you want your overlay to be- lets say a box around your text- as a black shape on a white bg. Flatten your image, save it, then import into DVDSP. Drag it onto your menu but don't release the mouse until the drop down menu appears - drop it over 'choose overlay'. You wont see anything yet, don't worry - you need to draw in a button onto the menu that completely surrounds your overlay shape. Now the overlay shape can be highlighted and activated - the manual covers this in much more detail and is pretty straight forward.
    Hope that helps
    Cheers
    B

  • Need help with buttons in applet

    stupid question maybe but i'm a beginner, and hey..there are no stupid questions, right? well, i may prove that wrong...anyway...
    I can't relocate a button, or any other component for that matter. When I try to make a simple applet with just one button showing, then it works perfect...but when I make the applet a little bigger with some graphcis and text, the setLocation() and setSize() methods don't work. the wierd part is that I don't get an error message, the compiler just ignores those lines...so it seems anyway.
    If anyone can help me I'd be very greatful
    thanx a lot

    Do you know there are 5 layout managers in java. It is probably worth looking through each one and the commands they use.
    The layout is determined by two things:
    1.position Components are added
    2.Layout manager used
    Ive never had to use setLocation() and setSize() as the layouts do it for you:
    1.Flowlayout: which is the default pane. e.g.
    setLayout(new Flowlayout()).
    2.GridLayout: postions panels into rows and columns
    b.GridBagLayout
    3.Borderlayout(NORTH,SOUTH,EAST,WEST and CENTER) postions in applet.
    4.CardLayout(a bit like a slideshow)
    5.Insets() which is used to determine top,bottom,left and right.
    Don't bother about 4 or 5 yet. But definitly have a look at the other 3.
    e.g. setLayout(new BorderLayout());
    add("North", new Button("ok"));
    add("CENTER", new Button("Exit");
    etc..

  • NEED HELP WITH BUTTONS IN AS3!!

    Hello, I am stumped with an action scripting problem. I'm
    trying to create a really basic website in flash using buttons to
    jump from scene to scene. Let's say I want to do something as
    simple as make scene 1 jump to scene two right? I'll place in my
    scene 2 button on my first page:
    But instead of the scene changing to the next scene after I
    press the button, these errors come up!!
    1180: Call to a possibly undefined method on.
    1120: Access of undefined property release.
    1120: Access of undefined property _root.
    I've tried asking in so many different forums, I usually do
    pretty good with action scripting for buttons. But this is my first
    time doing it with cs3. I'm utterly confused, someone please help!!
    Thank you.
    The code on this page is the code I was using to try to
    change scenes...Oh! and whenever I try to put a code in the actual
    button, it won't let me. I just get a message that says something
    like "Can't have any actions applied to it".

    foxxpop,
    > But instead of the scene changing to the next scene
    > after I press the button, these errors come up!!
    >
    > 1180: Call to a possibly undefined method on.
    > 1120: Access of undefined property release.
    > 1120: Access of undefined property _root.
    You're using three terms that aren't supported in
    ActionScript 3.0: the
    on() function, the release parameter to that function, and
    _root. In
    ActionScript 3.0, you'll have to give your button an instance
    name and wire
    it up like this:
    http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3
    In that blog entry, you'll see (with explanation) something
    that looks
    like this:
    myButton.addEventListener(
    MouseEvent.CLICK,
    function(evt:MouseEvent):void {
    trace("I've been clicked!");
    Just bear in mind that you can also make that a named
    function, like
    this:
    myButton.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(evt:MouseEvent):void {
    trace("I've been clicked!");
    > I've tried asking in so many different forums, I usually
    do
    > pretty good with action scripting for buttons. But this
    is
    > my first time doing it with cs3.
    Your issue isn't Flash CS3, it's that your FLA file is
    configured for
    ActionScript 3.0. If you change that to AS2, you can go right
    on using the
    same approach you used to -- and you'll be able to attach
    code directly to
    objects. ;)
    David Stiller
    Co-author, The ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/2s28a5
    "Luck is the residue of good design."

  • Need help with Buttons/Events

    HI
    Here is what I am doing. I am creating an "operations"
    calendar for my workplace. So far I have been successful with
    creating the page, inserting links, tags, images etc.....
    But now I want to add an Event button - where once the button
    is clicked - it will launch a script on my UNIX server.
    Cant quite figure this one out
    Any help would be greatly appreciated

    Hey man, I 've done some correction, and it seems work, why don't you try the code to see if it is what you want.
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class ComplexMenu11 extends Applet implements ActionListener {
    Button open, close;
    MenuFrame f;
    public void init() {
    open = new Button("Open");
    add(open);
    open.addActionListener(this);
    close = new Button("Close");
    add(close);
    close.addActionListener(this);
    f = new MenuFrame("A Complex menu");
    f.setSize(200, 200);
    f.show();
    public void actionPerformed(ActionEvent evt) {
    if(evt.getSource() == open) {
    if(f.isShowing())
    f.show();
    }else{
    if(!f.isShowing())
    f.hide();
    class MenuFrame extends Frame implements ActionListener{  //and implements here too
    Font font;
    Label l;
    int fontsize;
    //MessageDialog md;
    MenuBar mb = new MenuBar();
    Menu m1 = new Menu("Colours");
    MenuFrame(String name) {
    super(name);
    m1.add(new MenuItem("White"));
    m1.add(new MenuItem("Light grey"));
    m1.add(new MenuItem("Yellow"));
    Menu m2 = new Menu("Font");
    m2.add(new MenuItem("10"));
    m2.add(new MenuItem("12"));
    m2.add(new MenuItem("14"));
    m2.add(new MenuItem("16"));
    m2.add(new MenuItem("18"));
    m2.add(new MenuItem("Message"));
    mb.add(m1);
    mb.add(m2);
    setMenuBar(mb);
    m1.addActionListener(this); //Add listener here
    l = new Label("A frame demonstration", Label.CENTER);
    add("South", l);
    //md = new MessageDialog(this,"Name",true);
    public void actionPerformed(ActionEvent evt) {
    if(evt.getSource() instanceof MenuItem) {
    //fontsize = 18;
    String label = evt.getActionCommand();
    if(label.equals("White")) {
    //setBackground(Color.white);
    System.out.println("This is the white point");
    }

Maybe you are looking for

  • MIGO Print label WEE1 for non stock items from GR for PO

    Hi, I added logic to print new label into printing program MZ07DETI which is printing labels for stock items. My label is for non stock items. The problem is that for non stock items printing process is not triggered. I created PO with Account Assign

  • Cross-domain SWF loading doesn't work

    I've been trying to get cross-domain SWF loading to work for a while now, but even though it works from the Flash IDE the loaded SWF is blank when I upload it to a webserver somewhere. And yes, both servers have a crossdomain.xml file in their root f

  • Populating 2dimentional array from database table

    Hi, I have created two dimentional array TYPE type_DIR IS TABLE OF site_direction.site_direction_id%TYPE INDEX BY    BINARY_INTEGER; TYPE type_DIR_LAN IS TABLE OF type_DIR INDEX BY BINARY_INTEGER; var_DIR_LAN type_DIR_LAN;I have to populate data into

  • StarOffice 8 install Solarisx86 with zones

    I have tried several times to install startoffice on solaris 10 u1 x86 box with 4 zones. It would fail after several minutes complaining it couldn't get an admin lock on the zones. Several reboots and clearing the zones /tmp folder didn't make a diff

  • Cannot install iTunes 8.0

    I saved iTunes 8.0 (downloaded from Apple web site) to a folder. I then made sure it was not read-only or "blocked", then executed it. In a few seconds a "iTunes + QuickTime Error" screen pops up indicating "iTunes Installation Completed" yet it did