Help with Re-Linking Navigation Buttons

I have Adobe Flash CS3 Pro.
I have a navigation header flash file that came with my website template and I am having difficulty making sense of the actionscript. It has a logo section with effects, 5 main nav buttons that move, and two extra link buttons above the navigation bar. Let’s focus on just the Navigation buttons for now. Here is what I have gathered. I have multiple text buttons on one movieclip, and I have successfully edited the text for each button. If I look at the actionscript in the top layer of this movieclip I see:
“gotoAndStop(parent._parent.num);”
I also have a separate movieclip symbol (with effects) with 5 buttons layers listed in the actionscript with the following actionscript tied to each button from numbers 1 through 5:
onClipEvent (load) {
            num=1;
onClipEvent (load) {
            num=2;
onClipEvent (load) {
            num=3;
onClipEvent (load) {
            num=4;
onClipEvent (load) {
            num=5;
On the top layer of these 5 buttons I have the following actionscript:
stop();
this["item"+_root.button].gotoAndPlay("s1");
_root.link = _root.button;
I also have a separate button symbol with the following actionscript:
on (rollOver) {
            if (_root.link<>1) {
                        menu.item1.gotoAndPlay("s1");
on (releaseOutside, rollOut) {
            if (_root.link<>1) {
                        menu.item1.gotoAndPlay("s2");
on (release) {
            if (_root.link<>1) {
                        _root.menu["item"+_root.link].gotoAndPlay("s2");
                        _root.link = 1;
                        getURL("index.html");
Now my website template came with 5 html pages that my flash navigation buttons correspond to: (index.html, index-1.html, index-2.html, index-3.html, index-4.html, index-5.html). My problem is that I have created new pages (index.html, about.html, featured.html, projects.html, contact.html). I would like each of the 5 buttons to correspond to these pages, not the existing standard “index-n.html” pages. 
Also, this is probably not relevant, but each html page has something to this affect so I can see how they correspond to each button.
<script type="text/javascript">
          var fo = new FlashObject("flash/menu_vf8.swf?button=2", "head", "100%", "144", "7", "");
          fo.addParam("quality", "high");
                    fo.addParam("wmode", "transparent");
                        fo.addParam("scale", "noscale");
          fo.write("head");
        </script>
I guess my real question is: What actionscript do I need to update or remove for the nav button LINKS to work with my new html pages rather than the standard 5 index-n.html pages that it automatically wants to link to?
When I try and add a “getURL” command to each of the 5 buttons and test preview the movie, the links work, but it messes up the effects of the movieclip. In other words, the buttons don’t move, they are motionless, however the links work. If I added this command to each button in some way, what actionscript would I need to remove so there weren’t any complications? I need some expert help here for it would be much appreciated. I am a novice with Flash script and its killing me that I can’t figure it out. I asked for help from the template support and all they came back with was the following message and it wasn’t helpful:
You need to duplicate each button you are editing - it is very important.
2) Update the scripting to look similar way:
on (release) {
if (_root.link<>num) {
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = num;
if (num == 1) {
getURL("index.html");
} else {
getURL("index-"+Number(num-1)+".html");
Update it to:
on (release) {
getURL("http://www.google.com");
Also, I read through the following discussion, which was helpful to a degree, but it still didn’t answer my questions about getting the links to work.
http://forums.adobe.com/message/3614092#3614092

First of all, thank you for showing interest and helping out in my dilemma here. I wish I understood your meaning behind “on” because with my luck there is probably some hidden way of placing script on an object that I don’t understand or haven’t discovered yet.
This is what I know:
I have multiple text buttons on one movieclip entitled “textbutton1” (see previous picture), and I have successfully edited the text for each button and created two extra frames/buttons to make 7 total. If I look at the actionscript in the top layer of this movieclip I see:
“gotoAndStop(parent._parent.num);”
But there is no action on each individual frame (all 7 of them) on that layer.
Like I mentioned before I have a separate movieclip symbol (entitled “menu effect”) with 7 button movieclip layers listed in the actionscript with the following actionscript on each layer.
onClipEvent (load) {
            num=1;
onClipEvent (load) {
            num=2;
onClipEvent (load) {
            num=3;
onClipEvent (load) {
            num=4;
onClipEvent (load) {
            num=5;
onClipEvent (load) {
            num=6;
onClipEvent (load) {
            num=7;
On the top layer (layer 4 frame 25) of these 5 buttons I have the following actionscript:
stop();
this["item"+_root.button].gotoAndPlay("s1");
_root.link = _root.button;
I can upload another particular image of the movieclip/actionscript if it would be helpful. Let me know.

Similar Messages

  • Trouble with Lumia 900 navigation button not worki...

    Hei guys,
    This afternoon, all of a sudden, without nothing happened, my 3 navigation buttons (back, start and search) on my nokia lumia 900 stopped working. I really can't understand what happened since 2 minutes before the buttons were working perfectly and then the sensibility of the button is completely zero.
    Tried to turn off the phone several times, but it didn't worked at all. Searched around the web but noone seems having the same problem. I found only one guy that posted a similar problem like mine but recieved only an answer that didn't look really helpful (turn off the phone for 3 days and see later).
    All the rest of the touch screen still works perfectly,  it's just the three navigation button that don't work, even tapping all the time. there's no sign of response from the phone.
    I really have no idea what's happened. Did someone had a similar, if not the same problem? any suggestion how to fix it?
    please help guys
    Thanks.

    I know this is a month old but all of  a sudden this morning I begane having the exact same problem.  
    My troubleshooting tasks so far have been to reboot the phone about 3 times.  
    I have hard reset my phone with just holding the power button down (not sliding the screen when asked to). Connected it to my computer to make sure it was updated.
    Deleted all new text messages (there was a bug a while back that can cause Windows 7 to lock up on certain formatted text messages. Then rebooted the phone again
    Deleted all new email messages from my google account on the phone. Rebooted the phone.
    And still I do not have any of my bottom buttons usable.  Has anyone figurec this out yet?  Every time I do something I have reboot the phone since I cannot back up or get to the home screen.

  • Can you help with D-link and two airport express stations

    I currently run a Dlink 604 wireless and 1 Airport express for iTunes in my front room.
    A Express is also linked to the Dlink via a cable.
    All works fine - G4 dual running OS x 10.3.9
    I would like help with a couple of things please:-
    1. I have no current security on my Express, so anybody can use the net connection through it. How do I change this and still be able to use my tower and laptop?
    2. I have a second Express from work that I would like to use upstairs. It does work but requires me to swap the network to use it for iTunes and then I have no internet.
    It was formatted at work so has different ip numbers etc.
    Can I make this station join my exisitng network?
    As my lap top is wireless will I be able to surf through it upstairs?
    Thanks
    JohnO

    1. You need to open the Express's configuration in Airport Admin Utility and change the Wireless Security settings to WEP or, preferably, WPA or WPA2. When you attempt to connect to the network from your computers, you will be prompted for the password.
    2. The easiest thing to do is to hard reset the second Express and then use the Airport Setup Assistant to configure the second Express to join and extend the first Express's network. To do a hard reset, hold down the reset button until the LED starts flashing rapidly.
    BTW, I know it can work because I have the exact same setup (D-Link DI-604 and two Expresses in an extended wireless network).

  • Please help with a link!!

    Hi All,
    I am having a problem with a link on this site that I am working on. http://msp005revised.businesscatalyst.com/index.html   I would like to have  "Learn more about Mary" as a link which scrolls horizontally to the "About Mary"   page. All the pages are part of a tooltip composition widget. I tried using anchors unsuccesfully. I would be ever so grateful for any help.
    Rita

    Hi Rita
    With Anchors what happens if you apply that ? It should work as the page should scroll up to menu options that you have placed on main page.
    But it seems you are using full screen slideshow and wants to link the text with the slideshow on Mary using the triggers.
    My suggestion would be to create a page or image/document about marry and then hyperlink the text with that page, this way users will be directed to About Mary page not the actual slideshow but the contents can be made same or insert the same slideshow on About Mary page, the effect would be same.
    Thanks,
    Sanjit

  • No Qualified People Here?   Need Help with Contact - Linking Email

    I have two pages - XML, I'll post photos . Just need to link it to my email and also I page to link social buttons.

    It is getting late here, nearly 3:00 am.
    I'll get back to you later on. But I am still in a quandary regarding the question. What I have now is
    you post photos, presumably to the website
    you send an email to yourself with a link to the image
    somewhere (please state where) you want social media images with their relative links
    I just want to link it to my own email - probably refers to point 2 above
    so when someone sends it to me - someone sends what to you. Do you post the iphoto or does it get uploaded by someone else.
    we need to disregard the XML-file

  • Help with making a back button

    hi
    in a game im making i have a start menu that then when you click play goes to the game after playing the game, when you die a game over screen appears with a play again button in it i want to put a back button to go to the first frame.
    the way this is set up is that the game over menue is a movie clip with the play again button in it i want to have a back movie clip to make it go to the first frame
    gotoAndStop(1) dosent seem to work or mabye i am doing it wrong
    this my game class file as the game over menu does not have a class file:
    package com.alienattack{
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.utils.Timer;
              import flash.text.TextField;
              import flash.text.TextFormat;
              import flash.display.Stage;
              public class Game extends MovieClip          {
                        static var ship:MovieClip;
                        static var enemyShipTimer:Timer;
                        static var scoreText:TextField;
                        static var score:Number;
                        static var healthMeter:HealthMeter;
                        static var enemyHealthMeter:EnemyHealthMeter;
                        static var gameOverMenu:GameOverMenu;
                        static var powerUpTimer:Timer;
                        static var miniBossTimer:Timer;
                        static var RocketShipTimer:Timer;
                        var bossCountdown:Number;
                        static var Bombtimer:Timer;
                        private var _stage:Stage;
                        static var backgroundMusic = new BackgroundMusic();
                        var Bullet;
                        public function Game(){
                                     this.addEventListener(Event.ADDED_TO_STAGE,init);
                        function init(e:Event):void{
                                  _stage=stage;
                                  KeyClass.initialize(stage);
                                  stage.focus = this;
                                  ship = new Ship();
                                  ship.x = 300;
                                  ship.y = 150;
                                  _stage.addChild(ship);
                                  enemyShipTimer = new Timer(2000);
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  enemyShipTimer.start();
                                  RocketShipTimer = new Timer(3500);
                                  RocketShipTimer.addEventListener("timer", sendEnemyRocket);
                                  RocketShipTimer.start();
                                  resetScore();
                                  gameOverMenu = new GameOverMenu();
                                  gameOverMenu.x = 0;
                                  gameOverMenu.y = 0;
                                  addChild(gameOverMenu);
                                  gameOverMenu.visible = false;
    gameOverMenu.playAgainButton.addEventListener("mouseDown", newGame); (this is where i think the play again button is but how would i make it so it when to the first frame)
                backgroundMusic.play(0,1000);
                        static function gameOver()
                                  gameOverMenu.visible = true;
                                  enemyShipTimer.stop();
                                  miniBossTimer.stop();
                                  RocketShipTimer.stop();
                                  Bombtimer.stop();
                                  powerUpTimer.stop();
                                  for (var i in EnemyShip.list)
                                            EnemyShip.list[i].kill();
                        function newGame(e:Event)
                                  gameOverMenu.visible = false;
                                  ship.visible = true;
                                  ship.x = 300;
                                  ship.y = 150;
                                  ship.takeDamage(-ship.maxHealth);
                                  ship.addEventListener("enterFrame", ship.move);
                                  resetScore();
                                  enemyShipTimer.start();
                                  miniBossTimer.start();
                                  RocketShipTimer.start();
                                  Bombtimer.start();
                                  powerUpTimer.start();

    hi
    i make a new function back and change the new game to back but the screen does not go to the first frame
    gameOverMenu.backbutton.addEventListener("mouseDown", back);
    function back(e:Event)
                                  gotoAndStop(1);
    any help?

  • Help needed to link up buttons on HUD Window to Applescript

    Hi
    I have very limited experience of XCode, though I did build a very simple application some time ago that appended text to the Comments field of the currently playing track in iTunes using Applescript. The design of this app was basically just a set of drop down menus.
    I now want to redesign this as a HUD Window, and thought it best to start again. Unfortunately because it was a while ago I have forgotten the steps I took to design the original app and having done some reading and googling I am still stuck.
    What I have done so far is to create a new Cocoa Application, design a HUD Window with all the necessary buttons in IB and add the Applescript from the original project to the Classes Folder in XCode. The AppleScript basically just consists of a series of arguments like this:
    on tempo3_(aNotification)
    tell application "iTunes"
    set current track's comment to ((get current track's comment) & " " & "tempo:3")
    end tell
    end tempo3_
    In the original document the Applescript was listed in the MainMenu.xib window in IB as an App Delegate and I could ctrl click on buttons/menu items and link them to the various applescript instances/arguments in the Applescript, but since I copied the applescript from the old project to the new it isn't showing up in the MainMenu.xib window, so I'm obviously missing out an important step, and wonder if someone could point me in the right direction.
    Thanks
    Nick

    *AppleScript Studio* has been deprecated in Snow Leopard. You can still open and edit older projects, but the new framework is AppeScriptObjC. The regular AppleScript part of your project would be the same, but the way your script addresses the user interface (Interface Builder) is different in the new framework.
    For an older project, you can enable the AppleScript Studio palette in Interface Builder (see the AppleScriptObjC Release Notes), and for a newer project there is a starting tutorial at MacScripter.net (see AppleScriptObjC in Xcode).

  • Need help with href link that submits

    I need some help. I dynamically create HTML that displays a horizontal row of page numbers in Position 8. Although they look like page numbers to the use, are not true Apex pages, but rather "logical" pages that change the content in a single Apex physical page. The URL that gets returned from the HREF sets a variable in the page. Then I need a submit to occur so that all my "after submit" processes run, and the page re-renders. Is this even possible? I've been unsuccessful so far.
    Thanks.

    Martin,
    Two things...
    1. Be careful about "hard coding" values in a link. I don't know if you've already done this, but the link should use substitution variables as so...
    f?p=&app_id.:&app_page_id.:&app_session.::NO::P94000_LOGICAL_PAGE_NUM:2
    When the page renders each substitution variable will be replaced with the correct value.
    2. Not that it really matters, but you named your variable starting with P94000. Typically this would indicate the variable appears on page 94000. Is this the case?
    The problem with what you want to do is that it can be done so many different ways. Each way is not necessarily better than the other. Number 1 above is using a link in the traditional sense. It's a link to the same page (achieved by using app_page_id). It will not submit the page but it contains enough information to set the value of a variable and you can code off of that variable's value.
    You could use a JavaScript trick, but I wouldn't bother for this. In addition, you could use the request value over a variable value to feed off of but since you already started with the variable I'd stick with that.
    The first thing you need to do is figure out if your variables value is being set with the link... Let me know if you have more questions.
    Regards,
    Dan

  • I need help with circular linked list

    Hi,
    I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
    -> 9 -> 3 -> 7
    empty false
    9
    empty false
    3
    -> 7
    empty false
    Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
    Thanks.This is my code
    / A circular linked list class with a dummy tail
    public class CLL{
         CLLNode tail;
         public CLL( ){
              tail = new CLLNode(0,null); // node to be dummy tail
              tail.next = tail;
         public String toString( ){
         // fill this in. It should print in a format like
         // -> 3 -> 5 -> 7
    if(tail==null)return "( )";
    CLLNode temp = tail.next;
    String retval = "-> ";
         for(int i = 0; i < -999; i++)
    do{
    retval = (retval + temp.toString() + " ");
    temp = temp.next;
    }while(temp!=tail.next);
    retval+= "";}
    return retval;
         public boolean isEmpty( ){
         // fill in here
         if(tail.next == null)
              return true;
         else{
         return false;
         // insert Token tok at end of list. Old dummy becomes last real node
         // and new dummy created
         public void addAtTail(int num){
         // fill in here
         if (tail == null)
                   tail.data = num;
              else
                   CLLNode n = new CLLNode(num, null);
                   n.next = tail.next;
                   tail.next = n;
                   tail = n;
         public void addAtHead(int num){
         // fill in here
         if(tail == null)
              CLLNode l = new CLLNode(num, null);
              l.next = tail;
              tail =l;
         if(tail!=null)
              CLLNode l = new CLLNode(num, null);
              tail.next = l;
              l.next = tail;
              tail = l;
         public int removeHead( ){
         // fill in here
         int num;
         if(tail.next!= null)
              tail = tail.next.next;
              //removeHead(tail.next);
              tail.next.next = tail.next;
         return tail.next.data;
         public static void main(String args[ ]){
              CLL cll = new CLL ( );
              cll.addAtTail(9);
              cll.addAtTail(3);
              cll.addAtTail(7);
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
    class CLLNode{
         int data;
         CLLNode next;
         public CLLNode(int dta, CLLNode nxt){
              data = dta;
              next = nxt;
    }

    I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
    for(int i = 0; i < -999; i++)That says:
    1) Initialize i to 0
    2) while i is less than -999, do something
    Since it is initially 0, it will never enter that loop body.

  • Need help with 'post link to facebook' button in php

    hi guys,
    thanks for the interest in my post...
    i want to have a button at the bottom of my main page layout (main.php) of the facebook logo where visitors can click on it to submit the page as a link to facebook.
    how can i set the button so it will post the link to whichever page the visitor is viewing i.e. when they are reading a news article the button action will post main.php?id=news and when they are on home, main.php?id=home.
    thank you very much and i hope to hear form you.
    m

    Quote from: tigers71 on 14-December-14, 00:47:36
    If anyone can link the customerchecklist.doc on the MSI website I would greatly appreciate it.  I need to RMA my laptop, and while I printed out the RMA form, I didn't print out the customer checklist document that goes with it.
    And as the original email was in my spam folder, I must have deleted it, so I don't have the link to the page the checklist is on.       I had an old link to the checklist from when I had to RMA my laptop last year, but that is no longer valid.   So if anyone has had a recent RMA of their laptop, if you can post the link, or send it to me in PM, many thanks.
    if you bought laptop from local store then you can just go to local store and RMA it there they will then pack it in and send it away to a MSI service in your country or maybe nearby country that can do repairs.

  • Need help with different link styles on same page

    Hello,
    I'm using Dreamweaver CS4 on a PC.
    I have searched through a lot of posts over the last couple of days, I've tried the projectseven.com tutorial, google'd, etc. but still can't figure it out.....
    All I want to do is apply a different link colour to some links in the footer of my page. Elsewhere through the site I have set the colour to blue (for the link) and orange (for the hover) - for the footer links I want the link to be white and the hover colour to stay orange.
    The problem with the projectseven tutorial is that it doesn't seem to apply to CS4 and I kept getting error messages when trying to apply a new CSS rule - there's no Class|Tag|Advanced options as per the instructions ....
    I've copied the code of my page to this. The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    Could someone please give me some instructions or point me in the right direction please??
    Many thanks,
    Vickie
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Subscribe to Family Australia - it's free!</title>
    <!-- TemplateEndEditable -->
    <link href="../family-subscribe.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    -->
    </style></head>
    <body>
    <div id="container">
      <div id="banner">
        <ul id="family-subscribe-menu" class="MenuBarHorizontal">
          <li><a href="../index.html">Home</a>      </li>
          <li><a href="../subscribe.html">Subscribe</a></li>
          <li><a href="../family-advertise.html">Advertise</a>      </li>
          <li><a href="../family-articles.html">Articles</a></li>
    <li><a href="../family-sign-in.html">Issues</a></li>
          <li><a href="../family-contribute.html">Contribute</a></li>
    <li><a href="../family-contact.html">Contact</a></li>
        </ul>
    </div>
        <div id="sidebar"><a href="../family-sign-in.html"><img src="../images/launch-issue.jpg" alt="launch-issue" width="220" height="380" hspace="4" /></a>
          <div id="sidebar-image2">
            <p><img src="../images/Sleeping bag for web.jpg" width="220" height="151" alt="sleeping-bag" /></p>
            <p>Kozy Koala™ Pillow Sleeper is ideal for those  summer nights when the kids want to sleep out or when you go camping. The  all-in-one pillow camper consists of …. [MORE]</p>
          </div>
          <div id="sidebar-image3">
            <p><img src="../images/solrx for web.jpg" width="220" height="164" alt="sunscreen" /></p>
          SolRX® Sunscreens are very sweat and water  resistant – ideal for anyone who leads an active outdoor lifestyle … whether  you’re in the water or not! [MORE]</div>
      </div>
        <!-- TemplateBeginEditable name="main-content-region" -->
        <div id="main-content">main content</div>
        <!-- TemplateEndEditable -->
      <div id="footer">
    <div id="footer-navigation-bar"><a href="../family-about.html">about</a> | <a href="../family-advertise.html">advertise</a> | <a href="../family-contribute.html">contribute</a> | <a href="../family-contact.html">contact</a> | <a href="../family-unsubscribe.html">unsubscribe</a></div>
          <div id="footer-text">Family Australia | ABN 33150685385 | For all advertising enquiries please contact <a href="mailto:[email protected]">[email protected]</a><br />
    Copyright © 2010 Family Australia. All rights reserved.
    </div>
      </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("family-subscribe-menu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    Hello
    You can see above the CSS that applies to your links.  If you have links that you want to style in a diferent way, just write the rule Like this:
    #Footer-Navigation-Bar a:link {
    color: red;
    text-decoration: none;
    Or whatever.  There are other ways but this will do you as you already have those links you want styled differently in a div with its own ID.  The new rule should come after the other rules in your CSS I think to make sure of the cascade although thinking about it,  there's something called specificity in CSS which means that the rule that I suggest will win out anyway.  All that you are doing in my suggestion is selecting the a:link that is a descendant of an element with that particular ID.
    I hope that helps.  I'm a bit of a novice and might have got a bit jumbled with the cascade/specficity thing but hey, I reckon that will get you where you want to go....
    Martin.

  • Need help with java browser "Back" button

    All:
    I'm trying to make the "Back" button in my Java web browser work. Any help would be greatly appreciated. Here is my code:
    import javax.swing.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.io.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    public class Browser implements HyperlinkListener, ActionListener
    String source = "http://www.google.com";
    final String GO = "Go";
    final String Back = "Back";
    JEditorPane ep = new JEditorPane(); //a JEditorPane allows display of HTML & RTF
    JToolBar tb = new JToolBar(); //a JToolBar sits above the JEditorPane & contains
    JTextField tf = new JTextField(40); // the JTextField & go button
    JLabel address = new JLabel(" Address: ");
    JButton back = new JButton(Back);
    JButton go = new JButton(GO);
    BorderLayout bl = new BorderLayout();
    JPanel panel = new JPanel(bl);
    JFrame frame = new JFrame("Billy Wolfe's Browser");
    protected Vector history;
    public Browser()
    openURL(source); //this method (defined below) opens a page with address source
    ep.setEditable(false); //this makes the HTML viewable only in teh JEditorPane, ep
    ep.addHyperlinkListener(this); //this adds a listener for clicking on links
    JScrollPane scroll = new JScrollPane(ep); //this puts the ep inside a scroll pane
    panel.add(scroll,BorderLayout.CENTER); //adds the scroll pane to center of panel
    tf.setActionCommand(GO); //gives the ActionListener on tf a name for its ActionEvent
    tf.setActionCommand(Back);
    tf.addActionListener(this); //adds an ActionListener to the JTextField (so user can
    go.addActionListener(this); //use "Enter Key")
    tb.add(back); //this adds the back button to the JToolBar
    tb.add(address); //this adds the Label "Address:" to the JToolBar
    tb.add(tf); //this adds the JTextField to the JToolBar
    tb.add(go); //this adds the go button to the JToolBar
    panel.add(tb,BorderLayout.NORTH); //adds the JToolBar to the top (North) of panel
    frame.setContentPane(panel);
    frame.setSize(1000,900);
    frame.setVisible(true);
    }// end Browser()
    public void openURL(String urlString)
    String start = urlString.substring(0,4);
    if(!start.equals("http")) //adds "http://" to the URL if needed
    urlString = "http://"+urlString;
    }//end if
    try
    URL url = new URL(urlString);
    ep.setPage(url); //this sets the ep page to the URL page
    tf.setText(urlString); //this sets the JTextField, tf, to the URL
    catch (Exception e)
    { System.out.println("Can't open "+source+" "+e);
    }//end try-catch
    }//end openURL
    public void hyperlinkUpdate(HyperlinkEvent he) //this allows linking
    HyperlinkEvent.EventType type = he.getEventType();
    if(type == HyperlinkEvent.EventType.ACTIVATED)
    openURL(he.getURL().toExternalForm());
    history.add(he.getURL().toExternalForm());
    }//end hyperlinkUpdate()
    public void actionPerformed(ActionEvent ae) //for the GO and BACK buttons
    String command = ae.getActionCommand();
    if(command.equals(GO))
    openURL(tf.getText());
    history.add(tf.getText());
    //JOptionPane.showMessageDialog(null, "This is a test");
    if(command.equals(Back))
    try
    String lastURL = (String)history.lastElement();
    history.removeElement(lastURL);
    lastURL = (String)history.lastElement();
    // JOptionPane.showMessageDialog(null, lastURL);
    ep.setPage(lastURL);
    if (history.size() == 1)
    back.setEnabled(false);
    catch (Exception e)
    System.out.println("ERROR: Trouble fetching URL");}
    }//end actionPerformed()
    }// end Browser class

    Here it is. I need to be able to click the Back button and view the previous URL.
    import javax.swing.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.io.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    public class Browser implements HyperlinkListener, ActionListener
    String source = "http://www.google.com";
    final String GO = "Go";
    final String Back = "Back";
    JEditorPane ep = new JEditorPane(); //a JEditorPane allows display of HTML & RTF
    JToolBar tb = new JToolBar(); //a JToolBar sits above the JEditorPane & contains
    JTextField tf = new JTextField(40); // the JTextField & go button
    JLabel address = new JLabel(" Address: ");
    JButton back = new JButton(Back);
    JButton go = new JButton(GO);
    BorderLayout bl = new BorderLayout();
    JPanel panel = new JPanel(bl);
    JFrame frame = new JFrame("Billy Wolfe's Browser");
    protected Vector history;
    public Browser()
    openURL(source); //this method (defined below) opens a page with address source
    ep.setEditable(false); //this makes the HTML viewable only in teh JEditorPane, ep
    ep.addHyperlinkListener(this); //this adds a listener for clicking on links
    JScrollPane scroll = new JScrollPane(ep); //this puts the ep inside a scroll pane
    panel.add(scroll,BorderLayout.CENTER); //adds the scroll pane to center of panel
    tf.setActionCommand(GO); //gives the ActionListener on tf a name for its ActionEvent
    tf.setActionCommand(Back);
    tf.addActionListener(this); //adds an ActionListener to the JTextField (so user can
    go.addActionListener(this); //use "Enter Key")
    tb.add(back); //this adds the back button to the JToolBar
    tb.add(address); //this adds the Label "Address:" to the JToolBar
    tb.add(tf); //this adds the JTextField to the JToolBar
    tb.add(go); //this adds the go button to the JToolBar
    panel.add(tb,BorderLayout.NORTH); //adds the JToolBar to the top (North) of panel
    frame.setContentPane(panel);
    frame.setSize(1000,900);
    frame.setVisible(true);
    }// end Browser()
    public void openURL(String urlString)
    String start = urlString.substring(0,4);
    if(!start.equals("http")) //adds "http://" to the URL if needed
    urlString = "http://"+urlString;
    }//end if
    try
    URL url = new URL(urlString);
    ep.setPage(url); //this sets the ep page to the URL page
    tf.setText(urlString); //this sets the JTextField, tf, to the URL
    catch (Exception e)
    { System.out.println("Can't open "+source+" "+e);
    }//end try-catch
    }//end openURL
    public void hyperlinkUpdate(HyperlinkEvent he) //this allows linking
    HyperlinkEvent.EventType type = he.getEventType();
    if(type == HyperlinkEvent.EventType.ACTIVATED)
    openURL(he.getURL().toExternalForm());
    history.add(he.getURL().toExternalForm());
    }//end hyperlinkUpdate()
    public void actionPerformed(ActionEvent ae) //for the GO and BACK buttons
    String command = ae.getActionCommand();
    if(command.equals(GO))
    openURL(tf.getText());
    history.add(tf.getText());
    //JOptionPane.showMessageDialog(null, "This is a test");
    if(command.equals(Back))
    try
    String lastURL = (String)history.lastElement();
    history.removeElement(lastURL);
    lastURL = (String)history.lastElement();
    // JOptionPane.showMessageDialog(null, lastURL);
    ep.setPage(lastURL);
    if (history.size() == 1)
    back.setEnabled(false);
    catch (Exception e)
    System.out.println("ERROR: Trouble fetching URL");}
    }//end actionPerformed()
    }// end Browser class

  • Need Help with script: CS4 Flash Buttons

    I created a 3 button bar using Flash CS4. It will link to three different HTML pages in a website. This is one of the three scripts I have on the first frame of the main timeline, the code is for one of the buttons, the other two are really the same with differing button numbers. This code does now open the page up in a NEW BROWSER window, but I would like the page to open in the existing window and not in a new one. The 3 buttons also have down states identified by a frame label of “hold”, I would like the script to set the hold frame or down state to be displayed when the proper page is loaded in the browser .  Will someone please suggest to me what I need to add to this script to achieve this, your time and effort will be appreciated.
    stop();
    button1_btn.addEventListener(MouseEvent.CLICK, illus);
    function illus(e:MouseEvent):void {
        var targetURL:URLRequest=new URLRequest("illustrator.html");
        navigateToURL(targetURL);

    Thank you Todd... How about the code to display the Down stage when displayed,
    got any thoughts on this.
    Thanks'
    Bill

  • Help with Quiz pages and buttons (please)

    We use Captivate 6 with a subscription. I have put together a couple of modules with question pools, and some with just a few questions pages inserted. The last time I created a new captivate project, I put inserted quiz pages and the buttons were different then they had been before. The first few times they were grey, now they are green and a bit smaller. Looking at the proporties for each page and button, I cannot see anything that is different othe than one is a text button and the other is a transparent button. Both buttons are marked as default quiz button style. I don't use any themes. To make this short, I would like to know if there is a way to make the buttons the same every time I add a page, or a pool? I am not yet up to designing my own buttons, but probably will here shortly. Right now I need to get some training modules completed as quickly as possible so I don't have the time to reinvent the wheel (so to speak). The only other thing that I noticed was different in the projects was that in the skin editor one uses one called [default](modifired) and the other one uses one that I created. HOWEVER, I have another one that uses my custome skin and the buttons are grey on that one which is the same as the default one. I don't think the skin has anything to do with the button look. Correct me gently if I am wrong on this.
    Thanks for the help.

    Just one remark: in CP6 you always use a theme. And quiz slides have their own master slides, that will always be used. The buttons take on the style you see on those master slides, and this style can also be found in the object style manager. Skin and object styles are part of the theme. Probably you have overridden some of the styles defined?
    Lilybiri

  • Help with Page Link

    Have inserted a hyperlink to a page on the B Master of my file, when the Hyperlink is checked in the file it is directed to the correct place, when I do  Folio Preview the link goes to a different page and when I Create an App the link is still incorrect, can anyone help please?????? The Preflight Check displays no errors!

    Creating an IPad app. The issue is with the alternate layout. I have a a
    small graphic which when tapped takes the user back to the home page of the
    alternate layout.
    I have checked the link in the Hyperlinks Panel and it links to the correct
    page. When I produce a Folio Preview the link goes to the last page of the
    alternate layout instead of the first page. Hope this clarifies
    Thanks Barb

Maybe you are looking for