How can I change the function of a flash button?

Hello,
Not sure if this should go in the Flash forum or Captivate forum, but does anyone know how where to find ActionScript 3 commands for Captivate?
I downloaded a pre-made Flash button (source file) for Adobe Captivate that was originally made to make a video go to the next slide, when pressed. It does that fine, but I wanted to know how to use the ActionScript code in Flash Professional CS5 to have the button JUMP to a specific slide in Captivate, instead of just go to the NEXT slide. I know generally how code works, but have never really used it, and don’t know the specific command to make that happen. Currently the relevant part of the code in the Flash button reads:
function clicked(e:MouseEvent):void{
                var myRoot:MovieClip = MovieClip(root);
                var mainmov:MovieClip = MovieClip(myRoot.parent.root);
                mainmov.rdcmndNextSlide = 1;
I suspect that I just have to change the last line to something else and it should work, but I would need the command. Can anyone tell me what needs to be changed in the above code to make that happen?
The full code is below. Thanks.

You are awesome. Thank you. That was extremely helpful. Michael also gave me a list of variables to use. However, when I use:
cpCmndGotoSlide = 5
It always jumps to slide 9, regardless of the value I put in the place of the '5'. So it does jump to a slide, but I can't yet get it to jump to the slide I want. In other words,
cpCmndGotoSlide = 7
or
cpCmndGotoSlide = 13
or
cpCmndGotoSlide = 44
etc,
produces the same result: jump to slide 9. I followed the same format... Any idea why it wouldn't be working?
Here is the full script:
this.stop();
// Set up event listeners
main.btn2_mc.addEventListener (MouseEvent.MOUSE_OVER, over);
main.btn2_mc.addEventListener (MouseEvent.MOUSE_OUT, out);
main.btn2_mc.addEventListener (MouseEvent.MOUSE_DOWN, clicked);
// functions for eventlisteners
function over(e:MouseEvent):void{
    main.button1_mc.gotoAndPlay("s1");
function out(e:MouseEvent):void{
    main.button1_mc.gotoAndPlay("s2");
function clicked(e:MouseEvent):void{
    var myRoot:MovieClip = MovieClip(root);
    var mainmov:MovieClip = MovieClip(myRoot.parent.root);
    mainmov.cpCmndGotoSlide = 5;   

Similar Messages

  • How can i change the color of a blinking button?

    Dear all,
    how can i change the color of a blinking button with property nodes, when the button changes from "normal" state to blinking state? I can change the color of the normal state, but how can I change the color when the button is in blinking state?
    thanks

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • How can I change the slide to 8 Radio buttons mutually exclusive?

    How can I change the slide to 8 Radio buttons mutually exclusive?
    I saw the example in Labview. but it only contains upto 5 radio
    buttons. I need 8. How can I change it? Is there any shortcuts?

    I made this with NI's radio button control found in the boolean palette.  Just resize the cluster border, and move the buttons to where you want.  To add a button, select one of them, hold down Control and Shift keys, then drag the button to a new location.  The button gets duplicated.  Do this until you have enough buttons.
    Message Edited by tbob on 10-31-2005 01:07 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    RadioButtons.PNG ‏2 KB

  • How can we change the functionality of Room Usage Analysis iview

    Hi All,
    I want to change the functionality of Room Usage Analysis iview.   This iview shows all the Rooms with usage. However we get a hyper link with the Room Name.  i want to delete that hyper link and make it as a simple text.
    Where can I do the changes.  Is it possible to get the code and change?
    Thank you inadvance.
    Raghu

    Hi All,
    Any ideas near to my question is also appreciated. Thankyou in advance.
    Raghu

  • How can I change the default cookie-preference dialog-button to "allow for session" instead of "allow?"

    When the cookie preference is set to "ask every time" the default button (highlighted & selected when I hit return or enter) is "allow." Can I change the default button to "allow for session" so I don't have to use the mouse to select it?

    Here's the cookie preference dialog box (click picture below)

  • How can you change the style of a flash tabnavigator with css

    I'd like to change the colors of a tabnavigator in flash
    form.
    I found an example how to change the layout for a panel but
    it doesn't inherate it to my tabnavigator.
    Here a simple example for a panel that works:
    quote:
    <cfsavecontent variable="contentPanelStyle">
    panelBorderStyle:'roundCorners';
    backgroundColor:#EFF7DF;
    headerColors:#CBEC84, #B0D660;
    </cfsavecontent>
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <!--- skinned --->
    <cfformgroup type="panel" label="With styles"
    style="#contentPanelStyle#" width="400">
    <cfinput type="text" name="someinput" label="your name"
    />
    </cfformgroup>
    </cfform>
    Actually, I just want to colorize my tabnavigator items
    (don't want even a panel around it). How can I do this, as example
    with the same colors like the panel?
    pawel

    Found 1 solution for the active Tab
    quote:
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <cfformgroup type="tabnavigator"
    style="themeColor:##CC0000;">
    <cfformgroup type="page" label="Tab 1">
    <cfinput type="text" name="someinpu1t" label="your name"
    />
    </cfformgroup>
    <cfformgroup type="page" label="Tab 2">
    <cfinput type="text" name="someinput2" label="your name"
    />
    </cfformgroup>
    </cfformgroup>
    </cfform>
    But still, how do I controll the colors of the inactive Tab
    and the highlight Tab (rollover mouse)?
    pawel

  • How can i change the lenguage in adobe flash cs4

    i instal the sofware today and i try to do in sapnish but in the end is in english,,,i deleted the sofware from my computer beacouse not space in there,,so now i need to change the lenguage to spanish,,,some one can help me???
    thanks
    he instalado el programa de adobe flash cs4 por lo visto en ingles,,,sabe alguien como cambiarlo a espanol,,,,he borrado el programa bajado de adobe asi que no lo tengo para poder desinstalar y volver a instalar en espanol,,,me puede ayudar alguien..
    gracias

    The old-is-gold method: Uninstall the older version, reinstall the newer version.
    Alternatively (quicker and happy version),
    1. Go to Preferences.
    2. Select Language from the left side.
    3. Look for "Application Language" dropdown.
    4. Select "Choose at application startup".
    5. Restart Reader.

  • How can I change the width of bookmark toolbar buttons?

    I would simply like to alter the width of bookmark toolbar buttons to better display the bookmark title. I also have MultirowBookmarksToolbar addon installed.

    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    </nowiki></pre><pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item { max-width: 20em; }</nowiki></pre>
    You can use this code for specific bookmarks (label name needs to be an exact, case sensitive, match)
    <pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item[label="Bookmark_Name"] { max-width: 20em; }</nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration

  • How can i change the image from a comand button

    i thought it works whit the folowing coden
    <h:commandButton id="but1"
    image="image1.gif"
    onmouseover="document.getElementById(\"but1\").image=\"image2.gif\""/>
    but is dont work
    is this the righet way, or i'm complite wrong
    can somebody help

    Use the folowing:onmouseover="this.src='images2.gif'"Good luck with the relative path to the image :-)

  • How can I change the find function so that it "IS" shared between tabs?

    In the notes about what changed in Firefox 25 is this: "The find bar is no longer shared between tabs." I use the find function all day every day and absolutely need the find bar "to be shared" between tabs. How can I change the function back to how it worked before?
    This new change in version 25 will cost me hours of search time everyday.

    Hi,
    The people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.
    Curtis

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • I have my iPhone 4s plugged into a dock and the dock connected to an amplifier, the problem is that the amplifier doesn't have a volume changer and when i plug in the iPhone into the dock the iPhones volume bar disappears. how can i change the volume?app?

    Hi
    I have my iPhone 4s plugged into a dock and the dock connected to an amplifier with 2 speakers and a bass, the problem is that the amplifier doesn't have a volume changer and when i plug in the iPhone into the dock the iPhone´s volume bar disappears and im not allowed to change the volume and its very loud. how can i change the volume? is there an app? any ideas??(my dock doesnt have infrared remote controller )
    TY!!!!

    Kline25 wrote:
    So even if I just ask to pay them to replace the lock button they won't because my screens are third-party?
    Apple does not repair devices beyond replacing the screen on some models or a battery replacement.  They replace the ENTIRE device.
    For the Out of Warranty replacement cost, you could have gotten a fully functional replacement device.  Instead you chose to spend less to get only the screen replaced and continue to live with additional issues.
    Apple will not touch the device now.  They will know that it was opened elsewhere and that the replacement screen is not original.

  • How can I change the colour of an iCal calender on the iPhone?

    I have two iCal calendars on my iPhone that sync to google. It works fine with push but both of hem has the same colour. That makes it hard to see the diference.
    How can I change the colour?
    I am syncing to outlook so I don't have iCal on the statonary.

    I looked into this before, and at the moment there is little you can do to customize the inputrender tag, short of subclassing it and adding the functionality you require

Maybe you are looking for

  • CD line item separately in Customer Line item

    Dear Experts, My client requirement is Cash Discount line item can be separated for Customer Line Item. Standard setting: When customer pays the invoice and cash discount is there on invoice the entry will be as below in Standard SAP Bank Inco A/C Dr

  • How to cpoy a window from one smartform to another smartform

    Hi experts, can u please help me . how to copy one window from one smartform to another smartform.. Thanks Sai

  • Oracle 10G on Win XP

    I would like to know where can I find the instruction to install Oracle 10G on a Win XP machine. I have the following disk: 1. - Oracle DB 10G Rel 3 (10.1.0.2) Windows 32 Bits 2. - Oracle 10G Client And I would like to know if I need to install both

  • Missing closing paragraph tags

    Well this is a conundrum. The closing paragraph tag (i.e. </p>) which is considered optional and which Dreamweaver does not automatically insert at the end of a paragraph makes a difference to Internet Explorer (at least version 7.0 which I previewed

  • 0CO_PC_PCP_03 Extraction

    Hi Experets, I have a problem in loading data, Please provide your thoughts. I am working on 0CO_PC_PCP_03 and _04 to load the data to BW. I want to load the data for 12 Periods using Infopackage's ("to" and "from"). whereas i can't load more than 1