Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Dec 16, 2013 Dec 16, 2013

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!

TOPICS
ActionScript
813
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 16, 2013 Dec 16, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines