Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now