PDA

View Full Version : RED ALERT, i need help!!!


DarkHero
02-27-2005, 11:49 AM
I've been having some trouble. http://www.actionscripts.org/tutorials/intermediate/scrolling_text/index.shtml#

In that tutorial when you use the 'scroll_html' file so that you can edit all the text by the txt document, how can you add images, i cant seem to figure it out.. or cant you add images to the txt document, could some tell me it really fast please (school project)

Darkware
02-27-2005, 04:03 PM
ok, I just looked over some of that tutorial. It's dynamically loading text from a txt file as you said. You cannot stick images in the txt file. You cannot add code in the txt file to make images appear in Flash when you load it. So basically you're barking up the wrong tree.

The only way I see to do this, is a) go ahead and load your text in the way you're doing it. b) make a new movie clip and stick all your dynamic text stuff in that movie. c) manually stick your images into Flash where ever you want them. Make sure they're in that new movie clip I told you to create.

Now instead of scrolling the text and whatnot, you're just going to switch it around to scroll that new movie clip. The new movie clip will have both your text and your dynamically loaded text. This should work for your needs.

Now if you want to load images dynamically, you can, however you're going to have to use blank movie clips and some extra code. If you're pressed for time though, I would just import them in, then stick them where ever you want though.

thumbslinger
02-27-2005, 05:36 PM
I posted something similar about using XML files. You can do with CSS and XML, but look at the url below.

He sent me this and it achieves what you need although the text isn't read from a file, but from within.

http://www.brajeshwar.com/archives/2004/04/id_property_of.php