1 Reply Latest reply on Jan 14, 2008 8:52 AM by clbeech

    Load random movieClip symbols within an .swf?

      I'm building a reference archive site for a documentary film (you can see a template example at www.seanmurphydesigns.com/endgame_page.html) and I am featuring on the page a scroller bar in which random quotes from the film will scroll through. If you check out the example page, you'll see the bar directly beneath the masthead graphic, there is a static quote sitting in it now.

      I've looked up code that would enable me to randomly scroll .swf's referenced from outside the file, but I've yet to find anything that suggests a way to instead load random movieClip symbols from inside the same .swf. Should I necessarily be using the outside-referenced .swf method? I thought it might be simpler to just use the random symbols which would already be inside the file.

      Any ideas/suggestions? Thanks in advance for any help.
        • 1. Re: Load random movieClip symbols within an .swf?
          clbeech Level 3
          instead of using movieclips here, you should use a dynamic textField, and simply assign any text to the field when ever you wish.

          you could also use a plain text document or XML to store the quotes, then load the text into an array, use a random generator to choose an index number, and load the new text into the field. you could also set this up to cycle new text regularly, or scroll the text across the field. any number of things.

          btw - site looks nice...scary, but nice :)