A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: Holes

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    12

    Holes

    Hey guys, just wondering, how do you make a shape with a hole in KM. I've tried, and I just can't figure it out. Thanks,

    -Fyce

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    I had this same problem. I was unable to do it directly. Had to do it in external program and import it.

  3. #3
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    hm... i would try to use masking...

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    There is no direct way at the moment. Try starting with a zero and edit points.

  5. #5
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    If you create the shape in a graphics application, and make the hole transparrent, then save as png, you can then import it into km. This would give the appearance of a hole.

  6. #6
    I C SERVERS Makulaf's Avatar
    Join Date
    Dec 2003
    Location
    Fredericksburg, VA
    Posts
    506
    this is not true i have done it let me see if i can find it
    ~~Drew~~
    New Tutorial Site Coming
    Soon
    http://board.flashkit.com/board/show....php?p=4118485

  7. #7
    I C SERVERS Makulaf's Avatar
    Join Date
    Dec 2003
    Location
    Fredericksburg, VA
    Posts
    506
    here we go http://www.apgovshs.com/myAngel.html then fun file is http://www.apgovshs.com/myAngel.fun

    edit: srry I guess I should tell you that the halo is the hole lol
    ~~Drew~~
    New Tutorial Site Coming
    Soon
    http://board.flashkit.com/board/show....php?p=4118485

  8. #8
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Quote Originally Posted by Makulaf
    this is not true
    with respect I suggest you look here. http://www.allabouthere.co.uk/doh.html
    plus by making it into an mc I have made it selectable and moveable.

  9. #9
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    The combination of flash 8 export and actionscript makes it possible to use an alpha mask. That way you can make part of movieclips transparent.
    It also can be done with the flash 8 alpha / layer blendmodes.

  10. #10
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Drew and Stoke I don't think thats what the person meant. Yes you can make a "Line only" shape but I think What they wanted was like on my site where I have a Frame that is a sort of container for the content. I created the shape in another program and imported it.

    Also I did one in InkScape which is a SVG editor and imported that and it turns out that it's a bit of a cheat to get the hole in it. I've attached an example SVG and now that the SVG in Koolmoves works better using Inkscape is a great option for creating these kinds of shapes and bringing them in as vector objects
    Attached Files Attached Files

  11. #11
    I C SERVERS Makulaf's Avatar
    Join Date
    Dec 2003
    Location
    Fredericksburg, VA
    Posts
    506
    Quote Originally Posted by Stoke Laurie
    with respect I suggest you look here. http://www.allabouthere.co.uk/doh.html
    plus by making it into an mc I have made it selectable and moveable.
    stoke srry didnt mean saying it wouldnt work but it can be done in just koolmoves you dont need to import form a different program.
    ~~Drew~~
    New Tutorial Site Coming
    Soon
    http://board.flashkit.com/board/show....php?p=4118485

  12. #12
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    oh ok thought you didn't realise that importing png was a way of introducing transparancy.

  13. #13
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    you could always make a circle and make the fill transperant and set the line to the largest it can go to.

  14. #14
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Drew I see your example but isn't that just a shape with no fill? While that is useful it is NOT truly a shape with a hole in it. Another example is like in the Poker game I'm working on I wanted a large text object with suits cut out of it (see what I'm talking about here http://bretlanius.com/flash/videopoker.html). This is all but impossible to do within KM alone.

    As for what Wilbert suggests I don't know if that will work with text boxes this is why I wasn't able to use masks in my website because masks and textboxes don't play well together.

  15. #15
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    Nice Poker game blanius i think iv created a circle with a hole in before. But i forgot =(
    couldnt you just make 1 in microsoft word or paint and convert it to a transparent gif and import it in iv done that before its easy =) thats 1 way.

  16. #16
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Sure you could but if the software supports it. Not many programs I've tried do. I use 2 vector programs one is RealDraw from Mediachance. It's great but the SVG export doesn't always work will KM and I mostly export as PNG then import that. But Inkscape's SVG often will import shapes but not gradients and overly complex SVGs and the advantage of this is Vector shapes take WAY less memory than importing a bitmap (png,jpeg) graphic.

  17. #17
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    Ho ho ho merry christmas in 7 days =)
    o yea heres a donut i make using vectors in KM its just a "o" converted into a shape with points.
    Attached Files Attached Files

  18. #18
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Here's a good example of what I mean, Since the large shape with holes was a SVG import the whole movie is 3k
    http://bretlanius.com/flash/holes.html

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