Load swf into a native window

How to load an external swf into an external window? I use the following code, it works if I add the swf file at the stage of the original window, but not if I add it to the stage of the new window.

import flash.display.NativeWindow;

import flash.display.NativeWindowInitOptions;

var newWin:NativeWindow;

var init:NativeWindowInitOptions = new NativeWindowInitOptions();

init. Resizable = false;

init. Maximizable = false;

init. Minimizable = true;

function openWindow (): void

{

PvE = new NativeWindow (init); Initialize the Native window

newWin.activate ();

newWin.width = 800;

newWin.height = 600;

newWin.title = "my new first victory!"

}

openWindow();

var swfLoader:Loader = new Loader();

newWin.stage.addChild (swfLoader);

var bgURL:URLRequest = new URLRequest ("file:///C:/Users/Siggy2xc/Desktop/Mass Media UI/Project/swf/standard.swf");

swfLoader.load (bgURL);

Yes, I tested with air 2.6, but your code should work for air 1.0 +.  I loaded a local swf using a relative path to the security settings are not relevant.

Tags: Adobe Animate

Similar Questions

  • Loading swf into container

    I created a movie that is in charge of several sovereign wealth funds by an empty container. I tried to change paths many times and I can not get movies to play properly. In fact, they did it on our local test server, but after uploading to the server of customers, the problems started.

    My test page is: http://www.sumnerhomemortgage.com/test/index.html

    Loader.swf plays originally part1.swf. Here's the code for that:
    loadMovie (" http://www.sumnerhomemortgage.com/test/flash/part1.swf", container);

    Okay, it was a setting of MIME on the host server. They might not read flv files!

    I have placed the file elsewhere, but now have a problem of streaming media. The videos are very jerky...

  • Using firefox 14.0.1. Load a link using the right click and "Open link in new window", translates into a new window opens but doesn't show URL address bar...

    Using firefox 14.0.1. Load a link using the right click and "Open link in new window", translates into a new window opens but doesn't show URL address bar. However, if I click with the right button on a link and select "Open link in a new tab", the tab displays the URL in the address bar. If it works when a new tab it's not in a new window.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Loading a swf into an AS2 clip file

    I had some problems with loading a swf into a clip.  The code I use is as follows

    {We (Release)}
    contentbox.loadMovie("contact.swf",0);
    }

    It works fine on the loading plan, but it loads the swf file so that the upper left corner is at the center of the content area, pushing the bottom and the right side of the way of content off the screen.

    Looks like the contentbox registration mark is centered.

  • LOAD AN EXTERNAL SWF INTO A CLIP

    Hello.

    I work in a project that load several SWF into a main movie. I use this code and works fine:

    btn_que.addEventListener(MouseEvent.CLICK, presionado); 
    function presionado(Event:MouseEvent){
       //Crea una variable llamda cargador para que cree un cargador//
       var newMedia:Loader = new Loader();
       //Crea una variable para generar un clip vacio (anteriormente host)//
       var cont:MovieClip = new MovieClip();
       //Ruta donde esta la pelicula a cargar//
       newMedia.load(new URLRequest("que_es.swf")); 
       //Posicion X que va a tener//
       cont.x = 0;
       
       stage.addChild(cont);
       cont.addChild(newMedia);
    }

    But I want to load the swf file into a clip (called host), when the person in the button click (really my button is a movi clip).

    What should I do?

    Thank you...

    See the code below (read comments):

    btncerrar.visible = false;
    // declare variable in this scope
    // so that it is visible by other functions
    var newMedia:Loader;
    // container should be in upper score too
    // Sprite is more efficient
    var cont:Sprite;
    
    btn_que.addEventListener(MouseEvent.CLICK, presionado);
    function presionado(Event:MouseEvent){
       //Crea una variable llamda cargador para que cree un cargador//
       newMedia = new Loader();
       //Crea una variable para generar un clip vacio (anteriormente host)//
       cont = new Sprite();
       //Ruta donde esta la pelicula a cargar//
       newMedia.load(new URLRequest("que.swf"));
       btncerrar.visible = true;
       //Posicion X que va a tener//
       cont.x = 0;
       stage.addChild(cont);
       stage.addChild(btncerrar);
       cont.addChild(newMedia);
    
    }
    
    btncerrar.addEventListener(MouseEvent.CLICK, cerrar);
    function cerrar(Event:MouseEvent){
         btncerrar.visible = false;
         cont.removeChild(newMedia);
         newMedia.unload();
         newMedia = null;
    }
    
  • Loading external swf into an Air application

    Hi all

    I have build an Adobe Air app for desktop PC and have problems to load an external swf. Whenever I try to load, I get:

    SecurityError: Error #2070: security sandbox violation... cannot access stage owned by app... blah blah

    The file is loading is in a local directory, but I understand its in an another "sandbox" that represents a security risk.


    Is there a way to get around this?


    Any help would be appreciated


    Thank you very much


    Matt

    That's why I added these comments on domain of the swf file.  for locally loaded SWF files, use:

    SFMltd wrote:

    Hi Kglad, thanks for the example.

    If I run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.

    The e-mail of swf file trying to load is stored locally, so I guess that this error is logical. However if I comment on this line, I get the same error "cannot access stage owned by app"?

    See below for the class:

    package {}

    import flash.display.MovieClip;

    import flash.filesystem.File;

    import flash.events.Event;

    import flash.net.FileReference;

    import flash.events.MouseEvent;

    import flash.display.Loader;

    import flash.net.URLRequest;

    import flash.system.LoaderContext;

    import flash.system.ApplicationDomain;

    import flash.system.SecurityDomain;

    public class assetPreview extends MovieClip {}

    private var loader: Loader;

    private var mainSWF:MovieClip = new MovieClip();

    public void assetPreview() {}

    addEventListener(Event.ADDED_TO_STAGE, initialise);

    }

    public void initialise(e:Event):void

    {

    removeEventListener(Event.ADDED_TO_STAGE, initialise);

    var allowSWF:LoaderContext = new LoaderContext (false, ApplicationDomain.currentDomain);

    allowSWF.securityDomain = SecurityDomain.currentDomain;

    loader = new Loader();

    Loader.Load (new URLRequest (settingsXML.pathToSWF), allowSWF);

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

    }

    public void viewPreview(e:Event):void

    {

    addChild (mainSWF);

    mainSWF.addChild (loader);

    }

    }

    }

  • HP ENVY 7640 all-in-one: print envelopes and its telling me to load paper into the photo tray

    I am trying to print envelopes on the HP ENVY 7640 printer and it tells me to load paper into the photo tray. Have you encountered this problem and how to solve? Thank you.

    Hey @cmm3,

    Welcome to the Forums of HP Support!

    I understand that you have a problem when printing envelopes from your Windows 7 computer to your HP ENVY 7640 e-all-in-one printer. I would like to help you today with correct this print error "Photo tray". To start I have to make sure that the envelope is correctly loaded in your troubleshooting paper tray. Once you have confirmed that your envelope is loaded OK we'll take a look at the envelope to print on your computer settings. Can I please you follow the steps below.

    Step 1: Load the paper:

    To begin troubleshooting, please click here. Once the support document opens, please select the drop down list for "load envelopes. Please see the instructions on the screen to ensure that your envelope is correctly loaded in the paper tray. Once you have confirmed that your envelope is loaded correctly, proceed to the next step.

    Step 2: Check the print settings:

    Below I will provide you with instructions for printing envelopes per word. You should use a different program on your computer to print envelopes, please respond to this post with the program that you are using so I can provide specific measures.

    1. Open Word and click mail merge to top
    2. Select "envelopes" in the upper left side
    3. A page of envelopes and labels should now open. Enter your delivery and return address.
    4. Select 'Options' on the lower right
    5. Under the tab 'Options for envelopes' to ensure that your envelope is correctly selected.
    6. Select the 'Print Options' tab at the top. You must now select as appropriate feeding method for your product.
    7. Make sure that you choose the option "Face down".
    8. Also ensure that 'right-hand Rotation' is selected
    9. At the bottom of the window, select the drop-down list of pet food
    10. Make sure that the feeding method is set to main tray rather then select automatically
    11. Press 'OK' and 'Print'.

    Please reply to this message with the result of your troubleshooting. I can't wait to hear strings attached good luck!

  • How can I me printer to load directly into my computer instead ofsnapfish

    How can I me printer to load directly into my photo folder on my computer instead of download on snapfish?

    Are you connected USB or wireless? If you are wireless, you will not be able to get the photos on the SD card on the computer.

    If there are videos or files of great true photos on the SD card, it will not download everything on the computer.

    When you put the SD card, it won't automatically on your Windows drive, Snapfish.

  • Removal of the external loaded swf does not decrease memory

    I'm developing a desktop application using flash builder 4.7, where I am loading swf external swf main, but after his withdrawal, it remains in the process (check in the Task Manager. os: windows 7), process decreases a little, but not as much as it should be. so, whenever I insert again and remove, process increases and after multiple loading, application crash down. I'm removing it like this

    if (_loader.numChildren>0)

         _loader.removeChildren(0,_loader.numChildren-1);

    _loader.unload();

    _loader.stopAllMovieClips();

    _loader.unloadAndStop(true);

    _loader.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);

    this.removeChild(_loader);

    _loader = null;

    I have added custom destroy the external inside swf method and started calling him. I was almost everything, remove (almost say because it might be something I missed, because it's huge project) but still the long process.

    That I created empty swf (new project without code and nothing in it) and tried to integrate and to see what is happening. It was just the same...

    Then I thought again Air SDK may have solved this problem, so I've updated SDK for 19.0.0.207 currently more recent, but still nothing, even if the process now increases above.

    I think that it comes to Flash gc. One of the solutions is to have one and only instance of swf external and removeChild and addChild it whenever you need. It is a bad way to do it. Process will not increase all the time, but in my case I have many SWFs to load and it will slow down my request for computers of RAM low resources it could cause the crash and it is bad to have unnecessary things running in the background process

    so any suggestions are welcome

    No need to stop the video clips and remove... use unloadAndStop() and it will all stop and unload the file... as it is not possible to call the content of charger (clips) stop after the unload method, it is already removed... So, try to use only 3 lines only to unload the file.

  • loaded SWF does not work properly

    I created a maze game (the idea is to draw a line to connect between 2 video clips in the wall of the maze)

    This is the code of the game:

    Stop();

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    We draw or not?

    var drawing: Boolean;

    var isStart = false;

    var drawingSprite:Sprite = new Sprite();

    addChild (drawingSprite);

    drawingSprite.graphics.lineStyle (3, 0 x 000000);

    drawing = false; to start with

    stage.addEventListener (MouseEvent.MOUSE_DOWN, startDrawing);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, draw);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopDrawing);

    function startDrawing(event:MouseEvent):void {}

    drawingSprite.graphics.moveTo (mouseX, mouseY);

    drawing = true;

    }

    draw function (event: MouseEvent) {}

    {if (Drawing)}

    drawingSprite.graphics.lineTo (mouseX, mouseY);

    }

    }

    function stopDrawing(event:MouseEvent) {}

    drawing = false;

    }

    Adds an event listener on the stage with the move of the mouse event.

    stage.addEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    function detectHits(event:MouseEvent) {}

    If the mouse touches the edges of the labyrinth, return to the

    first scene and remove the mouse move event listener to the

    Stadium.

    If (wall_mc.hitTestPoint (mouseX, mouseY, true)) {}

    If (isStart == true) {}

    drawingSprite.graphics.clear ();

    gotoAndPlay (3);

    isStart = false;

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    }

    }

    If the mouse button point the brush, proceed to the third stage and

    remove the mouse event listener move scene.

    ElseIf (hit_mc.hitTestPoint (mouseX, mouseY, true)) {}

    If (isStart == true) {}

    drawingSprite.graphics.clear ();

    gotoAndPlay (2);

    isStart = false;

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    }

    }

    }

    mc_start.addEventListener (MouseEvent.MOUSE_OVER, fl_MouseClickHandler);

    function fl_MouseClickHandler(event:MouseEvent):void

    {

    isStart = true;

    }

    works very well and published as swf

    When I try to load this game to another fla

    the market never properly Yes the loaded swf file and the game starts well

    but when I start to draw the line in the maze and without touching any wall it moves on the chassis (lost u)

    The error is always using mouseX and mouseY.  If you had failed to compensate for the placement of the loaded swf file then you will would not compensate for mouseX/Y for one would be the same value as mouseX/Y for those responsible.

    You need to deal with the overall conversion to local or you must build in compensation.  Because it is a fixed value (35), you can set the code in the swf file to use a Compensator variable that is set to zero by default in the swf file (for when he plays his own).  When you load it into another file, then you need to wait after is fully loaded and loading file assign a different value to this trim... in this case it would be-35

    Another way to solve this problem would be to move all the content in the swf 35 pixels to the right and downwards (in itself).  Then it would be unnecessary to adjust the positioning and the mouseX/Y values would be the same for the main movie and the one responsible.  Then, the only problem might be using the SWF itself.

  • load swf in RAM via an asset manager

    Hello.

    I have a virtual world of AS3 and we continuously loading external resources such as sovereign wealth funds and the sounds.

    Some of my menu screens that darn take a long time to load. Read a tut, who said we should load them into memory vivid using the asset manager.

    I'm assuning asset manager is simply a class that is used especially for sounds, graphic and sovereign funds of loading and unloading. The important part is:

    What do mean by loading into RAM.

    I thought that all SWFs were automatically loaded in RAM IE: cached or is in the flash player or the browser cache. Or what I need to do specifically myself with a code. We import external files, so we thought it was a great idea because they are shared by a lot of games.

    BTW: RSL I haven't read but I don't understand. I thought that my external loaded files were RSLS (runtime shared libraries) or I have to do some physical encoding convert in RSL.

    It's so important, because I'm not very experienced but I am getting much better because aid receied in this forum and my current programmer leaves me. I studied in As3 and design patterns and I know basic coding a lot better now.

    SEE YOU SOON

    EDIT: Just read that I am using an http call. -J' use urlloader - well, it's what you use isn't it or how load you an external swf. Just read that you can contain the SWF as a variable that it loads into RAM and therefore will be available immediately. Know that I do not understand something I've ever read anywhere.

    Hey,.

    I do not now have time to examine it in detail, but it feels like queries are cache busted. This means that they are responsible every time - not used from the cache.

    Unless the server is set up on non-cache, there must be something in your code that makes the different URL request every time.

    A brief look at your code makes this suspicious line:

    _path = path + Home.instance.cacheString;

    If the value of Home.instance.cacheString is always different - it is certainly a source of your troubles.

  • control the loaded swf file

    Hi all

    I am loading a swf into another SWF, I want to controll loaded swf such as play and pause the swf. The loaded swf file is an animation file, all animations are kept in a movieclip, then please tell me how I can control the animation.

    In your first assignment, you tell the animation is present in a movieclip.  If this movieclip is in the loaded swf file you will probably need to target this movieclip to tell him to play rather than the SWF itself, as in...

    currentSWF.movieclipName.play ();

    where movieclipName is replaced with the name of the instance of movieclip in the loaded swf file.

  • Load SWF sound management - issue

    I have a sound problem. I have a flash (swf) loaded into another flash (my main swf) file.

    I want to cut all the sounds in loaded swf. I cut "timeline" sounds (with the loader object soundTransform) successfully, but my problem is with runtime played sounds.

    If the sound is reproduced using actionscript (not manually droped on the stage using the flash and the timeline) and soundTransform does not apply.

    I think I can't use SoundMixer because it would cut my main SWF sound too.

    I worked on it for a week and I would gladly appreciate your help.

    Thank you!

    Yet once, if there is no soundchannel for sound loaded (or other), you cannot control the volume of sound.  You can close the stream if the sound in the loaded swf file is itself responsible and open, but cannot control the individual sounds in the loaded swf file.

    If there is a soundchannel loaded, you can find (using actionscript) and use it.  But if you are unsure if a soundchannel exists, the best you can do is find the sounds, stop them if they are still streaming, restart them with a soundchannel and then cut the.

    but most people can stop just all sounds.  It works for you?

  • org.apache.bsf.BSFException loading data into Essbase

    What I try to do is to load data into Oracle's Essbase?
    The operator-> all executions
    Integration to prepare for loading (success)
    Load data integration into essbase (failed) with the below error


    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 23, in there?
    com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1 at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java) at org.python.core.PyMethod.__call__ (PyMethod.java) at org.python.core.PyObject.__call__ (PyObject.java) at org.python.core.PyInstance.invoke (PyInstance.java) at $0 org.python.pycode._pyx35.f (< string >: 23) to org.python.pycode._pyx35.call_function (< string >) to the org.python.core.PyTableCode.call (PyTableCode.java) at org.python.core.PyCode.call (PyCode.java) at org.python.core.Py.runCode (Py.java) at org.python.core.Py.exec (Py.java) to (PythonInterpreter.java) org.python.util.PythonInterpreter.exec to org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144) to com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345) to com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755) to com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:69) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515) to com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537) to com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449) to com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322) to oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794) at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114) at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:83) at java.lang.Thread.run (Thread.java:619) caused by: com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1 at com.hyperion.odi.essbase.ODIEssbaseDataWriter.checkMaxError (unknown Source) at com.hyperion.odi.essbase.ODIEssbaseDataWriter.sendRecordArrayToEsbase (unknown Source)... 35 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:69)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:83)
    at java.lang.Thread.run(Thread.java:619)

    I don't really understand what's your problem, you should not need to do anything once it is executed, the interface if records have loaded, then they should be in essbase, if they are rejected, then the error should give you an idea of why they were.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Unable to access MovieClips and functions in a loaded SWF

    Hello world

    I'm just trying access anything whatsoever within the loaded SWF and all I get is 'null '.

    I have the code in the SWF parent who must tell the SWF movieclip child what to do, but nothing works. It's a piee of cake into AS2, and I can't seem to get anything of crossover in AS3.

    Here is my code:

    import com.greensock.TweenMax;
    import flash.display.MovieClip;
    
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("SWCS_S3_500x250_exp_panel_2.swf"); // in this case both SWFs are in the same folder 
    myLoader.load(url);  // load the SWF file
    panel2.addChild(myLoader);   // add that instance to the display list, adding it to the Stage at 0,0
      
    panel2 = myLoader.content as MovieClip;
    
    photo_about.alpha = 0;
    photo_downloads.alpha = 0;
    
    //panel2.content_about.alpha = 0;
    //panel2.content_downloads.alpha = 0;
    
    function closeSection():void
    {
              panel2.controlsMC.forcePause();
    
              TweenMax.to(photo_about, .5, {alpha:0});
              TweenMax.to(photo_downloads, .5, {alpha:0});
              TweenMax.to(photo_home, .5, {alpha:0});
      
              TweenMax.to(panel2.content_about, .5, {alpha:0});
              TweenMax.to(panel2.content_downloads, .5, {alpha:0});
      
              TweenMax.to(panel2.controlsMC, .5, {autoAlpha:0});
              TweenMax.to(panel2.content_home, .5, {alpha:0});
    }
    
    

    Panel2 traces null and all clips loaded in draw property undefined errors.

    Can someone please tell me what I'm doing wrong? I would be happy to see what Miss me and feel like this should be a piece of cake.

    Thanks for any help!

    You do not add the content of the scene to 0.0, you add it to panel2 to 0,0.  Then you take panel2 and assign to something that probably does not exist at the time wherever you set it.  You must wait until the loader load before trying to do something with its content, otherwise it has no content (null).  Similarly, you can not control anything in the loaded swf file, until it is fully charged.  So to assign an event listener for the property contentLoaderInfo the loader to determine when loading is complete, and have the event handler works deal from interacting with it.

    var myLoader:Loader = new Loader();

    var url: URLRequest = new URLRequest ("SWCS_S3_500x250_exp_panel_2.swf");

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, processLoadedSWF);

    myLoader.load (url);

    function processLoadedSWF(evt:Event):void {}

    deal with the swf loaded here

    but you do not want to be assigned to the panel2 object that contains the charger

    }

    With regard to the control of anything anyone inside of the swf you are loading, is an AS1/2 or an AS3 swf?

Maybe you are looking for

  • Sansa fuze will not update track licenses

    I must have the most ghetto sansa fuze there because I had so many problems with mine. I currently have two. I have the new firmware from sandisk sansa updater program. First of all: When I connect my sansa fuze to my PC to update track licenses, add

  • Windows Update fails, laptop breaks down at the restart, Windows 7

    I had to buy a new drive hard laptop to my Toshiba Satellite after the first one stopped working. I reinstalled Windows 7 and did all the required Windows updates. So I wonder to restart, as usual, and I do. The problem is, when it gets to the point

  • no records show as indexed.

    I have win 7 installed when I try to search (in outlook), none of these search on the Ribbon options are active excepr the 'more' opt. when I look at the indexing options in the control panel no locations appear as being indexed. "advanced" is the on

  • Reinstall Windows 7 repair disc?

    My Dell had a Windows Vista operating system. I installed Windows 7 as an upgrade. BOT Family Pack and send the original to our son who lives across the country. The hard drive crashed and Dell it replaced under warranty but would only replace the Vi

  • Inspiron 1501 - stero mix

    I have Inspiron 1501 visat base.  If someone knows how can I mix of stero?  I found this page http://www.dellcommunity.com/supportforums/board/message?board.id=insp_audio&message.id=39952#M39952 However, I couldn't find post #404, as he said.   Is th