Jump to content
Search Community

kmbeck

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by kmbeck

  1. Trying to use the SWF loader function:

     

    Layer 1

    clickBtn.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent): void {

    var sURL: String;

    if ((sURL = root.loaderInfo.parameters.clickTag)) {

    navigateToURL(new URLRequest(sURL), "_blank");

    }

    });

     

    clickBtn.buttonMode = true;

    clickBtn.useHandCursor = true;

     

    Layer 2

    import com.swfUtil.SWFLoader;

     

    SWFLoader.loadSWF(loader_mc, "URL", true);

     

    stop();

     

    Getting the following compiling error:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at McallCreativeUtil/addClickButton()

    at McallCreativeUtil()

     

     

    Anyone help out here? Is it a problem with the movie clip I'm referencing?

×
×
  • Create New...