External SWF imported successfully, can not put it in the video

Hi all

I started to learn AS3 and little by little getting used to trying to get external swf in video clip.

SWF target successfully imported and staged, when I post what I see swf target plays.

------------------------------------------------------------------------------------------ ----

import flash.display.MovieClip;

var BGLoader:Loader = new Loader();

var BGurl:URLRequest = new URLRequest("HomeBG.swf");

BGLoader.load (BGurl);

BGLoader.y = 0;

BGLoader.x = 0;

addChild (BGLoader);

------------------------------------------------------------------------------------------ ----

As a next step, I want to put the swf in the video and get more control, but when I publish below only I see is a background empty, without any error.

------------------------------------------------------------------------------------------ ----

import flash.display.MovieClip;

var BGLoader:Loader = new Loader();

var BGurl:URLRequest = new URLRequest("HomeBG.swf");

BGLoader.load (BGurl);

BGLoader.y = 0;

BGLoader.x = 0;

addChild (BGLoader);

var animMC = MovieClip (BGLoader.content) .getChildAt (0) as MovieClip;

addChild (animMC);

------------------------------------------------------------------------------------------ ----

Missing something?

Any help would be appreciated, thanks.

You cannot access Loader.content after load completed successfully.

Try this,

import flash.events.Event;

var BGLoader:Loader = new Loader();

var BGurl:URLRequest = new URLRequest("HomeBG.swf");

BGLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);

BGLoader.load (BGurl);

BGLoader.y = 0;

BGLoader.x = 0;

addChild (BGLoader);

var animMC:MovieClip;

function completeHandler(event:Event)

{

animMC = event.currentTarget.content;

addChild (animMC);

}

Tags: Adobe Animate

Similar Questions

  • Can not 'put' pictures with the rest of the page w/CS3

    Since we switched to CS3, I have to 'put' all images separately, instead of all at once with ctrl-shift-u, or they don't show up. I checked the preferences and found nothing to change that. Help, please!

    You are prompted to upgrade the dependent files when you load a page?

    If no, go to PREFERENCES. Site > prompt on PUT/GET (enable).

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "marygg" wrote in message
    News:fmlk8c$584$1@forums. Macromedia.com...
    > Since we switched to CS3, I 'put' on the contrary images separately.
    > all
    > both with ctrl-shift-u, or they don't show up. I checked the preferences
    > and
    > found nothing to change that. Help, please!
    >

  • I use vista home premium.i am the only user. In windows update, change the settings, I noticed information as "some settings are managed by your system administrator" under updates important, I can not access or change the settings.

    recently, I tried to change the reg key by going to "HKEY_LOCAL_MACHINE\SOFTWARE\POLICIES\MICROSOFT\WINDOWS\WINDOWS UPDATE\AU" in the right panel, I changed my reg AUoptions value to 0.

    I'm using norton 360 (ver 2.5.0.5) .no other norton is installed.my subscription will be emds after 865 days.

    UH - huh. You have 2¼ ~ years remaining on an N360 2009 subscription. I see.

    In this case, the Symantec Support should be able to help you eliminate the hijackware infection which is causing your problem.

    Good luck!

  • I installed JZip and now I can not put my homepage of everything except the jzip search page. How to disable the functionality of jzip?

    I installed JZip and now I can not put my homepage of everything except the jzip search page. How to disable the functionality of jzip?

    See:

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

  • I deleted the SMART virus, but I can't access my desktop. I have no icons and can not put everything on it.

    I deleted the SMART virus, but I can't access my desktop. I have no icons and can not put everything on it.

    Hello
    To view your files and your icons, download Unhide. Once downloaded, double-click display and let it run. It removes the attribute hidden on all files and try to restore the items on the start menu to their proper location.
    I hope this helps you.
    Brian
  • Can not put Windows Media says Server unavailable player security?

    Can not put Windows Media says Server unavailable player security?

    Hello

    You can download Windows Media Play Security Upgrade from the following link.

    The security component upgrade

  • why I can not put a wallpaper? I click on set as desktop and the desktop is always black?

    why I can not put a wallpaper?  I click on set as desktop and the desktop is always black?

    Also, if you have Windows 7, check out this Microsoft support article for other causes and troubleshooting ideas.

  • why we can not put windows 7 on our new computers?

    why we can not put windows 7 on our new computers?

    Jay

    You can "downgrade" to win 7 BUT dependent on the Lim, it may void your warranty and there is perhaps no drivers for your computer with windows 7.

    Putting aside the modern splash screen (which you can ignore at startup) win 7 and win 8 are very similar.  If you don't like the modern user interface, you don't need to use it.

    To work around the start right click the taskbar > properties > navigation >

  • How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    dannyb76251437 wrote:

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    Note that you can work with two screens and drag and drop the image to display on the other window.

    I think you mean working temporarily with the window enlarged image without displaying all the tools and panels.

    See:

    Panels and bins in Photoshop Elements

    My advice: take the time to read the above help and especially to look at ways to maximize this window if you are on Mac or Win.

    Set your preferences in the Edit menu to "allow the floating windows in expert mode.

    Use the "tab" on the keyboard key to hide or show your panels and tools quickly.

    Find out how to hide the photo tray.

  • Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    It is an Apple problem. They obviously fixed with a change to iTunes. Download the update on their part.

    HAL

  • FDMEE of planning data loaded successfully but not able to see the data in Planning - export of fish shows in FDMEE

    Hi all

    We loaded FDMEE data to planning, data has been loaded successfully, but not able to see the data in the Planning Application.

    In the processes log, I can see her mentioned data loaded in the Cube. Please advise on this.

    Thank you

    Roshi

    Two things:

    -I wasn't talking about method you import data but export data. You use the SQL method. Go to target Applications, select your application of planning/essbase, and set load method as a file. Memorize your settings

    2014-06-19 12:26:50, 692 [AIF] INFO: rules properly locked the file AIF0028

    2014-06-19 12:26:50, 692 INFO [AIF]: load data into the cube by launching the rules file...

    2014-06-19 12:26:50, 692 INFO [AIF]: loading data into the cube using sql...

    2014-06-19 12:26:50, 801 [AIF] INFO: the data has been loaded by the rules file.

    2014-06-19 12:26:50, 801 [AIF] INFO: Unlocking AIF0028 rules file

    2014-06-19 12:26:50, 801 [AIF] INFO: successfully unlocked rules AIF0028 file

    -Then export again and review. DAT file in the Outbox folder. Is it empty?

    -You need to add a new dimension to your import format (Dimension add > currency). Then add Local as expression

    -Import, validate and export data

  • Can not activate Photoshop on the new MacBook Pro

    Program version: Photoshop Elements 8.

    I just bought a new MacBook Pro today to replace my three year old MacBook. I sold my old MacBook after I backed up on an external hard drive via Time Machine. I used the migration wizard to import everything on my new Macintosh and Photoshop throws an error saying that I can not activate Photoshop because the serial number has been activated more than once (it is also used on my iMac).

    My old MacBook has been reformatted and is no longer with me, so I can't go back and disable that copy of Photoshop (I have eBay documents and emails showing sale and reformatting my old Macintosh for evidence). What should I do? Who should I talk to? I don't want to buy another copy of Photoshop. I use Photoshop for graphics in Web to University development, so I need it up and running!

    Thank you.

    ~ Benjamin Anderson

    However, for the activation problem itself, you can contact adobe to reset your activations.

  • Satellite M70-360: CEekey.eke can not run because its the missing dll

    I accidently deleted the ekecioctl.dll and now whenever I start my laptop (Satellite M70-360) I get an error message saying that CEekey.eke can not run because its the missing dll. Anyone know where I can download the dll?

    Thank you

    Hello

    The CEekey.exe seems to be part of the Toshiba E - key utility.
    Therefore, you should try to reinstall this utility to obtain the keys working again.

    Another clue; have you tried to restore the operating system to the early time point?
    XP supports the System Restore tool. You can easily put the BONE at an early stage and the E key should work again I hope ;)

  • Tecra A9 - sometimes I can not type - click using the touch pad

    There are times that I can not type - click using the touch pad or other keys (all of a sudden without any reason)

    I can move the cursor in this case but not tap - click here to be able to click once again, I have to restart (this happens on both windows and linux)

    On windows, I press alt + ctrl + del and when the Task Manager window I can tap it and after I do I can tap - Select something else and so on.
    Click on the Task Manager click on anything else until I reboot and the problem goes away just to appear suddenly unexpectadly at the same time.

    I have the newest bios and driver accupoint

    Any tips?

    This happens only with touchpad, or when you use an external USB mouse?
    For me it looks more like the Windows operating system freezes for a short period. Is this good?

  • How can I put pictures in the most recent at the top of the screen while I scroll more recent instead of to the top?

    How can I put pictures in the most recent at the top of the screen while I scroll more recent instead of to the top?

    The album "All Photos" can only be sorted by date, oldest first.

    But you can create your own album of all the Photos in a smart album, which keeps all the photoss. A custom Smarta album can be sorted in descending order, most recent photos first.

    My album ' my photo all the "custom is defined as: a rule 'Date is after', with a date range beginning well before the oldest photo in the library, then everything will be included, and I added a"Photo is not hidden,"so hidden photos will be excluded.

    To sort descending album ctrl-click in the sidebar and value 'out' 'Keep sorted by date, most recent first':

Maybe you are looking for

  • control extensions

    in the firefox add-ons Manager, how to disable users to turn off an add-on that is already running? via the config / user js file?

  • My emails do not go through

    Original title: network programs network networking Internet Web site Site Web Web Site URL When I send e-mail, it doesn't go to the recipient

  • How to activate 802.11ac on EA6500

    Bought an EA6500 last year and have now a laptop with an 802.11ac wireless card inside. At work, my laptop shows it's connected ac 802.11.   At home on the EA6500 I can't it connect with ac 802.11. What should I look for?  I don't see any 802.11ac sp

  • Deskjet 1000 printer

    Hello, I'm sorry to bother everyone but I have a problem. I have connected my Deskjet 1000 to my computer using a USB key and it works fine.  But I would like to be able to print wireless.  Can anyone help?  I tried a lot of things, but I'm not havin

  • Error when inserting the event calendar (on Simulator)

    Hello I tried to run the example of pimcalendar (from GitHub WebWorks examples) on Alpha of Dev Simulator, but I got the following error: Need error cannot find usr/lib/webplatform/plugins/next/libpimcalendar.so library is not found I have the last S