PDA

View Full Version : Scrolling pictures and text together


nutcake
11-25-2004, 10:08 AM
Hello

I'd like to have a block within my flash site that holds a chunk of text and pictures and is also scrollable - sort of like an html div within a page.

The only way I can think of doing this is to use a scrollable text box, line up the images with the text and try to get them all to move at the same time when the scroll buttons are pressed. This seems a bit unnecessarily messy though. Does anyone know of a better way of doing this?

James

farafiro
11-25-2004, 10:17 AM
u can use the <img> tags withing the text fields in MX2004

nutcake
11-25-2004, 10:24 AM
Thanks a bunch - that sounds a lot easier :D

nutcake
11-25-2004, 10:32 AM
Should I be able to just add an html tag into the text box (if it's rendered in html), or do I have to add all the text and tags in code using the .htmlText property?

farafiro
11-25-2004, 10:36 AM
myText.html = true
myText.htmlText = "<p>Hi, this is my pic in the zoo<img='zoo.jpg'>"

nutcake
11-25-2004, 10:45 AM
Nice one. Thanks again :)

nutcake
11-25-2004, 11:05 AM
One more question.... How do you use inverted commas (") in html text? It seems to work when I use \" just once, but picks the next \" up as the end of string marker.

farafiro
11-25-2004, 11:11 AM
try thist.htmlText = "<b>koko</b> \"wawa\""

nutcake
11-25-2004, 11:12 AM
Heh heh, never mind - I had just copied the text from my textbox into code and the line breaks were causing problems. :rolleyes:

ds.pixeled
11-25-2004, 11:20 AM
my personal favorite way is to just put the text and image in a movie then scroll that...

farafiro
11-25-2004, 11:34 AM
so, u didn't see/use the scrollpane component b4 mate
;)

nutcake
11-25-2004, 12:21 PM
Nope - will check it out, thanks. :)

ds.pixeled
11-25-2004, 12:27 PM
Flash: Every answer every way.

***catchphrase (c) Doug Stewart 2004***