1 Reply Latest reply on Oct 13, 2010 4:42 PM by Ned Murphy

    What is the proper button code if my button is inside the UILoader?

    nikolaig Level 1

      I have issues with the buttons working from the SWF file which is brought into the main flash site via UILoader.

      Just in case here is my code:

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

       

      icysophistication_btn.addEventListener(MouseEvent.CLICK, onClick_PlayApplications_fromIcyS_EL);

       

      function onClick_PlayApplications_fromIcyS_EL(event:MouseEvent) :void {

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

       

      }

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

       

       

      I gathered that it is most probably due to the fact that I have constructed a button in the improper way.

      I tried to redo a button but it was the same result.

      I would like to try to access it through the main timeline. What would be the whole block of code to put a function on the button located inside an external SWF which is called in via a UILoader?