Skip to main content
Participant
December 16, 2013
Question

AS3 Loader class: Error #1006: load is not a function. WHY?

  • December 16, 2013
  • 1 reply
  • 885 views

Hello,

Running Flash CC on a borrowed Macbook Air.  I've been using AS3 for years, and haven't run into this.  I've looked all over and I'm not finding my particular issue anywhere.

All of the examples of AS3 image loading that I've seen are some variation of what I'm doing. It should be very straightforward:

__________

import flash.display.Loader;

var my_loader:Loader = new Loader();

my_loader.load(new URLRequest("img/phone.png"));

stage.addChild(my_loader);

_________

When I publish, I receive this error: Error #1006: load is not a function.

Thanks!

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
December 16, 2013

There is no issue with the code you show.  Make sure that the line in question is the one you show.  Go into your Flash Publish Settings and select the option to Permit Debugging - that should add the line number to the error message.