Help me make a simple "click to link" action

I'm trying to add an action to a button, so that if clicked,
you are transfered to a certain link. Very simple stuff, but I just
got into flash coding and understanding the basics, so forgive my
noobness =)
Here is the code so far (the action script for this one
button):
[code]
// Action script...
on (rollOver)
gotoAndPlay("menu2")
on (rollOut)
stopAllSound();
[/code]
Hope someone can help me out =)
-Stigma

try:

Similar Messages

  • Help me make a simple TextArea plz !!!

    i'm trying to make a simple 2 text areas and a send button, that don't do anything right now i just want them there, i was trying this
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;             
    import java.awt.event.*;       
    import java.net.URL;
    import java.io.IOException;
    public class swing1 abstract extends JFrame
                              implements ActionListener {
         private String newline = "\n";
         protected static final String textFieldString = "JTextField";
         protected static final String passwordFieldString = "JPasswordField";
            protected JLabel actionLabel;
         public swing1()
         super("swing1");
         //Create a regular text field.
                  JTextField textField = new JTextField(10);
                  textField.setActionCommand(textFieldString);
                 textField.addActionListener(this);
                             Frame frame = new Frame();
                             frame.setLayout(null);
                             frame.setBounds(100,100,150,70);
                             Button button1 = new Button("send");
                             frame.add(button1);
                             button1.setBounds(10,30,50,25);
                             frame.setVisible(true);
    }any help would be great thanks, i'm atempting to make a password reconision thingy for a lesson at uni
    thanks
    Ant

    i changed my code to this:-
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.io.IOException;
    public class swing1 extends JFrame implements ActionListener
         private String newline = "\n";
         protected static final String textFieldString = "JTextField";
         protected static final String passwordFieldString = "JPasswordField";
         protected JLabel actionLabel;
         private JTextField textField;
         private JPasswordField passwordField;
         private Container p; // make a panel to witch the components can be added
         public swing1()
              super("swing1");
              //Create a regular text field.
              textField = new JTextField(10);
              textField.setActionCommand(textFieldString);
              textField.addActionListener(this);
              //Create a password field.
              passwordField = new JPasswordField(10);
              passwordField.setActionCommand(passwordFieldString);
              passwordField.addActionListener(this);
              //Create some labels for the fields.
              JLabel textFieldLabel = new JLabel(textFieldString + ": ");
              textFieldLabel.setLabelFor(textField);
              JLabel passwordFieldLabel = new JLabel(passwordFieldString + ": ");
              passwordFieldLabel.setLabelFor(passwordField);
              //Create a label to put messages during an action event.
              actionLabel = new JLabel("Type text and then Return in a field.");
              actionLabel.setBorder(BorderFactory.createEmptyBorder(10,0,0,0));
              //Lay out the text controls and the labels.
              p=getContentPane(); //get te contant pane of this Swing1 to add the componets to
              p.add("West",textField); //add your fist component, add it west on the dafault borderLayout
              p.add("East",textFieldLabel);// add another component, add it east on the dafault borderLayout
              p.add("South",passwordField);// add it south on the dafault borderLayout
              p.add("North",actionLabel); // add it north on the dafault borderLayout
              setSize(400,100); //make it a bit bigger
              setVisible(true);
              public void actionPerformed(ActionEvent e)
              JFrame frame = new swing1();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
                   new swing1(); //make a new instance of your class
    [\code]
    but now it will compile but not run, i think its because i don't have a main method, whereshould i put my main method ?
    thanks
    Ant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Who can help to make a simple direct change in AP Database (search/replace)

    Hi,
    I wonder if somebody can help me with a simple search and replace direct in the AP Database??
    After the last upgrade to 1.5. our keywords are not exported correctly.
    Is there any easy way to search for ";" and replace with a comma ",".
    I have about 9000 Image in one AP library, which included 3 Projects.
    I really would appreciate help - it would save us a lot of work!
    Thanks

    I believe we found the problem - but could not fix it because I need to search/replace in the Database.
    Here is the problem:
    AP is now confirm with the IPTC guidelines, which limits ONE Keyword to 64 characters.
    Problem is and was for us that we did a work around in AP 1.2. - we exported keywords and phrases separated by a semicolon - so everything was fine till the update - no all it sudden AP exports kw1;kw2;kw3; as ONE Keyword - so the semicolon does not separate the keywords anymore and after 64 characters it cuts of.
    I have to replace all "semicolons" with a "semicolon+empty space" (to get it into our database) or at least replace "semicolon" with "comma+empty space".
    We have several librarys and projects, all keyworded with about 20-40 keywords which we can´t export.
    I need to go direct in the database and do a search and replace - but I never worked direct in the AP Database - any idea how we can do a search/replace???
    Would very much appreciate if you could help!
    Thanks

  • 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

  • Help tracking ball will not click on link

    The ball will get me to a web site and sign in fine but then I can not get it to work on any links.
    An example just now trying to play tribal wars while out of the house. The ball gets me on the web, signed in to the game and then nothing else works from the tracking ball. It apperas all other features work like the r for refresh etc.
    Thank you in advance.

    Connect the device to a known working wall outlet charger and leave it a couple of hours.
    With it STILL CONNECTED to the charger, remove the battery and re-insert.
    What do you see onscreen and with the LED?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help me make panel when clicking ,it is on frame

    I have one tool bar on the left and button on it .When clicking on this button ,one panel appear on main panel .and When clicking again it is indented
    [http://www.javavietnam.org/javavn/mvnforum/getattachment?attach=2532]
    [http://www.javavietnam.org/javavn/mvnforum/getattachment?thumbnail=yes&attach=2533]
    I'm very sorry because multi-posting questions.But I cannot edit it
    Edited by: churan on May 28, 2009 6:27 AM
    Edited by: churan on May 28, 2009 6:28 AM
    Edited by: churan on May 28, 2009 6:29 AM
    Edited by: churan on May 28, 2009 6:30 AM

    two posts of the same problem, and you've yet to ask a decent question in either of them.Actually, this is a triple posting and the first made no sense either which is why the OP was asked to post a SSCCE.
    Maybe with the link you provided and a proper SSCCE in two or three days the OP will be able to put together a meaningfull question.

  • I cannot make a simple purchase of a $.99 of Beethoven's 9 symphony 4th Movement. When I click on the orchestra, a pop-up states "connecting - loading" and nothing happens. When I click on "View iTunes" for this selection, nothing happens.

    I cannot make a simple purchase of a $.99 of Beethoven's 9 symphony 4th Movement. When I click on the orchestra, a pop-up states "connecting - loading" and nothing happens. When I click on "View iTunes" for this selection, nothing happens.

    AlexCarey, I've been having issues purchasing recently and place a number of calls to the support team. On Oct. 5th, and on my own decision, I went into my itunes profile and re-entered my credit card expiration date and security code. (Notice, it is not displayed for safety measures.) Today, I received an email from Apple support verifying if I made changes made to my account. For the heck of it, I logged back into itunes; click "Buy". It's working again after three days of failure. However, diagnosis still displays "Secure link to itunes store failed". Very confusing state of affairs, lately. See my post on "Itunes dilemma"

  • Help I clicked a link in an email that seemed to be Amazon.  I do not have virus protection.  Am I in trouble?

    Help  I clicked a link in an email I thought was Amazon about an order cancellation.  I do not have virus protection.  Am I in trouble????

    Not likely. More likely is that this was a phishing attempt. If you did not type your name and password into a web page dialog requesting it then you do not need to concern yourself with anything. Merely clicking a link in an email may have loaded a page in Safari but if you simply closed that page you're OK - especially if that page said you were infected with something. You were not.
    If you did type your name and password then change it in every account that uses that password.
    Run Software Update to make sure you have all available updates. OS X already contains all the virus protection you need.
    At present there is no way for a virus attached to an email to affect your Mac.

  • Help about Dreamweaver to make a simple website.

    Hi all,
    I am trying Dreamweaver and honestly I know very little about it, for that reason, I would like to make a simple HTML website but I have some problems with it. I have some Photoshop  backgrounds files and I would like to put some text buttons on these photoshop backgrounds and then link them between each other, for it, Could anybody help me?
    Thanks for your time.
    Best Regards
    Alejandro Castan

    Alejandro:  At this point, the only person who can help you is you, yourself.  You need to have some understanding of HTML (and hopefully CSS) to really get started on this job.  Without that, you will find your experience with DW to be very frustrating, and your results to be well less than satisfactory.
    I have some Photoshop  backgrounds files and I would like to put some text buttons on these photoshop backgrounds and then link them between each other
    Approaching a web page like this is not productive.  There is ever so much more to it than  just making a background and placing buttons on it....
    You can find good tutorials about HTML here - http://www.w3schools.com

  • I was on Instagram and I clicked this link that lead me to safari but a box keeps popping up and it won't let me Delete the tab, can someone help me pleased??? I can't even use safari, is there a way to delete it or something???

    I Was on Instagram and I clicked a link that lead me to safari and when I got there a box kept coming up and saying a b c d e f g.... And so on. It won't let me delete the tab and I can't even use safari, can someone please help!!!!!??????

    Quit Safari completely, clear Safari and reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the Safari app icon. Tap the home button or anywhere above the task bar.
    Go to Settings>Safari>Clear History, Cookies and Data.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up

  • Ever since I updated to Firefox 4.0, I can no longer open links in a new tab by holding ctrl and clicking the link. Any help?

    Ever since I updated to Firefox 4.0, I can no longer open links in a new tab by holding ctrl and clicking the link. The only way I can open a link in a new tab is if I right click a link and select "open in a new tab" in the dropdown menu, but ctrl + click is so much easier and faster. Any clue how to fix this?

    Some other users have fingered the Ask toolbar as the cause of this problem. You can try disabling or removing it here:
    orange Firefox button ''or'' Tools menu > Add-ons > Extensions
    Does that help?

  • When clicking CTRL+Link my new tab opens in the background window, instead of the foreground window I'm using. Is there a way to make this work the way it used to, where the new tab always opens in whatever window I was currently using?

    I use a web based software for work. I go to a web page listing all employees as links (Window A). When I click an employee link a new window opens (Window B). Window B contains links, i.e. Add Client, Change Address, Change Phone Number, Change Name, Upload Photo, etc... When I hold CTRL and left click the links in Window B, the new tab opens in Window A. I don't understand why this has changed, as I've been using this method to open new tabs in my current window in both of the previous versions of Firefox.

    That didn't work, but thank you very much for the offer of help. I had already tried that option.
    To give you an example of what I'm speaking, I found this page that recreates the scenario.
    1. Goto [http://www.kirupa.com/developer/mx/centered_popup.htm http://www.kirupa.com/developer/mx/centered_popup.htm]
    2. Click the GO in the center of the box on their page (This creates a pop-up window with links to other programming pages)
    3. CTRL+left click any of those links. The page opens in the background/original window, not the pop up window where you are currently working. And, with your solution takes me back to that window and the new tab.

  • Firefox immediately switching to new tab even when that feature is disabled on right-click open in new tab or on ctrl+click a link. Please help.

    Firefox switches immediately to new tab or the immediate next tab if multiple tabs are open, even when the respective feature is disabled, whenever I open a link by -
    1. Right-click > open in new tab
    2. Ctrl + click a link
    Earlier it did not happen like this. It is really very annoying. Re-installation and clean installation of the latest version did not helped.
    And this is happening mainly when I am using Facebook. Earlier it never happened so with Facebook.

    I don't have the divX plug-in and I still have this problem. Why should plug-ins that are not even triggered by the affected pages alter Firefox's behavior. Feels like bad architecture.

  • How to make firefox to open new a tab when you click a link in pdf

    I have this pdf page that has a lot of links embedded opened on Firefox (24.7).
    When I click the link on the pdf page, it jumps to the page on the very same tab.
    Is there any way to open links on a pdf page in a new tab?
    What value in about:config should I modify to make it happen??

    Hi,
    You can't open link in new tab by middle click on PDF page...
    You must be talking about behavior on normal web page.
    Thanks for your response anyways.

  • Firefox open images in a new tab upon clicking the link,how to make firefox to save images in the folder upon clicking the link

    firefox open images in a new tab upon clicking the link,how to make firefox to save images in the folder upon clicking the link.

    You can right-click the image and use "Save Image As" to save that image.

Maybe you are looking for