Headache with button

Hi,
here is a link to FLA files
www.fulek.com/bug/BUG_report.rar
(This is another X-file’s example, FLA’s are actually
empty but they have 2MB each when extracted).
Short description of problem:
StartFile.swf has one big button which is instance of Button
(content is in UP state). Context menu options are added trough
action script.
InvisibleButton.swf has on MC (invisibleMC) with invisible
button in (content is in HIT state). You add context menu options
to invisibleMC trough optionsMC component which is on
InvisibleButton.swf Scene.
StartFile.swf loads InvisibleButton.swf.
So, invisible button is above big button in StartFile.swf.
If you start SWF inside Flash it all works fine, each button
has its own context menu, but if you start it in Internet Explorer,
invisible button is not recognized, you see big button context menu
on place of invisible button.
Now if you modify invisible button so it has something in UP
state it works fine in IE, you can place transparent object to
simulate invisible button.
This problem appears only in IE with FlashPlayer 9 AtiveX
control.
Please if someone can take a look on this two FLA files.
Thanks

Hi,
you can use the expression language in combination with a custom "source" indicating the internal state. See org.eclipse.ui.services -> sourceProvider for further information. So you could save the state (playing/stopped), which you check via expression language to disable/enable the buttons.
Best regards
Adam

Similar Messages

  • Having trouble with buttons in motion menus

    I'm having some problems with buttons in motion menus:
    - I've created a motion menu where some text (button names) fade in.
    - I set a loop point after the text has faded in completely.
    - I set the end condition to "loop"
    (there is some animation after the text fades in that I would like to loop)
    - I draw out 5 buttons and assign different overlay colors to each of the button states.
    The problem is that each time the motion menu jumps back to its loop point.. the menu seems to stutter - the overlay color on the currently selected button turns off for a second and the button is momentarily disabled (can't be selected). This problem only shows up on the actual dvd build. The buttons work smoothly when tested in the simulator.
    I can avoid this problem by losing the animation and just setting the end condition to "still".. but I was wondering if anyone knows if there is something I might have missed or could try as a workaround.
    17" powerbook g4   Mac OS X (10.4.5)  

    This problem only shows up on the actual dvd build. The buttons work smoothly when tested in the simulator.
    It could be how the DVD is reading the DVD (sort of the nature of DVD, everything is not exactly the same), because buttons will not show until the loop point and there may be a slight pause from end of animation in the menu to the loop point. And the overlay will turn off briefly when it hits the end.
    Visually what you can do is make the animation in a manner so that at the loop point the buttons are part of the background itself and make sure your loop point is at that point (or slightly after) so it looks like the button is there.
    For the most part the setting of still may work okay (really a creative call), sometimes listening to the same music/seeing samee animation may be too much (of course it depends on project) and you can jump to the loop point on the menu on subsequent calls

  • How to make a scroll Bar with buttons

    Hi all,
    I am using Flash cs6 on an iMAC running 10.7.2
    I would like to know if anyone could please point me to a tutorial, showing "how to create a scroll bar with buttons". I am having a heck of a time finding a tutorial.
    Many thanks in advance.
    regards,
    DH

    http://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/

  • How to make a navigation bar with buttons that stay highlighted

    I have Dreamweaver MX 2004. I know how to make a simple nav
    bar, but how do you make it so it's like the Apple website, with
    buttons that stay highlighted on the appropriate page?

    "[email protected]" <[email protected]>
    wrote in message
    news:gd04sb$5mc$[email protected]..
    >I have Dreamweaver MX 2004. I know how to make a simple
    nav bar, but how
    >do you make it so it's like the Apple website, with
    buttons that stay
    >highlighted on the appropriate page?
    http://divahtml.com/products/divaGPS/current_menu_location.php
    Thierry
    http://www.TJKDesign.com/go/?0
    | Articles and Tutorials
    http://divahtml.com/products/scripts_dreamweaver_extensions.php
    | Extensions
    that keep your markup clean
    http://www.fourlevel.com/ |
    CSS Menus, Gallery, Tab Panels, etc

  • Help with buttons :S

    hi all,
    i'm new to flash but i have an idea whats going on with webpages. I need some help with buttons! i have a website and its has a stage and 9 different flv's (screens). I've been trying to read online and i can't find out how to navigate to different screens, example below
    home          |            |
    about us     |  stage   |
    contact       |            |
    you click one one button it updates the stage. also i'm using actionscript 2.0.
    thanks for any help ahead of time
    Thank you,

    Is it a wi-fi or cellular connection that isn't working?  If its wi-fi and other people/computers/phones can connect check your settings.  If its cellular, are other people's phones (on the same carrier) working in the same location? If other people can't connect then it is likely a network problem.  If others can you may need to reset/restore you iPhone.

  • Interactive Prototype - How do you simulate light boxes with buttons? (CS4)

    I am in the process of mocking up an interactive prototype of the homepage of a web application.  On this homepage, there are various links(text with slices) and fields that when clicked on will trigger a dialog to appear over the top of the page similar to a "light box" effect seen on many other websites/applications.
    The workflow I am trying to simulate is as follows:
    User clicks the text link (state 1)
    Dialog appears on top of current page (state 2)
    User fills in necessary fields then clicks save button (state 2)
    Dialog disappears and returns user to base state (state 1)
    The base state of the page is in state 1.  I placed the images/content for the light box in state 2 and then added an onclick image swap behavior to have the link in state 1 trigger the light box (also a slice) to appear in state two.  That all worked fine until I added a save button symbol from the common library to the lightbox dialog in state 2.  When I did that, Fireworks automatically brought be back to state 1 and the button appears on both/all states no matter what I try to do.  Also, my attempts to add an onclick behavior to the save button to bring me back to state 1 haven't worked either.
    So my questions are:
    How do I get that button only to appear on state 2?
    The "hotspot" for that button or any slice/hotspot in any state appears active for all states but are only valid for when that certain dialog appears.  Is there a way to manipulate button/slice hotspots across states so they are only active in the correct states?
    How do I get the Save button to bring me back to the base state?
    Mocking up a lightbox type dialog seems like it would be a pretty common thing to do so I am hoping this is just a simple mistake I am making... any help would be greatly appreciated!
    Here are some images to help illustrate what I am trying to do: 
    Desired:
    Here is what Fireworks is doing:
    State 1 w/link behavior
    State 1 with button behavior (this appears on state 1 no matter where I add the button but I want it only to appear in state 2)
    State 2
    And here is the actual fireworks png proof of concept:

    Hi Linda,
    Thanks for the suggestion, however, that doesn't appear to be working.  I've uploaded the file that I am using as my proof of concept.  You can download it via the link below.  I changed the button so it's only a graphic with a slice over it but there are still two issues.  When the save button is clicked the state does not change back to state 1.  The second problem is that even in state 1, the active area for the save button slice in state 2 is still active even though the button is not there. Any thoughts?
    https://docs.google.com/leaf?id=0B0Fc5EuxtTzPMzY0NTA4ZGQtZjc1Yi00Njk3LThlOTUtYmFlZWQyNzQ5N GVj&sort=name&layout=list&num=50
    Thanks,
    Greg

  • Draging a box with button attached on stage excuting button problem

    Hi,
    I have a box on the stage, which is a movie clip. I opened
    this movie clip and placed a button on it. I want to be able to
    drag the box on the stage and the button to move with it. Also I
    want to be able to press the button , which take me to frame 2. I
    have done all of this but the button will not activate. The code I
    have written is:
    box_mc.onPress =function(){
    startDrag(this);}
    box_mc.onRelease=function(){
    stopDrag()};
    stop();
    I opened the movie box (where i placed the button) I wrote
    the following code:
    gotoframe2_btn.onRelease=function(){
    gotoAndStop(2)};
    However, I can drag the map (with button attached) but cannot
    press the button, to perform the action, to bring me to Frame 2. I
    have created a 2nd Frame in the Timeline on the main stage and also
    on the Timeline when i open the movie of the box.
    Hope you can help
    Thanks
    Paul

    Oh, sorry about that, I didn't see the code you posted in the
    previous topic I made
    but thanks a lot i got it working!

  • While in email today, the computer began flashing. I had to turn off with button. When I turned it back on, I got the apple icon and the moving loading wheel. It would turn for about 60 seconds and then stop. I turned off again. I now have a black screen.

    while in email today, the computer began flashing. I had to turn off with button. When I turned it back on, I got the apple icon and the moving loading wheel. It would turn for about 60 seconds and then stop. I turned off again. I now have a black screen.

    Hi wiesenruth,
    If you are having issues starting up or booting your computer, you may find the following articles helpful:
    Troubleshooting: My computer won't turn on
    http://support.apple.com/kb/TS1367
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/ts2570
    Regards,
    - Brenden

  • Putting frame with buttons into a thread

    please help!!!
    i've got a thread:
    package aJile;
    import java.io.*;
    import java.net.*;
    public class SocketHandler extends Thread
      private Socket socket;               // Socket used for messages 
      private int socketNr;
      private byte[] inbuf;
      private InputStream in;
      private OutputStream out;
      public SocketHandler(Socket socket)
        this.socket = socket; 
      public void send(String str) throws IOException {
           out.write(str.getBytes(), 0, str.length());
           out.flush();              
      public String receive() throws IOException {
           int numBytes = in.read(inbuf);
          String str = new String(inbuf, 0, numBytes);
          return str;
      public String switchOn() throws IOException {
           send("1");
           String state = receive();
           return state;
      public void run()
        try {
          // set up the input and output streams
          in  = socket.getInputStream();
          out = socket.getOutputStream();
          inbuf = new byte[128];
          receive();
         // System.out.println(switchOn());     
          in.close();
          out.close();
          socket.close();
          System.out.println("closing");
        catch (Exception e)
          System.out.println("Caught exception "+ e);
    }and i want to add a frame with buttons to this thread. that everytime tread starts, this frame would appear. and that methods of the thread would be called with a button press. How to join them?
    here is a frame:
    package buttons;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame3 extends JFrame implements ActionListener
         JPanel pane = new JPanel(); 
         Icon lightIcon = new ImageIcon("light.gif");
         Icon darkIcon = new ImageIcon("dark.gif");
         JButton pressme = new JButton("Press Me");
         JButton ironButton = new JButton("Iron",lightIcon);
         JButton lampButton = new JButton("Lamp",lightIcon);
         JButton ovenButton = new JButton("Oven",lightIcon);
         public Frame3()  
              super("Event Handler Demo"); setBounds(100,100,300,200);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container con = this.getContentPane(); // inherit main frame
              con.add(pane);
              pressme.setMnemonic('P');
              pressme.addActionListener(this);   // register button listener
              ironButton.addActionListener(this);
              lampButton.addActionListener(this);
              ovenButton.addActionListener(this);
              pane.add(ironButton);
              pane.add(lampButton);
              pane.add(ovenButton);
              pane.add(pressme);
      public void actionPerformed(ActionEvent event)
        Object source = event.getSource();
        if (source == pressme){     
          JOptionPane.showMessageDialog(null,"Hello!","Message Dialog",
          JOptionPane.PLAIN_MESSAGE);
        if (source == ironButton){
             if (ironButton.getIcon() == lightIcon){
                  ironButton.setIcon(darkIcon);               
             else ironButton.setIcon(lightIcon);
        if (source == lampButton){
             if (lampButton.getIcon() == lightIcon)
                  lampButton.setIcon(darkIcon);
             else lampButton.setIcon(lightIcon);
        if (source == ovenButton){
             if (ovenButton.getIcon() == lightIcon)
                  ovenButton.setIcon(darkIcon);
             else ovenButton.setIcon(lightIcon);
      public static void main(String[] args){
           Frame3 app = new Frame3();
           app.setVisible(true);
    }thank you

    could you tell me how to avoid exceptions?
    what i want to to is to call a method wich simply sends a string and gets a string back.
    public String switchOn() throws IOException {
           send("1");
           String state = receive();
           return state;
      }but when i call this method in actionPerformed() i get exceptios and my socket closes. It sends the string though, but after this program crashes. is there anything special to do if i want to use this Frame3 in order to communicate with a client by pressing buttons?

  • I use iphone 3GS, after upgared to ios5, my phone restart when i took picture with   button and while playing music .. what happened?

    I use iphone 3GS, after upgraded to ios5, my phone restart when i took picture with   button and while playing music .. what happened?

    Basic troubleshooting steps in the following order.
    1. Reset. Press and hold both Power and Home Buttons together till Apple Logo appears.
    2. Restore to a backup.
    3. Backup, Restore in iTunes and setup as new.

  • Can Photoshop make a background with buttons for iDVD?

    Can I create a background in Photoshop (v. 7) and include buttons which work in iDVD6?
    I think so, from reading here and there, and that each button must be on a separare layer. Correct?
    Is there a tutorial or similar on how to do this?
    Thanks.

    SteveKir
    you may be able to purchase an apple original CD of
    DVD SP (used) like I did on ebay for pennies on the
    dollar. Works great for backgrounds and button
    creation! Doesn't have to be the latest version for
    it to work well. Good luck.
    SDMacuser
    I have never used ebay and am not comfortable letting them store my credit card details long-term (risk of hacking etc.) However, I am comfortable using the internet a lot for purchases from individual well-known companies I trust (including Amazon, most of which do not store my credit card details), compared to unknowns on ebay. Three questions please:
    1. What are people's experience of buying from "unknown" sellers on ebay? and
    2. A 1.1 version of DVD Studio Pro is available on ebay. Would that (very old) version allow me to use Photoshop to create DVD backgrounds with buttons designed within Photoshop as part of the Photoshop file? and
    3. Do you think that such an old version would work with QT 7? (Often Apple products do not like working with such "time-zone" differences.)
    Thanks for any help.
    G5/2.0 GHz Mac OS X (10.3.9) 1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0

  • Image with button skin

    Hi,
        I have a image control which is embed with button skin from swf. The effect is not getting affected in it. Only the image is getting loaded.
    Why is it behaving like this.
    Regards,
    Jayagopal.

    Hi Jayagopal,
    You need to apply various skins for the Button to see the effects....
    .myButton
         upSkin:"assets/buttonUp.png";
         downSkin:"assets/buttonDown.png"
         overSkin:"assets/buttonOver.png"    
    Thanks,
    Bhasker Chari

  • How can I start any application with buttons

    Hello, I want to start any kind of applications with Buttons. I want to make me a GUI with buttons and with one button I want to start Outlook, but I dont know how this will work!
    THX for your help

    Runtime class exec methods
    If your Outlook executable is in different path ... import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test2 extends JFrame implements ActionListener
       public Test2()
          super("Test");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(300, 200);
          JButton b = new JButton("Outlook Express");
          b.addActionListener(this);
          getContentPane().setLayout(new FlowLayout());
          getContentPane().add(b);
       public void actionPerformed(ActionEvent e)
          try{
             Runtime runTime = Runtime.getRuntime();
             Process proc = runTime.exec
                         ("C:\\Program Files\\Outlook Express\\msimn.exe");
             proc.waitFor();
          }catch(IOException ioe){System.out.println("Wham");}
          catch(InterruptedException ie){System.out.println("Bop");}
       public static void main(String[] args)
          new Test2().setVisible(true);
    }

  • In Search for Automatic Sliding Content with Buttons tutorial

    I would like to implement a cross screen sliding content. I would like this content to have buttons which allow to move from one section to another. I would like this buttons to be in the ON position when the corresponding section is on the screen.
    I would like it to start and sycle once automatically, yet to have user a control over it with buttons.
    Does any one know a good tutorial site where I can find something like that?

    check http://www.greensock.com/tag/tutorials/

  • Error with buttons in an interactive PDF with "go to URL" action applied

    Hello, I am having an issue with buttons in an interactive PDF, specifically buttons that have a “go to URL” action applied to them. Most of the buttons in the document work fine and link out correctly however, some of the linked buttons InDesign is adding spaces to the end of the url, which the browser interprets as “%20” and breaks the link i.e. (http://helpx.adobe.com/pdf/indesign_reference.pdf%20). The added space effects multiple buttons in my document seemingly randomly, potential Bug? When the added space is deleted from the URL via the Button and Forms Panel’s URL field it is re-added by InDesign upon deselecting the button. Obviously the links can be updated in acrobat after export, but this is tedious and time consuming. Any help that can be provided would be much appreciated. Thanks!

    But I have InDesign documents with sometimes 60-100 buttons in them. Previously I had to do nothing other save out of InDesign as an interactive PDF - perfect, with no editing in Acrobat at all apart from for a couple of document javascripts. It also applies to any interactive element. Buttons that are used for “show/hide” with others to create reveals and builds etc. Buttons that link to other pages within the document.
    InDesign allows master page interactive buttons… make once use many times, Acrobat allows individual and painstaking editing of however many pages and buttons there are in the document, sometimes hundreds.
    The solution is, until Adobe do a decent job of DC to revert to Pro XI and pretend its never happened.

Maybe you are looking for