Adding a hyperlink to a button

I am rather new to Flash and working on a project where I
would like to have internet window popup after someone clicks on a
name. I have tried scripting the button so it says on release get
url....., but I wasn't able to get that to work. I think I might
not be writing the script correctly. Could anyone show me the
correct way to add a hyperlink to a button so that it will pop up a
window after someone clicks on it?
Thanks!!!!

-

Similar Messages

  • Help with adding a hyperlink to a button?

    We have a simple little site we built in Catalyst and everything works great. The only problem is that we cannot figure out how to add a hyperlink to one of the buttons in the animation. We simply want to be able to click on the button and go to another site (the client's Facebook page specifically). Can anyone provide some insight? Thanks!

    The message you sent requires that you verify that you
    are a real live human being and not a spam source.
    To complete this verification, simply reply to this message and leave
    the subject line intact.
    The headers of the message sent from your address are shown below:
    From [email protected] Tue Nov 03 19:08:07 2009
    Received: from mail.sgaur.hosted.jivesoftware.com (209.46.39.252:45105)
    by host.pdgcreative.com with esmtp (Exim 4.69)
    (envelope-from <[email protected]>)
    id 1N5TPy-0001Sp-J1
    for [email protected]; Tue, 03 Nov 2009 19:08:07 -0500
    Received: from sgaurwa43p (unknown 10.137.24.44)
         by mail.sgaur.hosted.jivesoftware.com (Postfix) with ESMTP id 946C5E3018D
         for <[email protected]>; Tue,  3 Nov 2009 17:08:03 -0700 (MST)
    Date: Tue, 03 Nov 2009 17:07:49 -0700
    From: Tvoliter <[email protected]>
    Reply-To: [email protected]
    To: Matthew Pendergraff <[email protected]>
    Message-ID: <299830586.358941257293283616.JavaMail.jive@sgaurwa43p>
    Subject: Help with adding a hyperlink to a button?
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="----=_Part_36702_1132901390.1257293269030"
    Content-Disposition: inline
    X-Spam-Status: No, score=-3.4
    X-Spam-Score: -33
    X-Spam-Bar: ---
    X-Spam-Flag: NO

  • Putting Hyperlinks into Flash Button Symbols

    Hi there,
    I just wanted to know how to put Hyperlinks into Flash Button
    symbols
    For example;
    I have a button which is named Home, and i have the UP, OVER,
    DOWN and HIT stages and wanted to put a
    Hyperlink to lets say Google so www.google.com.au and wanted
    it to open in the same page not a new tab.
    And if possible would like to know how to put multiple
    Buttons as one Flash File and have them all Hyperlinked to
    DIFFERENT Pages.
    I know very little Actionscript, but know what it is and
    other basics on it.
    I am using Adobe CS3 Flash 9 and would prefer a simple
    answer, Thank You

    Hi,
    There is a video tutorial for this on my website below.
    Hope this helps.
    Thanks
    Alan

  • Adding a actionlistner to the button

    Is there a way of adding a actionlistner to the button with out getting a error like this one.
    non-static variable this cannot be referenced from a static context
    import javax.swing.*;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.awt.event.*;
    import com.l2fprod.gui.plaf.skin.*;
    import javax.swing.JButton;
    public class Simon5 extends JFrame
        private boolean  toggle;
        public static void main(String[] args)
            try
                Skin theSkinToUse = SkinLookAndFeel.loadThemePack("chaNinja-Bluethemepack.zip");
                SkinLookAndFeel.setSkin(theSkinToUse);
                UIManager.setLookAndFeel(new SkinLookAndFeel());
            catch (Exception e){ }
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame fr = new JFrame("Simon3");
            JPanel jb = new JPanel();
            Simon5 sex = new Simon5();
            Component contents = sex.createComponents();
            fr.getContentPane().add(contents, BorderLayout.EAST);
            fr.getContentPane().add (jb, BorderLayout.NORTH);
            fr.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent evt)
                    System.exit(0);
            jb.addActionListener(new LookAndFeelL(fr));
            JButton bob = new JButton("Holy Shit!");
            jb.add(bob);
            jb.setBackground(Color.blue);
        fr.setLocationRelativeTo(null);
        fr.setMinimumSize(new Dimension(470, 320));
        fr.setBounds(new Rectangle(160, 125, 470, 320));
        fr.setVisible(true);
        }

    Is there a way of adding a actionlistner to the
    button with out getting a error like this one.
    non-static variable this cannot be referenced from a
    static contextIt has nothing to do with ActionListeners. Somewhere you're trying to access an object variable without a reference to any object, from the static context.
    You know, being able to search for information is actually a good skill for programmers to have. You might want to acquire it, too.

  • Latest update of Firefox is REALLLLLY slow. Is it just all the extra functionality that has been added or is there a button I need to press to make it the same speed as it use to be. Can I downgrade to last version?

    Latest update of Firefox is REALLY slow. Is it just all the extra functionality that has been added or is there a button I need to press to make it the same speed as it use to be? I'll have to start usin safari again as this isn't funny anymore
    Can i retro grade back to the last version?

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • Add a hyperlink to animated button created in Edge.

    Hello,
    Is there any way to insert an animated button I created in Edge into Muse and add a hyperlink to it. The roll over and roll out work perfectly when inserted into my web page, I just can't attach any actions to it. Thanks.

    I'm attempting to do exactly this, and when I preview the Muse site in the browser, I get a page not found reply.
    As a test I've rigged up buttons in Muse that go to the exact same page, and they work perfectly.
    When I click the link, this is added to the end of the url.
    assets/design-page-animated-menu/logo-design.html, when the folders for assets, and design-page-animated-menu don't exist.
    This url seems to be generated somewhere in the export/preview process, but is not the url I directed the Edge Animate link to. It is simply directed to logo-design.html which as far as I can tell should work, as both pages are in the same folder—when exported—with no subfolders involved.
    Where is this longer url being generated, and is there anyway around it?
    Edit.
    Upon researching this further, I see that even though the muse pages are all in the same folder, the page that Edge is creating—that is being displayed on the Muse page via an iframe—is in it's own folder, and is therefore unable to see the pages I was linking to.
    I see that as mentioned above, it's just better to use absolute urls, and that they just won't work in testing.

  • Ui:hyperlink and ui:button "action" methods stopped working in IE

    Hi
    I'm developing my application for few months, but few days ago all ui:hyperlink and button action methods stopped working in IE. They are not invoked at all... No javascript errors, everything works fine in Firefox. Can anybody tell me where to look as I'm sitting 6h in front of screen and cannot find anything wrong...
    The only thing I have changed was adding a filter which changes encoding to UTF-8. Class below:
    * CharsetFilter.java
    * Created on 17 maj 2007, 11:18
    package tools.filter;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    * @author  Michal
    * @version
    public class CharsetFilter implements Filter {
        public CharsetFilter() {
        private String encoding;
        public void init(FilterConfig config) throws ServletException {
            encoding = config.getInitParameter("requestEncoding");
            if( encoding==null )
              encoding="UTF-8";
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain next)
             throws IOException, ServletException
    //          request.setCharacterEncoding(encoding);
              next.doFilter(request, response);
         * Destroy method for this filter
        public void destroy() {
    }

    anyways, it can't be a problem becasue new application is facing the same problem and there's no filter. I'm using tomcat 5.5.18 on jboss 4.0.5.

  • Adding a url to flash buttons in Dreamweaver

    I have a web site built and I have recently added Flash buttons and I need to add my web pages to the buttons. How would I go about doing this?

    Let's say you create a button symbol.  Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage.  The first thing you need to do to make it useful code-wise is to assign it a unique instance name.  So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
    In AS3, to make a button work with code, you need to add an event listener and event handler function for it.  You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open.  In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
    btn1.addEventListener(MouseEvent.CLICK, btn1Click);
    The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
    function btn1Click(evt:MouseEvent):void {
       var url:String = "http://www.awebsite.com/awebpage.html";
       var req:URLRequest = new URLRequest(url);
       navigateToURL(req);

  • Ideas for Adding a "One Click" Print Button to VA01 Overview Screen

    I am not an ABAP developer and am doing some preliminary functional investigation to determine the best way to add a simple "one-click" button that allows a Sales Order Confirmation output to be sent to the printer.
    Can someone that really knows, tell me whether or not a custom menu item can be added to VA01 and VA02?
    I have seen lots of threads telling folks how to find user exits and menu exits for a program so I don't need that advice.  Rather, looking for someone who has already investigated this for VA01 and VA02 and knows the answer.
    Problem Statement:
    Our users would like a "quick print" button on the VA01/VA02 application toolbar that immediately spools the Order Confirmation output to the printer. Our users want to print the output on demand, i.e., they do not want the output to automatically be printed when the order is created because a printout is not always needed. We already have condition records created with Dispatch Time set to 3 - Send with application own transaction. However, it takes 7 or more clicks to print the output on demand by navigating the menu (Extras > Output > Edit...Further Data...etc.) and changing the Dispatch Time to 4 - Send immediately when saving. This is a big ergonomic issue and a time killer.
    Although the number of clicks to print are less when printing the output from the VA02 initial screen (via menu Sales document > Issue Output To), this is not acceptable when creating new orders. Really need an on-demand, "one click" quick print button on the VA01 screen. As an aside, we have a totally custom transaction for preparing sales order data (shopping cart-like way of finding materials and entering required data) that then calls VA01 and fills in all of the information. When saving in VA01, the user is returned to our Z-transaction so asking the user to subsequently run VA02 to print is not practical.
    Current Output Determination:
    We have custom output type ZBS0 (copy of BS0). Condition records for print medium are set to Dispatch Time = 3.
    Ideal Solution:
    Add a Print Icon to the application toolbar as described above.  From the button, write custom code that calls RSNAST00 (or is there a better way?) to send the output to the printer.
    Any feedback on how others have solved this problem would be greatly appreciated.
    Rob

    Still looking for input from anyone that has had experience trying to add a menu item or toolbar button to VA01.  In our case, for sending output.
    Madhu,
    Please again read my Problem Statement in my original posting for the business requirement.  We are using ECC 6.0.  Yes, I know that transaction VA02 has Sales Document > "Issue Output To" that allows you to print.  However, we want to be able to print from the VA01 Overview screen after all of the sales order information has been entered.  We would like to be able to click a print button which would save the new sales order and immediately issue the output.  Again, we do not want the output to automatically print for every new sales order - we want to be able to print only when needed.  The conditions that a sales person would use to decide to print a copy are too numerous or varied so they cannot be automated in a condition record.  Of course we do use condition records for creating the output but we do not send immediately on save.
    When creating a sales order, the sales person does not want to do the extra clicks and key strokes to then navigate or open a new VA02 session to print from the VA02 initial screen.  And as described in my original posting, it is a lot of clicks navigate the VA01 Extras > Output menu to change the output to print on save.
    If you observe the "day in the life" of a sales person and see all of the key strokes and clicking required to create an ECC 6.0 sales order, you understand why the extra 7 to 11 clicks to just print an output is very annoying.  We have created a totally custom Z-transaction that allows our sales folks to capture everything need for a new sales order all on one screen with no tab views.  We then launch VA01 to fill in all of the data entered in our custom transaction.  This all works very well and is a huge time saver for our sales staff.  Now we are looking to save a few more clicks by simplifying the printing.

  • Adding a javascript or HTML button to a custom List page

    Hi everyone,
    I am using SharePoint 2013 (Office 365 hosted) and have come across a feature I want to implement, but have no idea how.
    I want to add a button, that when click, would take the user to a certain URL. I want to add the button to the bottom of my List page, after the last record. Attached is a picture for example:
    As shown, I want to add a button where it says "insert button here". Now I have messed a little with SharePoint Designer 2013 and when I go to "List and Libraries", I click on my particular List. It then opens the following page, where
    I can open a particular .aspx file, which in turn I can edit. I assume I want to open up Allitems.aspx
    The code for the AllItems.aspx is below. I assume I have to add the button somewhere. Please help!
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> -
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=35" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="True" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" NoDefaultStyle="" ViewGuid="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" EnableOriginalValue="False" DisplayName="All Items" ViewContentTypeId="" Default="TRUE" ListUrl="" ListDisplayName="" ListName="{C9D8E425-1521-4EFE-8A59-4EE9FE481482}" ListId="c9d8e425-1521-4efe-8a59-4ee9fe481482" PageType="PAGE_DEFAULTVIEW" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="TestTestListB" FrameType="Default" SuppressWebPartChrome="False" Description="" IsIncluded="True" ZoneID="Main" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" TitleUrl="/Lists/TestTestListB" DetailLink="/Lists/TestTestListB" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_54e1fa61_ff1f_4dfb_ac73_19bb62886f54" ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" /><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /></ParameterBindings>
    <DataFields>
    </DataFields>
    <XmlDefinition>
    <View Name="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/Lists/TestTestListB/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=35" ><Query><OrderBy><FieldRef Name="ID"/></OrderBy></Query><ViewFields><FieldRef Name="LinkTitle"/><FieldRef Name="CheckFlag"/><FieldRef Name="vamd"/><FieldRef Name="ID"/><FieldRef Name="lnhz"/><FieldRef Name="_x0032_222"/><FieldRef Name="Hyperlink"/><FieldRef Name="Hyperlink2"/><FieldRef Name="CreateWorkflowHyperlink"/><FieldRef Name="reusable"/><FieldRef Name="reusable2"/><FieldRef Name="_x0072_u4"/><FieldRef Name="_x0072_u5"/><FieldRef Name="_x0072_u6"/></ViewFields><RowLimit Paged="TRUE">30</RowLimit><Aggregations Value="Off"/><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
    <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    Hi,
    Beside the modification of list view, I would like to recommend to add a Content Editor Web Part (CEWP) at the bottom of the page. To do that:
    1. Add Content Editor Web Part (CEWP) and change the zone index to 2.
    2. Insert Embed Code to Content Editor Web Part (CEWP). A hyper-link <a> element would look like:
    <a href="http://www.microsoft.com/">Insert hyper-link here</a>
    Miles LI TechNet Community Support

  • Adding print slide or window button

    I am trying to print the quiz results page and the only thing I can find is to add a smart shape button and change the action to "execute_JavaScript".  In the script_window i'm simply adding one line of code "window.print()".  The problem I'm running into is when I publish my project the slide containing the print button shows up completely blank.  Any idea whay I am doing wrong here?  I tried adding a widget as well, but my system does not have a print widget available. 

    Where do you see the target='_top"? I went looking for the original button from my original post which was in the http://web.me.com/toad.hall/HelperSite//Page1_files/widget3markup.html page via the Activity window and view source and this is what the code of that widget page is:
    <xmp>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title></title></head><body><form>
    <input type=button value="Close Window" onClick="javascript:window.close();">
    </form> </body></html>
    </xmp> (Ignore the <xmp></xmp> tags when using)
    I don't see the target='_top" in there. What am I missing? This was my first post: http://discussions.apple.com/message.jspa?messageID=9134142#9134142.
    Thanks for the help.

  • Adding a table with a button, how to specify location?

    I have a form were a table is duplicated using a button and the add instance script.  Is there a were to specify which direction or location the table is added.  I guess by default it is created below the original table.  I would like to have it created to the right of the original table.  Can this option be changed or scripted in somehow?  Thanks

    Hi,
    If you are repeating the whole table, then it is inside of a flowed subform. The default is flowed from top to bottom. If you change this to western style, objects will flow from left to right.
    However this is on the basis that there is space to the right of the form to receive the new instance.
    Here are some examples:
    https://acrobat.com/#d=aFfqJJrwjDbVOuT96bD8Ug
    https://acrobat.com/#d=4QBgZy0pBIV9IoMlKP0lRg
    Good luck,
    Niall

  • Hyperlink from a button.

    I want to have a hyperlink but from a normal button, can I do this?

    I was not copying/pasting, I was typing code from one computer to another - I have it formatted correctly from the perspective of capitalization.
    Do I need to call those functions in some way?  If so, how do I write that?  I read somewhere that I needed to "import" the navigateToURL function.  How do I properly put those on the page?

  • Speed up adding URL hyperlinks to bullets/selected text

    Hi, I'm doing a presentation that requires linking a huge amount of the bullet text to different sites. I was hoping to create some sort of macro that told Keynote to add the URL of the current active window in Safari to the selected text, but Automator can't do it and I don't know of any other way to create a macro (I'm new to the Mac world).
    At the moment, after go to the site I want to link to, switch to Keynote, highlight the desired text and open the Hyperlink inspector window:
    1) Hyperlink inspector window defaults to Slide (vs. Webpage)
    2) After I click Enable Hyperlink and choose Webpage from the pulldown menu, the URL defaults to my home page URL.
    This means I have to go to Safari, highlight and copy the URL, switch back to Keynote, highlight the homepage URL, paste the correct URL (from the active Safari window), click Apple-end to get to the end of the URL and hit Enter in order to hyperlink the selected text.
    I know there has to be an easier way.
    At one point, I accidentally did something that dynamically changed the URL in Hyperlink inspector to the active URL on Safari, but I can't re-create it. That, at least, would be some help.
    Any suggestions for how to simplify/speed up/automate this cumbersome process would be GREATLY APPRECIATED, as I am slogging along using this inefficient approach while trying to meet a looming deadline.
    Thanks in advance!
    Maggie
    iBook G4   Mac OS X (10.4.6)  

    Maggie, how desperate are you for a quick solution? One approach might be to edit the Keynote XML text file directly, adding the bullets and hyperlinks as elements in that file rather than through Keynote proper. This approach is relatively straightforward, and it is very fast, but it does involve getting down-and-dirty with the XML, which might not be everyone's cup of tea. It's honestly not that daunting, though, and just involved doing very minor editing to a text file within TextEdit. I don't know if it would work well for your specific needs, and it involves a completely different workflow than working in Keynote directly, but it might be worth a shot. Here's how you would add a list of hyperlinked bullets to a single slide:
    - First, create a single slide with a bulleted list with a single item that has a hyperlink to a website. This will allow you to see what the XML looks like when we open the XML file. Use an unusual word or string of letters for the bullet item to make it easier to find in the XML code. Save this one slide presentation, and close it.
    - In the Finder, hold down the Control key while clicking once on the presentation file. This will bring up the contextual menu. Choose "Show Package Contents". This will open a new Finder window that shows you the "guts" of the Keynote presentation, which is actually a collection of files.
    - Double click on the "index.apxl.gz" file. This is the file that holds the XML markup for the presentation. It is stored in compressed form, but when you double-click it, a new file, "index.apxl", will be created. This is a plain text file, editable with TextEdit, and it is the file you will modify. Delete the "index.apxl.gz" file, as it isn't needed now, and Keynote will automagically re-compress the "index.apxl" file when we open the presentation.
    - Open the "index.apxl" file in TextEdit (or whatever other text editor you like). You will see a mess of XML, without any real formatting. That's OK though, because you only need to edit a small bit of this file, and you will use the unusual word in the bullets you created as a search guide.
    - Find the unusual word in the text. This word is embedded in the XML code that specifies the bullet on the slide. This is the code that you will need to edit.
    The code that specifies a hyperlinked bullet will look something like this:
    <sf:p sf:style="SFWPParagraphStyle-263" sf:list-level="1"><sf:link href="http://www.apple.com/"><sf:span sf:style="SFWPCharacterStyle-38">Test1</sf:span></sf:link><sf:br/></sf:p>
    (The numbers of the "ParagraphStyle" and "CharacterStyle" may be different depending on the theme you used.)
    If you look at this snippet, you can see that there is a URL in the <sf:link> tag -- that's the hyperlink for the bullet text. You can also see that there is some text (in this case, "Test1") wedged between the <sf:span> and </sf:span> tags -- that's the text that appears on the slide, and in your file it will be the unusual text that you searched for in the file.
    Now, the cool thing is that, if you change this URL and this bullet text in the XML file and save it (having previously deleted the "index.apxl.gz" file), you will have changed the bullet text and hyperlink in the actual presentation. The much cooler thing is that you can add bullets to a slide by simply pasting multiple copies of the above code template into the XML file -- just make sure that you copy the entire bullet template (from <sf:p to </sf:p>), and that you paste it directly after another </sf:p> tag. (Be sure to use the template from your XML file, since the ParagraphStyle and CharacterStyle numbers will be different.)
    What this means is that the task that formerly involved going back and forth in the Keynote interface now just involves editing a text file. In the case of your task, for example, what you could do is create a second TextEdit window, paste the bullet code template into it several times, and then just drag and drop the URLs you want into the various address spots of the templates. You can also edit the bullet text directly in the templates. Once you're done, you can simply copy the whole batch of text and paste it into the appropriate spot in the "index.apxl" XML file, and you're done.
    Also, because this is now a text editing task rather than a Keynote task, you can potentially take advantage of applications that automate text editing to generate the bullet XML for you. For example, you could just create a list of the URLs, and then use the macro capabilities of Word, or (my favourite) NisusWriter, to go through the list and populate the addresses in the bullet templates. The possibilities are quite wide open with this approach.
    This is just how to do one slide, but multiple slides are just as straightforward -- simply start by creating a presention where each slide has one bullet point, with unique text in each bullet. Then you can easily find the section of XML code for the bullet of each slide, and edit accordingly.
    This may seem like a hugely involved and roundabout way of doing this task, but it works, and by making it a text editing task, it can make it far easier.
    PowerMac G5   Mac OS X (10.4.4)  

  • Adding panel to scrollpane on button click

    Please run the below code with
    javac MyTestingNew.java and
    java MyTestingNew
    I am having a button(ADD ME) on click of that I want to add panel containg textfield
    which will append to already exist textfields which are diasplyed in jscrollpane
    How I can proceed??
    import javax.swing.*;
    import java.awt.Dimension;
    import java.awt.event.*;
    class MyTestingNew extends JFrame{
         static Sale2 sale2;
         static int coordinate = 0;
         final int SIZE = 5;
           JPanel[] jp = new JPanel[20];
       //     ButtonGroup[] group = new ButtonGroup[SIZE]; 
       //     JRadioButton[] rb = new JRadioButton[SIZE * SIZE];
         JTextField[] jtf = new JTextField[SIZE * 1000];
         JButton jb = new JButton();
            public MyTestingNew(){
                 buildGUI(); 
        public void buildGUI(){   
             setSize(1200,800);   
             //setLocation(400,300);  
              setDefaultCloseOperation(EXIT_ON_CLOSE);  
              JPanel main = new JPanel();
             //JPanel main = new JPanel(new GridLayout(20,1));
             main.setLayout(null);
             jb.setText("ADD ME");
             jb.setBounds(0,0,100,30);
             sale2=new Sale2(this);
             jb.addActionListener(sale2);
             main.setPreferredSize(new Dimension(353,800));
             //main.setBounds(420,335,353,381);
             //main.setBounds(0,0,353,381);
             for(int x = 0; x <20; x++){
                   //group[x] = new ButtonGroup();    
                jp[x] = new JPanel();
                    //jp[x] = new JPanel(new GridLayout(1,SIZE));
                  jp[x].setLayout(null);
                  jp[x].setBounds(0,coordinate,353,32);
                  //jp[x].setBounds(0,coordinate,353,32);
                    System.out.println("SIZE  :"+ SIZE);
                jp[x].setBorder(BorderFactory.createEtchedBorder());   
                for(int y = 1; y < SIZE+1; y++){
                     int rbNum = x*SIZE + y;
                     System.out.println("X : "+x+ "Y : "+y+" rbNum : "+rbNum);
                     if(y==1) {jtf[rbNum] = new JTextField(""+rbNum);jtf[rbNum].setBounds(0,0,30,32);}
                     if(y==2) {jtf[rbNum] = new JTextField(""+rbNum);jtf[rbNum].setBounds(32,0,180,32);}
                     if(y==3) {jtf[rbNum] = new JTextField(""+rbNum);jtf[rbNum].setBounds(214,0,35,32);}
                     if(y==4) {jtf[rbNum] = new JTextField(""+rbNum);jtf[rbNum].setBounds(251,0,35,32);}
                     if(y==5) {jtf[rbNum] = new JTextField(""+rbNum);jtf[rbNum].setBounds(288,0,65,32);}
                    jp[x].add(jtf[rbNum]);  
                     coordinate = coordinate + 7;
                main.add(jp[x]);   
            JScrollPane sp = new JScrollPane(main);
             //sp.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
             sp.setBounds(420,335,353,350);
             JPanel main2 = new JPanel();
             main2.setLayout(null);
             //main2.setPreferredSize(new Dimension(400,400));
             main2.add(sp);
             main2.add(jb);
             getContentPane().add(main2);
           public static void main(String[] args){
                   new MyTestingNew().setVisible(true);
    class Sale2 implements ActionListener
    MyTestingNew parent;
    Sale2(MyTestingNew parent)
    this.parent=parent;
    public void actionPerformed(ActionEvent e)
         //My code will come here
         System.out.println("get from button");
    }

    You really should start learning how to use LayoutManagers.. they make life a lot easier
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class MyTestingNew extends JFrame {
        final int SIZE = 5;
        JPanel[] jp = new JPanel[20];
        JTextField[] jtf = new JTextField[SIZE * 1000];
        JButton jb = new JButton();
        private int nrOfRows = 20;//starting nr of rows
        public MyTestingNew() {
            buildGUI();
        public void buildGUI() {
            setTitle("My Test");
            setSize(1200, 800);
            //setLocation(400,300);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            final JPanel main = new JPanel();
            //JPanel main = new JPanel(new GridLayout(20,1));
            main.setLayout(new BoxLayout(main,BoxLayout.Y_AXIS));
            jb.setText("ADD ME");
            jb.setBounds(0, 0, 100, 30);
            jb.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt){
                    JPanel newPanel = new JPanel();
                    newPanel.setLayout(new GridLayout(1,SIZE));
                    for (int y = 1; y < SIZE + 1; y++) {
                        int rbNum = nrOfRows * SIZE + y;
                        System.out.println("X : " + nrOfRows + " Y : " + y + " rbNum : " + rbNum);
                        newPanel.add(new JTextField("" + rbNum));
                    main.add(newPanel);
                    main.revalidate();
                    nrOfRows++;//added a new row
            for (int x = 0; x < nrOfRows; x++) {
                jp[x] = new JPanel();
                jp[x].setLayout(new GridLayout(1,SIZE));
                System.out.println("SIZE  :" + SIZE);
                for (int y = 1; y < SIZE + 1; y++) {
                    int rbNum = x * SIZE + y;
                    System.out.println("X : " + x + " Y : " + y + " rbNum : " + rbNum);
                    jtf[rbNum] = new JTextField("" + rbNum);
                    jp[x].add(jtf[rbNum]);
                main.add(jp[x]);
            JScrollPane sp = new JScrollPane(main);
            //sp.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            sp.setBounds(420, 335, 353, 350);
            JPanel main2 = new JPanel();
            main2.setLayout(null);
            //main2.setPreferredSize(new Dimension(400,400));
            main2.add(sp);
            main2.add(jb);
            getContentPane().add(main2);
        public static void main(String[] args) {
            new MyTestingNew().setVisible(true);
    }

Maybe you are looking for

  • IMac G4 OS 10.5.8 booting issues, blue screen

    I'm trying to remotely help my mom to solve a big problem with her iMac G4 (2007 vintage.) It's running Mac OS 10.5.8. Everything was fine until a couple of weeks ago when it started refusing to boot. It starts to boot, you get the Apple and then it

  • Setting ACR as default

    How can I change my CS default to open in ACR instead of photo gallery which it says is not updated?

  • The preinstalled ringtones doesn't play instead of custom ones

    Subject: Why I can't hear the already installed ringtones?

  • Removing system preferences in Network

    I have configured a multitude of network settings in System Preferences. To keep things tidy I would like to remove some of them. How do I go about doing this? 15" PowerBook G4   Mac OS X (10.4.4)   1,25GHz 512 MB RAM

  • Drill down with Parent at the bottom

    Does anyone know how to set the drill function so that the new rows are inserted above the parent?  The default setting for inserting new rows always insert new rows below the parent.   By the way, I am using BPC 5.1.