Load swf created by Xcelsuis 2008 into another Flash by loadClip

I have a problem to load the swf file created by Xcelsuis 2008 into another empty flash file by using the function loadClip.  It works on the swf created by Xcelsuis 4.5 pro .   Could Anyone give me some suggestions.  Is there another method to load the swf into another Flash?
Thanks a lot!

publish the one that doesnt work to AS2 and see

Similar Messages

  • Insert an swf file into another Flash file

    Hi,
    I'm a newbie to flash trying to insert an SWF flash file (a game) into another Flash file. However, when I import the swf file into the library and drag it onto the frame (and insert the stop(); command onto the frame action to stop it playing the whole movie), the SWF file plays constantly, ignoring all the actionscript and button commands in the game SWF file.
    When I try inserting it using the Window component, the game SWF refuses to play at all - it just stops (clicking buttons in the game work, but it goes-to-and-stops instead of go-to-and-play like it's supposed to do). The only other component I could find was called "Loader". Using this doesn't work either, it won't play any of the animation, just like using the "Window" component
    When the game SWF is played by itself (by just double-clicking to open it from Windows Explorer or embedding it in a web page), it works fine.
    Any help how to do this would be appreciated.
    Thanks.

    Hi,
    I'm posting in this thread because my problem seems similar but may be not...
    In my first swf, I'm loading a second swf via loadClip().
    My second swf works well alone but when I try to integrate itself in my first swf I'm losing my events. My events only works on my first swf.
    I'v tried your trick with _lockroot but he doesn't work for me too.
    Is someone have an idea to help me ?
    Thx
    My code is really basic
    First swf:
            var mcloader:MovieClipLoader = new MovieClipLoader();
            var listener:Object = new Object();
            listener.onLoadInit = function (mc:MovieClip){
                main_obj.__preloader.die();
                obj[funct](target_mc, param);
            mcloader.addListener(listener);
            mcloader.loadClip(file_name, __loader);
    Second swf:
        var box:MovieClip = this.createEmptyMovieClip("box"+depth, this.getNextHighestDepth());
        //Draw box
        drawBox(...);
        // Event on Box, Change Alpha and show arrow or not
        box.onRollOver = function() {
            drawBox(...);

  • Need Your Help with Loading SWF into another Flash Movie!

    Hello,
    I have created TWO Flash movies. They work just fine
    individually, but I get problem when I put one into another one!
    The main Flash is a Menu and the second one if a Photo Album.
    The Menu is series of animation (Moving Objects) which finally
    comes into rest and create the menu. The photo album is another SWF
    file which is called with in the first Flash Movie (The Menu). The
    SWF file is loaded as follow into the Main Flash.
    MovieClip.prototype.drawRect = function(x, y, w, h) {
    this.beginFill(0xFF0000, 100);
    this.moveTo(0, 0);
    this.lineTo(0+w, 0);
    this.lineTo(0+w, 0+h);
    this.lineTo(0, 0+h);
    this.lineTo(0, 0);
    this.endFill();
    this._x = x;
    this._y = y;
    this.createEmptyMovieClip("mc6", 6);
    mc6.lineStyle (3, 0x000000, 100);
    mc6.drawRect(-77, -17, 20, 20);
    mc6._xscale = 100;
    mc6._yscale = 100;
    loadMovie("photoAlbum.swf", mc6);
    Problem arises when I click on the Play Button of the
    photoAlbum.swf (Photo Album) since the execution of the play button
    causes the Flash starts once again from the beginning of the entire
    Flash Movie (Beginning of the animation creating the menu) and it
    simply jumps into the Firm One of my Flash Movie.
    Could you tell me how I can isulate what is in layer 6 (Where
    the photoAlbum is loaded to) from the rest of my Flash Movie?
    I hope I managed to explain my problem. I would like to take
    this opportunity to thank you in advance for your help.
    Cheers,
    Babak

    Hello Anya,
    I have realized the problem arises from the Wait Function
    which causes the Photo Album to pause for a period of time (Two
    Seconds) once a Photo is fully displayed (I have Fade in/out Photo
    Album). I realized everything works OK once I remove the function
    and rather left the Photos to be flipped without any pausing (This
    is an Auto-loading Album which simply Flips the photos!).
    Here is the Wait Function which is causing all the trouble.
    function wait()
    stop();
    var myInterval = setInterval(function ()
    play();
    clearInterval(myInterval);
    }, 2000);
    Thank you so much for your help.
    Cheers,
    Babak

  • Loaded SWF file CANNOT be made into button DIRECTLY?

    I'm experiencing a problem which may have no solution, but I
    would like to know why I cannot do what I want to do.
    PROBLEM:
    I am attempting to load in an external SWF file and once it
    is loaded, I wish to directly make the new Sprite/MovieClip into a
    button. However, the newly loaded Sprite/MovieClip seems to be
    resistant to be made into a button DIRECTLY. I would like to know
    why this is.
    WORKAROUNDS:
    Here are a couple of workarounds, but again I wish to know
    why I cannot do what I want to do.
    1) I place the new Sprite/MovieClip into an empty Sprite on
    stage and make the once empty sprite into a button.
    2) Construct the external SWF in such a way so i can refer to
    a MovieClip within the SWF file and make that MovieClip into a
    button.
    CODE EXAMPLE:
    I am loading a SWF file thru a Loader and then taking the
    loaded SWF file and adding it to an existing sprite on the stage. I
    then attempt to make a button out of the newly loaded swf file, but
    it fails to be clickable.
    The following is some quick code to illustrate my problem. I
    already have workarounds in place, so please let me know WHY the
    following code is impossible. thanks!
    ==============================================================================

    There should be no problem with what you are trying to do. If
    you want someone to look at what you've done, you have to be
    careful to show that and not possibly errant code because that is
    the substance of your post and what you requested be looked at--we
    cannot guess what you may have done wrong in setting things up or
    for code that you do not show.
    I tried your code before posting my response and it worked
    fine except for your error with the COMPLETE aspect. I did not
    utilize any objects for loading things into, so I suggest you look
    there.

  • Strange problem in loading swf created in Flash Builder 4 !

    Hi
    I am facing a strange issue in all my flash builder projects.
    Here is a sample flex 4 project: http://flashvisions.com/demos/flexdemo/
    you will see when it loads, it showes the first progressbar as grey and then the next one covering it as per flex4's new preloader mechanism. The example given above is a new flex project, without any code. It shows the first preloader then hangs on that for quiet some time  without any indication that anything is happening. Then it shows the second phaze of preloader after some time. This is happening to all my Flash builder projects.
    can some one suggest anything ? If possible watch this link to a medium bandwidth, not too high : http://flashvisions.com/demos/flexdemo/

    And this for 1.5:
    "In Flex or Flash, a loaded SWF takes on the FrameRate of the
    parent SWF. In flex you can set the framerate value for the main
    application with "framerate" attribute in the
    <mx:Application> tag."
    Tracy

  • How to add a flash animation into another flash presentation? Help!!!

    I made an animation and I am wanting to add it to a flash portfolio that I am now creating. I am creating the portfolio so I can send it to potential employers. I am new to Flash but not to Illustrator, Photoshop or InDesign. I am adding several different files from those other programs to the porfolio and want to add a few Flash creations also.So how can I easliy bring the Flash animations into the Presentation? I want the animation to play in the same timeline but I don't want to have to recreate the whole thing or recreate the portfolio. What type of file format does the animation need to be to play? Can this be done?

    In AS2 you can use loadmovie to load a .swf into another .swf.
    http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dic tionary423.html
    In AS3, something like this:
    http://www.kirupa.com/forum/showthread.php?t=269964
    Best wishes,
    Adninjastrator

  • Load site created on 1 computer into iweb of another?

    i created a site for a friend in iweb on my own macbook and want to load it into iweb on his macbook so that he can maintain it. does anyone know how to do this? i tried loading the domain file from library/applications support/iweb, but he does not have an iweb folder in his applications support folder. any help would be appreciated
    macbookpro   Mac OS X (10.4.9)  

    He doesn't have such a folder probably because he's not launched iWeb yet. Just have him create an iWeb folder there and put your Domain.sites file into it. When iWeb is then launched it will look in that folder and open the file.

  • Loading SWF Created in OOP (Getting Error Message)

    I created a slideshow using OOP and it works fine when I test it both in 'Test Movie" and 'Publish Preview', yet when I try to load the SWF into my site I keep getting error messages.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at SlideshowDocumentHD/initializeHD()
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.
    This is the code I was using to test load:
    var req:URLRequest = new URLRequest("Main-HD.swf");
    var loader:Loader = new Loader();
    loader.load(req);
    addChild(loader);
    I'm pretty new to this, so any help is appreciated.  Again, the slideshow does work, I just need to know how to load the SWF.

    1.  Main-HD.swf must be in the same directory as the html that embeds your main (the one that loads your slideshow).
    2.  if your swfs and flas are NOT in the same directory, you probably have a path problem.

  • Loading AIR apps as sub-applications into another AIR app?

    Hi,
    Does anyone know if it is possible to load other AIR applications into a parent AIR application as sub-applications?  It seems I run into the following error when I attempt this:
    Error: Only Application content can access the NativeApplication object.
        at flash.desktop::NativeApplication$/get nativeApplication()
        at mx.core::WindowedApplication()
        at com.xyz::BaseClass()
        at com.xyz.ParentClass()
        at _com.xyz.ParentClass_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
        at mx.managers::SystemManager/docFrameListener()
    Thanks,
    Bill

    Thank you very much Alex!
    Then it means that we run out of memory in Flash Player. Is there any way to allocate more memory for Flash Player
    (we are using FP 10.1) to prevent out-of-memory browser crash?
    Thanks again,
    _Ilya

  • Loading a Photoshop Web Photo Gallery into a Flash Movieclip

    I created a photogallery in Photoshop, but I want it to load
    into a movieclip in Flash and not load into it's own page. When I
    use the loadMovie() command I get an error opening the
    galleryconfig.xml file. When I move that file into the main web
    page file, I then get an error opening the photos.xml file. So I
    move that too into the main web page file. And then I get the error
    opening thumbnails/.jpg. Any ideas? I'm pretty sure it's a pathing
    issue since the gallery works fine on it's own. But I'm not sure
    what I need to change to get it to work when it imports. Any help
    would be much appreciated.
    thanks,
    liz

    Hi,
    I am not sure that this will help, as i never tried to do
    what you are doing, But, i think your best option woul be to create
    the pic/gallery in flash and i would think that would solve your
    problem.
    In Flash 8 there is a premade photo Gallery all you need to
    do is to add the pics.
    Otherwise, you can create yours in flah!!
    Hope this helps!
    G.

  • Load external SWF file into another SWF

    Hello all.
    I've tried loading a .swf file externally into another .swf file on my  local drive, and it works. Now, when I try to Simulate Download, the  preloader in the 2nd file doesn't get played and the images in there  take a while to get displayed.
    I need to load a .swf file from a server into the parent .swf file(I'm  working on using a "thin flash file" for added security for the company I  work for - blank file which loads the content from another file on  their server).
    So far, I have:
    try
        var myLoader:Loader = new Loader();
        addChild(myLoader);
        var url:URLRequest = new URLRequest("newBook.swf");
        myLoader.load(url);
    catch (e:Error)
        trace("ruhroh");
    When I replace the "newBook.swf" with the URL of another .swf, there's just a blank page.
    I'm not too sure how to proceed, and I hope you will be able to help me out. I'd greatly appreciate the help.
    Many thanks,
    -Nazgul

    What happens is...when I set the speed to DSL(32.6kbps), the screen is blank and the preloader doesn't show up. It just goes directly to the Main screen. And then, the pages inside don't get loaded properly.
    This only happens when I try to Simulate Download.
    But that's not really the problem. I need to load a .swf file from a server into another .swf file, and just adding the link to the child .swf isn't working.
    Anyway, thanks for your help
    -Nazgul

  • Controling a loaded swf with another loaded swf

    I have a blank stage with only AS that loads an swf
    addChildAt(0) and a second one addChildAt(1). This works. When the
    user interacts with (1) it calls another addChild (not indexed) and
    possibly that one loads another, depending on the choices made by
    the user. How can I get any of these to control that very first
    child that was loaded at (0)? I have run out of ideas.
    Some of the code:
    (on the main swf, nothing on the stage, only code that loads
    the next two)
    addChildAt(pHolder, 0);
    pLoader.load(pURLReq);
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    pLoaded);
    and for the second:
    addChildAt(mHolder, 1);
    mLoader.load(mURLReq);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    mLoaded);
    On the child of childAt(1), I have:
    function replaceSWF(e:MouseEvent):void
    pLoader = new Loader();
    pLoader.load(new URLRequest("p.swf"));
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    placeNewClip);
    function placeNewClip(e:Event):void
    removeChildAt(0);
    addChildAt(e.target.content, 0);
    If I use this exact same code from that very first swf, the
    one that loads the first two external swfs, it works, but once I
    put it on one of hte other loadeds and sub loaded swfs, I can't get
    it to work. In the current state (0) it just makes everything on
    the stage disappear, so I figured then using the index of (1) would
    do it, but that or any other number results in absoluly nothing.
    Help! I am really out of ideas here.
    (the stacking looks like this) ---
    sub second loaded SWF <==== needs to tell first loaded SWF
    to unload then load a new swf at same index
    second loaded SWF <==== loads the next one above
    first loaded SWF <=== needs to be removed and another swf
    loaded at the same index
    mainSWF (loads two others) <=== code placed here works for
    first loaded SWF

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Embeding symbols from a swf created with mxmlc

    Hello everyone,
    I am trying to bundle my resources in seperate swf files then use them in another flex project. I create this bundles from a wizard i wrote in AIR. AIR app calls mxmlc to compile bundle.as and i dynamicaly load bundle.swf. I can access resources from this bundled swf using ApplicationDomain.getDefinition(). No problem there
    However i also want to use my wizard to edit prexisting bundles. Problem is i cannot embed resource from original bundle to new bundle. I mainly use Sprite and ByteArray assets in bundles.
    To simplfy problem i prepared following test. Created a bundle application to create bundle swf in flex. The project has 4 files: 2 .as files, 1 .png file, 1 .swf file( from FLA which has a symbol linked "Fill" )
    // Bundle.as
    package
              import flash.display.*;
              public class Bundle extends Sprite
                        public function Bundle()
                                  var fla:DisplayObject = new Fla();
                                  addChild(fla);
                                  var image:DisplayObject = new Image();
                                  addChild(image);
    // Image.as
    package
              import flash.display.Bitmap;
              [Embed(source='plus.png')]
              public class Image extends Bitmap
    // Fla.as
    package
              import flash.display.Sprite;
              [Embed(source='fla.swf', symbol="Fill")]
              public class Fla extends Sprite
                        public function Fla()
    Project above compiles without problem and i can see both assets on screen.
    Then i create a second project which will use swf created from project above.
    package
              import flash.display.*;
              public class Application extends Sprite
                        [Embed(source='Bundle.swf', symbol='Fla')]    /// Flex cannot embed this
                        private var flaClass:Class;
                        [Embed(source='Bundle.swf', symbol='Image')]  /// But it can embed this
                        private var imageClass:Class;
                        public function Application()
                                  var fla:DisplayObject = new flaClass();
                                  addChild(fla);
                                  var image:DisplayObject = new imageClass();
                                  addChild(image);
    The second project can only see Bitmap  asset as symbol. But could not find Sprite asset.
    We depend heavily on vector graphics from Flash, and byte array assets embeded with
    [Embed(source='x.ba', mimeType="application/octet-stream")]
    I could write byte array assets into a temp dir and embed them again but i cannot do it with Sprites. How can i solve this problem.

    Interesting problem. What happens if you encapsulate the embed in the first Bundle?
    Something like this:
    package
              import flash.display.Sprite;
              public class Fla extends Sprite
                       [Embed(source='fla.swf', symbol="Fill")]
                       private var flaClass:Class;
                        public function Fla()
                            var flaAsset:DisplayObject = new flaClass();
                            addChild(flaAsset);
    *edit*
    Fixed typo in code.
    Message was edited by: drkstr_1

  • Object Creation Of One class into another and vice versa

    Hello Everyone,
    My name is Prashant Sharma from Jaipur [Rajasthan]
    Can u people help me
    How to create of one class into another and vice versa
    Eg,
    I am having class A and class B
    I want to create object of class A into class B and vice versa
    Plz help me out of this problem as soon as possible....

    Read this: [Creating Objects|http://java.sun.com/docs/books/tutorial/java/javaOO/objectcreation.html]
    Then, do one of these three:
    1. Create an instance of the class
    2. Extend the class
    3. Access methods within the class
    Try it out. Post the problem code if you're having trouble.

  • Strange behaviour loading swf

    hello, i'm trying to load external swf in my main swf.
    when I click first time in first frame on object(movieClip)
    which has event handler gotoJob, the jobfair.swf will load and it
    works. But I have on the stage in first frame also another objects
    - movieClips. If I click on some movieclip, than it means to go to
    nextFrame. But when I return to first frame, where is also object
    with click handler gotoJob and I click on it, it does not load the
    swf. It looks like a bug, i need immediately help please.

    I tried some solutions (look at attach code..) and it seems
    to work, but not properly,
    it loads swf everytime, but after clicking on another
    movieClip and returning to 1 frame it seems that :
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    process);
    loader.contentLoaderInfo.addEventListener(Event.INIT,
    finished);
    are not working, actions which are in functions process and
    finished are not executed...
    i find some similar problem on web:
    "I have investigated that when another MC is loaded, it
    causes reset on root clip, issuing ENTER_FRAME event, and just
    after it code in the first frame executed again. There is more
    strange behavior, code written in the loaded MC (directly in
    frames) IS NOT EXECUTED."
    Is there someone who meet with this? could someone please
    explain that?

Maybe you are looking for