External swf in wrong place

I have finally figured out how to call an external swf file
(shouldn't have been as hard as I made it) Nonetheless, when I
preview is, besides getting a bunch of errors about sandboxes, the
external swf file is not anywhere close to where I placed the movie
clip loader? Thanks for any help anyone can provide...

Well, I guess I can place my movie container somewhere
completely different from where I want it to appear on my final swf
file. I don't think that's the most elegant way to go about it, but
one question I do have is how to I keep the bitmap images that are
off that swf file not to appear, and to make it not scale? Right
now, when the external swf file comes on screen, excess parts of
the image appear and it scales? Thanks.

Similar Messages

  • Loaded .swf in wrong place

    hello,
    i have saved "TestClass2" and "one.swf" in the same folder,
    and made TestClass2 the class of a movieClip within "one.swf".
    On the last frame of the timeline of "one.swf", I have a
    boolean variable called endFrame, which the function onEnter is
    listening for.
    When endFrame = true, the loader loads in "two.swf", but it
    is not directly on top of "one" as I had hoped.
    Please, what am I doing wrong? Is my strategy at all correct
    in general? Thank you.

    Thank you.
    I changed addChild(imageLoader);
    to stage.addChild(imageLoader);
    and it works.
    is that the correct way to do it?
    also, is function loadTwo within function onEnter? Because
    when I write "private", Flash gives me an error. Should it be
    within onEnter, or outside of it somehow?
    much appreciated.
    RW

  • Loading external swf, from a previously loaded external swf.

    I'm trying to figure out if its possible to have a page that
    loads an external swf (easy, know how to do that), but then, from
    clicking on a button thats inside that loaded swf, load a different
    external swf in its place. Any ideas?

    I've tried a few things... including what you suggested, but
    either I'm still not putting the code in the right spot... or the
    code isn't working like it should. I have a zipped folder of the
    project files on my server if you could download and take a look. I
    have a readme file in there too explaining exactly what I want
    accomplished.
    http://www.deltawavefilms.net/little_example.zip

  • Place button rollover image on top of external swf

    I have a menu that when you click on a button, an external swf is  called up. However I would like for the buttons in the Over and Down  state to show an image on top of the external swf with a description of  what the video is about (Basically when they rollover the button).
    The problem is that the image shows behind the external swf. I  cannot get it to appear on top of the external swf. I have tried putting  the buttons layer on top of the actions layer but that doesn't work.
    I have not been using Flash for very long but I need to know if  there is ActionScipt that can solve my problem or any other way to solve  this issue. Please help. Thank you.

    This is what appeared now in my Output panel.
    Core_K12_Menu CS5.swf Movie Report
    Metadata
    Bytes         Value
           387    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Adobe Flash Professional CS5</xmp:CreatorTool> <xmp:CreateDate>2010-07-25T19:31:59-07:00</xmp:CreateDate> <xmp:MetadataDate>2010-08-01T18:42:52-07:00</xmp:MetadataDate> <xmp:ModifyDate>2010-08-01T18:42:52-07:00</xmp:ModifyDate> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"> <xmpMM:InstanceID>xmp.iid:2136C7DCCB9DDF11B1ACFFBB5C2D711F</xmpMM:InstanceID> <xmpMM:DocumentID>xmp.did:2136C7DCCB9DDF11B1ACFFBB5C2D711F</xmpMM:DocumentID> <xmpMM:OriginalDocumentID>xmp.did:423EF45B6198DF1180E5FB9309482BDA</xmpMM:OriginalDocumentID> <xmpMM:DerivedFrom rdf:parseType="Resource"> <stRef:instanceID>xmp.iid:992BC7CBB29DDF11B1ACFFBB5C2D711F</stRef:instanceID> <stRef:documentID>xmp.did:F34D8816A19DDF11ADEA81F4369F4B15</stRef:documentID> <stRef:originalDocumentID>xmp.did:423EF45B6198DF1180E5FB9309482BDA</stRef:originalDocumentID> </xmpMM:DerivedFrom> </rdf:Description> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:format>application/x-shockwave-flash</dc:format> </rdf:Description> </rdf:RDF>
    Frame #    Frame Bytes    Total Bytes    Scene
          1         295119         295119    Scene 1 (AS 3.0 Classes Export Frame)
    Scene      Shape Bytes    Text Bytes    ActionScript Bytes
    Scene 1              0             0                  1133
    Symbol                Shape Bytes    Text Bytes    ActionScript Bytes
    ActiveMC                       40             0                     0
    IntroModule                     0             0                     0
    Module 1 Rollover               0             0                     0
    Module1                         0             0                     0
    Module2                         0             0                     0
    Module3                         0             0                     0
    Module4                         0             0                     0
    Module5                         0             0                     0
    Module6                         0             0                     0
    Module7                         0             0                     0
    Module8                         0             0                     0
    Module9                         0             0                     0
    Module10                        0             0                     0
    Module11                        0             0                     0
    Module12                        0             0                     0
    Module13                        0             0                     0
    Module14                        0             0                     0
    Module15                        0             0                     0
    Module16                        0             0                     0
    Module17                        0             0                     0
    Module19                        0             0                     0
    Module20                        0             0                     0
    Module21                        0             0                     0
    next_btn                        0             0                     0
    replay_btn                      0             0                     0
    Rollover                        0             0                     0
    Rollover Image.psd              0             0                     0
    Symbol 18                       0             0                     0
    Title.psd                       0             0                     0
    ActionScript Bytes    Location
                  1133    Scene 1:Frame 1
    Bitmap                                                             Compressed    Original      Compression
    Layer 1                                                                  3675         88264    JPEG Quality=80
    Layer 1                                                                  3287         63936    JPEG Quality=80
    Layer 1                                                                  1205         19668    JPEG Quality=80
    Introduction-Up.jpg                                                      6357         23200    Imported JPEG=102
    Introduction-Down.jpg                                                    5862         23200    Imported JPEG=102
    Module 1-Up.jpg                                                          5957         23200    Imported JPEG=102
    Module 1-Down.jpg                                                        5548         23200    Imported JPEG=102
    Login Page and Tech Check  Topics Covered   - Introduction to A          4791        288576    JPEG Quality=80
    Module 2-Up.jpg                                                          6030         23200    Imported JPEG=102
    Module 2-Down.jpg                                                        5607         23200    Imported JPEG=102
    Module 3-Up.jpg                                                          6035         23200    Imported JPEG=102
    Module 3-Down.jpg                                                        5556         23200    Imported JPEG=102
    Module 4-Up.jpg                                                          5997         23200    Imported JPEG=102
    Module 4-Down.jpg                                                        5584         23200    Imported JPEG=102
    Module 5-Up.jpg                                                          6031         23200    Imported JPEG=102
    Module 5-Down.jpg                                                        5607         23200    Imported JPEG=102
    Module 6-Up.jpg                                                          6030         23200    Imported JPEG=102
    Module 6-Down.jpg                                                        5610         23200    Imported JPEG=102
    Module 7-Up.jpg                                                          5986         23200    Imported JPEG=102
    Module 7-Down.jpg                                                        5575         23200    Imported JPEG=102
    Module 8-Up.jpg                                                          6035         23200    Imported JPEG=102
    Module 8-Down.jpg                                                        5615         23200    Imported JPEG=102
    Module 9-Up.jpg                                                          6031         23200    Imported JPEG=102
    Module 9-Down.jpg                                                        5611         23200    Imported JPEG=102
    Module 10-Up.jpg                                                         6192         23200    Imported JPEG=102
    Module 10-Down.jpg                                                       5707         23200    Imported JPEG=102
    Module 11-Up.jpg                                                         6119         23200    Imported JPEG=102
    Module 11-Down.jpg                                                       5662         23200    Imported JPEG=102
    Module 12-Up.jpg                                                         6189         23200    Imported JPEG=102
    Module 12-Down.jpg                                                       5709         23200    Imported JPEG=102
    Module 13-Up.jpg                                                         6194         23200    Imported JPEG=102
    Module 13-Down.jpg                                                       5710         23200    Imported JPEG=102
    Module 14-Up.jpg                                                         6193         23200    Imported JPEG=102
    Module 14-Down.jpg                                                       5705         23200    Imported JPEG=102
    Module 15-Up.jpg                                                         6197         23200    Imported JPEG=102
    Module 15-Down.jpg                                                       5713         23200    Imported JPEG=102
    Module 16-Up.jpg                                                         6202         23200    Imported JPEG=102
    Module 16-Down.jpg                                                       5716         23200    Imported JPEG=102
    Module 17-Up.jpg                                                         6155         23200    Imported JPEG=102
    Module 17-Down.jpg                                                       5684         23200    Imported JPEG=102
    Module 18-Up.jpg                                                         6204         23200    Imported JPEG=102
    Module 18-Down.jpg                                                       5719         23200    Imported JPEG=102
    Module 19-Up.jpg                                                         6198         23200    Imported JPEG=102
    Module 19-Down.jpg                                                       5713         23200    Imported JPEG=102
    Module 20-Up.jpg                                                         6205         23200    Imported JPEG=102
    Module 20-Down.jpg                                                       5723         23200    Imported JPEG=102
    Module 21-Up.jpg                                                         6150         23200    Imported JPEG=102
    Module 21-Down.jpg                                                       5685         23200    Imported JPEG=102
    Replay Button.jpg                                                        5365         18240    Imported JPEG=102
    Replay Button Down.jpg                                                   4803         18240    Imported JPEG=102
    Next Button.jpg                                                          4965         18240    Imported JPEG=102
    Next Button Down.jpg                                                     4684         18240    Imported JPEG=102

  • Loading an external swf into my parent swf?

    Does anyone know how I can load an external .swf file into my
    parent file? I have tried to use loader actionscript but think I am
    using the incorrect script or putting it in the wrong place? If
    anyone can tell me the script and where to/how to use it that would
    be amazing? Thanks

    thanks GWD!
    I am using the unloadMovieNum(); command, i have loaded the
    child into level 5 of my parent swf. the parent has multiple scenes
    this one with a layer with a stop(); action and another layer with
    the loadMovieNum("portfolioone.swf", 5); script. it loads the child
    perfectly. The child has a number of pictures in it and a back
    button at the end. I have been adding the
    on (release) {
    unloadMovieNum(5);
    script to the button which unloads the child but stops
    because of the stop action in the first frame of the particular
    scene within the parent. I want to be able to add a script to this
    button which will take me back to a labeled frame in a particular
    scene of the parent, I tried the this.removeMovieClip(); but
    doesn't seem to be working for me, Thanks for the reply, hope you
    can help me further??

  • Load and consecutively play external swf's

    Hi,
    I have three external swf files - part1, part2 and part3. I
    know how to load one clip but I would like to know how to
    dynamically load them into an empty MC and then play them in full
    consecutively without any fancy transitions so that it plays like
    one big movie using Actionscript (no button triggers!).
    I have some very BASIC actionscript knowledge but am not sure
    which way is best. If someone could give me some "simple" step by
    step advise it would be grately apreciated.
    Danielle

    Ok I followed your instructions and when I play the main swf
    (I call - load_swfs) file it plays part1.swf fine but then it gets
    to the first frame of part2.swf (which is blank) and just stops and
    doesn't go any farther! Did I put something in the wrong place?
    I've written what I did and where below.
    // In my main file (load_swfs) it's just a single blank frame
    with this code in it :-
    tl=this;
    swfA=["part1.swf","part2.swf","part3.swf"];
    dep=0;
    numLoaded = 0;
    totalLoad=3;
    lo=new Object();
    lo.onLoadInit=function(target){
    numLoaded++;
    checkIfAllLoaded();
    function checkIfAllLoaded(){
    if(numLoaded==totalLoad){
    holder1.play();
    } else {
    mc=this.createEmptyMovieClip("holder"+(numLoaded+1),dep++);
    mcl.loadClip(swfA[numLoaded],mc);
    mcl=new MovieClipLoader();
    mcl.addListener(lo);
    mc=this.createEmptyMovieClip("holder"+(numLoaded+1),dep++);
    mcl.loadClip(swfA[numLoaded],mc);
    // In part1.swf in the last frame is :-
    tl.holder2.play();
    this.removeMovieClip();
    // In part2.swf frame 1 is blank with a stop(); and in the
    last frame is:-
    tl.holder3.play();
    this.removeMovieClip();
    // In part3.swf frame 1 is blank with a stop();
    Let me know where I went wrong!
    Thanks

  • External swf loader probs

    HI, we have a situation which has done our heads in for two
    days non-stop,
    We have a pre-loader loading the area's and then have the
    loadmovienum to load in additional swf's now when we use the nav
    bar at the top of the page, it opens the right file but when it
    loads the page it moves onto the next load movie for some reason
    with out stopping, even though the stop command is in place....
    We have uploaded the dodgy version which you can test and see
    what problems we are having, the contact page is the same as the
    service page for the moment, but you will see the contact page
    display the "cloned" service page then it restarts the whole movie
    Here are the URL's to the zip file with all the swf's and
    fla's including the live what we have done so far online version.
    http://www.drsolutions.co.uk/premiere/wwwroot/
    http://www.drsolutions.co.uk/premiere/fla/premiere.zip
    Please reply asap thanks
    PS WE ARE USING FLASH 8

    Ok... I figured out how to get the swf to play correctly. I
    changed my publish settings to Flash 8 Player. This worked in
    getting the external swf to load... Now I ran into a new problem,
    hopefully someone can help me with this.... I need the swf to load
    in a VERY specific location, and at the EXACT scale as the original
    swf file. I have attempted to accomplish this by opening the
    original file that I am attempting to load. I selected all of the
    elements on the page, and looking at the X and Y coordinates, as
    well as the over all pixels measurement... then I placed these in
    numerals in the fields for the loader component in the "mother"
    file. I previewed it, and the placement and scale are wrong... how
    do I overcome this?? How can I control where the loader component
    loads and at what scale?
    Ken

  • Play external swf

    I've got some existing swf movie that i want to load into a
    another swf as external swf. my problem is that these existing swf
    doesn't have stop() at the end of the movie, it plays in a loop.
    but i want only want it play once per button release, what should i
    do.

    Ok I followed your instructions and when I play the main swf
    (I call - load_swfs) file it plays part1.swf fine but then it gets
    to the first frame of part2.swf (which is blank) and just stops and
    doesn't go any farther! Did I put something in the wrong place?
    I've written what I did and where below.
    // In my main file (load_swfs) it's just a single blank frame
    with this code in it :-
    tl=this;
    swfA=["part1.swf","part2.swf","part3.swf"];
    dep=0;
    numLoaded = 0;
    totalLoad=3;
    lo=new Object();
    lo.onLoadInit=function(target){
    numLoaded++;
    checkIfAllLoaded();
    function checkIfAllLoaded(){
    if(numLoaded==totalLoad){
    holder1.play();
    } else {
    mc=this.createEmptyMovieClip("holder"+(numLoaded+1),dep++);
    mcl.loadClip(swfA[numLoaded],mc);
    mcl=new MovieClipLoader();
    mcl.addListener(lo);
    mc=this.createEmptyMovieClip("holder"+(numLoaded+1),dep++);
    mcl.loadClip(swfA[numLoaded],mc);
    // In part1.swf in the last frame is :-
    tl.holder2.play();
    this.removeMovieClip();
    // In part2.swf frame 1 is blank with a stop(); and in the
    last frame is:-
    tl.holder3.play();
    this.removeMovieClip();
    // In part3.swf frame 1 is blank with a stop();
    Let me know where I went wrong!
    Thanks

  • External swf loader

    Hey all,
    In the site that I am designing. I am using a Loader to load
    extenal swf's onto the background of my site.... I created the
    loader, gave it an instance name, and then gave it a content path
    to the swf file that I want to load. I previewed the page, and it
    all loads fine in the "mother" file, but when the content is
    supposed to load into the Loader, the loader simply turns opaque
    white and nothing happens... what am I missing here?
    Best,
    Ken

    Ok... I figured out how to get the swf to play correctly. I
    changed my publish settings to Flash 8 Player. This worked in
    getting the external swf to load... Now I ran into a new problem,
    hopefully someone can help me with this.... I need the swf to load
    in a VERY specific location, and at the EXACT scale as the original
    swf file. I have attempted to accomplish this by opening the
    original file that I am attempting to load. I selected all of the
    elements on the page, and looking at the X and Y coordinates, as
    well as the over all pixels measurement... then I placed these in
    numerals in the fields for the loader component in the "mother"
    file. I previewed it, and the placement and scale are wrong... how
    do I overcome this?? How can I control where the loader component
    loads and at what scale?
    Ken

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • How to control timeline sound of external SWF

    Hi All,
    Basic Intro:
    I am new in Action Script and trying to create a video tutorial framwork. In this I have lots of animated SWF files in all the files I have multiple scenes as those are 5min. to 10 min. each and all the files have the relevent background and nurration voice place directly on the TIMELINE frame by frame to match lip syncing animated chreactors.
    My file structure :
    Login.swf with login box is embedded into the Index.html
    After logged in it will load another SWF which is Control panel.swf
    3. Controlpanel.swf has the controls to control the loaded external swf files i.e.: Chapter menu, Play, pause, replay, volume-bar, next and previous buttons.
    By Default Controlpanel.swf will open chapter1.swf as soon as user logged in so no one need to open 1st file.
    Here user can navigate to other chapter swf file through Chapter menu or Next and Previous buttons.
    All files are loading and playing properly, here I am trying to control the animation and Sound both at a same time with Pause, Play and Replay through relevant buttons.
    Problem:
    By pressing “Pause button” animation stops but not the sound. Sound remains playing, and if I replay the swf by “Replay button” than animation restarts but sound also restarts that overlaps already playing audio.
    Question: So could anybody help me finding out how to:
    1. Pause the sound with animation by the same click of Pause button, and
    2. Stop the sound with animation by the same click of Stop button, and
    3. On replay it should stop playing the previously running audio and restart it with the animation like fresh loaded file, it should not sound overlapping.
    Constraints:
    Here I am using the sound file on the same time line of each individual swf file which I cannot add into any single movie clip because all the chapter swf file are having multiple scenes in it.
    For my problem I have already done a lot of browsing online in various forums and didn't find the solution. So here I am sharing the complete information regarding the project and wishing to get some good solution out here but if I missed any helpful information please ask me anytime and please help me to quickly find out the solution.
    Thanks a lot to all of you in advance to help me.

    create one global sound variable
    you can write when you are pressing pause button
    globalsoundvariable.setVolume(0)
    to play
    globalsoundvariable.setVolume(100)

  • How do I load an external swf at a frame after ClickToGoToAndStopAtFrame?

    Hi, I'm quite new in working with AS3.
    I am designing a site with a menupage with buttons.
    Some of these buttons are linked to a frame that contains an external swf, which is a portfolio.
    By pressing the buttons 'AQUAREL" and "OLIEVERF" you will go to another frame and the swf-portfolio shows up.
    Now the problem is: sometimes it seems to work, sometimes it doesn't.
    You can check out yourself at www.erwinvanzijl.nl
    Is there a better whay of programming these functions?
    Am I doing something wrong or is there a better way to do it?
    This is the actionscript that I put on the second frame where the swf is to show up:
    stop();
    var Xpos_2:Number = 52;
    var Ypos_2:Number = 59;
    var swf_2:MovieClip;
    var loader_2:Loader = new Loader();
    var SWF_2:URLRequest = new URLRequest("aquaportfolio.swf");
    loader.load(SWF_2);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    btn_menu.addEventListener(MouseEvent.CLICK, unloadcontent_2);
    function unloadcontent_2(event:MouseEvent):void {
    removeChild(loader);
    gotoAndStop("menu");

    For the unloading it is a simple matter of...
    function unloadcontent_2(event:MouseEvent):void {
       loader.unload();
       removeChild(loader);
       gotoAndStop("menu");
    Follow what Dave has to say... he's far more experienced than I.  I was too hung up wondering what swf2 was all about to ntoice there were two loaders involved in the code.

  • External .swf runtime linkage .pngs AS3

    Flash can compress .png files like Photoshop can compress
    .jpg files better than any other tool hands down.
    I have 77 .png files that are 1.8 .megs on my c: drive after
    I imported them and setting the file compression under the "File
    > Publish Settings" to 75% for jpg and published the .swf with
    all the .png on the stage the file size is 350K that's about 20% of
    the original file size of the .pngs downloaded file by file with 77
    separate request.
    I can create linkage in the shared .swf and test the movie
    with code in the shared .swf to add the movieclip holders for each
    .png to the stage but when I load the shared .swf into the main
    .swf Flash acts like it can't create the classes based on the
    linkage I setup or that the MovieClip linkage doesn't exist.
    I tried a test to have the shared .swf with all the .pngs and
    linked movieclips to add the assets to it's own stage and it works
    fine but that means a lot of my code and logic is included in the
    shared .swf that the designers need to add .pngs to. It's
    unfortunate AS3 sucks but I'm just about done with the project if I
    knew what a battle AS3 was going to be I would have stayed with AS2
    my next projet will be AS2 no question non at all. Anyway I setup
    "class" linkage identifier for each .png with a movieclip holder
    for each image. The 20% of the size for the pngs and one request
    vs. 77 separate request makes it worth the extra effort of
    importing the images, creating a holder movieclip with linkage but
    the main .swf that loads the shared .swf with all the assets and
    linkage can't see or create the assets like the shared .swf can
    when I test it.
    We need to have the main .swf get a handle of the linked .png
    assets and place them in the main .swf to load the assets to
    different parts of the main .swf. It's cute that the shared .swf
    can add the linked assets to it's own stage but not too useful.
    Also the way we deploy we cannot roll out a new release/build to
    update the .pngs but we can upload a new .swf to the asset server
    so the .pngs need to be in a separate .swf. I can get the shared
    MovieClip to add the linked assets to it's own stage when testing
    and when loading my problem is the main .swf that loads the shared
    .swf cannot create instances of the classes that are exported for
    runtime sharing using linkage.
    If it is possible I would like to know how the heck you get a
    handle on a linked asset in an externally loaded .swf. Preferably
    without creating my own prototyped insane class consisting of mega
    libraries of external .as files. Just a way to reference MovieClips
    holding pngs that have linkage and are setup for runtime sharing.
    It really shouldn't be this hard it's a simple task in AS2. I'm not
    looking for a coding competition or some wild class to do the job I
    want a few lines of code to create an instance of a class then
    reference to the linkage/MovieClip holding the .png to addChild it
    into a target movieclip.

    I solved it I'm loading 77 embedded assets in an external
    .swf that compresses 77 .png images without loosing quality it
    works great.

  • Need help loading an external SWF

    I'm not very proficient in Flash, so any help will be greatly appreciated. I'm trying to load an external SWF with the following code:
    T1_Bttn_BloodCar.onRelease = function() {
    t1_images_mc.loadMovie("images/T1_Gallery/BloodCar_SWF/T1_BloodCar.swf");
    t1_images_mc._alpha = 0;
    It loads the SWF, but doesn't play it correctly when I test it. Here's how the loaded movie is supposed to look:
    http://www.theroboteye.com/T1_BloodCar.html
    But instead, it plays without the transitions, like this:
    http://www.theroboteye.com/TRE2009b.html
    I've been trying to figure this out for a few days and have tried adding "this._lockroot = true;" to the SWF I'm trying to load, but I can't get it to play correctly. Can anyone tell me what I'm doing wrong? Thanks in advance.

    Try using the MovieClipLoader class (loadClip method) instead of the loadMovie method.  That way you can have a listener that waits for the movie to be loaded and then pull it into play, assigning actions and properties to it after the fact.

  • External .swf not loading on HTML pages

    Good morning,
    I'm having trouble and I was hoping someone could shed some light on what I'm doing wrong. I have a main .swf file from which external .swf files are being loaded through the use of buttons.
    When I preview the animation, everything works just fine. The problem occurs when I put the animation on the website where it needs to be. The main animation appears like it's supposed to, but the buttons are not successful in loading the external .swf files. I've made sure that all .swf files are on the server but still nothing. Could anyone help? I'm not sure what the problem is.
    Here's the AS:
    stop();
    var presentationLoader:Loader = new Loader();
    addChild(presentationLoader);
    //Navigation
    presentation1.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation2.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation3.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation4.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation5.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation6.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void
    presentationLoader.load(new URLRequest(event.target.name + ".swf"));
    function homeClick(event:MouseEvent):void
    presentationLoader.unload();
    Thank you,
    - Cmarcoux

    For anyone having a similar problem in the future, the solution is in bold:
    stop();
    var presentationLoader:Loader = new Loader();
    addChild(presentationLoader);
    //Navigation
    presentation1.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation2.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation3.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation4.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation5.addEventListener(MouseEvent.CLICK, buttonClick);
    presentation6.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void
    presentationLoader.load(new URLRequest("../../media/flash/" + event.target.name + ".swf"));
    function homeClick(event:MouseEvent):void
    presentationLoader.unload();
    For the animation to work on a website, the file path was needed.

Maybe you are looking for

  • IMovie won't open and Library Folder is missing in Finder

    A few days ago, I downloaded the recent iMovie program.  I even used it to make a video.  Today I wanted to make another one but iMovie won't open at all.  The wheel just spins and spins and nothing opens.  So, I went into Finder and noticed my Libra

  • Connecting iPhone to Mac auto opens iTunes?

    I have an iPhone 3GS running under OS 3.0.1. I have iTunes 9.0. my question is: Assume iTunes is not open. When I connect my iPhone via USB2 to the Mac, shouldn't iTunes, when the iPhone is plugged in, open automatically? Previously iTunes opened whe

  • 1080P movie imported into iMovie at optimised 920x540 but is oddly finalised at 1080p?

    Hi. I have a video shot in 1080p which I imported into iMovie from my camcorder using the optimised setting (920x540px). I edited the movie and now want to finalise it. But I'm wondering why when I click finalise the project it says it's doing so in

  • SAP SD Consultant ?

    Hi,   I have been working as an End User for the last 5 years on SAP SD Paltform. Then I quit my Job and went for the SAP Certification course, after completion of my course I was taken back as a Support Consultant in a manufacturing company and I m

  • Best place to buy Avid MC 7?

    What is the least expensive place to buy Avid MC7? Thanks.