load kids > parents > child (external SWF)

in as3, I have a main swf file and that contains a placeholder movieclip, I want to load a swf file into this placeholder (which is not a problem), but I want to use a button in the swf file to load a new swf in the current placeholder on the main swf clip. (and unload/Park the original loaded swf).
I tried to use parent.parent and I also read that you can use a dispatcher/listener of events in the main movie of _root, however, I don't want to recode the each film main time I add a new button in the film responsible for targeting the same clip of placeholder, but load a swf again.

Ideas of thought would be appreciated, the solution is probably to the front, but I've searched and searched, but does not.

Keith

This is the code that I proposed (but now, using your reference names):

///////////////

sgWeb2_btn.addEventListener (MouseEvent.CLICK, coreTwo);

function coreTwo(e:Event):void {}

Charger (this.parent) .load (new URLRequest ("SGCORE1.swf"));

}

/////////////////

and that the code should be on the main timeline of the external swf file.

Tags: Adobe Animate

Similar Questions

  • With the help of a button to load and unload the external SWF in AS3?

    How can I use a button to load and unload a sequence of external SWF files, as a Next button and previous?

    I don't know if it will work because apparently you are trying to load a swf AS1/2, but try

    change the line to be...

    _swfTempClip = MovieClip (event.target.content);

    If this does not work, then you will need to create _swfTempClip as a new MovieClip and add the event.target.content to this MovieClip using addChild().

  • Incompatible extern SWF loaded class with tree

    Hello

    I created a method to load certain classes of extern SWF (as descripted it).

    I can use the classes in theses for the source of the image.

    I have this bug when I used them for a tree of the icon.

    The problem is in the TreeItemRenderer 389 line.

    var iconClass:Class = _listData.icon;

    I don't understand the problem because my class CNodeRelais class type and iconClass is a type too...

    I really need help . Thanks in advance.

    TypeError: Error #1034: the type constraint failure *: conversion of CNodeRelais@10c95421 into mx.core.IFlexDisplayObject impossible.
    to mx.controls.treeClasses::TreeItemRenderer/commitProperties() [E:\dev\4.0.0\frameworks\proj ects\framework\src\mx\controls\treeClasses\TreeItemRenderer.as:389]
    at mx.core::UIComponent/validateProperties() [E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateClient() [E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:863]
    to mx.controls::List / http://www.Adobe.com/2006/Flex/MX/internal:setupRendererFromData ([E:\dev\4.0.0\framework s\projects\framework\src\mx\controls\List.as:1706])
    at mx.controls::List/commitProperties() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntrols\List.as:895]
    at mx.controls::Tree/commitProperties() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntrols\Tree.as:1189]
    at mx.core::UIComponent/validateProperties() [E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties() [E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]

    You can't make a class implements an interface when running, so there is no

    way to change the interfaces of a dynamically loaded class.

  • Control external swf timeline

    Hey guys

    I was wondering how to control the timeline of an external swf that is loaded into the root of your main timeline from within clips embedded in your main timeline?

    I can control it successfully once he is responsible for the function which assigns the external swf a var MovieClip, but I want to be driven for more deeply in my main swf.

    1. I loaded an external swf into the root of my main swf.

    2. after loading, I assign the external swf file a var MovieClip and then set up a button to control the timeline of the external swf file:

    function dataOnLoad(evt:Event): void {}

    var myClip:MovieClip = evt.target.content;

    function updateSwf(evt:MouseEvent): void {}

    myClip.swf_MC.gotoAndPlay (2);

    }

    update_but.addEventListener (MouseEvent.CLICK, updateMenu);

    }

    I want to do is now, instead of the button where it is, I like it to reside in the moiveclip, I called editor_MC, which is on the timeline which is the code of function above.  How can I call updateSwf(evt:MouseEvent) to editor_MC?

    Cheers for your help guys.

    Shaun

    do not take local myClip to your function.  (and never nested named functions):

    var myClip:MovieClip;

    var loader: Loader = new Loader();
    addChild (loader);

    var newSWFRequest:URLRequest = new URLRequest (loadSwf.text);
    Loader.Load (newSWFRequest);

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataOnLoad);

    function dataOnLoad(evt:Event): void {}

    myClip = MovieClip (evt.target.content);

    update_but.addEventListener (MouseEvent.CLICK, updateMenu);

    }

    function updateSwf(evt:MouseEvent): void {}

    myClip.swf_MC.gotoAndPlay (2);

    }

  • Currentframe external SWF: problem

    I have a movieclip that loads and plays an external SWF into it.

    Y at - it anyway to know the number of the current framework of the external swf file so that I can use it to drag the progress bar from the film.

    Note: I can not change the external swf. They are just simple and static films.

    It is urgent, please help.

    Thank you

    You can determine the current image of any chronology in the external swf.  for example, if you want to know the current image of the main timeline and you are using as2, use:

    targetMC._currentframe;  where targetMC is the movieclip in which your external swf has been loaded.

    in as3:

    MovieClip (ldr.content) .currrentFrame;  where the ldr is the loader that loaded your external swf.

  • Problems with external swf preloading

    Hello

    I have to do a Web site using Flash CS3 and ActionScript 3. I decided to implement a main.swf with a menu that loads all other pages (external SWF) into a movieclip. During the loading process is illustrated a preloader. It works fine until you click on a button to one page in another we're always loading. Although the percentage of meter refreshs swf you asked last gets charge and the dsiplayed, the preloader doesn´t turn invisible and stops above 100%.
    Please can someone help me? What I chose a completely different approach?

    The code on frame 1:

    var swfLoader:Loader = new Loader();
    sets the conbox movieclip as a place for external SWF files
    conbox.addChild (swfLoader);

    all external SWF
    var homeURL:URLRequest = new URLRequest("Unterseiten/home.swf");
    var home2URL:URLRequest = new URLRequest("Unterseiten/home2.swf");

    the EventListener
    swfLoader.contentLoaderInfo.addEventListener (Event.OPEN, loadStart);
    swfLoader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, loadProgress);
    swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadProdComplete);
    load the first external swf at startup
    swfLoader.load (homeURL);

    the functions
    function loadStart(e:Event):void {}
    var percentLoaded = 0;
    }

    function loadProgress(event:ProgressEvent):void
    {
    var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
    percentLoaded = Math.round(percentLoaded * 100);
    this.percentLoaded.text = String (uint (percentLoaded)) + '% ';
    This. USLadetext.visible = true;
    this.percentLoaded.visible = true;
    }
    function loadProdComplete(e:Event):void {}
    trace ("file loaded");
    This. USLadetext.visible = false;
    this.percentLoaded.visible = false;
    }

    The code for a button:

    [button1.addEventListener (MouseEvent.MOUSE_UP, onBtn1Release);
    function onBtn1Release(e:MouseEvent):void {}
    swfLoader.load (home2URL);
    }

    Ah now I see you add loader to display the list.  I made an example of loading of 2 swf files, here is the source code of the files are attached, let me know if you don't understand something.

    stop();
    //pages to load
    var swf_ar:Array =["content1.swf","content2.swf"]
    //holder sprite
    var holder:Sprite = new Sprite();
    this.addChildAt(holder,0);
    //loader
    var loader:Loader;
    //controls
    btn1.addEventListener(MouseEvent.CLICK,onControlClick,false,0,true);
    btn2.addEventListener(MouseEvent.CLICK,onControlClick,false,0,true);
    
    function onControlClick(e:MouseEvent):void
    {
         loadSection(Number(e.target.name.charAt(3)));
    }
    function loadSection(pSectionNum:uint):void
    {
         //check of loader exist-> remove listeners ,close the loader,set to null
         if(loader)
         {
              loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onSectionLoadComplete);
              loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress);
              loader.close();
              loader=null;
         }
    
         loader = new Loader();
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSectionLoadComplete,false,0,true);
         loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress,false,0,true);
         loader.load(new URLRequest(swf_ar[pSectionNum-1]));
    }
    function onSectionLoadComplete(e:Event):void
    {
         if(holder.numChildren > 0)
         {
              holder.removeChildAt(0);
         }
    
         holder.addChild(MovieClip(e.target.content));
    
         //when load finished remove losteners and set the loader to null
         loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onSectionLoadComplete);
         loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress);
         loader=null;
    }
    
    function onSectionLoadProgress(e:ProgressEvent):void
    {
         trace(e.bytesLoaded/e.bytesTotal);
    }
    
  • Unloading of an external SWF that is loaded with a close button on the external SWF to unload

    I found a discussion on this topic, but I still have problems to work and was hoping to get some help here.

    Here, I have a file: http://www.dril-quip.com/test/main.swf

    I: main.swf (menu) and I module.swf (content)

    If you go to the wellhead systems/SS-15 BigBore II submarine and click on I have to load an external swf which covers most of the parent company.

    So far so good. My problem drains the loaded swf to 'Child' with the button provided on the loaded swf to 'Child'.

    Here is the code that I used to upload the file but I can't, for the life of me, find a way to unload.

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

    bigboreLoader.load (bigboreRequest);
    stage.addChild (bigboreLoader);

    I am sure that it requires the child to communicate with the parent somehow, but I'm at a loss. If I could get a bit of advice or a link to something to deal with this, it would be a great help. I just need to have my links loading my modules and remove it when the narrow buttong is struck on the loaded swf file. I promise you that I did some research and I confess that I found asnwers, but still they do not work. I found the code below:

    Main FLA:

    function removeF() {}

    removeChild (bigboreLoader);

    }

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

    bigboreLoader.load (bigboreRequest);
    stage.addChild (bigboreLoader);

    EXTERNAL FLA:

    btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

    function bigborecontent(myevent:MouseEvent):void {}

    MovieClip (parent.parent) .removeF ();

    }

    I think I have a poor understanding of the code. Thanks for any help you might be able to provide.

    again, this code should all be on the same timeline as btnbb2. in main.fla.

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);


    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");
    bigboreLoader.load (bigboreRequest);
    addChild (bigboreLoader);

    }

    function removeF() {}

    removeChild (bigboreLoader);

    }

    /////////////////////// end main.fla code ///////////////////////////////////////

    This code should all be on the main timeline in FLA EXTERNAL.

    and btnClose2 should be placed on the main timeline in your external fla. //

    btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

    function bigborecontent(myevent:MouseEvent):void {}

    MovieClip (parent.parent) .removeF ();

    }

    end external fla code.

  • 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, how to do this), but then click on a button that is loaded inside of the swf, load a different external swf in its place. Any ideas?

    OK, I thought about it myself. Basically, what I had to do was list parent + child in the clip where the button... well, for example, there is a film, which has support for child parorama, who was inside, the panorama of bitmiap where the buttons. so it would look like this:

    {Panorama.panorama1.hotspot_btn.onPress = Function ()}
    this.loadMovie ("newpanorama.swf", holder);
    }

    owner of the area where are swf files loaded and contained.

  • Loading an external SWF in Actionscript 2

    I'm creating an animation in Flash CS4 Actionscript 2.0 / Flash Player 7

    At the moment I have a Manager (video Clip) called myHolder which is used to play other swf files in a main swf file, when it is called by a button

    Within a button that loads the SWF in the main scenario - for example

    on (press) { loadMovie("BulletTrainDRAFT.swf", myHolder); }

    It works very well with bring the other swf files in the timeline of the main swf file, but when I put them a swf file that has video controls for a video it contains, they are not in Manager when played, but they do not work when the swf file is playing in its own window of external flash drive (the video is (Clip) on his own script in its fla design)

    Video buttons - ActionScript 2.0

    btnStop.onPress = function()

    {  _root.vid.stop();  }

    btnPlay.onPress = function()

    {  _root.vid.play();  } 

    btn_fastforward.onPress = function()

    {  _root.vid.nextFrame();  } 

    btn_Rewind.onPress = function()

    {  _root.vid.prevFrame();  }

    I tried ActionScript 3.0 code so

    Pausebtn.addEventListener(MouseEvent.CLICK,pauseHandler);

    Stopbtn.addEventListener(MouseEvent.CLICK, stopHandler);

    Playbtn.addEventListener(MouseEvent.CLICK,playHandler); 


    function stopHandler(event:MouseEvent):void

    { // Pause the stream and move the playhead back to // the beginning of the stream. video.gotoAndStop(1); }

    function playHandler(event:MouseEvent):void

    { // Pause the stream and move the playhead back to // the beginning of the stream. video.play(); }

    function pauseHandler(event:MouseEvent):void

    { // Pause the stream and move the playhead back to // the beginning of the stream. video.stop(); }

    Problem I have I think, is that an external swf movie load on the current timeline as a child and don't dump the chronology leading to the non-functional actionscript code, but I can't solve this problem.

    If the swf containing the video is an as2 swf, add:

    This ._lockroot = true

    It is the main timeline.

  • Var does not work if I load external swf.

    I have a set with two pages or labeled sections on the main timeline. I have the code for actions happening in each section page / labeled brake. On the first page, there is a VAN specified for each button

    var sourceVar:String;

    Then each button using this var to load a video in FLV player (the player itself is built in the second section of page / labeled).

    function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {}

    sourceVar = "howto_popups/jtvs18w12_LG30.flv";

    gotoAndPlay ("flv_pb");

    }

    where "flv_pb" is the label of the second section of page / labeled. It is on this second page/section labeled a FLVPlayback component named "SWF_flv2", which uses this var

    SWF_flv2.source = sourceVar;

    All above works. My problem is that I decided to take out all the elements (image buttons) in the first section. So, I saved them as an external SWF with all the code in the external swf file.

    Then link the buttons to the section 'flv_pb' in this way:

    function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {}

    MovieClip (parent.parent.parent).sourceVar="howto_popups/jtvs18w07_LG30.flv';

    MovieClip (parent.parent.parent) .gotoAndPlay ("flv_pb");

    }

    The link to the "flv_pb" section works, tells me should be putting up with "MovieClip (parent.parent.parent).".

    However the code as before with the setting up of (being in the external swf file):

    sourceVar = "howto_popups/jtvs18w12_LG30.flv";

    gotoAndPlay ("flv_pb");

    works as well, I don't know why?

    The problem seems to be in the var

    I have an error message 1120: access of undefined property sourceVar

    It is referred to the code in the second page labeled section "flv_pb".

    SWF_flv2.source = sourceVar;

    What are my actions?  I kept the code in the external swf file. Should I move it to the main timeline if possible? Should I reference only the var in the main time line?

    All code must be in the beginning of the time line, rather be broken into sections?

    If you want to use the UILoader component, then its 'content' property is what points to the swf file you load into it.

  • How we prevent external swf click do not affect the parent swf

    I use the loadMovie command to load an external swf (a short course of education) in the parent swf file. The parent swf file is an interactive exercise with several buttons to answer. The user can click a button to open and close the turorial on top of the exercise.

    If the user clicks at random on the tutorial, they can accidentally click the answer buttons in the swf below parent and hear signals correct and incorrect. When they close the tutorial, they see that the answers have been given and it has a score when they have not intentionally give all the answers.

    How to prevent clicks on the external register on the parent SWF swf? Thanks in advance for any help on this matter.

    Add a rectangle step in the lowest layer of your external swf and make sure that the size of the stage of the loaded swf file and load is the same.  convert this shape to a movieclip and assign an instance name (for example, bg_mc).  in Control Panel, you can use:

    bg_mc._alpha = 0;

    {bg_mc.onRelease = Function ()}

    }

    bg_mc.useHandCursor = false;

  • Delete / external swf or the files in the flash file main to unload and load a new swf file and memory garbage collection.

    I can't delete / unload the example swf files external when the carousel.swf (portfolio) appears and press the button about the content overlaps the carousel (portfolio). How can I delete / unload an external swf file in the main flash file and load a SWF, so that at the same time remove garbage collection memory operation?

    This is the error messages I receive: "TypeError: Error #2007: child parameter must be non null.»

    at flash.display::DisplayObjectContainer/removeChild()

    " to index_fla::MainTimeline/Down3().

    Import nl.demonsters.debugger.MonsterDebugger;

    var d: MonsterDebugger = new MonsterDebugger (this);

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.addEventListener (Event.RESIZE, resizeHandler);

    is the charger for the portfolio page swf

    var loader: Loader;

    var loader2:Loader;

    var loader3:Loader;

    var loader1:Loader;

    resize the content

    function resizeHandler(event:Event):void {}

    resizes the portfolio page to Center

    Loader.x = (stage.stageWidth - loader.width) *. 5;

    Loader.y = (stage.stageHeight - loader.height) *. 5;

    resizes on page to Center

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    * loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5; * /

    }

    addEventListener (Event.ENTER_FRAME, onEnterFrame, false, 0, true);

    function onEnterFrame(ev:Event):void {}

    var requesterb:URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel1.

    Adds gallery.swf in the scene at the beginning of the film

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requesterb);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    stopover gallery.swf duplication and more on enter frame

    removeEventListener (Event.ENTER_FRAME, onEnterFrame);

    }

    PORTFOLIO BUTTON

    Add eventlistner so that gallery.swf can be loaded

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    function Down(event:MouseEvent):void {}

    Re add listener for contact.swf and about.swf

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    discharge of entry gallery.swf frame if users press portfolio in nav button

    var applicant: URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel."

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    removeChild (getChildByName ("about"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the gallery.swf

    MovieClip (root).nav.portfolio.removeEventListener (MouseEvent.MOUSE_DOWN, down);

    }

    INFORMATION BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    function Down1(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    var applicant: URLRequest = new URLRequest ("contactLoader.swf");

    loader2 = null;

    loader2 = new Loader();

    loader2. Name = "contact".

    loader2.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader2. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader2);

    loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5;

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.info.removeEventListener (MouseEvent.MOUSE_DOWN, Down1);

    }

    ON THE BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    function Down3(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    var applicant: URLRequest = new URLRequest ("aboutLoader.swf");

    loader3 = null;

    loader3 = new Loader();

    loader3. Name = "a connection"

    loader3.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader3. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader3);

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    removeChild (getChildByName ("carousel"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.about.removeEventListener (MouseEvent.MOUSE_DOWN, Down3);

    }

    Stop();

    You call unload() on objects that you cancelled - where the error.

    You should do something like:

    {if (loader2)}

    loader2. Unload();

    }

    As for the null value passed into the function - null is a default value. In this way, you can call the low past nothing:

    Down()

    Or you can use it as a handler in which case it will be called by the Auditor:

    Down (mouseEventInstnace);

  • Load an external SWF since an external SWF

    Hello

    I'm kinda caught between a rock and a hard spot on a flash site project. Here's the situation:

    I created a parent movie (that load all external SWF inside) that has built-in navigation menu. However, my client wants to place me some more inside the external swf links that lead to other pages (external SWF) on the site. Is this possible? I was hoping there is a way to tell a button in an external SWF to make the parent film from an external SWF.

    ANY help is appreciated. Thank you.

    Another question: it does not use the _parent script?

    Elijah

    If you want, for example, a button in welcome.swf to load a SWF into support, then welcome.swf will be unloaded. is that what you want? If so, in welcome.swf you can use:

  • Using the DateField in an external SWF loaded

    Hello

    I had major trouble trying to get a PHP contact form basis to work within an external SWF file loaded within a parent SWF. When I test the movie on its own it seems to work fine (example: I am able to select a date in the DateField component). However, when I open the SWF file parent and call the external SWF file with the DateField shape is essentially unusable (example: when you click on it nothing happens, no calendar is displayed to select a date).

    I have no ActionScript on it yet, simply because I tell myself that I need to work before I tell him what to do with the PHP file. The name of the instance on the DateField is 'survive. ' Any help is appreciated. Thank you.

    Also, I used successfully the contact form on the web. But, UI components only that I am able to edit the input text boxes, not the DateField or ComboBox I have in there as well. It is very strange, I was not aware that he had to do something special with the help of these user interface components in an external file.

    Elijah

    Hey 2 m.

    In fact, I found a post on this forum who answered the way back in February in kglad. The answer to my problem was simply place the following code on the layer actions where my components have been posted:

    This ._lockroot = 1;

    That's all. Thank you at least 2 m.

    Elijah

  • Problem with loading external swf files

    Hello

    I am currently working on a project which is an interactive and dynamic elemtry school presentation to the Denmark. I finished my project and it works perfectly, but only locally on my computer.

    The final draft should be implemented on the site and public work. I tried to implement the project on the site and unfortunately, it does not work as expected.

    When all the files where transferred to the ftp server, only a single files are responding and appear correctly.

    Interactivity of the project is based on a structure of Action script, which is based on the smooth transition between swf files (load another swf file after the action is triggered by clicking on a button) do any work.

    After days of trying to figure out the solution, I'm totally lost. One thing is to publish the project so that all action script will work and answer between swf files, and the other thing is to make it user-friendly for the Android and apple products.

    The presentation is quite heavy because of its loading external swf content files, which are images and movies.

    I really hope you can help me with my problem. I will gladly share the files and codes if it would help solve the problem.

    Best regards

    Agata

    It could be a problem of location of file from loading.  When you place a swf file in an HTML base for targeting anything that the SWF load becomes the folder of the html page.  You may need to adjust the target so that the target of swf files, load it as if it were in the same folder as the html page.

Maybe you are looking for

  • MacBook Pro 2007 Does not show the headset as an output option

    Hi all, I have recently restored a MacBook Pro 2007 for my college work and it works well... Except for one thing. The wearing of the helmet. I wish I could use my headphone port that I will do a Final Cut Pro here job and likely to spend much time i

  • change menu crash

    Hello several times now I have reproduced a CVI 2009 SP1 crash when you try to change a menu. (There is also a way to do it without an accident, fortunately). How to reproduce the crash: -Open the IUR in the CVI UIR Editor -Move the mouse over the me

  • ForcePad 0x0000001f calibration error

    Hello, I get an error of calibration of ForcePad. This is a screenshot attached. The ForcePad seems to work very well.

  • Help with recovery disks CTO T500 2081

    I'm creating this thread as Agotthelf adivced, one of the Mods here... I am a happy owner of Thinkpad T500, I bought my T500 2081 U.S. CTO last Christmas. I received the same on January 2010, and I had created recovery disks using Lenovo tool, IE the

  • Why UPH cleaning keep getting marked as suspect?

    When I look into the history of Windows Defender my HUP Cleanuphlp.sys keep is marked as susicious. I installed it as it was recommended to ensure a clean closure... not as some sort of spyware. Thanks in advance... turnorburn