PDA

View Full Version : Wrap text around an image?



brintonwhite
March 11th, 2004, 02:02 PM
A client has asked me to wrap text around a picture on the top right of the homepage. Can this be done. To be honest, I can't remember ever seeing this in flash. I have done a search for tutorials on google etc but found nothing. I am also including a picture so you can see exactly what I mean.

I use flash mx 6 - NOT flash mx 2004

Thank you

claudio
March 11th, 2004, 02:11 PM
You would have to do that by manually aligning the image and the textfield(s).
So i guess its not worth the trouble.

lrhb
March 11th, 2004, 02:17 PM
*edit* Oops, claudio beat me to it! *edit*

I'm not sure if there's a different way to do this, but you might be able to fake it with tables!

lrhb :hat:

brintonwhite
March 11th, 2004, 02:21 PM
thanks guys but seraph told me in a chat room that its possible to do it with actionscript, but also said it is difficult to do.

Irhb,

When you say tables, what do you mean? tables in html? I am using flash.

Thanks

lrhb
March 11th, 2004, 02:24 PM
Oh I'm sorry!

For some reason I thought you wanted to wrap text around an embedded flash movie in an html page @_@

I'd recommend doing it like Claudio said, manually aligning things, if the text is static and the layout and font size won't change...

brintonwhite
March 11th, 2004, 02:30 PM
Thats ok, and yes, I'll probably have to do it manually with a couple of static text boxes if no one writes in with a script.

Thanks again.

eyezberg
March 11th, 2004, 05:30 PM
there's a component that does the job, was at http://www.flashcomponents.net/index.cgi?section=Components you'll find it under interfaces>widgets>textfields>text flow compo'

enjoy

brintonwhite
March 11th, 2004, 06:01 PM
eyezberg,

Thank you. I downloaded it, dragged it onto my stage with my picture and god knows how to make the text wrap around the picture. Do you know?

eyezberg
March 11th, 2004, 06:23 PM
lol, no, try to down the zip, might be an example in there, else i guess you'll have to "edit in place" to find out how it works.. ;)

brintonwhite
March 11th, 2004, 06:28 PM
Unfortunately I did download it but there are no instructions. I thank you once again - but alas, its another one of those unusable components

scotty
March 12th, 2004, 07:21 AM
You need at least two components. In the first one put your text and below in parameter panel put the instancename of the component you want to connect with.
Place the components et voila:)
I don't know if you can use them with load text...

scotty(-:

brintonwhite
March 12th, 2004, 11:45 AM
Scotty.

First of all, I'd like to thank you for that FLA.

I have looked at the file you sent me and am not sure what you have done. for example, I can't see where you have added the text? (i looked in the parameters section and saw no text in the input text field) also I don't understand what you mean when you say connect to. In your example, I see no way that they are connected, just that there is a movie clip on stage with no instance name and also the component itself onstage with a name of next.

Can you go into a little detail about what you did.

Also, looking at this, the text appears not to wrap around the pink graphic on your stage but looks just like the effect that would be achieved if two normal static text boxes were placed onstage and text added

Thank you for your time.

scotty
March 12th, 2004, 12:34 PM
In my fla you see two components, with the one top-left look in the parameters you'll find the text and the link to the other component ("next Component")
You're right if you say it looks like two textfields. The advantage of the component is that you put all the text in the first and don't have to bother where the text in second field starts, even if you, after putting the text, rescale one field.
The other advantage is that you, unlike normal textfields, just can put the measurements you want to have in your info box or scale it, without distorting the font.

Hope this makes things a little clear:)

scotty(-:

brintonwhite
March 12th, 2004, 12:41 PM
Thank you scotty yes, it does indeed make sense and the reason it threw me a was I was looking at the properties rather than the parameters in the properties inspector and didn't see the text.

Cheers mate.

scotty
March 12th, 2004, 12:46 PM
You're welcome=)