# AS3: Loading jpgs

**URL:** <https://forum.kirupa.com/t/as3-loading-jpgs/281092>\
**Category:** flash\
**Created:** [February 4, 2009, 8:29pm UTC](https://forum.kirupa.com/t/as3-loading-jpgs/281092 "2009-02-04T20:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzxjoanw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@zzxjoanw](https://forum.kirupa.com/u/zzxjoanw)\
**Post date:** [February 4, 2009, 8:29pm UTC](https://forum.kirupa.com/t/as3-loading-jpgs/281092/1 "2009-02-04T20:29:19Z")

</div>

I’m trying to make a program to load multiple images. So far, I have

```auto
import flash.display.*;
import flash.filesystem.File;

var loader = new Loader();
loader.load("images/powell.jpg");
addChild(loader);

```

but when I run it, I get an error saying

```auto
TypeError: Error #1034: Type Coercion failed: cannot convert "images/powell.jpg" to flash.net.URLRequest.
    at loadImage_fla::MainTimeline/frame1()

```

As far as I can tell, it’s convinced that I’m trying to use the load() method from the scrollpane class (that’s where the context help takes me). How do I specify that I want to use the loader class method?

TIA
