# Mask and jpg

**URL:** <https://forum.kirupa.com/t/mask-and-jpg/162010>\
**Category:** flash\
**Created:** [September 8, 2005, 9:20pm UTC](https://forum.kirupa.com/t/mask-and-jpg/162010 "2005-09-08T21:20:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maquisard](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Maquisard](https://forum.kirupa.com/u/Maquisard)\
**Post date:** [September 8, 2005, 9:20pm UTC](https://forum.kirupa.com/t/mask-and-jpg/162010/1 "2005-09-08T21:20:52Z")

</div>

Hi all!

I have a swf called _portfolio_ that loads dynamicly some jpg into a textfield like this:

```auto

this.myTextField.htmlText = "<img align='left' valign='top' src='" + image_str + "' width='76' height='76' hspace='0' vspace='0'/>";

```

It work’s great. Now, i try to use that swf into another flash document like this:

```auto

test_mc.createEmptyMovieClip("portfolio_mc", test_mc.getNextHighestDepth());
test_mc.portfolio_mc.loadMovie("portfolio.swf");

```

test\_mc is a empty movie clip that is already placed (directly on the stage) under a mask (a layer containing a shape with the Mask property on) . Everything work’s fine if i removed the mask BUT with the mask the jpg are not displayed at all. To be clear (sorry for my poor english), portfolio swf is composed from many elements and ONLY the jpeg is not displayed.

Any idea why?

thanks! Vincent
