[Embed(source="...   And dispatching events and trace commands not working

Hi,
I have a main swf that Embeds another swf.  In the embedded (child) swf I have trace commands and it dispatches events. 
I embed the child swf like this:
[Embed(source="../assets/child.swf", symbol="ChildMC")]
public var ChildMC:Class;
var child_mc = new ChildMC();
child_mc.addEventListener(Event.COMPLETE, childComplete);
addChild(child_mc);
function childComplete(event:Event):void
at the end of the timeline in the child swf I have: dispatchEvent(new Event(Event.COMPLETE));
When I test the main swf, I can see the child swf, but the main swf can't catch any of the dispatched events and I don't get any trace commands from the child swf.
How can I catch events from an embedded swf?
thanks!

I did a quick sample with two fla's.
The first loads in a child swf and then calls a funtion on the main timeline:
var url:String = "loadTestChild.swf";
var urlRequest:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_complete);
loader.load(urlRequest);
addChild(loader);
function loader_complete(evt:Event):void {
   evt.currentTarget.content.callMeFromParent();
The child swf has this code on the main timeline:
function callMeFromParent ():void {
          trace ("called from parent whoop");
Running the parent, the trace is called.
So with this you should be able to call any function you have in the child from the parent.

Similar Messages

  • Illustrator CC 2014 open and place commands not working after installing Yosemite

    How can I get Illustrator Open and Place commands to work after installing Yosemite?

    Hello,
    I also have the same problem, after 5 minutes I can't open or place anything in illustrator. I have this problem also in photoshop cc 2014. This started after installing Yosemite.
    Tried to reinstall but nothing helps.
    Today after updating creative cloud application it is even worse: illustrator is not opening anything: not even a new file. So I reinstalled... and I can open again for 5 minutes. But then it crashed while saving. Now I can't open illustrator at all...so nothing left to do then reinstalling again I suppose?

  • Buttons under source and record monitors not working

    For some odd reason, the buttons under the source and record monitors are not working in Premiere. This is a new install, and I'm relatively new to Windows so I hope it is something obvious. Buttons in other CC apps work fine. Any ideas out there?
    Windows 7
    2 x 10 core CPU (40 virtual)
    64 GB Ram
    nVidia Titan
    Decklink 4K
    Latest Premiere CC build
    Wacom Tablet

    Yes, actually. I unplugged the Wacom, uninstalled the drivers and restarted. Problem still there. Other ideas?
    Chris
    =========================================
    Edited by moderator to remove personal information

  • Source and Program Monitor not working after October CC 2014 Update

    I updated to the October 2014 Replace of Premiere Pro and since then I have had major issues with the Source and Program monitors. 
    I can select a clip from the media browser and have it appear in the source monitor - click play.  The clip will play for a bit and the picture will stop, but the audio will keep going. After a few seconds the source monitor will just display a red screen and the audio will keep going.   The same things happens in the program monitor  (different clips that worked before the October 2014 update) will start displaying the yellow media pending screen - and then go to red after a few seconds.  Again - this is a mutli-camera sequence that worked before the October 2014 update. 
    I am pretty much dead in the water at this point.  And yes, I have rebooted, changed the Mercury play back engine from hardware to software.  Nothing seems to correct the issue. 

    I have had similar problems. In fact playback is so sluggish it is unworkable.
    In addition Audio in nested sequences doesn't play back, and when it does it is intermittent. Totally unworkable!

  • File and keyboard commands not working in Illustrator CC.

    I'm having massive problems with Illustrator CC. The open and paste commands work once or twice and then nothing. Unless I quick the program, they will not work. I have tried everything. I took the drastic step today and erased the hard disk and loaded EVERYTHING again. And I mean everything. I even tested Illustrator without activating the fonts to see if it was a font conflict. Nothing. I'm done. I have tried everything. Has anyone else had this problem? I need help…

    Hi Nicholas Petropoulos,
    I am sorry but even i am running out of options now.
    Try these.
    Make sure you do not have any browser open when you use Illustrator.
    If you are using a magic mouse or Wireless Keyboard.
    Try disconnecting them and check the performance.
    Also when the issue happens, do you have to force close the application to make it work again?
    The mouse and other options do not work on Illustrator. Are you able to use the mouse any where else on the machine when the issue happens ?
    Regards,
    Nikhil Gupta.

  • SAP* and DDIC locked and SQL commands not working

    Dear All,
    We work on ECC6 and SQL 2005 as database.Somehow our SAP* and DDIC user gets locked in production server client 240 and SID AEP
    I tried the following things but none worked.Every time getting error.
    1. First i tried to run the following command in SQLPLUS mode
    in th command prompt i typed sqlplus / nolog(then enter)
    I got the following error sqlplus is not recognized as an internal or external command,operable program or batch file.
    2 Then i thought may be we work on SQL database we may already be in the SQLprompt.Still when i typed conn / as sysdba,same error
    conn is not recognized as an internal or external command,operable program or batch file.
    3.Then i again go to the command prompt and typed
    delete* from sap<AEP>.usr02, where BNAME = ' sap* ' and MANDT = ' 240 '
    This time I get the system cannot find the file specified
    Anyone can please clear my following doubt.
    1. Am I requiredto go in SQLPLUS  mode even when we have SQL Database.
    2. How to unlock this SAP* and other super users.Cause yesterday somebody must have tried to login to sap*,ddic,and sapbasis and in the process locked all by entering the wrong password.
    PS: Other users are working as we have role based authorization
    Help will be highly obliged
    Regards,
    Ashutosh

    Hello, ive got a problem with the SAPDB abd SAP* and DDIC in Client 000
    in our PROD 000 client we forgot the password for SAP* , DDIC and cannot delete it.
    Now the account was locked. please help how to reset SAP * this account on SAPDB.
    Its DB Versio 7.7! I read a lot about that! Please, step by step, is that a problem of interface sqlcli, or rights?
    Please could somebody give me an feedback about sqlcli, could i delete it with this tool the user? Because SQL studio is damaged on that server. Failed installation,Will not work! could not remove!
    I have to configure the server! sorry, i am not so much familar with SAPDB
    in old releases the shema is SAPR3 the new (NW 7) is SAPSR3.
    Checked 701!
    please set login/no_automatic_user_sapstar to 0.= Done!
    At sql propmt: Thats no SAPDB sqxli command, right!!!!
    select * from sapsr3.usr02 where bname='sap*' and mandt='000';
    Thats doesnt work!
    When i logon with the superdba , the connect is fine!
    After the command execute
    D:\sapdb>sqlcli -U DEFAULT delete from sapsr3DB.usr02 where bname='sap*' and mandt ='000';
    -10757: XUSER error (the USERKEY is unknown)
    select * from sapsr3.usr02 where bname='sap*' and mandt='000'; Doesnt work!
    What the hell is the error??? Doesnt find the answer, before, i get the same error then the other colleagues
    unknown table USR02! Is this superdba? Rights of DBA??
    please give an step by step advice. Logon with..... before ... choose sqlci..............sqlcli, \? + sql execute......
    Kind regards
    Ralph

  • After Effects "Import", "Replace footage" and similar commands not working

    From today my "Import" and "Replace footage" commands are no longer working properly. I can perform one of these commands once and then they no longer work until I restart AE. Both the menu items and the contextual menu in the project window behave the same. It is hugely frustrating.
    I started having the problem after opening a project from a colleague who has been experiencing the same thing.
    I am working on a mid 2014 Macbook Pro with 16GB of RAM with Os X Yosemite 10.10.2. My AE is on CC 2014 and is fully up to date.
    Any ideas?

    I have the same problem with exact the same setup. Also in Photoshop i can`t open files.
    I also reinstalled everything and i get the same problems again.

  • Lpr and lpq command not working

    I installed cups and configured my printer via the web interface. I can print from firefox if i use the print menu, but from the command line lpr and lpq gives me this:
    vladuz@box:~$ lpr book.ps
    lpr: Error - no default destination available.
    vladuz@box:~$ lpq
    lpq: error - no default destination available.
    Can anybody help me fix this?

    James:
    You can close the thread as "Solved" and it's done.
    You can find how to trash DVDSP preferences here:
    http://docs.info.apple.com/article.html?artnum=302641
    Hope that helps !
      Alberto

  • MAC Mouse and Keyboard Do Not Work, when I am trying to re-install the OS using "Command R" option

    I am trying to re-install MAC OS 10.8.2, but when I hold "command R" I am asked for the firmware password, but the keyboard and mouse do not work.
    If I only select "option" during the boot up process it will ask me for the firmware password, keyboard and mouse work, but I can only select the HD option.
    Can someone advise what is the problem here, and your resolution.
    I have tried different commands "option + command + R' with no luck.

    I tried what was provided on the link, but it is not working.
    I hold it down, before the gray screen and the chime, but it only prompts but the firmware password.
    I tried based on the specific order in the support document and at a random press and hold.
    No go any other thoughts?

  • Java7 and Java6 will not work opening pogo games on firefox, but works perfectly for IE, what can I do to fix this issue?

    Java will not work on the computer all of a sudden. Now when I go to open a Pogo game room up i get a Mozilla red lego piece in the corner saying "Some plug ins have been De-activated for your safety, in the box will be "Java (TM) platform SE 6 U". I have removed Java7 and reloaded it, after that not working found Java6 and loaded and reloaded it and it is not working.
    Now after 3 minutes of the room not loading Pogo will give me the error message of
    Java Not Found or Not Working
    Explanation:
    This error means Java (one of the technologies built into most browsers) is not working correctly on your browser.
    You must have Java installed on your computer in order to run Pogo games, and it must be functioning properly. Either you don't have Java installed yet, or the Web browser you're currently using doesn't support Java or you have Java (or Javascript) disabled in your browser.
    How to Fix the Problem:
    Java is a free download that is required to play Pogo games. Not all computers come with Java pre-installed.
    If you haven't played Pogo games before and are getting this error, you probably just need to install Java on your computer.
    For instructions on installing Java for your operating system and browser click here.
    If you believe Java might be installed but disabled for your browser, please be sure to enable the plugin for your browser. If you need help, click here.
    If you already have Java installed and it is not disabled, your Java may be out-of-date or no longer working. In that case, your Java might need to be upgraded or reinstalled. If you need help, click here.
    I have done the click here in last sentence and all it wants me to do is download Java7 which was the first reason it was not working.
    Hopefully I have explained this well enough, from Mozilla this is what I get BUT if I go to Internet Explorer (which I HATE) the Java6 and Java7 work perfectly fine. So apparently the Java is downloaded correctly I just can not get it to play nicely with Mozilla and that is my main goal.
    EA games help page has gone through it all with me and have proven over and over (after 1 hour sessions, 45 waits for them) Java is working on my computer perfectly with IE just not on Firefox and with the rural situation I have become dependent on Mozilla because of the no fiber optics here it has been my best and only source of successfully using the internet here in the far out part of the country.

    Thank you so much, for once in my computer life I knew what the problem was, what caused it, why it was caused, what it did, what it made it do and most importantly how to fix it and to do it correctly and expeditiously. I can not Thank You all enough for all of the help! I also have Pogo mailed this to all on my friends list, where they have all learned as I have and have fixed theirs also. and the message is being spread. Thank You again, I just can not say it enough.

  • TS1814 I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!

    I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

    Try this:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • My wireless keyboard and mouse do not work on my All-In-One computer?

    Q.: My wireless keyboard and mouse do not work on my All-In-One computer?
    A.: If your wireless keyboard and mouse do not work even after changing the batteries, please try re-syncing them by following these steps.
    1. Make sure the computer is on, plug in the USB receiver. Push the button on the USB receiver until it flashes blue.
    2. While the receiver is still flashing, press the red connect button on the keyboard (Make sure the batteries are installed). The USB receiver should stop flashing after pressing the button on the keyboard. It may take up to 8 seconds to sync.
    3. Repeat the same process for the mouse. Push the button on the USB receiver, then press the connect button on the mouse (Make sure the mouse is on).
    Note: This applies to all MSI All-In-One computers that include the ES500W wireless keyboard and SW130 mouse.

    "This machine has an added 4 USB ports, could this be causing a problem?
    It definitely could be the source of the problem. Perhaps the PCI card was bumped loose during shipping?
    Have you tried removing the card? That's where I would start.
    Keep us posted.

  • Cancel and Exit button not working

    Dear Experts,
    <u>Cancel and Exit button not working</u>
    I am calling a screen from inside a report program
    using SET SCREEN 9000.
    2 of the date fields(start date end date)
    on this screen are Mandatory.
    I am not able to Come out of this screen 9000 using
    CANCEL or EXIT button
    without giving a date entry in both of
    Mandatory fields (start date end date).
    Can someone help me with a solution?
    Appreciate your valuable help;
    Points assured
    Thanks,
    Aby Jacob

    Hi..
    To avoid this problem you have to use AT EXIT-COMMAND Module.
    1. In the GUI Status for both EXIT and CANCEL buttons assign the Function type E (Exit Command)
    2. In the PAI of the Screen Call this module.
       MODULE EXIT_SCREEN AT EXIT COMMAND.
    3. Now check the OK_CODE or Sy-ucomm in this module to Leave the Screen
       MODULE EXIT_SCREEN  INPUT.
           CASE OK_CODE.
          WHEN 'EXIT' .
                LEAVE TO SCREEN 0.
          WHEN 'CANCEL'.
          ENDCASE.
       ENDMODULE.
    This will surely work.
    <b>reward if Helpful.</b>

  • I had somebody  work on my OS 10.9.2 to speed it up. He failed and now  Preview, Textedit, App Store, Mail and Contacts  do not work anymore. I can still use Safari, Firefox and iPhoto etc. How do I get it fix I can still use Safari, Firefox and ed again?

    I had somebody  work on my OS 10.9.2 to speed it up. He failed and now  Preview, Textedit, App Store, Mail (crashes) and Contacts  do not work anymore. I can still use Safari, Firefox, Word, Photoshop and iPhoto etc. How do I get the Apple programs fixed again?

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    Interesting bug. I'm cautiously optimistic this will get rid of the weekly annoyance. The difference is that I bought my laptop back in Feb 2015, so it came with Yosemite. I think the issue may have appeared soon after an OS update not long after I got the thing, though. I was using a sudo command in the Terminal, but that is obviously not a fix.
    I wonder if there is a broken .plist file that may be fixed ...?

Maybe you are looking for