Two actions in the same button

Hi. I have a button witch tells a movie clip, that is loaded
on an empty movie clip on stage (handler) with attachMovie, to play
frame 101 (it leaves the stage). How can I tell the same button, at
the same action (onRelease) to attach another movie clip only when
the other one is over (after I told it to play from frame 101) or
when it´s at frame something?
Anyone can help?
I´m using as2.0

Hi,
Create action binding for your button and try to call both the services from this method binding.
Example :
<af:commandButton action="#{pageFlowScope.myBean.submitButtonMethodBinding} .../>
In the managed bean :
public class MyBean{
public String submitButtionMethodBinding(){
---- calll first service ---
--- call second service ---
return "dontgoanywhere";
}

Similar Messages

  • Two actions on the same day

    Hi Experts,
    I have activated the additional actions, even though i am not able to perform two actions on the same day. When i am running the second action on the same day, system deletes the first action. Plz help
    regards
    Kunal

    Hi Kunal..
    Check below:
    Cause and prerequisites
    You use the functions 'Additional actions' (infotype 0302) (that is, flag ADMIN EVSUP = 1 in table T77S0). If you delete or shift a created personnel action type 'Leaving' and then create a new personnel action without leaving the transaction, on the list screen of infotype 0000, the system does not display the last but one personnel action.
    Solution
    To correct the display problem, start report RPUEVSUP for the affected personnel number. Then check Customizing of the personnel action types (table T529A), since the report sets indicator U0302 (update of infotype 0302) active for all personnel actions.
    Hope this helps ! if so reward.
    Thanks
    Shyam

  • I need map two controllers to the same button.

    So I have a button at Concert level in MainStage that is set to Actions>Play/Stop. This turns my click track (UltraBeat) on/off. I want to be able to control this with two different "controllers". I've got everything working fine having 2 seperate buttons in my MainStage concert but there must be a way to just have one mapped button be controled by two different controllers. For example, my drummer uses a Yamaha DTX drum pad and I use an FCB1010 foot controller. I want us both to be able to stop/start UltraBeat without having two seperate buttons in my MainStage layout.

    Hi
    You do realise that Mainstage 2.2 has a new "Assignments and Mappings" pane in Edit mode that will enable you to assign incoming MIDI messages and map them to MS functions without the need for Screen Controls?
    Using this method, it would be simple to have one MIDI device control the Click playback using a Screen Control (for visual feedback that it is on etc), with a second mapped to the same parameter using Assignments and Mappings.
    Alternatively, you would need to get both MIDI controllers to send the same MIDI message (say CC71), and then set one Screen Control to 'listen' to All MIDI ports (and possibly all MIDI Channels) using the Screen Control Inspector.
    CCT

  • "Newbie" Unable to run two actions at the same time please help

    Hello
    I'm a newbie (2 weeks) on Labview, so I hope my problem will sound easy for some of you.
    I want to read a file and at the same time get the reading from my sensors (4 sensors).
    My program is working when I do each thing in a different program but when I add them the program only read the text file and stop reading the sensor signals...I attach the program file.
    The goal is with the text file to add an exact time for each sensor signal I record.
    Is there any other possibilities to include a time with the sensors signals recorded ? I need to do this to synchronize the sensors values with CAM program.
    Thanks
    /Xavier
    Ps I used a scan rate of 12000/s but I try 1000/s
    and the sensor acquisition is still not working
    Attachments:
    test3Rdif2802.vi ‏493 KB
    readfile.txt ‏195 KB
    sensoracquisition30s.txt ‏210 KB

    from a glance at your code, it appears that you have nested a loop to read your file, inside a loop to read your sensors. this means the nested loop to read your file must finish before the outside loop to read your sensors can run through another iteration. what you want to do is separate the two loops to run independently of each other (in parallel). use a global variable to know when to stop the loop (if they need to stop at the same time) and if you need to pass data between the loops use a queue (easiest) or you can also use globals with semaphores.

  • Can I use conditional and advanced actions on the same button?

    I'm fairly new to Captivate, but come from a background of flash and am struggling to use Captivate to do some things I would have expected to be fairly simple and a normal requirement.
    I want to create a screen with a number of interactive objects, in this case pictures, that the learner clicks on to display a piece of text.
    On clicking the next picture the first piece of text is hidden and a second piece shown.
    There are 6 pictures/buttons that need to work this way.
    However I also want to assess whether all the buttons have been used, as we have to force the user to view the entire slide before they continue.
    I can do the hide/show of text and buttons, and I've written a conditional action to check the variables for each button. However I don't know how/when to call this action.
    I was hoping that in my advanced action for each button I could add in a call to the conditional 'check variables' action, which would nicely fulfil this requirement, however this doesn't seem to be the case.
    I have also got animation/effects on the timeline before the images are on screen meaning I don't want to go back to the start of the timeline to use a 'on enter' event.
    I'm surprised this isn't something more people need as although it may be frowned upon out in the e-learning field, disabled navigation is frankly not going away and working for any large corporation will be a must.
    If anyone can shed some light on this, or maybe suggest a better approach then I would appreciate it.
    Thanks.

    Hi Lilybiri,
    Thank you for this, I suspected that this was going to be the way I would have to progress.
    I have to ask though, at present the company I work for uses a very straight forward off the shelf WYSIWYG elearning content designer.
    One of the core template pages is a hotspot page, which works in the way I have explained at the top.
    This is also one of the standard e-learning pages I have used in all my other positions, including when building in Flash.
    It seems incredible to me that to do such a simple, commonly used, page type we will require what is a fairly involved process rather than this being one of the page types or templates.
    I am currently trying to pilot Captivate to show how much better it is to the current product, however the other designers have no programming background and I think will stuggle with the conditional actions, meaning that this is pretty much going to be a no go which I'm gutted about...
    I think I stand a chance of teaching advanced actions but anything beyond that is unlikely initially.
    RodWard, thanks for your comments, I'm finding the actions ok in Captivate, as I say above I'm just amazed that this simple and commonly used page is so convoluted to create!
    My other frustration is the lack of control of the events, not being able to specify x and y for motions etc. but I'm finding work arounds...
    Is there a way to create my own page template? Could I write all the actions and bundle that into a page to provide the other designers so with some naming conventions they could use this functionality?
    Thanks for your help.
    Matt

  • How to have two actions in the same ResourceAction file?

    I have 2 Domino Gateway actiontypes in 1 ResourceAction file. When I import this into IDM, the 2nd action always gets truncated. Can I name each actiontype to differenttiate them to IDM?

    You can create a 2nd profile with: firefox -ProfileManager (you have to close all firefox instances to do that)
    Then, you can start a 2nd firefox with the new profile: firefox -P <profilename> -no-remote

  • HT3455 I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    Wow.
    Over react much?
    Check your purchase history.  See if it actually charged you twice.
    If it did then contact itunes support for a refund.
    No need be so over dramatic.

  • Lirc: Looking for a way to map the same button to two apps

    I have two apps on my PC that I would like to control: One is Mplayer, and one is Amarok. Now, I'd like a way to use (for example) the same buttons for volume, play/pause and skip/rew in both apps, but I have no idea how to do this, short of writing two lirc.confs, writing a script to swap them out and launching the script via irexec.
    Can anyone think of a simpler way to do this or do I need to do it the hard way?
    Ideally, I'd like it to be hierarchical: if mplayer is running, it gets the command. Otherwise, Amarok gets it (since it's always running anyways).

    I have two apps on my PC that I would like to control: One is Mplayer, and one is Amarok. Now, I'd like a way to use (for example) the same buttons for volume, play/pause and skip/rew in both apps, but I have no idea how to do this, short of writing two lirc.confs, writing a script to swap them out and launching the script via irexec.
    Can anyone think of a simpler way to do this or do I need to do it the hard way?
    Ideally, I'd like it to be hierarchical: if mplayer is running, it gets the command. Otherwise, Amarok gets it (since it's always running anyways).

  • Can I use the "same" button multiple times for multiple galleries?

    OK so I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work. Please help...and don't laugh at my poor scripting. This is what I have now because I do not know where to put the other button names without getting errors.
    stop();
    next_btn .addEventListener(MouseEvent.CLICK, nextImage);
    var imageNumber: Number=1;
    function checkNumber(): void{
        next_btn.visible=true;
        back_btn.visible=true;
        if(imageNumber==15){
            trace(imageNumber);
        next_btn.visible=false;
        if(imageNumber==1){
            trace(imageNumber);
        back_btn.visible=false;
    function nextImage(evtObj:MouseEvent):void {
        imageNumber++;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();
    back_btn .addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        imageNumber--;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();

    I'm still a novice with Flash myself, but I have two comments.
    First, at this point, won't your buttons control all galleries at the same time? Which means, if I go to image 5 in one gallery, then move to another gallery, I'll start at image 5, because the actions are all connected.
    Second, you can definitely use the same buttons for multiple galleries. It seems to me that as long as you've assigned the buttons an instance name, these actions should already work to control all the galleries (see the note above). I guess I would need to understand a bit more about how your project is built.

  • How to make this two things at the same time ?

    Hello
    When my mouse is on a area, I need :
        -  to show a object (a rectangle inserted with the toolbar)
        -  to show a caption
    I think it's not possible to do this two things at the same time when I use the rollover functions (Rollover caption or Rollover Image).
    I would like to use a button, but the button works only if I click it, and not when I just pass my mouse on it.
    Someone have an Idea?
    I can't use Javascript.
    Thanks

    Rick is correct.  You can use the Rollover Slidelet's rollover area to trigger an Advanced Action.  You'll need to create this Advanced Action with two clauses.  One to SHOW the caption, and the other to SHOW the rectangle.
    Your alternative to the rollover slidelet is to use an Event Handler widget attached to the object that the mouse should roll over.
    The Event Handler will detect when the mouse is over the object and trigger its own Success criteria.  You can then use the widget's ON Success event to trigger the Advanced Action as mentioned above.
    More information about using the Event Handler here: http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    An example of using it to do two different things on the same object can be found at this web page: http://www.infosemantics.com.au/adobe-captivate-advanced-elearning-tutorials/beat-adobe-ca ptivate-interactive-catch22
    Trial versions of the widget can be downloaded from here:  http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets

  • How to apply different keyboard shortcuts to an actions with the same name but in different menus within one application?

    Hi,
    Hopefully someone can help. I have the application "djay" and in two different menus there is the action "Eject". I was wondering if it's possible to apply different keyboard shortcuts to those actions with the same name? I can't see how to do it as it seems you can only write the action but as there are two it doesn't seem to work for me.
    For example:
    djay>Table-1>Eject - ⌘⇧1
    djay>Table-2>Eject - ⌘⇧0
    Thanks in advance for any help!!

    A NodeList doesn't only contain 1 element. In your example it contains ALL <Data> elements inside the document.
    NodeList nodes = document.getElementsByTagName("Data");
    System.out.println(nodes.getLength() + " \"Data\"-elements found");
    for(int i=0; i<nodes.getLength(); i++) {
       Node node = nodes.item(i);
    }

  • Distinguishing between two instances of the same portlet

    Hi Experts,
    Is there a way to distinguish between two instance of the same portlet in different browser windows?
    I'm looking for something like URL parameter passing, but just for portlets.
    The problem is, I want a way to pass a parameter between views in a portlet, but in such a way that if another browser window is opened and navigated to that portlet page, the parameter won't be the same. Perhaps I can explain better with this example:
    Page A has a portlet on it which has a textbox and 2 buttons - the first button stores the value in the textbox in the PortletRequest (or PortletURL) and if you click the second button the portlet navigates to a different view which displays the value. If I navigate with a second browser window to Page A, however, and only click the navigate button, that value which was stored by the first instance of the portlet will still be shown. I want them to be independent, I don't want changes in the one's PortletRequest to reflect in the other one's PortletRequest.
    Any ideas?
    Thanks,
    JP

    Why not use two instances of the same portlet, i.e. create two channels of the same portlet.
    The behave the same, have the same application logic, so all you need is to transfer informations between the two portlets.If you want this within user space use the portlet session, otherwise access the http session context /application context and store the data there.
    The behavior would be controlled by the portlet preferences, so channel a (instance 1) would be configured to run as controller and channel b (instance 2) would be configured as receiver.

  • How can I start two Vi at the same time?

     I have two Vi's, each of these Vi has a stop button. I want to start these two Vis at the same time. I also want to be able to stop the two Vis at the same time. What should I do? Thanks.

    One way to start them is with an Invoke Node and the Run method. You can then stop them with the Set Control Value [Variant] method. When you use the Set Control Value [Variant], you just have to specify the name of the front panel control that stops the while loop. Older versions of LabVIEW only had the Set Control Value method in which you had to use the flatten to string function to pass the Type Descriptor and Flattened Data.
    Message Edited by Dennis Knutson on 03-20-200609:35 AM
    Attachments:
    Run Method.JPG ‏44 KB

  • How to fix the "Two computers using the same IP address" issue on the airport express

    I just bought an airport express and got dsl at my apartment, and I haven't been able to set up the wireless connection. My DSL works just fine but whenever I hook up the AX I get an error message saying that there are two computers using the same IP address on the network, but I only have one computer.
    I know this is probably a simple fix, but I've never had this issue when I set up the Extreme at my parents house and I haven't been able to find a thread on this.
    As of right now I have it set to Factory settings.
    Help please!

    This modem was designed to connect directly to a computer and you are trying to connect it to a router.
    Unfortunately, this is not a simple fix as both the modem and your AirPort Express will need to be configured differently to work together correctly.
    Connect the modem directly to your computer.
    Open up your browser and type the default IP address for the modem into the address bar. Check your documentation on the modem but it is likely 192.168.1.254
    That will bring up the configuration page for the modem.
    You may need to enter the modem access code which is on a label on the back or bottom of the device
    Look for an Advanced tab, then look for a tab labeled something like PPP Location
    Right now, you will see that "PPP is on the modem"
    Chance that to "PPP is on the computer or router"
    Click to save your new settings and the modem will restart
    If you ever need to get the modem back to its original settings, you will need to hold in the reset button on the back of the modem for 5-6 seconds and then enter in the default IP address to be able to access the settings on the modem
    Connect the modem to the AirPort Express with an Ethernet cable
    Open AirPort Utility on your Mac and click Continue to follow the guided setup to "Create a wireless network"
    You may be asked to "switch" networks when you do this. You want to switch
    Select the "Connect Using PPPoe" option when it appears
    Enter your user name and password with your provider. Leave the Service Name area blank. You want to always stay connected if you see that option
    Continue to follow the guided setup and Update to save settings
    Pull the power cord from the modem, wait a moment, then restart the modem
    Log on to the wireless network that you created during the setup and you should have an Internet connection

  • How to keep the select arrow on the same button when returning to the menue after finished feature?

    Hello,
    just after my primary question is answered and I corrected my buttons there's another one which I cannot answer myself:
    I'm putting together a DVD with menues which contain a lot of options/buttons. People who watched the DVD wanted that the select/highlight arrow stays/returns to the button they selected prior. That's because there are so many buttons/options that some people might not remember which feature they just watched. So this means if people select the "Vacation 2008" button/feature the select/highlight arrow should be on the same button after the feature is finished and it returns to the menue.
    Since I haven't seen any functions/options for this: Is it possible to do or isn't it or does it happen just naturally?
    Hope this isn't too confusing :-)
    Help is appreciated!
    Thank you,
    Chris...

    ChrisHei wrote:
    Where would I select "Last Menu" for this to happen? In the properties for the button or for the timeline? And where exactly: "overwrite" or "remote menu" selection?
    Not in any override. Don't set any overrides unless you understand exactly how they work, or they will royally mess up your disc navigation.
    Normally, you select "Return to Last Menu" for an end action of the object (timeline, slideshow, playlist, etc.) that is playing. You can also set the Menu Remote property for the timeline/slideshow to "Return to Last Menu".

Maybe you are looking for