HELP ASAP - external swf's

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

Just to clarify,
I am the author of the above flash project / files.. Travman
is my collegue.
Although this is not your style of flash shyaway, you did get
my noodle ticking over the interval script,
example:
var id = setInterval(function(){play();clearInterval(id);},
8000);
this was to make a movie clip pause for 8000 miliseconds,
then play the continued sequence to form a rotation of images, this
code was used on 4 frames in the sequence..
Following a closer look and removal of the code, the main
flash movie with loaded external swf's plays fine.. the reason, i
can only assume this code was causing an issue is due to the
play(); command, making the whole main movie play instead of just
the movie clip..
Scene names do not usually cause and issue, however, keeping
seperate names is always good from a logical sense
I have now resolved the issue, but for any other readers with
a similar problem, try searching for all play/stop commands that
run sub to the main timeline.
Andy - Web Designer/Developer /Programmer

Similar Messages

  • Help loading external swf inside movie

    I am trying to load an external swf from inside a movie clip.
    I can get it to load but it takes me out of the current movie and
    into the external swf. How can i get it to load inside the
    specified mc in my movie?

    it definately tries to load the swf, but it goes back to the
    begining of my main movie. When I click on the button to go to the
    specified frame instance, instead of loading the swf it kicks back
    to the begining frame 1 of the main scene. I have this loading
    within another MC that is 4 layers deep.
    this is the code I have on the button:
    on(rollOver){
    b2.gotoAndPlay(2);
    on(rollOut, dragOut){
    b2.gotoAndPlay('go');
    on(release){
    _parent.gotoAndStop('ph2');
    The 'ph2' is the frame instance that I would like the
    'water1' mc to load in.
    I've tried a bunch of things and it either loads just the swf
    without my main movie, or it just loads blank within water1.
    Thanks again

  • [HELP] Centering External SWF

    I've read dozens of post on this forum as to how to do this, But I cannot get my own to work. I am loading an external swf file into an empty movieclip. I would like the external swf to be centered initially, and after page resize. Can someone PLZ assist me with this!!????
    import flash.ui.Mouse;
    import flash.events.Event;
    import caurina.transitions.Tweener;
    import gs.TweenLite;
    import gs.*;
    import gs.easing.*;
    import net.stevensacks.preloaders.CircleSlicePreloader;  //Steven Sacks preloader
    var preloader:CircleSlicePreloader = new CircleSlicePreloader(); //Steven Sacks preloader
    //////////////////// STAGE ALIGN ALL MC /////////////////////
    stage.align = StageAlign.TOP_LEFT;     
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.addEventListener(Event.RESIZE, onResize);
    function onResize (evt:Event = null) {
    downbg_mc.x = 0;
    downbg_mc.y = stage.stageHeight;
    downbg_mc.width = stage.stageWidth;
    copyright_mc.x = stage.stageWidth/2;
    copyright_mc.y = stage.stageHeight - downbg_mc.height/2 + copyright_mc.height/2;
    preloader.x = stage.stageWidth * 0.5;
    preloader.y = stage.stageHeight * 0.5;
    loaderMC.x = (stage.stageWidth - loaderMC.width) * 0.5;
    loaderMC.y = (stage.stageHeight - loaderMC.height) * 0.5;
    backgroundMC.x = 0;
    backgroundMC.y = 0;
    backgroundMC.width = stage.stageWidth;
    backgroundMC.height = stage.stageHeight;
    btn1_mc.y = btn2_mc.y = btn3_mc.y = btn4_mc.y = 7;
    }  // END onResize
    onResize(new Event(Event.RESIZE));
    ///////////////// END stage align ////////////////////
    addChild(loaderMC);
    function onComplete(event:Event):void {
       if(contains(preloader))removeChild(preloader);          
                TweenLite.to(loaderMC, 1.5, {alpha:1.0, delay:0.0, onCompleteParams:[1.0, loaderMC]});
            loaderMC.x = (stage.stageWidth - loaderMC.content.width) * 0.5;
                loaderMC.y = (stage.stageHeight - loaderMC.content.height) * 0.5;
       addChild(downbg_mc);
       addChild(copyright_mc);
       addChild(btn1_mc);
       addChild(btn2_mc);
       addChild(btn3_mc);
       addChild(btn4_mc);
       addChild(scroller);
       addChild(backgroundMC);
    } // END onComplete

    what's loaderMC?  and TweenLite isn't going to do anything with those oncompleteparams because there's no oncomplete function.

  • Please help ASAP external hard drive

    hi guys, I have a acomdata 250 external hard drive firewire and today it wont mount. Disk utility shows the drive but It cant repair it. I have tech tool pro 3 and now im doing the "recover files using directory data" but should I do something different or take it to mac store or something Please let me know, all my projects are there and if I loose them Im gonna be dead
    thanks to all
    Message was edited by: demariai

    Hi demarial;
    Maybe in the future you will backup important data!
    If your use of Tech Tool Pro does yield the results you need, you might consider download a demo copy of FileSalvage. After running the demo it will tell you what it can recover then you have to pay for it to actually recover the files for you.
    Allan

  • 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.

  • HELP PLEASE - loading external swf scale problem

    I have a Flex 3 Actionscript Project. Basically all it does it take some flash vars, set the sound volume,  and load an external swf using a loader and add the loader as a child. The problem is I want the loaded external swf to be scaled to fill the entire stage, even if it distorts it, and that doesn't seem to be happening.
    I really need to resolve this. ANY HELP APPRECIATED.
    Marcus

    Thanks for the reply!
    Here's basically what my code looks like (note: I cut some stuff out that wasn't relevant for the sake of clarity).
    private var swfLoader:Loader = null;
    public function MySwfContainer()  
        stage.scaleMode = StageScaleMode.EXACT_FIT;
        stage.align = StageAlign.TOP_LEFT;
        var request:URLRequest = new URLRequest(swfUrl);
        swfLoader = new Loader();
        swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,SWFLoader_Complete);
        swfLoader.load(request);       
    private function SWFLoader_Complete(event:Event):void
        addChild(swfLoader);
    What I am observing is that if a swf larger than the stage area is loaded it clips it rather than scale it down and make it fit.
    Marcus

  • Objects outside of workspace show in SWF... Need help ASAP!

    When I export a flash movie (.swf file)And play it on full screen, the objects that are outside of the workspace show. Can anyone tell me how to fish this problem? need help ASAP! Thanks :]

    If what follows isn't sufficient for you to figure out, you'll have to spend some time learning how to work with Flash.  While you'll often get help solving problems in these forums, it's less likely you will get tutoring services.  Google is a very good resource for tutorials.
    To create a mask you draw a shape to the size you want and place it on a layer above all the content you want to mask.  A mask is actually not well named because masks normally hide things, while in the graphics world, masks define the are where things are shown... so when you apply a mask to something, only what is under the mask shows.  To finalize, you right click on the label area of the mask's layer and select Mask from the menu that appears.  You may have to drag lower layers up towards the mask layer to get them included, whicxh is why I mentioned creating the rest of the content as a movieclip (a single layer object).
    To control the visibility of objects you set their visibility to true or false (AS2: mcName._visible = true (or false),  AS3:mcName.visible = true (or false)).
    To create a frame around the stage, add a new layer atop everything and draw a rectangle big enough to hide all the content you don't want showing that is off the stage.  Then draw a rectangle that is the same size as the stage on top of that first rectangle, placing it over the stage, and then deselect anything that is selected.  Then reselect the smaller rectangle you just drew and delete it.  The larger rectangle is now framing your stage.

  • Load external SWF's help

    I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..can anyone help?

    Hello Kglad,
    Thank you for the swift reply, I don't know how to apply this to my code. At the moment it loads in images but it will load in external SWF's I pressume this is the section of code relevant;
    function thumbnailer(k){
    total_thumbs = _global.total;
    var container = thumbnail_mc.createEmptyMovieClip("th"+k,thumbnail_mc.getNextHighestDepth());
    container._visible=false;
    container._alpha=0;
    var image = container.createEmptyMovieClip("img", container.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
      target_mc.pictureValue = k;
      target_mc.onRollOver = function() {
       this._alpha = 50;
      target_mc.onRollOut = function() {
       this._alpha = 100;
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.th"+k+".img");

  • Loading external swf help plz!

    hi, Im trying to load an external swf even a object is clicked in the main swf, im using this code but i get an error, plz help if u can:
    bg.farm.addEventListener(MouseEvent.MOUSE_DOWN, farm_Press);
    var fl_Loader:Loader;
    function farm_Press(evt:MouseEvent):void
    bg.farm.removeEventListener(MouseEvent.MOUSE_OVER, farm_Over);
    bg.farm.removeEventListener(MouseEvent.MOUSE_OUT, farm_OUT);
    bg.farm.removeEventListener(MouseEvent.MOUSE_DOWN, farm_Press);
    removeChild(bg);
    fl_Loader = new Loader();
    fl_Loader.load(new URLRequest("farmSWF.swf"));
    bg.addChild(fl_Loader);
    fl_Loader.width = Capabilities.screenResolutionX;
    fl_Loader.height = Capabilities.screenResolutionY;
    error---
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Project2_fla::MainTimeline/frame1()
    thx pavel

    hey guys, thx for the replies both helped a lot!
    I found this way and it seems like its working but now i dont get how to get the external to close and main to kick in afte external is finished...the problem is that the external file is kinda a game so there is no clear cut ending you no? is there any way that i can get the main file to listen for a currentLabel and then if thats hit exit the external?
    code used to load:
    ---First key frame has ---
    var ferrisID:Loader = new Loader()
    bg.ferris.addEventListener(MouseEvent.MOUSE_DOWN, ferris_Press);
    function ferris_Press(event:MouseEvent):void
    gotoAndStop("ferris_Load")
    ---ferris_Load---
    ferrisID.load(new URLRequest("Project 3.swf"));
    addChild(ferrisID);
    thx pavel

  • Help with loading External SWFs

    Hi:
    I need to load external swfs into a mc. They will play in
    sequence, as soon as one ends, the next one will start. When
    running it blows by the first external swf (start.swf) and the rest
    of the external swfs will not continue to load and play after the
    objectives.swf. Could someone take a look at my code and tell me
    what I’m doing wrong?
    I’ve created controls that will allow me to play, pause
    and stop the external swfs while they’re playing (however,
    these buttons do not seem to have any effect on the external swf
    when it is playing). I think it is a scope issue, but I am not
    sure.
    Also, there’s a combo box at the bottom, which allows
    the user to jump to any external swf (it actually jumps to certain
    labels on the main timeline) at any time. The combo box appears to
    work OK.
    The FLA is located at:
    www.digitalhorizonstudios.com/exstream/newplayer.fla
    By the way, this presentation is a fullscreen .exe file when
    in use, not a swf played in an html file.
    Thanks SO MUCH for any help on this one.

    Please try this line of script:
    var myLoader:Loader = new Loader(); //create the varaible for the loader
    var myURL:URLRequest = new URLRequest("A.swf");// create the variable for the swf to be loaded
    myLoader.load(myURL)
    addChild(myLoader);

  • Need help unloading an External .swf within another external .swf

    My main project loads an external .swf ("room") depending on which button the user clicks. Once that external .swf ("room") is loaded, the viewer chooses a ("demo") .swf to view. I need the "demo" .swf to unload once it is finished playing so that the viewer sees the 1st external .swfs menu again. All .swfs are loaded into an empty loader component. The "demo" swfs were created in captivate thus I don't have access to a timeline for them.
    I imported a .swf into captivate that will call a function at the end ie..._root.unloadCaptivate();
    and I have the following code in the originally loaded .swf
    function unloadCaptivate() {
    mcLoader.unloadClip(accountingLoader_mc);
    btnEndPeriod_btn.enabled = true;
    btnCashCollect_btn.enabled = true;
    btnFinancialMGMT_btn.enabled = true;
    _root.btnHome_mc._visible = false;
    btnAcct_mc._visible = false;
    btnPlay._visible = false;
    btnPause._visible = false;
    That all works fine, but when I load "room" .swfs into the main .swf, the unloadCaptivate(); no longer works...any ideas? Thanks!

    you should be able to use a loop (like onEnterFrame) to check when your demo swf's _currentframe==_totalframes.

  • AS3 load external swf problem, please help...

    Hey guys, I am really in need of an answer here. I would tremendously grateful if someone has the answer. I'll keep it simple and right to the point:
    1. I have created "index.swf" in AS3. Has it's own "MainClass" class.
    2. I created "holder.swf" which is the main landing page. Has 2 buttons, for the viewer to load the site in fullscreen or standard.
    3. In the timeline of "holder.swf" I have created 2 frames, 1st frame containing the buttons, second frame containing the AS3 external swf loader script.
    It does not seem to want to load my "index.swf".
    I have tested a million different ways, it load other swf's just fine, AS2 and AS3, but for some strange reason it just will NOT load "index.swf".
    This is driving me crazy, I have a feeling it has something to do with a class conflict. I have tried (import MainClass;) in the first frame of "holder.swf" and no luck.
    PLEASE GUYS, LET ME KNOW IF YOU KNOW THE ANSWER!
    THANK YOU SO MUCHO.
    Michael

    Hey kglad,
    Thanks for the quick reply!
    Well here is the problem... With the exception of a few things I need to update, as well as implementing some better preloaders etc... the site is running alright...
    About a week ago I decided that I wanted to site to start with the above landing page. A simple "holder.swf" which would give the viewer something to look at before entering the site... (ideally I want to find a script that will begin loading "index.swf" while the viewer is still on "holder.swf", but I'll figure that out later).
    Anyhow, I created "holder.swf" as I have many times before, and for some reason it does not seem to want to load "index.swf" into the second frame when instructed to do so... does that make sense?
    So... ideally I would like the site to start on the above graphic, then once the button is clicked, "index.swf" opens up...
    It's driving me crazy, because my code works on other swf's I've tested it with, just not with index.swf, which leads me to believe there is something in the MainClass.as file which is causing it not to load...
    What are your thoughts?
    Oh, and many thanks again!!!
    M

  • UNLOADING EXTERNAL SWF. SOMEONE HELP!

    I have a menu in my site and i recently added a comment form that is loaded when you click one of the buttons of the menu.
    My problem is that when I click on a different menu button the external swf [comment form] its still there I've tried adding the unloadMovie
    option but its not working. Here is the code for both buttons.
    ---------------------HOME BTN:
    on (rollOver) {
    gotoAndPlay(2);
    on (rollOut) {
    gotoAndPlay(6);
    on (release) {
    if (_root.choose != "home" && _root._currentframe!=30) {
    _root.play();
    _root.choose = "home";
    //mysound = new Sound();
    //mysound.attachSound("soundClick");
    //mysound.start();
    --------------------COMMENT FORM BTN:
    on (rollOver) {
    gotoAndPlay(2);
    on (rollOut) {
    gotoAndPlay(6);
    on (release) {
    if (_root.choose != "contact") {
    _root.play();
    _root.choose = "contact";

    unloadMovie() will work if there's a movie clip to be referenced. If you have assigned a name to the loaded movie you can unload it with unloadMovie(). Another option is to call unloadMovie() from the clip itself like: my_loaded_mc.unloadMovie(this); In every case check for incorrect paths (if you load a movie and refer to _root - the root will be the root of the loader, not the movie itself)
    Emil Georgiev - Flash and Web Design

  • Window component / external swf - plz help :( !!

    Hi,
    any clues here would be appreciated, its kept me up lately.
    My flash app consists of a main swf, a button on the stage
    which when clicked creates a Popup and loads an external swf like
    so
    myWindow = mx.managers.PopUpManager.createPopup(_root,
    mx.containers.Window, true, (title:"My Title",
    contentPath:"Status.swf"});
    so far so good...
    After I create the window and load the external swf I use
    LocalConnection to pass values between the swfs eg.
    sendingLC = new LocalConnection();
    sendingLC.send("lc_name", "myMethod", txtUniqueID);
    now i can pass values between swfs fine if I run the swfs in
    separate players (or debugging both swfs in flash mx), but I cannot
    pass in a value to a swf that is loaded in a window component into
    the main swf
    Would be really grateful if someone could post a sample fla
    of the Window component loading external swfs and passing values
    between the swfs or some ideas about how to achieve the same thing.
    Thanks
    Mike

    Skip the hub and use one of the rear ports on the computer.

  • 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

Maybe you are looking for

  • Installation problem of Oracle 8.1.7 on solaris 10 x86

    Hi, I tried to install the Oracle 8.1.7 on solaris 10 x86 and I got an error message shows: "cannot write to /opt/oracle/product/8.1.7/jar/classes2.jar".checking the log it shows: Exception: IOException2 and exception: copyGroupFromJar. I ignored the

  • Indd will not update placed images that have type design changes from Ai

    I am creating a book in Indesign ca4 and have placed hundreds of images from Illustrator cs4. These images have unconverted type in them. When i update the font (in FontExplorer X) the files  updates fine in Ai. However, when I go to the Indd file no

  • Synchronizing Master Pages in Book

    I seem to have hit a Catch-22 and I'm hoping somebody can help. I'm working on a book consisting of 25 chapters. Currently it's all in one file and that's becoming pretty unwieldy. So I'm breaking it up into separate files and using the book features

  • How to automate batch merging of 2 related images?

    Hello, I need to merge 2 images for a lot of images for my project, background and character. Example: Photo001_bg.tga and Photo001_char.tga will be merged into Photo001_char.tga Then I will no longer use Photo001_bg.tga But I need to do it upto Phot

  • HT4245 Downloaded mountain lion primarily to use iMessage.

    Cannot activate iMessage with my Apple ID and password. I know the ID and password are correct but keep getting error message "The server encountered an error processing registration. Please try again. Have tried deleting and reinstating iCloud and e