Exporting to one .swf when including other swf animations

Hi
When exporting my project to flash, three files are created.
I am not using any skins etc, I am just trying to incorporate two
animations (one per slide) and finish with one overall .swf file.
I have managed to do this in two other slides, though! Which
is most frustrating!
So just to reiterate:
When I publish the file, the two animations I am using are
exported again along with the rest of the publication. So I have
the main swf, which calls in the other two .swf animations when
required. I need to have just one file as a result.
Please help!!

Welcome to our community, t1mmie
Are you referring to the supplied animations? (Arrows,
Highlights, etc)
If so, there are a few that refuse to embed. For those, you
need to edit the source files in Flash and export from Flash as
Flash 6 format. Once you get them in Flash 6 format, add them again
and they should embed.
You may download the source files for animations that don't
have the source from the Captivate Exchange.
Click here to
visit the Captivate Exchange.
Cheers... Rick

Similar Messages

  • Main SWF that calls other SWFs convert to .mov, .avi, or .wmv

    I have a SWF demo that calls multiple SWF files & 3 FLV files. I want to upload this to Facebook as one file - .mov, .avi, .wmv - whatever works.
    Does anyone know how I can do this?
    Thanks in advance.

    I don't know if facebook supports all those files as they are right now, because making them all one mov is very hard. You will have to import all of them in one flash file and place everything on the main timeline (to export as video file from flash) you need every animation placed on the main timeline. And that will be very hard to import all of them and then rebuilding all together so they work properly.
    One other solution would be to open your demo, use a video recording software as Camtasia (maybe you can find a free one) to record all of that content then mask the unwanted parts and exporting all as one video file.

  • I want to hide all layers other than one layer when I play swf at first.

    Hello. I am using Adobe Flash CS6 and AC2.
    Right now I am trying to hide all layers other than one layer. There are 3 layers on my fla file like this.
    Layer A
    Layer B
    Layer C
    I want to keep hiding  Layers B and C unless  I click a button that makes layer B and C visible.
    Layer A has a movie clip symbol, and it contains animation movie where a man  is running.
    And Layer B and C has a movie clip where people  are chasing the person who is running on Layer A.
    I mean, if I load swf file at first, there is only one person who is running, and when I click a button two people appears on a stage and they start to chase the person who is running on layer A.
    What kind of script should I use to make this setting? Please give me your advice.
    Thank you in advance.

    Here is a simplified version of the code, including the two lines needed to make them invisible at the start....
    b_mc._visible = false;
    c_mc._visible = false;
    b_btn.onRelease = function():Void{
              b_mc._visible = !b_mc._visible;
    c_btn.onRelease = function():Void{
             c_mc._visible = !c_mc._visible;
    What that version of the coding does is simply tell the object to acquire the opposite ( ! ) value of the current _visible property.
    Notice also that I have removed the "_root " references inm the code.  You should not make a habit of using it unnecessarily.  If the code is in the main timeline already (the _root), there is no need to target it, and doing so can lead to problems if you ever need to load this file into another.  If that code is not in the _root timeline then it is okay to use _root, though using "_parent " references can be safer for the same reason.
    The way you had the code written is not wrong, but it was excessive in that you do not have to test the condition twice like you did, if it is not true then it has to be false.... 
    if(c_mc._visible){ 
          c_mc._visible = false;
    } else {
          c_mc._visible = true;

  • Load internal SWF and control other SWF

    I have 96 questions with radio button responses that control
    movie clips. They are all in the same swf but I want to separate
    the questions and put them in a draggable, scalable movie clip so
    that the user could move the question box as convenient. Most of
    the ActionScript is associated with the MCs, responding to a radio
    button listener object. The two SWFs must advance from frame to
    frame synchronously.
    Here is what I did:
    1. Split the original FLA into 2 pieces, a MC FLA and a
    Question FLA
    2. Renamed rbListener as _global variable in MC FLA
    3. Used this code in the MC FLA:
    this.createEmptyMovieClip("loadQuestions_mc",
    this.getNextHighestDepth());
    loadQuestions_mc._height = 400;
    loadQuestions_mc._width = 600;
    loadQuestions_mc.onPress = function():Void {
    this.startDrag();
    loadQuestions_mc.onRelease = function():Void {
    this.stopDrag();
    loadQuestions_mc.createEmptyMovieClip("containQuestions_mc",
    this.getNextHighestDepth());
    loadMovie("mccolor4_SplitBottom.swf", containQuestions_mc);
    4. Used this code in the first frame of Questions FLA:
    function specifyListeningTargets () {
    i = cellNumber;
    eval("QA" + i).addEventListener("click", rbListener);
    eval("QB" + i).addEventListener("click", rbListener);
    eval("QC" + i).addEventListener("click", rbListener);
    // Button pops up at x:400, y:600, What is 10? Depth?;
    clicking button advances to next frame.
    function popupNav () {
    i = cellNumber
    if (((eval("QA" + i).selection.data) > 0),
    ((eval("QB" + i).selection.data) > 0),
    ((eval("QC" + i).selection.data) > 0)) {
    this.createClassObject(mx.controls.Button, "popupNext_btn",
    10, {label:"Go To Next Questions"});
    popupNext_btn._width = 20;
    popupNext_btn.move(250, 375);
    function popupClicked() {
    this.nextFrame();
    _parent.nextFrame();
    popupNext_btn.addEventListener("click", popupClicked);
    5. Used this code in each frame of the Questions Fla:
    stop();
    cellNumber = 1;
    popupNext_btn._visible = false;
    popupNav ();
    specifyListeningTargets();
    Text

    yes and yes: wait until loading is complete and then
    reference the target movieclip or _level of your loadMovie(),
    loadMovieNum() or loadClip() method.

  • Disable one radiobutton when the other radiobutton is checked

    hi
    i have the following selection screen
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-001 .
    PARAMETERS : p_qlt TYPE c RADIOBUTTON GROUP g1 USER-COMMAND ucom DEFAULT 'X'  .
    PARAMETERS:
        p_sysnam TYPE tmssysnam MODIF ID m1. "system
    SELECTION-SCREEN SKIP 2.
    PARAMETERS : p_sys TYPE c RADIOBUTTON GROUP g1 . "MODIF ID r1
    SELECT-OPTIONS: s_date FOR  e070-as4date MODIF ID m2. "date
    SELECTION-SCREEN END OF BLOCK block2.
    when p_qlt is checked, p_sys and s_date should be grayed out.
    when p_sys is checked, p_qlt and p_sysnam should be greyed.
    Im trying to achieve this reqiurement, the problem is that both checkboxes are being greyed out when im trying to grey out only one because they belong to the same radiogroup.
    Are the requirements above possible?

    Hi,
    While it makes sense to grey out p_sysnam and s_date when the corresponding radio-button is chosen, I can't see why you would want tp grey-out the radio button as well.
    What happens if the user chooses the wrong radio button?  Or clicks one then changes their mind?  How can they switch to the other radio button if it's greyed out?  The only way to change their selection will be to restart the report.
    Regards,
    Nick

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • After Effects SWF file appears black with no image. Only 2 layers in AE file (one that moves the other static). Please help!

    After Effects 5.5.
    I need this file as a swf but it appears black when I export.
    Only 2 layers in AE file (one that moves the other static). Please help!
    Thank you!

    Thanks for your response. Is there no other way to get the swf file to work properly from After Effects?
    What is the best way to go about using the MP4, F4V or FLV formats to save as a swf in Flash?
    Can you advise how I can save it to MP4, F4V or FLV from After Effects Creative Cloud? they don't seem to be visible (I also have creative cloud)
    Thank you very much

  • Loading external SWF when first one is finishes

    The code I have so far is included below. Right now the first swf (first of two loaded into main swf) (intro.swf) loads fine on mouseclick of the "go" button. However I would like the first swf to unLoad and the second swf to load ("europe.swf"). This will be a one frame swf that will link to various others. After multiple tutorials/forums I can't figure out how to get the second swf to load while the first unloads.
    I hope I make sense and thanks for any help.
    import flash.display.MovieClip; import flash.display.Loader; import flash.net.URLRequest; go.addEventListener(MouseEvent.CLICK, goIntro); var loaderIntro:Loader  = new Loader(); var contentIntro:MovieClip; function goIntro(e:MouseEvent):void {      loaderIntro.load(new URLRequest("intro.swf"));      addChild(loaderIntro); } function onEnterFrame(e:Event):void {      if (contentIntro.currentFrame == contentIntro.totalFrames) {           removeChild(loaderIntro);           loaderIntro.removeEventListener(Event.ENTER_FRAME, onEnterFrame);           loaderIntro.unloadAndStop();             var loaderEurope:Loader = new Loader();             loaderEurope.load(new URLRequest("europe.swf"));             addChild(loaderEurope);                  } }

    So,
    I finally figured it out. Most likely not the best option or completely correct but it works how I want it to.  So what I have is my "welcome.swf" that loads the "intro.swf", once this finishes playing the "europe.swf" loads, which is a interactive menu to go further into particular countries/regions.
    My welcome page only needs to be 1 frame, but i put a stop(); on that first frame and then added the same number of frames that are in the "intro.swf" and added a button to that last frame "goplayEurope" of "welcome.swf" that unloads "intro.swf" and loads "europe.swf".  I know not the best way! But I'm not the best (or even past beginner) at as3. I've also figured out a way after nearly endless searches thanks to google and forums like this to communicate back to parent swf to tell it when the loaded swf is in it's last frame.  So hopefully this helps someone!!! And PLEASE feel free to correct me/my code wherever necessary...I know it's far from perfect.
    In frame1 of "welcome.swf" (also has a loader)
    stop();
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    import fl.controls.ProgressBar;
    go.addEventListener(MouseEvent.CLICK, goIntro);
    var loaderIntro:Loader  = new Loader();
    var contentIntro:MovieClip;
    var myPB:ProgressBar = new ProgressBar();
    myPB.source = loaderIntro.contentLoaderInfo;
    myPB.x = 300;
    myPB.y = 350;
    myPB.width = 400;
    myPB.height = 10;
    function goIntro(e:MouseEvent):void
         loaderIntro.load(new URLRequest("intro.swf"));
         loaderIntro.contentLoaderInfo.addEventListener(Event.COMPLETE, startIntro);
         go.visible = false;
         addChild(myPB);
         function startIntro (e:Event):void
              addChild(loaderIntro);
              play();
              removeChild(myPB);
    And frame375 of welcome.swf ("intro.swf" has 375 frames as well)
    stop();
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    goplayEurope.addEventListener(MouseEvent.CLICK, goEurope);
    var loaderEurope:Loader  = new Loader();
    var contentEurope:MovieClip;
    function goEurope(e:MouseEvent):void
         loaderEurope.load(new URLRequest("europe.swf"));
         addChild(loaderEurope);
         goplayEurope.visible = false;
         loaderIntro.unload();
    Now for the communication communicating the last frame has been reached...here is a simple example.  I think there are still a lot of issues with this one so please help out if you can. For this example the sending swf is 100 frames
    Sending swf
    import flash.net.LocalConnection
    var function1:LocalConnection = new LocalConnection();
    stage.addEventListener(Event.ENTER_FRAME, function2);
    function function2(e:Event) :void
         if(this.currentFrame == 100)
              function1.send("connectionname", "functionsendname");
    //so that the mc goes back to frame 1, otherwise I've found it doesn't play right if you choose to play again
    gotoAndStop(1);
    Receiving swf
    var function1:LocalConnection = new LocalConnection();
    function1.client = this;
    function1.connect("connectionname");
    function functionnamesend() :void
         loadername.unload(); //the loader name is what you call your loader variable when loading said swf
    So like I said, none of this is perfect but is working for me, constructive criticism extremely welcomed!!!

  • 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

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • Crash to desktop when loading embedded swf

    I have a swf that loads two other embedded swfs. The need for an air native extension came up so I've wrapped this swf inside of an AIR app. I install my app as a native installer. (on Windows 7)
    My app has a main menu screen and two buttons that will load two separate swfs to do their own menus and actions.
    Everything has worked great, until I tried to install the AIR app on a computer without internet. I ran the air redistributable, then installed my app. The main menu runs fine, and the main swf can load one of the embedded swfs, but when it tries to load the second embedded swf it crashes to desktop. No warnings, no errors, I just see desktop after clicking a button.
    Here is how I'm loading the offending swf:
    Inside MM_DocumentClass.as
    [Embed(source="../../ContentViewer/bin/ContentViewer.swf")]
            public var CViewSwfClass:Class;
            public var CViewMC:MovieClip;
    Inside MMState_MainMenu.as
         //Load the CView.swf, and add the listener for when it's done loading.
            public function CView_BtnClick(e:Event)
                Globals.stage.removeEventListener(KeyboardEvent.KEY_DOWN, Globals.keyPressHandler);
                menuMC.removeEventListener("Animation_Complete", CView_BtnClick);
                trace(this + "******************************************************");
                trace(this + "Loading ContentView.swf");
                mStateManager.Container.CViewMC = new mStateManager.Container.CViewSwfClass();
                mStateManager.Container.CViewMC.addEventListener(Event.COMPLETE, onCviewLoad);
                mStateManager.ChangeState(new MMState_Empty());
            //Called when CView.swf is done loading
            private function onCviewLoad(e:Event)
                trace(this + "Cview Loaded");
                mStateManager.Container.addChild(mStateManager.Container.CViewMC);
    I load the other swf in the exact same way.
    This problem can be fixed by connecting the computer to internet and trying to run the same actions. The program will pause for a second, during this time I see a visible loading icon in the middle of the screen, then it successfully loads the swf and everything works fine.
    My problem is that I can't guarantee our clients will have internet at all, so I need a solution to install AIR without internet and include whatever it is that my app needs to run.
    Any ideas? 'Cause this one's had me stumped for quite awhile.

    Does this happen whith every subVI or just on particular one? Also, what version of LV and OS?
    Lynn

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Can you tell when a loaded SWF has reached its final frame?

    I used loadMovie to load an external SWF into the bottom-half
    of a main "shell" swf. When that loaded SWF finishes playing (it's
    just an animation), I need to populate a text field with the word
    "DONE" . The text field resides on the _root, so I need some way to
    know when the loaded SWF has reached its last frame...
    This would obviously be easy if I had the .FLA of the loaded
    SWF because I could just write the actionscript on the last frame
    of that SWF to populate the _root textfield. Alas, I do not have
    the source FLA of that loaded SWF, so I need some way to have the
    main "shell" SWF/FLA know when that loaded SWF has reached its end.
    Is this possible???
    Thanks!!!

    DIY_Lobotomy,
    > The reality of my situation is that there's a "menu" of
    sorts that
    > gets loaded into "contentClip". This "menu" has a bunch
    of links.
    So far, so good.
    > When clicked, each link loads a DIFFERENT swf into
    "contentClip".
    > It is THOSE swfs that I need to note the end of.
    That's still okay.
    > So, there's actually more than one, and they're not
    exactly being
    > loaded directly from my main movie, since they're
    actually loaded
    > based on a link being clicked in the movie that is
    currently loaded
    > into "containerClip"
    The concept is still the same, no matter what. No matter how
    deep the
    one-clip-loads-another chain goes, you have to keep taps on
    each chain link.
    When the final link has loaded, you'll be able to make your
    object reference
    to that movie clip. That movie clip -- because it's an
    instance of the
    MovieClip class -- will have the _currentframe and
    _totalframes properties.
    You'll just be checking *that* cliip's properties instead of
    the one named
    contentClip in my own example.
    You can loop using onEnterFrame or, if you prefer, with
    setInterva().
    That doesn't much matter either, so long as you repeatedly
    poll the deepest
    clip to test its current frame against its last frame (this
    all assumes that
    the clip being tested is a linear animation whose end
    corresponds to its
    last frame; otherwise, you could check _currentframe against
    any arbitrary
    frame number).
    > I hope that wasn't too confusing! Do you still have a
    solution???
    Not too confusing to understand, but it might be confusing
    to route
    through in practice. Not confusing, actually, but meticulous
    ... you'll
    have to be careful with your pathing. Nested movie clips are
    very much like
    nested folders on your hard drive. Their instance names
    relate to the
    folder names.
    Now, if that menu doesn't have an instance name you provided
    -- or if
    any fork along the path has an instance name you can't
    control -- you can
    still reference the nested movie clips. If you test your file
    in the
    Debugger panel, you'll see all the instances laid out in
    hierarchical order.
    You'll see that automatic instance names are provided
    (something like
    "instance1", "instance2", etc.).
    David Stiller
    Contributor, How to Cheat in Flash CS3
    http://tinyurl.com/2cp6na
    "Luck is the residue of good design."

  • Passing variables / accessing other swfs

    It has been years since I used flash, so I consider myself a
    rank armature. I'm Using Flash 8 and would like the code to be
    backward-compatible to ver. 6.
    I have a big movie, with lots of images. I've comprimised the
    image quality as much as I dare, but it still takes 20-30 seconds
    to load (my client is in Paris, and claims to have the fastest
    connection in Paris, but it takes more than a minute to load it
    from there, even when loaded on his local server). I'm assuming
    that the only way to achieve a meaningful decrease in load time
    will be to split it up into smaller swf's, one mail swf, and each
    sub-page in it's own swf, and have each swf loaded only when
    needed. The fla can be downloaded here:
    cjreynolds.com/fuda30.zip
    The movie currently runs an intro animation, then when a link
    is clicked, it loads different "pages" which consist of large movie
    clips. These are contained in a MC called "pages", and are called
    by manipulating a root variable called "level" - ie: "level = 1"
    causes the MC at frame 1 of the "pages" MC to be displayed. (this
    was an existing movie that I have been tasked with modifying).
    #1 - Is it correct that splitting the individual pages into
    different swfs the only way to lessen load time? I would welcome
    any other suggestions.
    #2 - If spitting the movie up is the way to go, I'm thinking
    I need to replace the movie clips in the "pages" MC with swfs. How
    do I tell each individual page to go back to the main (intro) swf
    and load a different page? The main timeline contains animations
    that "overlay" the sub-pages, creating a transision effect when
    going from one page to the next.
    Thanks for your help - you guys (and gals) have been a great
    source of aid for me!
    joe

    Yes, _root is the wrong thing to use, and _global is never
    good practice. I
    don't use loadMovieNum - I'd use MovieClipLoader and it's
    loadClip method to
    load other swf's into target clips. You can then use
    something like
    this._parent to get to the timeline of the clip 'containing'
    the loaded
    clip.
    However, I think your best bet is to probably use a singleton
    class. That
    way you have your main movie instantiate and set variables
    within the
    singleton - then any other movies can easily create an
    instance (which will
    be the same instance since it's a singleton) and get the
    values you need.
    Simple example:
    class VariableHolder{
    private static var instance:VariableHolder;
    private var myA:Number;
    private function VariableHolder(){}
    public static function getInstance():VariableHolder{
    if(instance == undefined){
    instance = new VariableHolder();
    return instance;
    public function setVariableA(newA:Number){
    myA = newA;
    public function getVariableA():Number{
    return myA;
    So, in your main movie you'd do:
    var myVariables = VariableHolder.getInstance();
    myVariables.setVariableA(50);
    And then in another movie you do:
    var myVariables = VariableHolder.getInstance();
    var myA = myVariables.getVariableA();
    //will set myA = 50;
    Because you're using a singleton - the second getInstance()
    call returns
    just the one class instance - held in the class' instance
    variable. You can
    have any/all movies instance the class, and only one instance
    is ever
    returned... Once you wrap your head around this it's a very
    efficient way to
    pass stuff around between various movies.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Including external swf file with preloader in main swf file

    I'm creating a flash 3d website for a company. The idea is
    that there is one overall swf file - this holds the navigation and
    design. Once the user clicks on a button, it goes to frame 10, I
    have included the following script to load a swf file
    loadMovie("deepbartesting.swf", maincontent);
    this.onEnterFrame=function(){
    if(movieClipName._currentframe==5){
    movieClipName.stop();
    delete this.onEnterFrame;
    my problem is that this file is around 3mb. I created a
    preloader with it, with the code
    onClipEvent (load) {
    total = _root.getBytesTotal();
    } onClipEvent (enterFrame) {
    loaded = _root.getBytesLoaded();
    percent = int(loaded/total*100);
    percen101 = ""+percent+"%";
    gotoAndStop(percent);
    if (loaded == total) {
    _root.gotoAndPlay(2);
    the preloader works, but instead of going to frame 2 of that
    swf file, it goes to frame 2 of the overall swf that holds the
    navigation. Does anyone know how to get around this so that it goes
    to frame 2 in the same swf file as the preloader?
    Thanks for your help

    instead of _root, use this._parent (if your preloader is on
    its main timeline).

Maybe you are looking for

  • How to set up Multiple Playback tracks for a "Set" or "Concert"?

    Hey Gang...so I'm venturing into MS2(2.2.1) now and have a feeling I just need some help understanding the building blocks.  Here is what I'm trying to do: I want to set up a concert for solo gigs where I basically will perform saxophone along with b

  • Multiple Issues with iPod Classic 160GB

    In mid-November 2009 I bought a new 160GB classic. I connected it to my Windows Vista PC and immediately got an error saying that the computer was not authorized (note that I had been syncing an 80GB Classic and three Nanos fine before this). And des

  • Mapping XML object to java object gives ClassCastException

    Hi All, I am trying to map a specific XML object to a specific java object using web services and received the following exception: java.lang.ClassCastException: weblogic.soap.xml.XMLObject at $Proxy0.getMonster(Unknown Source) at serviceClient.TestS

  • Authentication for Shared iPad

    I have a retail cusotmer that is interested in using shared iPads for thier store employees and securing the environment with ISE.  Is there a way to authenticate both the device (certificate) and the user (AD username / pw)? My understanding is that

  • Remove the newsfeed, skydrive, sites from master page

    hi, i want to remove the newsfeed, skydrive, sites from the  top of the sharepoint site: [[ as shown below ]] is this possible? pls help