A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Loading a random swf into a movie...?

  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    57
    M'kay folks.... I'm stumpered.
    Here's what I'm trying to do.

    It's kinda like a magic 8ball type of deal.
    I have a text field [that does nothing of course] and a submit button that clears the text field and loads the random answer.

    Problem is.... i dunno how to make it load a random answer[swf].

    Any help on this would be great!
    Thanx!

    bd7

    ps... if it's actionscript, could ya leave a code snip for me? I have 3 books on it & I'm still braindead over actionscript.

  2. #2
    9th Grade WC
    Join Date
    Sep 2000
    Posts
    1,192
    loadMovie("file" + random(10) + ".swf", _root.target);

    make sure you have eleven files all named
    file1.swf
    file2.swf etc

    you could also try loading random answers
    by using an array

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    57
    Thank You, D4D!
    I'll give that a shot this afternoon!

    bd7

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