One swf to another

I don't know if this can be done but here it goes. I have 2
flash anamation on my site. Both have several scenes in them. My
question is? When linking over from one swf. to another. Can you
script it to start at a specific scene or must you start at the
begining of the swf.
Thanks

from the loaded swf's main timeline:
MovieClip(parent.parent)
will reference the timeline to which the swf's loader has been added.  so, to reference a variable (eg, scoreVar) on that timeline, use:
MovieClip(parent.parent).scoreVar

Similar Messages

  • How to call one .SWF from another?

    How do I call one .SWF from another. I built a very beefy
    base .SWF, and want to add music overlay, and an intro slide show
    to the exsting Flash animation, but put it in a second .FLA/.SWF
    file. How do I call one from the other?
    This will be embedded in an HTML file but I assume this is
    superfluous to my question.
    F.Z.

    I think you should open that Another SWF (FLA),
    and add some actionscript..
    For example, you could create a movie clip, and write
    actionscript in the
    first keyframe:
    loadMovie("
    http://www.somewebpage.com/movie.swf",
    this);
    "FredZimmerman" <[email protected]> wrote in
    message
    news:ftnjas$mj5$[email protected]..
    > How do I call one .SWF from another. I built a very
    beefy base .SWF, and
    > want
    > to add music overlay, and an intro slide show to the
    exsting Flash
    > animation,
    > but put it in a second .FLA/.SWF file. How do I call one
    from the other?
    >
    > This will be embedded in an HTML file but I assume this
    is superfluous to
    > my
    > question.
    >
    > F.Z.
    >

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

  • Is there any way to pass value from one SWF to another ?

    I am doing project using flash, now I cant pass a value from one SWF to another, is there any way to pass value from one SWF to another.
    thanks

    Hi,
    Just to confirm here do you simply want to communicate between two SWFs without involving Flash Media Server. If this is the case one good way of doing it is to use a local connection. It can be used for direct communication between two separate instances of the flash player. However if you want to involve multiple clients sharing a common variable then you may have to use Shared Object for this. Please let me know what is the actual use case, is it multiple clients sharing a common variable or different player instances communicating between themselves.
    Thanks,
    Abhishek

  • Load one swf after another?

    Hey!
    I've created a presentation in Flash that exceeds the maximum number of frames. I broke it up into a few different files, and now I need these .swfs to load one after another automatically, without prompting or clicking anything on the screen.
    The presentation is for an interpretation program at work and will be played for an audience several times a day. It was originally a 6-slide-projector presentation that I simplified, and this is the last step to replacing the old projection system altogether.
    Does anyone know how to solve my problem, as simply as possible?
    Thank you!

    you'll probably want to load them all at the start of you presentation so they're ready for display without waiting.
    so, use standard preloader code to load your swfs.  use a loop or dispatch an event to detect when one ends and another needs to start.

  • How to merge  one swf to another

    Hi,
    I want to merge two swf file in to a single swf file, how i
    can achieve that , since i have done some part of my project
    modules in cairngorm framework and other parts of module i have
    coded with out using any frame work, intern both the module
    generates separate swf file, i just want to merge these two swf
    files in to single swf file so that i can get whole project in a
    single swf.
    Regards
    Kumar

    To have one application SWF load another application SWF, use
    the SWFLoader component. If you have in fact created Flex modules,
    then use ModuleLoader component.

  • Trouble playing one swf inside another

    All,
    I'm trying to load a SWF and play it inside another SWF.
    Both SWFs are targeted to use Flash Player 8, and AS 2.0
    So, in the parent, I've got code that looks like this:
    var movie_mc:MovieClip =
    this.createEmptyMovieClip("movie_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("someothermovie.swf",movie_mc);
    function onLoadInit(target_mc:MovieClip):Void {
    target_mc.play();
    When I run this in the Flash IDE, it runs beautifully.
    However, when I try to play the movie in a browser, the inner
    movie
    plays for a few frames, then just stops playing.
    So potentially relevant facts -
    - Both movies are set to run at 30 FPS
    - The inner movie is about 2,700 frames long
    - The inner movie has an audio track embedded on one of the
    layers
    - The audio track has sync=Stream
    I'm definitely sure the inner movie has stopped playing - I
    set an
    interval in the parent movie that checks the inner movie's
    _currentframe, and displays it in a text field - sure enough
    - it gets
    to about frame 25, and just stops.
    Notably - if I remove the audio track from the inner swf, the
    entire
    thing runs perfectly, both in the Flash IDE and in a browser.
    So, i'm assuming the audio track embedded in a layer, and/or
    Sync=Stream has something to do with this?
    Any advice or insight is MUCH appreciated!
    Cheers,
    Matt

    All,
    I'm trying to load a SWF and play it inside another SWF.
    Both SWFs are targeted to use Flash Player 8, and AS 2.0
    So, in the parent, I've got code that looks like this:
    var movie_mc:MovieClip =
    this.createEmptyMovieClip("movie_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("someothermovie.swf",movie_mc);
    function onLoadInit(target_mc:MovieClip):Void {
    target_mc.play();
    When I run this in the Flash IDE, it runs beautifully.
    However, when I try to play the movie in a browser, the inner
    movie
    plays for a few frames, then just stops playing.
    So potentially relevant facts -
    - Both movies are set to run at 30 FPS
    - The inner movie is about 2,700 frames long
    - The inner movie has an audio track embedded on one of the
    layers
    - The audio track has sync=Stream
    I'm definitely sure the inner movie has stopped playing - I
    set an
    interval in the parent movie that checks the inner movie's
    _currentframe, and displays it in a text field - sure enough
    - it gets
    to about frame 25, and just stops.
    Notably - if I remove the audio track from the inner swf, the
    entire
    thing runs perfectly, both in the Flash IDE and in a browser.
    So, i'm assuming the audio track embedded in a layer, and/or
    Sync=Stream has something to do with this?
    Any advice or insight is MUCH appreciated!
    Cheers,
    Matt

  • Preserve frame rate when loading one swf into another

    Is there a way to preserve the frame rate of a swf when
    loading it into another swf that plays at a higher frame rate. I'm
    loading some flash ads that mostly run at around 12-15 frames a
    second into a portfolio site that runs at around 40 frames per
    second. All my ads play too fast. The link is:
    www.dg8tal.com/portfolioidea.html
    Thanks!

    As far as I understand it, there is no option to override the
    frame rate designated by the main movie you are loading into. The
    SWF file you are loading always inherits the framerate of the SWF
    you are loading it into. Here are some suggested work-arounds that
    might help:
    1) Lower the frame rate of the main movie on the website that
    you are loading into.
    2) Expand the timelines of the advertisements just for use in
    your portfolio
    3) Put your menu and thumbnails in one HTML frame that can
    then load each item in another HTML frame above it. Since each SWF
    would load on its own, the framerate of your main swf would not
    matter. You would lose your nice resizing effect though unless you
    did some more complicated integration with javascript I imagine.
    I would recommend going with option 2, since that will take
    the smallest amount of work while preserving your overall design.
    However, with the faster framerate, your advertisements would have
    difference performance characteristics that you'll need to assess.
    I'm trying to think of more options, but these seem to be the
    first things that come to mind.

  • Problem loading one SWF into another in Flash AS3

    I am trying to load an SWF file in another SWF file. The child SWF file works fine when run standalone like if I set visibility of an item to true or false, it works fine. But when the SWF is loaded into a parent SWF, I am not able to execute such commands, neither I get any errors...

    are both swfs as3 swfs?
    is the code in the loaded swf and is that code referencing objects in the loaded swf?

  • Question? How to make one swf initialize another swf?

    On my website i would like to have my main swf which has a button that links to a contact form. This main swf is in its own div and i want to have another div with a contact form swf file that i created.
    So i want the first swf's contact button to load the contact swf in the other div.
    question is how would i change the current contact button from loading a link to a html page into a button that loads the swf in the other div?

    again,
    you need to know some javascript.  at least, enough to assign innerHTML to your div or learn some jquery.
    then you need to look-up the external interface class.
    neither of these are easy if you're just starting with flash and/or just starting with javascript.
    i don't think anyone will do this work for you unless you hire someone or find a friend that will do it for you.

  • Stop music playing in one swf when another swf starts

    Hello Flash developers please help me here.
    On my main SWF Home  File i have 2 swf files are loaded into my (main home swf)  and everything is runing smooth BUT the problem is when i want to  watch the video the music is still playing i have to click on the button to stop music playing.
    what i want is when i click on the video to play i want automatically the music to stop playing with out me clicking the mp3 button to stop the music playing.
    NOTE
    Keep in mind i have 2 SWF files that are loaded in to the main swf file ...
    Home SWF is the main file
    MP3 SWF   <<   Loads on Home SWF
    Video SWF <<    Loads on Home SWF
    All i want is when the video is playing automatically stop the music and when the video is finish the music automatically continuing from where it was left.
    Thank you so
    AKAoshi1

    I don't know how to do this. I have 4 files. file one calls file 2 when the Next at the end of file one is clicked, file 2 calls 3, etc. The reverse is true with the first Previous for files 2 - 4. Can I get some guidance?
    Thanks

  • Controlling one swf with another

    Ok here's what I'm trying to do.  I have speant quite sometime on it but can't seem to find a good resource for the solution.
    I have a site I am working on which has a Flash intro.  The other pages of the site hold a menu that's created in Flash.  For some reason my client wants the ability to go back and view the intro again, which is easily accomplished with navigateToURL.  HOWEVER the intro is broken into two distinct parts and I need to target the second part, which would require something along the lines of gotoAndPlay(500); or something to that effect.
    What I am having problems with is how do I target a specific frame in a completely different movie, the intro, using a button from the Flash menu within the site.  I'll try to explain it a bit easier.  The top button on staticMenu.swf, which is placed throughout the site (aboutus.aspx, portfolio.aspx, etc...) needs to target frame 500 of mainIntro.swf which is embedded in default.aspx.
    Any help would be greatly appreciated.  It make keep me from beating my head off the wall in the future... =)

    you can pass the frame to play in a query string, use javascript to parse the javascript and use the externalinterface class to evaluate the query string in flash.  if it's there, goto frame 500 (assuming frame 500 is loaded - ie, you'll need a preloader), otherwise don't got frame 500.

  • Send varible vaue one swf to another(child) swf??

    Hi I have made my project in diffrent flash files but now i m stuck to get data from child.swf to index.swf.

    In your index file declare variables like
    var datafromchild:String="";
    and from your child swf write as:
    MovieClip(root).datafromchild="your name";
    MovieClip(root) depends upon the level sometimes it would be MovieClip(parent.parent).datafromchild="your name" based on the nested movieclips.
    This is a simplest method, but if level increases it will be worst to store and retrieve. also have others feedback also may be you will get some simple methods too.
    Note: there is no global variable in AS3 like AS2

  • How to pass a "Button" reference in one swf to anthor swf file?

    Dear all:
    Please let me describe my problem first.
    In my application, there are two swf files:"sender.swf" and
    "receiver.swf"
    A button named "re_Button" is in "receive.swf", and now i
    wanna operate the "re_Button" through the "sender.swf".
    How to do this?
    Can I access the "re_Button" reference through another swf
    application??
    And I've tried the "locaconnection" class, but it doesn't
    help.
    AnyOne helps me?
    Thanks in advance -_-

    I tried the localconnection class:
    1).Sender.as:
    private var send_tf:TextField;
    private function sendMessage(event:MouseEvent):void {
    conn.send("myConnection", "lcHandler",send_tf); // to send
    the "send_tf" reference to the "Receiver"
    2). Receiver.as
    public function lcHandler(tf:Object):void {
    tf as TextField ==null // here, i find that the "send_tf" is
    not a "TextField" any more!!!!!!!!!!!!!!!!
    I wanna operate one instance reference in one swf from
    another swf.
    Is it possiable??
    Thanks in advance.

  • Fading between two pages & controlling one MC from another.

    Let me see if I can explain this properly. I usually use a motion tween and the alpha channel to fade movie clips in or out. What I am currently trying to do is fade one page out and another in, but it could be one of several MCs. I basically have four "pages" for a website including services, portfolio, about, and contact. I have icons on my navigation bar (which is going to be imported into my XHTML seperately so it can float them according to the users window size). The icons need to navigate between the pages and the pages need to fade in and out (eg. fade in the Services MC when the user clicks on the services icon, and fade out of it and into the Portfolio MC when the user clicks on the portfolio icon). Please keep in mind that the icons and pages are in completely different .fla/.swf files because I couldn't figure out how to float them in Flash after several hours of looking around online, but know I can easily do it using div tags + CSS in XHTML.
    If someone could quickly explain how to "gotoandplay" a label in a different .swf file (communicate between the .swf NavBar and my main .swf) as well as fade out of the current MC (whichever page the user is currently on) before fading into new page (according to the icon the user clicks on), I'm sure I could 'fill in the blanks' from the rest of the AS3 and Flash I already know. The page also needs to fade out of whatever page it's currently on when the user clicks on the hide button (located on the page in the main .swf file). There is also several subpages on each page (which shouldn't be a big deal if I can figure the rest of this out).
    I'm going to be using this same concept for nearly all of the websites I design & develop in the future and really need to know how to do this for the current site I'm working on. I would greatly appreciate any suggestions on how to accomplish these two things.
    P.S. Please keep in mind I'm not an advanced user in AS3, but am very computer savy, and have done my share of programming in the past. I looked around for hours online to try and complete this without using the forum, but have come up with links to dead tutorials and short answers left and right. I'm hoping I won't come across the same here.
    From what I've read so far I believe I can use tweening in ActionScript instead of a motion tween on the timeline to fade in and out of clips and believe that's the method to use to accomplish what I'm trying to do. Correct me if I'm wrong though.

    I'm not looking for a "tutorial created especially for me".... Just perhaps someone that can copy and paste some code from a similar project that they have done so I understand how to do it.
    You could have simply put here's a tutorial for how to use TweenLite to crossfade between four pages, and here's one that will let you pass information between two .swf files. If you recently watched the tutorials then it wouldn't take long to find them (maybe you have them bookmarked) and post a couple links.
    Anyways, I just found an excellent tutorial on how to crossfade using TweenLite (found here) and an article that explains how to pass information from one .swf to another (here). It took some searching and knowing exactly what I was looking for to find them, but that's a much better answer for someone looking to do those two things than I've found here (or elsewhere for that matter).

Maybe you are looking for

  • Looping Background Movie Clip

    Hi i am having trouble with having a looping background movie clip on the bottom layer of my flash project. I have it on the bottom layer in the first frame, above it i have some menus fading in and it seems as though once it gets to this scene, it j

  • Table for previous period stock

    Please provide me the table name or report from which I can get only quality stock in previous monht I just need the quality stock in previous month need a table

  • Cisco 2811 routers to route video over ip for polycom equipment.

    Hi forum, We are currently using polycom equipments over ISDN links for video conferencing, however, we intend to switch to our EIGRP E1 lines for that. all our sites are currently using 2811 routers to route both data and voip traffic. How do I prov

  • Import of Profitcenter not possible

    Hello experts, I would like to import some profitcenter after updating of SAP from 8.8 to 8.81 PL05. Since 8.81 there are some more fields by profitcenter like the field EffectivFrom. This field need a date format. Normally DTW needs alwayss the foll

  • Ack grep.

    Perl tool `ack` - the better grep.