To load an image at runtime using a relative path for the source URL
do the following (provided assets folder with your images is in your
source folder):

<mx:Image id="img" source="./assets/image.jpg" />

Note the "./" at the beginning.

--- In [email protected], ben gomez farrell <[EMAIL PROTECTED]> wrote:
>
> Hello - just a quick question.  I usually work with the embedded 
> graphics (lots of Image or SWFLoader components) where I set the source 
> attribute to embed.
> I've never had luck in the design view with layout.  It always appears 
> as a broken link, so I have a lot of guesswork when laying out my 
> designs.  But, I was just working on a project with a lot of runtime 
> assets.  All my SWFs showed up perfectly.  Does anybody have any hints 
> to get the same kind of design view support when embedding vs
loading at 
> runtime?
> 
> thanks!
> ben
>


Reply via email to