How to add buttons with links to different pages in my flash document?

Hi I created a template for my flash animation which is a simple content box and a scroll bar beside it.. Anyway at the top I also have 3 pages (they are currently just part of the png background image so they are not buttons of any sort).. My question is how can I make links to these different pages so when clicked in the flash animation they will just open normally like they would in like a website..
I am a flash beginner so I'm not too technical with it... I don't know if I would have to create 3 seperate documents for my 3 pages or something else?
Thanks!

Do you expect the loaded SWF to load "into" the SWF that contains the buttons or are you expecting it to overwrite the existing SWF you're already in (similar to a web page)?
Loading a SWF inside is pretty straight forward, as long as the SWF is on the same domain or the domain you're loading from has a crossdomain.xml policy allowing it and the SWF is set to publish with the networking sandbox:
import flash.display.Loader;
import flash.net.URLRequest; 
import flash.events.Event;
var myLoader:Loader = new Loader();
// listen for completion
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleCompleteF);
// usually add some IOErrorEvent or SecurityErrorEvent handlers here
// button hook here
myButtonInstanceName.addEventListener(MouseEvent.CLICK, loadPageF);
function loadPageF(e:MouseEvent):void
     // try to load
     try
          myLoader.load(new URLRequest('another.swf'));
     catch (e:*)
          // catch any error, trace it to flash IDE for debugging
          trace("Error loading SWF: " + e);
function handleCompleteF(e:Event):void
     // success, add to display list
     addChild(myLoader);
Season to taste, like moving the position of the Loader object. The Loader will contain the SWF in the .content property (e.g. myLoader.content) and is a display object so you can just add it directly to the display list.
If you add a second button you can re-use the myLoader to .load() a different SWF, just point it to a new function. You could re-use the same function but you'd need to detect the different buttons (possibly via the .name property). I presume you might want to do "different things" when different pages are loaded so I'm assuming you'd probably use a different function rather than make a huge reused branching function.
More info on Loader with sample code here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml#includeExamplesSummary

Similar Messages

  • Can I add an internal link in a Pages 5.5.2 Document

    In previous versions of Pages I could add a link from a word in my document to, say, a topic in a different place in the document. Either I've forgotten how to do it or the ability has gone away. Can someone help?

    Thank you for the (sad) information. When I try to open my document that I had already updated in v5 with v4.3 it says it can't be opened because the required index.xml file is missing. Any idea how to get around that?

  • How to add an internal link on pages 5.0.1?

    Could anyone please tell me how to add an internal link on pages 5.0.1.
    I am making FAQ list, and I would like to make the first page of the document as a list of questions and when a user click on each question, it jumps to the answer (in the same document).
    I found "Add link" tool but it allows you to jump URL or email only.
    I was able to  set the list of questions as an index page of "Table of contents" tool and jump to a question page by clicking each page number, however, it fails when I put a question in a table (I would like to place each question and answer in tables for a visual purpose).
    It seems a jump by using "Table of contents" become invalid when the contents are placed in a chart.  WHy?
    Are there any way to solve this problem?
    any advise will be appreciated.

    Bookmarks have been removed from Pages 5 along with 90+ other features.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=bb95ac0944151 2bc797f0c2dbd918f4c&mforum=iworktipsntrick
    You may have Pages '09 still in your Applications/iWork folder.
    The T.O.C. does not index text inside objects which includes Tables.
    Peter

  • How to add a website link into a final cut video

    Does anyone know how to add a website link that someone can click on that I can add to a video I might be creating in Final Cut Express? I am looking for an easy way to do this and I cannot find one. Thanks.

    I believe Media100 is the only application that can do this. Or at least it used to, don't know if it still does. There is a company called VideoClix that can create hot spots on QuickTime files. The technology is in QuickTime, who'd just have to learn how to do it.

  • Urgent - How to add buttons to a Table

    How to add buttons to a Table and enable them for Mouse Listeners/ Action Listeners

    extends the defaultcellrenderer make it return a Jbutton as the component to draw.
    class OverCellRendererClass extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent(JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus,
    int row,
    int column) {
    //put your stuff here to make or get a button
    return myButton;
    Use something like this to set the renderer for the column :
    tb.getColumnModel().getColumn(4).setCellRenderer(new YourCellRendererClass());

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • How to add effects with snow?

    How to add effects with snow like Apple does when the introduce a new product?

    Flex Builder Help. Basically pressing F1 in Flex Builder or
    Help -> Help Contents menu option.

  • HT2506 After I save my pdf document, the links to different pages within the pdf take me to the wrong page. How do I fix it?

    After I save my pdf document, the links to different pages within the pdf take me to the wrong page. How do I fix it?

    May you please elaborate... How are you creating the pdf documents (procedure, software, etc.)? How are you inserting links into your documents?... etc., etc.

  • How to add "prefix_" with DRMed Filename?

    Hi Jim,
    I want to know, How to add "prefix_" with file name (epub/pdf) which ACS generate after packaging. Suppose, I package a pdf file and ACS packaged it and store it on media server with the name of "98h3jkd98s79fdh93h.epub". Now I want ACS make this like "PREFIX_98h3jkd98s79fdh93h.epub".
    Is this possible, If yes please suggest me how to do this?
    With Regards,
    Mangal Kumar

    Hi Jim,
    I have passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
    <error xmlns="http://ns.adobe.com/adept" data="E_ADEPT_REQUEST_REPLAY http://myserverurl:8080/packaging/Package"/>
    My Packaging XML:
    $request ='<package xmlns="http://ns.adobe.com/adept" action="add">';
    $request .='<fileName>ISBN.pdf</fileName>';
    $request .='<location>ftp://username:[email protected]/www/pdf/[email protected]/www/pdf/ISBN.pdf</location>';
    $request .='<src>http://example.com/pdf/ISBN.pdf</src>';
    $request .='<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">';
    $request .='<dc:title>BISAC SUBJECT HEADINGS</dc:title>';
    $request .='<dc:creator>Book Industry Study Group, Inc.</dc:creator>';
    $request .='<dc:format>';
    $request .='application/pdf';
    $request .='</dc:format>';
    $request .='<dc:publisher>Book Industry Study Group, Inc.</dc:publisher>';
    $request .='<dc:language>en</dc:language>';
    $request .='</metadata>';
    $request .='<permissions>';
    $request .='<display>';
    $request .='<device/>';
    $request .='</display>';
    $request .='</permissions>';
    $request .='<dataPath>C:\books\ISBN.pdf</dataPath>';
    $request .='<expiration>'. $expiration .'</expiration>';
    $request .="<nonce>" . $nonce . "</nonce>";
    $request .='</package>';
    Please suggest me why the "E_ADEPT_REQUEST_REPLAY" error is comming.
    I am waiting your reply...
    With regards,
    Mangal Varshney

  • How to add date with month after convert number to month?

    How to add date with month after convert number to month?
    Month Date Result
    24 21/11/09 24*(21/11/09)
    I want to add both the column and result should be 21/11/11
    Thanks
    Nihar

    Hmm,
    Because, you are using YYYY for '09'.
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/RRRR'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/2009
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/YYYY'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/0009Or with Add_months
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/YYYY'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/0012
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/RRRR'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/2012-Arun

  • Multiple objects to have the same rollover state at the same time (but link to different pages)

    Hi,
    I have a mac
    I would like to know how i can have multiple images with the same rollover states - but which show up at the same time on more than one image, (but each item to have its own linking property applied to it)?
    see image below: i want both box 'A' to pop with the same rollover state even if I'm hovering on just one of the boxes. But i want each of the boxes to link to different pages in my website.
    Ive tried grouping the images and moving them to their own layer, but the rollovers aren't 'linking' together on multiple objects
    help!
    thanks

    It's not, but you don't need that to achieve the behavior you've described. A1, a trigger, will have the states and hyperlink you desire. On rollover it will show its rollover state and will show its target container which will be directly on top of A2. It will look like a rollover state for A2. Repeat this for A2, B1 and B2 and I believe you achieve the behavior you've described. It's just a different way of approaching the problem (that happens to fit the tools available in Muse).

  • How I add a LIBRARY ITEM to a page layout, top/bottom ?

    how I add a LIBRARY ITEM to a page layout, top/bottom ? in
    dwmr mx 2004 and cs4 ?

    Have you looked at the DW help file - it will explain all
    about library items :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    CSS Tutorials for Dreamweaver |
    http://www.adobe.com/devnet/dreamweaver/css.html
    Book: Ultimate CSS Reference (aff link) |
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap
    "lse987" <[email protected]> wrote in
    message news:gpsvtt$t5q$[email protected]..
    > how I add a LIBRARY ITEM to a page layout, top/bottom ?
    in dwmr mx 2004 and cs4 ?

  • How to add norwegian language to my ipa-file in Adobe Flash Professional and Settings for AIR

    Hi,
    How to add Norwegian languages to my ipa-file in Adobe Flash Professional and Settings for AIR?
    The Norwegian users get my apps in english instead of Norweigan. Desperate for help!
    Regards Ylva

    Sorry but you will not get help here for that problem. This forum is about AIR Help, an online help format produced using AIR, it is not about AIR itself.
    I'll see if I can move it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to add 'Confidential' watermark to all the pages in portal

    Hi
    How to add 'Confidential' watermark to all the pages in portal.We have ESS/MSS business packages installed 60.1, 60.2.
    ECC5, EP SP16 is the environment.
    Help will be appreciated
    Thanks
    Sharath

    Hi Sharath,
    What about using the theme editor to add a background to either the page or the iView tray?
    Daniel

  • IBook Author: my pages' background are 100% boring white. How to add texture to my book's pages?

    iBook Author: my pages'  background are 100% boring white. How to add texture to my book's pages?

    See this thread for the answer.
    Cheers,
    Michi.

Maybe you are looking for

  • How can a mount a NFS share exported from OpenBSD?

    Hello Apple Discussions: I've been experimenting with NFS in a mixed OS environment, and have been successful exporting nfs share with tigerserver, and mounting it on both a powerpc linux system, and on a powerpc openBSD system. Likewise, I can expor

  • Issues with buttons in interactive pdf (CS4)

    Hi there, I'm working on an interactive pdf that is going to be used cross platform. I'm working with ID CS4 (6.0.6) and Acrobat CS4 (9.4.4). I have some issues with the buttons I've created that I need to solve. The buttons are contours made in AI a

  • Image.source in ItemRenderer works in Windows but not Mac

    I have a Flex (AIR) application that is giving me problems on the Mac. In one of the Datagrids, I am using an ItemRenderer with an image control. Some code in the "set data(value:Object)" function assigns a file path as the source of the image contro

  • Problems with template and page links..

    Hello community! I'm pretty new to dreamweaver Cs4 and am having a slight problem. I have my template.dwt file and 5 other pages which use this template layout. However when I preview my website in my browser, the template.dwt file links to all the p

  • How do i install epson stylus NX420 series printer

    I was given Epson Stylus NX420 3 in 1 printer with my MacBook Pro and would like to set it up but when I insert the disc it comes out.  How do I go about downloading the disc to set up the printer?  Wireless.