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