View Full Version : Scrolling pictures and text together
11-25-2004, 10:08 AM
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?
11-25-2004, 10:17 AM
u can use the <img> tags withing the text fields in MX2004
11-25-2004, 10:24 AM
Thanks a bunch - that sounds a lot easier :D
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?
11-25-2004, 10:36 AM
myText.html = true
myText.htmlText = "<p>Hi, this is my pic in the zoo<img='zoo.jpg'>"
11-25-2004, 10:45 AM
Nice one. Thanks again :)
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.
11-25-2004, 11:11 AM
try thist.htmlText = "<b>koko</b> \"wawa\""
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:
11-25-2004, 11:20 AM
my personal favorite way is to just put the text and image in a movie then scroll that...
11-25-2004, 11:34 AM
so, u didn't see/use the scrollpane component b4 mate
11-25-2004, 12:21 PM
Nope - will check it out, thanks. :)
11-25-2004, 12:27 PM
Flash: Every answer every way.
***catchphrase (c) Doug Stewart 2004***
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.