A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Wrap Text Around a Graphic?

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    19
    Hi Again,

    Is it possible using a dynamic text box to wrap the text around an object/shape? I have tried to add a point to the parameter of the dynamic text box, then actually reshape the text box to follow along the shapes path. Naturally this does not work. Is there a way.

    Dan

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    440
    The answer is "No"

    You can not use Dynamic Text to do this automatically like you would do in WordPerfect, CorelDraw and other publishing programs.

    You have to manually do using text boxes and placing them around your object.

  3. #3
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    Originally posted by fwhilton
    The answer is "No"

    You can not use Dynamic Text to do this automatically like you would do in WordPerfect, CorelDraw and other publishing programs.

    You have to manually do using text boxes and placing them around your object.
    That would be an interesting feature... being able to add points and reshape the text boxes and have it wrap accordingly!

    Bob - is this even possible?

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    I would not know how to do it.

  5. #5
    Junior Member
    Join Date
    Jul 2006
    Posts
    1
    Quote Originally Posted by fwhilton
    The answer is "No"

    You can not use Dynamic Text to do this automatically like you would do in WordPerfect, CorelDraw and other publishing programs.

    You have to manually do using text boxes and placing them around your object.
    Actually the answer is "Yes"
    Link to Solution

    If you can't access the above link, copy and past the following into your browser:
    http://livedocs.macromedia.com/flash...=00001464.html

  6. #6
    Junior Member
    Join Date
    Feb 2007
    Posts
    2
    Hi all, I've been trying to solve this problem but am fairly new to flash so apologies for any huge areas of naivety.

    The above solution is good for getting text to wrap around a rectangular image, but I was wondering if a more sophisticated wrapping solution could be possible.

    What I really want to do is to allow dynamic text to flow into a non-rectangular text area.

    Could it be possible to achieve this by creating several adjoining text areas, and writing a bit of actionscript to detect when each text area is filled with the content - then moving onto the next text area. Maybe it's impossible, maybe it would just end up with a mess. If anyone has any idea whether I'm just wasting my time I'd be grateful if you could let me know!

    Thanks

    David

  7. #7
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    A possible solution could be to use an image for the font and for the text.

    If each character is equal in size, you can use copyPixels to copy a character image onto the bitmap representing the text.

    If you start with drawing the shape the text should flow around onto the bitmap, you can detect the transparent areas to know where a character can be placed.

    In theory such an approach should be possible but it might not be fast enough. I have never tried it.

  8. #8
    Junior Member
    Join Date
    Feb 2007
    Posts
    2
    Thanks w.brants - it sounds from your reply like what I'm trying to do is a bit overcomplicated. Have ended up just using static text and duplicating the html by hand.

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