dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Transparent images

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    16

    resolved

    I don't know how it is done but I've seen it...

    Bitmap Images can be imported to flash without loosing transparency. I thought they always were imported with a background which had to be erased within flash. How can I define transparent parts in the image to get rid of the background?

    Is it an alpha channel? a mask? or what...

    Thanks for your help.

  2. #2
    GAME ON!!!! megatoon's Avatar
    Join Date
    Jun 2001
    Location
    The Lonely End of the Rink
    Posts
    3,481
    File format PNG exports to Flash with transp. You can add Transp into a raster in Photshop or Fireworks. In PS Duplicat layer- Delete Bg (Keeping the copy). Then use the wand or lasso the select and delete areas. As for FW, not really sure but I imagine it would be similar.
    [Edited by megatoon on 11-19-2001 at 05:35 PM]

  3. #3
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    Thanks, I know several ways of cutting the image in flash but... I have seen images that have an alpha channel!
    They might have a kind of gradient that goes from solid to transparent, but in the same image. No gradientes, no effects, it is part of the image.


  4. #4
    Indefatigable JohnnySix's Avatar
    Join Date
    Nov 2000
    Location
    England
    Posts
    1,175
    If you're using fireworks 3+ you can actually export it to swf.

    I've not played with it that much but the upshot is you can get the alpha channel thing happening.

    For example, if you were to start with a transparent canvas in fireworks, draw a simple texture brushstroke, add another of a different colour over the top and export to swf.

    When you bring the swf into flash, not only will it keep the objects but it will keep all the alpha information and objects but also retain the subtle fades from one colour to another rather than simply selecting one colour as a transparency.

    Try it.

    Cheers

    John

  5. #5
    Indefatigable JohnnySix's Avatar
    Join Date
    Nov 2000
    Location
    England
    Posts
    1,175
    Here's an example I put together just now..


    I've only had a quick play but it's an example of what you can do.

    [swf width="320" height="220" background="#009999"]http://www.btinternet.com/~sabbathcat/flashwithfw.swf[/swf].

    I've put everything in a .zip if you want to see it in flash itself.

    http://www.btinternet.com/~sabbathcat/flashdemo.zip

    Cheers

    John

  6. #6
    Junior Member
    Join Date
    Aug 2000
    Posts
    16

    Smile kool

    Hey, that was cool! thanks alot.

  7. #7
    Indefatigable JohnnySix's Avatar
    Join Date
    Nov 2000
    Location
    England
    Posts
    1,175
    No worries.

    Be sure to post something when you've tried it.

    Cheers

    John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center