5 Replies Latest reply on Mar 18, 2015 5:01 AM by kglad

    How can I call functions from a SWF loaded in to another SWF?


      Hi there,


      Please excuse my ignorance, I am very new to actionscript and flash.


      I have 2 SWF's - a.swf and b.swf.


      I load b.swf into a.swf with the following code:


      var swfLoader:MovieClipLoader = new MovieClipLoader();
      swfLoader.loadClip("b.swf", container_mc);


      Now in b.swf, I have a function as follows:


      public function sendData(){
        trace("I ran the function!");


      So I have done a lot of reading, from what I can tell I should be able to run the sendData() function from the code in a.swf, by typing:




      but its not working. What am I doing wrong?


      Thanks in advance,