A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: can i Load Random text quotes within a movieclip?

  1. #1
    Junior Member
    Join Date
    Feb 2003

    can i Load Random text quotes within a movieclip?

    ok so i have this fortune cookie project im working on here and i need a little help.

    ok so on my scene is one button and a movie clip.
    and so far i have it that when you click the button the movie clip plays and the cookie breaks and the fortune animates out.

    my question, is their a way to generate random quotes or "fortunes" every time you play the movie clip. like can their be dynamic text inside the movie clip that randomly picks one of the fortune to display?

    any help would be greatly appreciated.
    kind regards.

  2. #2
    WohOoooooo zompo's Avatar
    Join Date
    Oct 2008
    Yes, you can either load the quotes from the server as a xml and display them randomly, or you could store them in a array in the movie clip, then have a dynamic textfield display one of the guotes from the array.

    Try out my game http://alpha.bombwar.com - Alphakey: fkaplha

  3. #3
    Junior Member
    Join Date
    Feb 2003
    wow, thanks for the quick reply.

    Im looking into using a text array to set it up. seems like it will work for what im trying to do. im sure i can figure this out.

    thanks again
    i rarely post here but im a long time visitor, always seem to get the info i need.

    if anyone knows any good quote array tutorial or anything offhand you think would help please point me in the right direction (if not im sure i will find what i need at some point)

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    London, UK
    you can download the :: Random Quotes (XML - Driven) :: application from my library
    Flashmatics | Flashmatics Library (free downloads)
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    Flash Certified Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center