Linking between SWF files

I need to general advice while protyping my website. I'm
creating separate somewhat large swf files for each page of my
website. Therefore, each will need its own html file if I don't
want it take 3 years to go between pages. I'm confused how to link
between the each page using a button in flash. Is this an action
script thing? My links will be static text buttons. Thanks.

Thanks. I think I get it, but I want to be sure. I think I
need to be a little clearer:
One SWF file inserted as my entire index.html page. Right now
I have a static text button in the SWF file home page that says
"About Us". I'm designing a new page that will also be its own SWF
file for "About Us". I have a new www.xxxxx.com/aboutus.html page
that I plan to put the file in when finished. In the text button on
the homepage, do I use AS3 URLRequest("
http://www.xxxxxxx.com/aboutus.html")
to navigate. Thanks.

Similar Messages

  • Link between swf files.

    Hello. I need to find a way to link multiple .swf files, so I may have a menu and after clicking a button go from there  to any swf file and back. But i need something that works in AS 2 and 3 because my files are in both ActionScripts. It shouldn't be a problem, right? Ive been looking for and trying different things but i can't do it.
    Hope someone can help
    Thanks.

    Also I have this code that works in AS3 but only for one button, when I try to make another one flash marks error. I cant link another button with another file.
    var loadedSWF:Loader = null;
    * Loads an SWF and adds it to container once complete
    * @param file The URL to the SWF to load
    * @param container The container to add the SWF to
    function loadSWF(file:String, container:MovieClip=null):void
        if(container == null) container = MovieClip(root);
        // removes the previously loaded SWF
        if(loadedSWF != null)
            if(loadedSWF.parent) loadedSWF.parent.removeChild(loadedSWF);
        var req:URLRequest = new URLRequest(file);
        loadedSWF = new Loader();
        loadedSWF.load(req);
        addChild(loadedSWF);
    mybutton.addEventListener(MouseEvent.CLICK, _click);
    function _click(e:MouseEvent):void
        loadSWF("myfile1.swf");

  • Passing data parameter between SWF files

    Hello Xcelsius Gurus,
    Is it possible to pass data parameter between SWF files?
    If possible, how to achieve it?
    Thank you.
    Justine

    Hi,
    Thank you for the reference.  Little bit confused, please let me clarify. 
    I do not understand how the receiver SWF receieved the data parameter and process.
    For example, I have a parent dashboard and a child dashboard.  In the parent dashboard, I have set up combo box to filter the data.  And I want the data that I have selected in combo box to the child dashboard.
    To do this, first I need to setup the flash variable at the parent dashboard to fetch the data I selected.
    After this, how to link this data to the child dashboard?
    Furthermore, after the child dashboard received the data parameter, I need this data to insert into the spreadsheet so I can filter the data.  Is this possible?
    Thanks.
    Edited by: Justine Liu on Jan 19, 2010 3:11 PM

  • Linking between swf's - file size problem

    I"m building a presentation & have two separate swf's. One is about 80 mb, the other is 40 mb. When I tried to export the larger one, I got a warning that it exceeded 16k frames. I figured out how to work around that. But now I need to integrate both swf's. If I take the smaller one & import it into the larger one as a new scene, will that blow up my export ability again? Can I link between two separate swf's using some sort of gotoAndPlay function? What are my options here? Any help is appreciated. Thanks.

    Gotcha. Thanks!

  • Problem with link in SWF file

    good day to you all in this great forum
    my name is james and i want to see if i can find help here in the forum for my problem.
    I'm building a site for my friend. (the site is in hebrew so sorry....)
    for the site building I'm using the software iweb - on mac.
    the site is almost complete but i have 1 big problem.
    this is the link to the site - [URL="http://www.skip-up.com"]skip-up[/URL]
    I'm using a head menu in flash
    i have this flash from some template i downloaded from the internet and all i had to do is change the buttons names and to change the links of the buttons to point to my html pages.
    and now to the problem :
    to get to the problem in general - the flash head links don't work
    if i press it in the site on godaddy nothing happens i just don't see the flash head and instead i dee a page that says something like "the page can not be found"
    if i go to my desktop to my site directory and press the links the only thing that happened is that the button is changing the color like I'm in the right page but I'm still in the original page.
    and the strange thing is that by if i only open up the SWF file and press the links are working
    and it's open up my browser and to the right page
    1. you can see the structure of the site here in this page :
    [IMG]http://farm4.static.flickr.com/3442/3962332346_432d004df2.jpg[/IMG]
    what i have is the master index.html and 2 directories : - the first one
    called flash and have 1 flash file (this file is o.k with no problem)
    and the other directory had all my site files
    2. like i said i got the original FLA file and all i did is changing the buttons
    names and changing the links of the buttons
    the links i changed in the actions menu - i just searched for the original
    url and change the names to much my website html pages names
    3. here is the original FLA actions menu - you can see that I'm standing on
    one of the links :
    [IMG]http://farm4.static.flickr.com/3483/3961893129_2b8fc4ecd9.jpg[/IMG]
    and here is my fla after the changes - as you can see i just changed the
    name:
    [IMG]http://farm3.static.flickr.com/2544/3962668872_8693f399ba.jpg[/IMG]
    4. i uploaded all my site (it's small zip file) if someone wants to see more
    i tried to describe everything in details because it's very important for
    me to find a solution [URL="http://rapidshare.com/files/286059228/skipupsite.zip.html"]skip-up site download[/URL]
    I'm really hopping there's somebody that will be kind to help me out
    thank you very much

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • Direct link to swf file in IE

    I have a setup where i am trying to make a hyperlink on a page that is to a youtube swf video load in an iframe on the same page. It is working successfully in firefox, but in IE it just gives an option to download the file and doesn't load it in the iframe.....i am wondering if there is any quick fix to this...or is there a way to make it where the hyperlink i have on the page, instead of going directly to the swf file, loads the embed code that is listed on youtube in the iframe...basically can you hyperlink to a youtube embed code

    Post a link to the page so we can see it.

  • Linking between jar files

    I'm trying to create links between topics of different jar files but cannot get it to work.
    have tried a few different ways to do this:
    <a href="jar:file://../jarfilenam.jar!/htmlfilename.htm">
    <a href= "../jarfilename.jar!/htmfilename.htm">
    <a href="/jarfilename/htmfilename.htm"> none work. Any insights?
    thanks
    Margaret

    Hey Margaret,
    we have the same problems. Did you found a solution?
    The funny thing is: sometimes a reference in the style
    works - but not constantly! We had three references in this style in one html-page and the first one of them works in our development environment. In the productive environment (with WebStart-technology) no link works. It's also not clear, to witch object the path should be relativ: from the folder, the HTML-page resides? Do you need one more "../" to step outside the jar?
    By the way: does anyone knows, how JavaHelp finds it resources like GIF's, wich are referenced from HTML-pages? If I have the same filename in more than one JAR, it's normaly not defined, which one is loaded with the getResource-method of the class loader, or am I wrong?
    We have different JAR-files with same resources, for example "hallo.gif". In each JAR-file is a HTML-page, wich loades this GIF. If I delete the GIF in one of the JARs, the HTML-page in this JAR doesn't display the GIF. The other HTML-page works still fine. It looks like the resources are only searched in the same JAR. Am I right??
    thanks
    Olaf

  • Link two SWF file

    I have a slider control in 1.swf file and another slider controler in 2.swf . I want link these two sliders, 2nd one should respond to the 1st one .How to do that please help.........

    In what way are these two files implemented such that they both exist at the same time?

  • Overlaping sounds between SWF files

    Hi there!
    I'm making a serie of animations at my work. Each animation is a different SWF file (with a different background music) and they are all linked by a "Menu".
    The music was placed in a single layer of the first scene of each animation by using "Sync: Start > Loop". Although it is only in the first scene, the music keeps playing during the other scenes. That's no problem at all for me!
    But when I navigate through the files, each file's background music keeps playing, even though it's not running any more. So, in a certain moment, there are 3 or 4 sounds playing at the same time.
    Can anyone help me? Please! =P

    Actually, solved this adding "SoundMixer.stopAll()" inside AS code of the button that I've created to change from scene to scene.
    But thanks anyways, Ned Murphy!

  • Linking to SWF file

    Hello,
    I have no problem linking movies together, but is there any
    way to make it so that when I link to a movie it opens the SWF file
    instead of the HTML file?
    Thanks to anyone who can help me with this.

    You are welcome. Nothing wrong with your boss wanting to
    operate the LMS from SWF LOs embedded in HTML documents. But the
    boss's decision to serve the SWF from a container not intended nor
    constructed for it, is, er, um, uh, less than the wisest possible
    choice that might be made.
    You know the problem and I've given you the solution. If your
    boss is basing his or her decision on knowledge I am missing, ask
    him or her to drop me a line and explain ... my email address is in
    my profile at left, and all the boss has to do is include a link to
    this thread in the body of the email.
    I can't help beyond that, and wouldn't bother anyway, knowing
    ahead of time that your boss will direct you to ignore any advice
    other than his or her own anyway. Shucks, I don't think I'd want to
    take advice from a guy like me, either! Have a great day, in any
    case!

  • Linking from SWF files to web pages

    Hi
    I'm using the latest Flash CS3.
    Basically, I want to link from the SWF file to a webpage.
    Here's what I've done so far.
    Created the FLA file, imported the quicktime movie into it
    etc etc.
    I've then added a behaviour by clicking on the inserted
    movie, then BEHAVIORS >WEB> GO TO WEB PAGE> and filled in
    all the relevant text for the link.
    Then I have saved the file. Then I have published then OK.
    I have embeded the SWF file in a web page, but when I click
    on the movie, it shows there's a link, but it won't link to the
    webpage.
    What am I doing wrong? I dont understand.
    Can't get my head around this!
    When I go to the FLA file, then publish preview > flash,
    and the movie appears on its own, the link works... but the SWF
    file doesn't.
    Basically what do I need to do to make it work.
    The coding I am using in my web-page is:
    <p align="center"><center>
    <object width="165" height="100">
    <param name="movie" value="
    http://homovision.media7london.com/wordpress/Newcontribute.swf"
    />
    <embed src="
    http://homovision.media7london.com/wordpress/Newcontribute.swf"
    width="165" height="100" />
    </object>
    </p></center>
    The movie plays, the "link hand" appears above it, but when
    it is clicked nothign happens.
    Any help would be greatly appreciated.
    Simon

    Did you inport to the stage and put a stop (action script) on
    the frame?

  • Linking a SWF file after its been created

    I have a client that sent me a SWF file that they want to
    display on one of our sites.
    The SWF did not include an embedded link.... is there a way
    to add a link betweent the <object> </object>
    reference?
    I can not import the file into flash and add it myself to the
    AS becuase of the unique fonts used in the banner.
    Please help with this if you can. Much appreciated...

    The user is a Change Manager and is definitely a member of the Security role. I thought it was just a SM thing where after you create the CR, you can't go back and change the approver list. That is what this user is trying to do I think. Go into an existing
    CR that was created and update the approver list.

  • Sharing data between swf files

    Hello,
         I have a login.swf file which authenticates the user. Once login is successful I want redirect to loggedin.swf file and pass some user information to the loggedin.swf?. How do i do it? I dont want to use shared objects as users may prevent saving  on to local machine. I dont want to send it in URL either. I want something like hidden variables in html. Is it possible.
    Thanks,
    Bharani

    Hi
    I have mutiple swf files in single page each having its sound attached to it.
    Now I want one sound to play at a time while all rest swf's sound to be mute.
    When user clicks second swf then first swf sound to be mute and second's swf sound to play and all rest swf to mute.
    Similarly when he clicks third then third's sound to play while rest all swf to be mute.
    I have already implemented swf with sound attached.
    But they all are playing at a time.
    How this control can be implemented ?? Number of swf files can vary.
    Any help??

  • Communicating between swf files

    movie1.swf has a loader component named myLoader.
    can movie2.swf contain a button instance that will tell
    movie1.swf.myLoader what to load?

    It shouldn't. If sub.swf is truly loaded into _level1 then it
    has no _level0, really this is correct!
    Are you sure you are loading into a _level and not onto a
    depth? Many folks mix the two up.
    If you are having a lot of trouble with this it is generally
    a good idea to set your current project aside for the moment and
    start with a fresh slate. I created two swf files.
    test1.swf has a blue square and code to load an external clip
    into _level1 the code is:
    loadMovieNum("test2.swf",1);
    test2.swf has a movieclip instance of a red circle and the
    following actionscript:
    myClip.onRelease=function(){
    _level0._alpha=50;
    When test1.swf is run I see both my blue square and my red
    circle. When I click on the red circle only the blue square (the
    art work on _level0 from the original swf) is made 50 percent
    opaque. The red circle remains as it was.
    You might want to try a similar test, starting with something
    like I have and moving it toward what you are trying to achieve.
    I'm not sure I understand your
    _level0.myVariable.goDoThis()
    syntax. myVariable seems like a property and properties don't
    usually have methods so I don't quite get it. If myVariable is a
    variable defined in the sub.swf then maybe you need this:
    _level0[myVariable].goDoThis();
    ???

  • Button to b clicked and large image shown on the stage(link to swf file here)

    I have a button when clicked is supposed to show a larger image of the button/ I am new to the code and think if I could see and example it would help. This is a school project. I am failing as of now.
    how do I upload my files to here so I can show   http://threadcontent.next.ecollege.com/(NEXT(54b34a37e8))/Main/CourseMode/Thread/DownloadA ttachment.ed?virtualFileId=961613945&GoldenTicketParams=_u=8538800;_dt=634657009144447173; virtualFileIDs=956864518,956864621,956864990,960296914,960355361,960465721,960465764,96037 9092,961379343,960908613,961013978,961014291,961613945,961035853,961618981,961042519,96144 4490,961569920,961629398,961629452;&GoldenTicketSignature=35-AA-34-CE-10-A6-FD-4F-D1-DD-73 -4C-A9-EF-8D-9D-63-E5-87-88-FB-D4-4D-15-06-BB-82-8A-9E-F2-36-DC
    I believe this is the download link to the swf I have you can see the buttons click and sound and over and when pressed they are supposed to show the larger image of the buttons original image that you see before you hover

    stop();
    trail_btn.addEventListener(MouseEvent.CLICK,
    trail);
    function trail(event:MouseEvent):void
        gotoAndStop(10);
    and the link I gave is the download link from my class at AI Online its perfectly fine

Maybe you are looking for