AS3 Help with hyperlinking

Hi All
Hoping you can help me, I have 2 websites both built entirely in flash.
My problem is that I have created a button on one of the sites that has to link to a particular scene and frame within the second website.
I know I need some actionscript 3 to do this, but have no idea how to code this.
Can anyone help me? Or point me in the right direction?
Many Thanks
N

append a query string to your ulrrequest string that indicates the frame/scene.   in the loaded swf, use the _url property and string methods to isolate those values and use them in a goto.  if you're loading a html, use javascript to parse the url and the externalinterface class to retrieve the javascript results in flash.

Similar Messages

  • Need help with hyperlink for jpeg

    I sound like a noob.. but i have a single jpeg with different images on it... and i want to create a hyperlink for specific areas that you point to and not the entire jpeg.... i just can't seem to figure out how to do this, any help would be greatly appreciated

    Welcome to the discussions. See here:
    http://allaboutiweb.com/index.php/2009/01/fake-an-image-map-in-iweb/
    You may find more suggestions by clicking here.

  • Help with Hyperlinks on Media Gallery Widget.

    I need to include an hyperlink on the Caption (every image) on Media Gallery widget, like this >>
    The problem is when I check the iBook on my iPad (vertical orientation) all the links appears at the end of the text, but they ARE NOT VISIBLE on iBooks Author (please chek the images below)
    SCREEN CAPTURE FROM IPAD >>
    SCREEN CAPTURE FROM IBA >>
    Is there a way to erase these on the final version?
    Thanks in advance
    Carlos Garro

    I'll bite....
    You want help to:
    - include hyperlinks
    - erase included hyperlinks
    See
    Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do

  • Help with Hyperlinks...

    I've created two books with multiple chapters. Both books are the same with the exception that one book is in full color for publication to the web, with the second being black/white for printing. All of the hyperlinks that I created in the black/white version are correct. When I created the color version of the publication that has the exact same hyperlinks, that's where I'm getting the problem. I guess my question is, can I "import" the hyperlinks from the black and white publication into the color publication? Any help would be appreciated...
    ~Vince

    Did you take the b/w file and just add colour? I'm not entirely sure why the hyperlinks would go missing. (If the document was created for print, are the hyperlinks present as interactive elements?) Is there a reason to build the colour version from scratch?
    If you are in CS4 you could try using conditional text and placing the black and white images and colour images on a different layer. to keep your b/w and colour version in the same file. Thus eliminating the need to import hyperlinks.
    Someone on here is bound to have a better method, but I discovered that exporting all stories to a folder I could drag the text files to an unused master page and the greyed out links would show up in the hyperlinks panel. I don't think I'd opt for that route though.

  • Need help with hyperlinks in InDesign CS3 to PDF

    I've done everything I can see in the forums, in the InDesign help and in InDesign for Dummies... but other than spelling out the entire URL in the text (IE where you can see it in the document) I cannot get a URL hyperlink to work after exporting it to a PDF file. The sample document I used does show the link in the hyperlink pallette... I can even use the "forward" and "back" to identify the link in the document and actually open the link online from there. But - the link is not working in the PDF file. What am I doing wrong? I'm totally confused. Normaly, I figure these kinds of things out and this one seemed to be simple/straight forward.
    Thanks!

    If you're not using tagged PDF, then use it. If you are, disable it. Also, make sure you're fully patched to 5.0.4.
    Bob

  • Help with hyperlink to an email in iWeb

    While using iWeb and clicking on my link to send me an email I receive the error: "Error Opening Link mailto:(the email it's supposed to send to).  I have "enable as a hyperlink" and "make hyperlinks active" boxes checked.  Help!

    Forget what he said.  He obviously did not read your post properly to see that it was an e-mail link that you were trying to create and not an ordinary website link.
    You don't need to make hyperlinks active for them to work.
    When you say that you typed the e-mail address out in full, did you also do this under the hyperlink section when you created the link?  If not, then you need to do that also, so select your text and open the Inspector and go to hyperlink and then select the e-mail link at the top from the drop down menu and then enter your e-mail address in that box below and the e-mail message that you want and then it should work.
    If there is still an error when you click on the link and you have done all those things, then check your e-mail settings in your e-mail client and see if you need to alter anything there.

  • I need help with hyperlink PLEASE!!!!!!!

    I hope somebody can help me with this question. I create some
    button in flash 8. My web page is divided in three frames( using
    the frame tag), two rows and the second row has two colums. My
    question is how can i make one of my buttons to open a new web page
    but in a different frame. The button is in column number 1 of row 2
    and when the user click this button i want that this new page open
    in column number 2 of row 2. How can ia do that? please help
    me

    valla23 wrote:
    > I hope somebody can help me with this question. I create
    some button in flash
    > 8. My web page is divided in three frames( using the
    frame tag), two rows and
    > the second row has two colums. My question is how can i
    make one of my buttons
    > to open a new web page but in a different frame. The
    button is in column number
    > 1 of row 2 and when the user click this button i want
    that this new page open
    > in column number 2 of row 2. How can ia do that? please
    help me
    Always best to google before posting, especially if you
    urgent to meet deadline.
    Forum archives:
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    Search "flash in frames"
    the very second result, so happen to be from me, exhaling
    exactly how to set it up.
    http://groups.google.com/group/macromedia.flash/browse_thread/thread/6b0047b0a65be8a0/9f8f c0765bf2297e?lnk=st&q=&rnum=2&hl=en#9f8fc0765bf2297e
    Personally posted that couple of hundreds of times in past 8
    years.
    Please try to utilize the search before posting so we don't
    need to hammer same
    topic over and over and over and over and over .....again...
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • AS3 help with buttonClickHandler

    Ok, so i am getting the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at file_Scene1_fla::MainTimeline/buttonClickHandler()
    So here is the code
    At frame 75 (intro before hand, works perfectly, with only a
    play command)
    note: 30fps
    var nextSection:String="home";
    stop();
    firstButtons.firstButton.addEventListener(MouseEvent.CLICK,
    buttonClickHandler)
    function buttonClickHandler(event:MouseEvent):void {
    if ( event.target == firstButtons.firstButton ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == home_btn ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == collections_btn ) {
    nextSection="collections";
    gottoAndStop(nextSection);
    } else if ( event.target == orders_btn ) {
    nextSection="orders";
    gottoAndStop(nextSection);
    } else if ( event.target == about_btn ) {
    nextSection="about";
    gottoAndStop(nextSection);
    } else if ( event.target == contact_btn ) {
    nextSection="contact";
    gottoAndStop(nextSection);
    } else if ( event.target == americas_btn ) {
    nextSection="americas";
    gottoAndStop(nextSection);
    } else if ( event.target == europe_btn ) {
    nextSection="europe";
    gottoAndStop(nextSection);
    } else if ( event.target == asia_btn ) {
    nextSection="asia";
    gottoAndStop(nextSection);
    } else if ( event.target == oceania_btn ) {
    nextSection="oceania";
    gottoAndStop(nextSection);
    then, i have more objects enter the stage at frame 80
    home_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    collections_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    orders_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    about_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    contact_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    and finally at frame 95
    americas_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    europe_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    asia_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    oceania_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    the error comes, when i try to click on the buttons that
    enter in frame 80 (also, the button works as in the up and down
    state changes, but it does not move on to the next section of the
    website)
    from what i got, i have to list the function and all its
    possibilities the first time (as in AS3, you can only list a
    function once or else get error 1114 (i think thats the # might be
    wrong))
    then later you list the items entering (as they enter the
    stage) or get error 1009, which i still am getting
    thank you very much in advance
    PS: i only learned Flash this week and have looked through
    dark world wide webs for many errors but am finally stumped

    ok, the firstButtons.firstButton is a button called
    firstButton in a movie clip firstButtons however, the movie plays
    (i said a simple play command in the post plays it) and if i click
    on it, it takes me to the next section of the website, so i dont
    think that's it (note: from what i understand you have to list the
    button in that order or else it wont identify it (am i wrong))
    the problem starts at frame 80 with the new buttons that dont
    forward me on to their given sections
    if you can explain what to do next (ie: trouble shoot x or
    y...) that would be greatly appreciated as im way way out of my
    league
    thanks alot

  • InDesign 5.5...can anyone help with Hyperlinks?!

    Hey can anyone help?! It's a bit of a weird one!!.. I have just finished doing a catalogue and was in the process of Hyperlinking the pages to the contents page but for some reason it's telling me the document is only 16 pages in total when its actually 20 pages so I cant link the last few pages. Does anyone have any idea why this is happening?! I did add additional pages to the document whilst producing it but it does say there are 20 pages in the pages window.
    Any help would be most appreciated as I need to get it finished asap?!
    Thanks
    Styles

    May be you have started your page numbering from some other page that page 1?
    Export to IDML and re-opening may also fix the problem....

  • Would like help with hyperlink

    In a JEditorPane, HTML documents are displayed and when a
    hyperlink is clicked, they are loaded. However, I would like to display,
    in a status area, where the hyperlink points to before the mouse click
    activates it (goes to that new page). I tried adding a mouse motion
    listener but that didn't work. I'm not really sure why it didn't work but I
    suspect it was because the editor pane was non-editable.
    Any ideas on how to implement this?

    Is this a bug or has someone else been able to get access to what
    the hyperlink points to when the mouse is over the hyperlink and haven't
    mouse clicked yet?Try the following code extracted from my program at http://www.aokabc.com (it works on 1.4):
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class TPBugDemo extends JFrame{
        public TPBugDemo() throws Exception{
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          JEditorPane pane=new myJEditorPane();
         pane.setContentType("text/html");
         pane.setText("<A HREF='http://www.aokabc.com'>click me</A>");
          this.getContentPane().add(new JScrollPane(pane));
       public static void main(String args[]) throws Exception {
          TPBugDemo gI = new TPBugDemo();
          gI.setSize(400, 200);
          gI.setLocationRelativeTo(null);
          gI.setVisible(true);
       class myJEditorPane extends JEditorPane implements HyperlinkListener {
         public myJEditorPane() {
            super();
            setEditable(false);
            addHyperlinkListener(this);
         public void hyperlinkUpdate(HyperlinkEvent e) {
            if (e.getEventType()==HyperlinkEvent.EventType.ACTIVATED) {
              try {
                 setPage(e.getURL());
              } catch (Throwable t) {
                 System.out.println(t.toString());
            } else if (e.getEventType()==HyperlinkEvent.EventType.ENTERED) {          // simulate a hover effect (a CSS style not supported in 1.4.0)
              System.out.println(e.getURL());
              select(e.getSourceElement().getStartOffset(),e.getSourceElement().getEndOffset());
            } else if (e.getEventType()==HyperlinkEvent.EventType.EXITED) {
              select(e.getSourceElement().getStartOffset(),e.getSourceElement().getStartOffset());
    };o)
    V.V.

  • Help with hyperlinks from and InDesign .swf

    Hi All,
    I created an  interactive document in InDesign CS5 that I exported as a .swf and  inserted it into a html based webpage.  I would like the buttons I  created with url actions to open the url in the same broswer window and  not in a new broswer window.  Is this possible in ID CS5 and if not how  can I get it done.  I have enough knowledge in flash to be dangerous.
    Thanks in advance and if I was not speicific enought please let me know.

    You should address InDesign questions to the folks in the InDesign forums...
    http://forums.adobe.com/community/indesign
    You won't be able to do anything in Flash with the swf you created with InDesign to change how the linked pages open.  That needs to be defined in the swf's linking code and Flash cannot edit an swf.

  • Help with hyperlink

    Hi,
    Posted this earlier, I was wondering why this below code dosent show anything on the web browser.Kindly let me know.
    <tr>
    <td>
    <a href ="<%=rs.getString(1)%>"></a>
    </td>
    </tr>I want to get a link on each value coming from the database by this
    Help would be greatly appreciated.
    AS

    May be your ResultSet doesnt have any records.
    Did you ensure that??? Also, ensure that you retrieve
    the proper columns.
    fun_oneThanks for the reply.The rs.getString(1) is not empty because it works when it is used all by itself
    <td><%=rs.getString(1)%></td>I also observed that this below code gives SQL Exception
    <td><a href ="<%=rs.getString(1)%>"><%=rs.getString(1)%></a></td> Error:::
    Error SQL: java.sql.SQLException: No data found
    Hoping that people will help.
    Thanks
    AS

  • Help with hyperlinks back to home page

    Hi all,
    I have just uploaded my website and found my links don't work back to my home page once I have uploaded my webpage.
    The link works from the home page to the other pages but then you have to press the 'back' button in order to view the others - any thoughts ?
    Also any ideas on how to change the web address bar as for some reason it is showing my web address twice ?
    Thanks in advance guys !
    SiAles

    Usually this is caused by some object covering the navigation. Do a Command A on the page in iWeb to show all and see if you can see anything.
    Otherwise post the URL to a page.
    Look at this page to see how to remove the site name from the URL...
    http://www.iwebformusicians.com/iWeb/URLs-Favicons.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Need help with shared hyperlinks

    I need help understanding the shared hyperlink option when creating hyperlinks in InDesign CS5 (Mac) and how to change a shared hyperlink destination.
    I want to build a document that contains hyperlinks to files on the client’s server. The end use is to make a PDF in which the client can click on a hyperlink and it opens (for example) a Word document or another PDF on their server. When I started the project, I thought I would create shared hyperlinks because a single server document would be referred to by several links scattered through the InDesign document I was building.
    From the Hyperlink palette fly-out menu I chose New Hyperlink, then Link To: File from the dropdown, and I clicked the Shared Hyperlink option, and then OK to close the window. I export the InDesign file as a print PDF, and the hyperlinks work.
    Now I need to change the file paths, because the client moved their files to a new location. When I re-open the hyperlink in the Hyperlink palette by double clicking on it, the Edit Hyperlink window opens but it shows my link as:
    Link To: Shared Destination (rather than File)
    And the destination box underneath shows:
    Document: [my document name]
    Name [the file path I put in]
    However, this link is not editable. I don’t understand why InDesign does this on its own.
    I realize now that it was not necessary to tick the shared option when I built the hyperlink. Is there a way (a script? another method?) that I can remove the shared nature of the hyperlinks so that when I go to edit them they show as links to files (Link to: File, not Link to: Shared Destination) with a live Destination Path box where I can edit the link?
    (If anyone tries to help with a script, note that my document also contains other hyperlinks to internet URLs and emails that I don’t want to disturb.)
    Thanks for your consideration.

    Well. I do feel sort of bait-and-switched, but...
    I want to get the links back to the point where double clicking on the hyperlink name (number) in the Hyperlink palette opens an Edit Hyperlink dialog where the destination is Link to: File and the file path shows up in the File Path box as an editable string. Just the way I made them in the first place.
    It's good that you're comfortable editing the IDML.
    If you compare links made both ways in the IDML, the only distinction between the Shared and the not Shared seems to be the hidden attribute of the <HyperlinkURLDestination/> tag.
    Allegedly you cannot edit this in Javascript (though you could, I suppose, create a new HyperlinkURLDestination with all the same properties and then chang eeach hyperlink to point to it).
    But editing it in the IDML works fine. Open designmap.xml and change the Hidden="false" to Hidden="true". Of course, you only want to do that in the <HyerplinkURLDestination/> tags...
    Something about this seems fishy to me, so you might want to verify it yourself in a single case before you put too much effort in. But I think it's right.

  • I saved a word document with hyperlinks in it as a pdf.  When following the links in the pdf, i can't the browser to go back to the pdf.  Help ..

    I saved a word document with hyperlinks in it as a pdf.  When following the links in the pdf, i can't the browser to go back to the pdf.  Help ..

    You cannot save word files to pdf using reader. When you click a link (in Reader or in the browser using the Reader plugin) you open the url in your browser (what browser)? We need detailed information to help.

Maybe you are looking for