Frustrated - trying to make button function

Hello,
Okay, here's an example of what I want to do on this site:
http://www.templatemonster.com/flash-templates/8549.html
I am creating my first website in Flash and need help with my
Actionscript. I made three buttons, which are inside my intro page
movieclip called mcIntro. When you click the buttons, I want it to
take them to a frame label on the main timeline (in the case below,
"print"). Then I want the movieclip that's on the "print" section
to go and play an animation with the frame labeled "in". Then,
depending on whether the web section, print section, or main
section is visible, I want the section they're leaving to go to the
"out" animation. Here's what I did, and it didn't work.
mcIntro.bPrint.onRelease = function() {
_root.gotoAndPlay("print");
mcPrint.gotoAndPlay("in");
if (mcWeb._visible) {
mcWeb.gotoAndPlay("out");
if (mcIntro._visible) {
mcIntro.gotoAndPlay("out");
Help is appreciated, thanks!

This sounds like the same problem as in this earlier post today... not properly naming the button instance...
http://forums.adobe.com/thread/856044?tstart=0

Similar Messages

  • Trying to make Scrollable Functionality in Paint like program.

    I'm wrinting a program thats a lot like MSPaint or any of the other paint variants. I have a JPanel that all of my shapes are drawn to. I need the scroll bars to show only when the shapes, which are variants of Shape2D, are to large to be shown in the window. For some reason I just can't make heads or tails of the JScrollPane documentation. If someone can just give me an example of a class that extends JPanel and has the scroll bars on it I think that I could figure it out from there.

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.Line2D;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.*;
    public class ScrollView extends JPanel {
        List<Line2D> lines = new ArrayList<Line2D>();
        final int DELTA = 30;
        final int PAD   =  5;
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.blue);
            for(int i = 0; i < lines.size(); i++) {
                g2.draw(lines.get(i));
        public Dimension getPreferredSize() {
            double maxX = 0, maxY = 0;
            for(int i = 0; i < lines.size(); i++) {
                Rectangle r = lines.get(i).getBounds();
                if(r.getMaxX() > maxX) maxX = r.getMaxX();
                if(r.getMaxY() > maxY) maxY = r.getMaxY();
             return new Dimension((int)(maxX+PAD), (int)(maxY+PAD));
        private JPanel getLast() {
            String[] ids = { "width", "height" };
            ActionListener al = new ActionListener() {
                Rectangle rect = new Rectangle(PAD,PAD);
                public void actionPerformed(ActionEvent e) {
                    String id = e.getActionCommand();
                    int w = getWidth();
                    int h = getHeight();
                    double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
                    if(id.equals("width")) {
                        double lineWidth = (w-2*PAD) + DELTA;
                        x1 = PAD;
                        x2 = x1 + lineWidth;
                        y1 = y2 = h - PAD;
                    } else {
                        double lineHeight = (h-2*PAD) + DELTA;
                        x1 = x2 = w - PAD;
                        y1 = PAD;
                        y2 = y1 + lineHeight;
                    lines.add(new Line2D.Double(x1, y1, x2, y2));
                    repaint();
                    revalidate();
                    rect.setLocation((int)x2, (int)y2);
                    scrollRectToVisible(rect);
            JPanel panel = new JPanel();
            for(int i = 0; i < ids.length; i++) {
                JButton button = new JButton(ids);
    button.setActionCommand(ids[i]);
    button.addActionListener(al);
    panel.add(button);
    panel.setBorder(BorderFactory.createTitledBorder("expand"));
    return panel;
    public static void main(String[] args) {
    ScrollView test = new ScrollView();
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.add(new JScrollPane(test));
    f.add(test.getLast(), "Last");
    f.setSize(400,400);
    f.setLocation(200,200);
    f.setVisible(true);

  • How can i make buttons in an article to go for other articles in Folios Builders for Ipad?

    I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
    Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
    Please, need some help here.

    WHat is navto? is navegate to...?   How can i do this?
    thanks a lot for your attenttiosn.
    Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
    Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • While editing photos in Aperture, I'm trying to make an "auto" adjustment to the exposure but the button is grayed out and consequently doesn't perform any function, please help! Thank you, Mike

    While editing photos in Aperture, I trying to make an "auto" adjustment to the exposure,
    but the "auto" button is grayed out and will not allow any auto function to take place.
    Please help!
    Thank you,
    Mike

    Mike, are you working with raw images?
    For some raw images auto exposure is not available, have a look at this manual page:
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=18%26se ction=9%26tasks=true
    Note: Automatic exposure adjustment is available for Aperture-supported RAW images only. If you want to adjust the exposure of another file type, such as JPEG or TIFF, see Working with the Exposure Controls. For a list of supported RAW file types, go to the Apple website at http://www.apple.com/aperture/specs.

  • How do i make the back and forward buttons function? they are visible but not functional.

    I have firefox 8.0.1 and my back and forward button are not working. They are visible but not functioning. I have tried starting in safemode and without any add-ons and the back and forward buttons are still not functioning. What do I need to do to make the buttons functional?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • Trying to make a button with a drop zone

    Since I can't find any of the template buttons that look the way I want, I want to make a simple button that includes a drop zone for an asset, a label, and a highlight. I am trying to make a chapter index menu. I can do it using the automated method and using a customized template - but I cannot find buttons that look the way I want. All I want is a simple rectangle, with the label underneath, and a highlight line under the label. There is one like that in which the asset is black and white (RectRoundEdgesBlue.pox), but I want one that is in color. Is there any way to do this?? I have studied some of the Photoshop tutorials, but I am missing how you put a drop zone in.

    Hi,
    Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
    myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
    function gotoPageFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://www.adobe.com");
    navigateToURL(request, '_blank');
    Thanks!
    ps: please mark this post as Answered if this is of help to you

  • Trying to make a hyperlink with AS3 on Arcade button

    Hello all,
    I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
    My question is can anyone help me create this button for my website?

    Hi,
    Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
    myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
    function gotoPageFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://www.adobe.com");
    navigateToURL(request, '_blank');
    Thanks!
    ps: please mark this post as Answered if this is of help to you

  • Ctrl + secondary mouse button (Trying to make a button invisible)

    Hi Portal Experts,
    I am trying to make a button invisible basically personalization of Iview we are in SAP Portal version 6,40. I have kept mouse on the button and action was Ctrl + right click of mouse and i am not getting the properties screen rather a general windows options(Second screen shot). It would great if i can get suggestions to get the properties screen.
    Thanks in Advance..!!
    Regards
    Venkat

    Hi Venkat,
    Can you check the value of property "AllowUserPersonalization" in Visual administration Services → Configuration Adapter → webdynpro → sap.com → tc~wd~dispwda - propertysheet
    Also what is the exact version of this portal?
    Mahesh
    Message was edited by: Mahesh Krishnapillai

  • Help with trying to make a rollover button

    I'm trying to make a roll over button using this tutorial 
    http://www.pegaweb.com/tutorials/rollover-buttons/rollover-buttons.htm
    and it doesn't seem to do what the tutorial says it will do 2-3 steps in.
    The part where it says...
    Quote:
    - In the Channels window, Ctrl+Click the "Alpha" layer, to select its outline.
    - Go back to the Layers window, and create a new layer.
    - Choose the Gradient Tool. (Remember that it might be hidden under the Paint Bucket Tool.) Apply a gradient from the bottom of the image to the top.
    Mine does not create a gradient that looks like the image they have presented. 
    I just have the entire wood look, and then the outline of my button is just a little darker. I don't get the white background with the gradient applied to it in the button space.
    Would someone mind following the steps at this link and letting me know if it is missing something? It only took me 2 minutes to get to this point before I couldn't figure out why it wasn't doing what it was supposed to.

    When you create the button look in the upper left hand corner of the screen and see what type of object you are creating. Placing the mouse of the the three buttons will give you a tool tip of what they are.
    The one you want is the one on the right as it will create a pixel based rectangle. Make sure you put this rectangle on its own layer, then you can move it or delete it if necessary. Lock the transparency7 button at the top of the layers panel. The will make sure when you create the gradient it will put it inside the button you made and not outside of it.
    If you are seeing just a border I am thinking the middle button in the top tool bar is selected which creates a path. It is possible to fill that path and then create the gradient but you have to make sure that the lock transparency is not checked. Open the paths panel and at the bottom of the panel is a fill button. This creates a pixel based object which you can then create a transparency using the steps above.

  • When trying to make calls the timer starts counting as if i am connected but i can't hear anything and my speaker button has turned blue

    when trying to make calls the timer starts counting as if i am connected but i can't hear anything and my speaker button has turned blue

    Did you use the latest backup after setting it up "as new device"? If yes, try again, this time without using the backup, maybe it contains damaged data causing your problem.
    If this does not bring any change, you should get it serviced.

  • I'm trying to make a "Submit" button for my existing UIPickerView. Help!

    Hi there! I’ve been tearing my hair out and searching the web high and low for an answer to a question I have about UIPickerView. I was hoping that perhaps you could help me out!
    I’m trying to make a “Submit” button for my existing UIPickerView.
    I’ve coded a 3 column UIPickerView into my app, and it works great. However I’d like to add a “Submit” button and connect it to my pickerview, so that once a user makes their selections and clicks “Submit,” the app searches an existing array for the user’s selected values.
    Any help would be appreciated! I hope I explained that okay, lol.
    Thanks,
    Brittany

    Check this one.
    http://support.apple.com/kb/HT2731

  • How to make next and previous button function

    Hello
    Can anybody help me with how to achieve next and previous button function such as the one at www.bestbuy.com?
    I would appreciate any help or suggestion.
    Thank you!

    if you're not familiar with flash it might be easiest to place your initial "page" in frame 1, the 2nd (or next) page in frame 2, the 3rd/next page in frame 3 etc.
    place your previous and next buttons in their own layer that spans the main timeline (which will have as many frames as you have "pages").  give them instance names (say prevBtn and nextBtn).
    you can then use the following code placed in frame 1:
    var tl:MovieClip=this
    prevBtn.onRelease=function(){
    tl.prevFrame();
    nextBtn.onRelease=function(){
    tl.nextFrame();

  • Re: [iPlanet-JATO] Back Button functionality

    Hi Mike,
    Our test environment does not include proxy server.
    regards,
    syam.
    Please respond to [email protected]
    cc:
    Subject: Re: [iPlanet-JATO] Back Button functionality
    Guys,
    Please clarify something for me, the JATO code is commented as follows
    protected void addResponseHeaders(RequestContext requestContext)
    // These values should make any proxy between the client and
    // server avoid caching, and ensure that pages from one user
    // can never be seen by another user (if they're cached anyway)
    requestContext.getResponse().addHeader("Pragma","no-cache");
    requestContext.getResponse().addHeader
    ("Cache-Control","private");Yet you make no mention of whether your test environment includes a Proxy
    Server, or does your browser
    go directly to the Application Server's web server?
    Can you clarify, please?
    ----- Original Message -----
    From: <syam_reddy@p...>
    Sent: Wednesday, April 25, 2001 2:59 PM
    Subject: [iPlanet-JATO] Back Button functionality
    >
    Hi,
    We observed the following difference in behaviour between JATO pages
    and NetD served pages.
    We have the following scenario. User will login to the
    site. After login he will get a frame set. This frame set has threeframes.
    Top and bottom frames are used for navigation (to switch between various
    sections on the site.) .The middle frame(main frame) shows the actual
    content. When the the frame set gets loaded main frame shows page1. User
    will click on a link on page1. Page 2 will be loaded in main frame. Atthis
    point if the user clicks on back button , with migrated application(JATO
    pages) the following message appears in the main frame.
    In Netscape Communicator 4.61 the following message appears in the main
    frame :
    Data Missing
    This document resulted from a POST operation and has expired fromcache.If
    you wish you can repost the form data to recreate the document by
    presenting the reload button.
    In IE 4.72/5.5 the following message appears in the main frame:
    Warning : Page has Expired
    The page you requested was created using information you submitted in a
    form.This page is no longer available.As a security precaution, Internet
    Explorer does not automatically resubmit your information for you. To
    resubmit your information and view the web page click teh refresh button.
    However, in the NetD site page1 will appear in main frame.
    How do we mimic the NetD behaviour with the migrated
    applications ?
    We think the above behaviour with migrated Apps, is due to the
    headers that are get set in Application ServletBase , see the following
    code snippet :
    protected void addResponseHeaders(RequestContext requestContext)
    // These values should make any proxy between the client and
    // server avoid caching, and ensure that pages from one user
    // can never be seen by another user (if they're cached anyway)
    requestContext.getResponse().addHeader("Pragma","no-cache");
    requestContext.getResponse().addHeader
    ("Cache-Control","private");
    If we comment the above code , we were able to mimic theNetD
    behaviour. Are there any alternatives/thoughts on how to mimic the NetD
    behaviour ?
    Thanks in Advance,
    syam&ravi.
    [email protected]
    [email protected]

    OK, here's what I'm trying to do: We have, like you said, a menu
    page. The pages that it goes to and the number of links are all
    variable and read from the database. In NetD we were able to create
    URLs in the form
    pgXYZ?SPIDERSESSION=abcd
    so this is what I'm trying to replicate here. So the URL that works
    is
    pgContactUs?GXHC_GX_jst=fc7b7e61662d6164&GXHC_gx_session_id_=cc9c6dfa5
    601afa7
    which I interpreted to be the equivalent of the old Netd way. Our
    javascript also loads other frames of the page in the same manner.
    And I believe the URL-rewritten frame sources of a frameset look like
    this too.
    This all worked except for the timeout problem. In theory we could
    rewrite all URLs to go to a handler, but that would be...
    inconvenient.

  • Trying to make a clone backup of my internal HD but my iMac no longer recognizes my external HD.

    Short story: I am trying to make a clone of my internal drive using Super Duper! but the 3 TB La Cie external hard drive I want to copy to isn't being recognized by finder or in disk utility. The external hard drive is powered and attached to the desktop via firewire cable. It was properly formatted and made one seemingly successful backup prior to this attempt.
    Specs: I have a 27 in iMac with 2 GHz Intel Core i7 processor, purchased in late 2009. Running Mac OS 10.6.8 with 8GB RAM.  I have a 2 TB internal HD with only 80 GB available.
    Background: I've had few if any problems with this computer but I'm running out of disc space. It's getting a little sluggish and I find that I am force quitting iPhoto more often than I used to. I was getting ready to put a long overdue (less labor intensive) backup plan in place. I had been using DVDs to back up photos and some documents. My computer crashed last week while working in iPhoto. The screen was speckled and banded and I could not restart.  I was able to boot in safe mode and run disk utility. The verification stopped (corrupted files found) and disk utility recommended repair.  I did a safe mode back up with time machine to the 3 TB ext HD. I tried unsuccessfully to run safe mode with networking to attempt online backup with Crashplan. I read something about installing mac os x on ext HD and then dragging files over to it, but DVD player not functional in safe mode. Then I called Apple support to run what I had done by them and to ask for advice before running disk repair.  We tried a PRAM reset but still couldn't restart in normal mode. He said my safe mode backup should be good and to run the repair, restore if necessary and if that doesn't work bring it to Apple for hardware testing.  I read somewhere that PRAM resets need to be done with a USB (not wireless) keyboard so I tried again doing a few PRAM/NVRAM resets.  No change. Later, maybe even the next day, the screen which had been banded and speckled looked normal again. Not sure why but happy.  I restarted successfully. I ran a time machine backup in normal mode to a 5 TB external HD and wanted to make a bootable clone of my mac HD to the 3 TB ext HD (in place of the safe mode backup). The computer crashed again for a little while and I was eventually able to restart. I downloaded Super Duper! but my mac no longer sees the 3 TB external drive. Maybe I did something wrong when I changed drives in time machine for the last backup?  I'm guessing I could crash again at any moment and would love to get this clone made.

    Yes. Formatted correctly. It' s new ext HD and I made a the first back up on it a few days ago using time machine while my computer was in safe mode. When I was able to restart my computer normally I quickly set up a time machine backup to my larger 5 TB ext drive. Also new and formatted for my mac. I was in a rush to get it going before I left for work so maybe I did something wrong. IDK. I can't remember but it did ask me about switching drives vs setting up. Although I don't see why the computer wouldn't see the drive.
    I did try another firewire cable and no change. Checked connections again.  The HD turns on and the blue light comes on  (it's a La Cie d2 quadra deskdrive)
    Is the SMC reset where you detach devices and restart?  My printer, keyboard and mouse are all wireless and right now I don't have anything else connected.
    I'll try another PRAM reset too.
    *  Question:
    When I connect the 3 TB drive it starts up but I don't see it on my desktop, finder sidebar or in disk utility. If a hard drive starts up but doesn't show up on your computer how do you safely shut it down before disconnecting?  I've been clicking on the desktop and then pressing the eject button on my keyboard just in case.

  • Help : Lost in Code - Trying to make a simple Click-Through

    Hey Everyone -
    I've come in search of some help and expertise. I've found a
    website which I would like to copy in functionality - in hopes of
    creating a simple slideshow of images. They are using the MOOTOOLS
    framework for the Slide animation - i've gotten that to work
    - but i can't figure out how to replicate the clickthrough-
    SO - what i'm trying to do is copy this page exactly -
    http://www.thegraphicgraphic.com/
    you'll see that it's just three lines of text ( rollovers )
    and the last line opens up a javascript slider window - now i've
    managed to copy most of it by taking the code and figuring out the
    urls for the javascript and such .
    check out my version here :
    http://www.nontype.com/beograd.html
    i've got the css and java stuff working okay - but what i
    can't seem to figure out at all is how they are getting the
    rollover links to link to the NEXT IMAGE - they're using some tags
    that i don't understand : it looks something like this : : :
    <div id="header">
    <ul>
    <li>
    <a href=""
    onmouseover="this.innerHTML = 'NEXT'"
    onmouseout="this.innerHTML = 'THE'">
    THE</a>
    </li>
    <li>
    <a href=""
    onmouseover="this.innerHTML = 'PREVIOUS'"
    onmouseout="this.innerHTML = 'GRAPHIC'">
    GRAPHIC</a>
    </li>
    <li>
    <a href="#" id="button" onmouseover="this.innerHTML =
    'INFORMATION'"
    onmouseout="this.innerHTML = 'GRAPHIC'">
    GRAPHIC</a>
    </li>
    </ul>
    </div>
    AND The JAVASCRIPT Used for both the sliders ( and I assume
    the click-through functionality ) is :
    window.addEvent('domready', function() {
    var Slider = new Fx.Slide('about',{mode: 'horizontal',
    duration: 100}).hide();
    $('button').addEvent('click', function() {
    Slider.toggle('horizontal');
    function noSpam(user,domain) {
    locationstring = "mailto:" + user + "@" + domain;
    window.location = locationstring;
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    I just want to click NEXT to progress to the next background
    image / and PREVIOUS for the prev. image . . . . . . . . Could
    anyone here tell me how to do this as in the first site ? ? ? Would
    I be able to simply create multiple HTML Pages - use an Embed tag -
    and then link the PREV and NEXT buttons with tags ?
    I'm just trying to make this work by any means but am finding
    the code impossible to crack -
    I tried asking this question in the mootools forum but was
    told to look elsewhere - I'm more than willing to use
    any other means in order to make this work .
    MANY THANKS IN ADVANCE FOR YOU HELP . . .

    Have you asked the authors?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "aerolex" <[email protected]> wrote in
    message
    news:f2naeu$q66$[email protected]..
    > Hello - would anyone have any advice - or should i
    somehow reword the
    > question ?
    >
    > or could some provide some insight as to where i might
    look to resolve
    > this question ?
    >
    > THANKS AGAIN

Maybe you are looking for