Load image at runtime

I have an image component:


<mx:Image x="6" y="8" id="image" />

I’m allowing the user to choose some image and load it at runtime. I’m just learning how to do this, so right now I have a hardcoded image:


image.source = "../images/temp.jpg";

Why doesn’t this do anything? I just see the little error icon like you see on a website when an image cannot be found. But I definitely have temp.jpg.