# Import and black border

**URL:** <https://forum.kirupa.com/t/import-and-black-border/17363>\
**Category:** flash\
**Created:** [April 4, 2003, 5:47am UTC](https://forum.kirupa.com/t/import-and-black-border/17363 "2003-04-04T05:47:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_rYx](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@c\_rYx](https://forum.kirupa.com/u/c_rYx)\
**Post date:** [April 4, 2003, 5:47am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/1 "2003-04-04T05:47:27Z")

</div>

Hi you guys, I coming into Flash slowly, it is really easy… =)

But I have a problem. I’m importing a menu button and when i look at it in normal Flash it looks like it should be. If I now look at it in the preview I always get on pixel on the right side and at the bottom cut. And one pixel more at the top and left side…

The Size is absolutly the same as in PS where I created it. What could be the prob?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 6:21am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/2 "2003-04-04T06:21:44Z")

</div>

I encounter that problem a lot when bring in graphics made in PS and what I do is give the graphic a transparent border of about 10-20 pixels all around, also make sure the height and width of your image are odd numbers and not even.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 6:26am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/3 "2003-04-04T06:26:01Z")

</div>

tx, i’ll try that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 6:55am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/4 "2003-04-04T06:55:45Z")

</div>

That is working fine. But now these grafixs are buttons and they clicking area is to big. How can i change that ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 7:02am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/5 "2003-04-04T07:02:01Z")

</div>

Go inside the button, click on the image to select it, press Ctrl B to break it apart, now use the marquee tool and select the extra areas and delete it to make the hit area smaller.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 7:08am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/6 "2003-04-04T07:08:57Z")

</div>

thanks, what would we do without you… ;p

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 8:12am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/7 "2003-04-04T08:12:18Z")

</div>

I had this problem also with some really small buttons I made in PS (nitty gritty pixelwork). I imported them in flash and they looked all wrong, like flash compressed them or something (even when ‘allow smoothing’ in the properties pannel was off ) .

The solution came when I imported them and then did: “trace bitmap” on them. set Colour treshold really low and the smallest area (or something…) to one pixel and also select ‘many corners’…

It still looked like a bitmap, but was rendered perfect when I published my swf.

stanley

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2003, 8:35am UTC](https://forum.kirupa.com/t/import-and-black-border/17363/8 "2003-04-04T08:35:38Z")

</div>

Trace Bitmap would work as well, but it also increases files size, just something to keep in mind. =)
