Jump to content
Search Community

SWF Loader error

kmbeck test
Moderator Tag

Recommended Posts

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?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...