A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: I've got an easy one (working with array's I think)

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    15
    First off, let me say; I love this forum. I've been lurking for about 2 months on the flashkit site and boards and most of you folks really know your stuff!

    Secondly, I would like to preface this with - "I am not a programmer!"

    Ok, here's the question.

    I have a button that loads an image, and everytime you click on the button it incrementally does a +1 to the file name, so it would go 'image1.jpg' image2.jpg' and so on.

    The quest here is to be able to open different directories, which all contain different images and text, display the image name in one dynamic text field, the picture number in another, and display text from an external file that's name corresponds with the image number.

    Does this make sense?

    Chris (Psychoholic)

  2. #2
    Junior Member
    Join Date
    Mar 2002
    Posts
    15
    Now that I reread that, I realize I actually forgot the main part of the question.

    If you had, let's say 'image1.jpg' and 'image2.jpg' both of which were loaded from;

    loadMovie("./pics/image"+whichThing+".jpg", "square");

    and you had it's text load with each one;

    loadVariables("./pics/"+whichPic+".txt", "_root.text_box");

    and you wanted...

    Ugh, I think I just answered my own question.

    I'll get back.

    Chris (Psychoholic)

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