A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Please look at this and tell me what im doing wrong

  1. #1
    Im trying to create a dynamic gallery in MX with everything loading from a text file. I have one mc for the image, and one that holds three dynamic text boxes for title, info, and catagory. I cant get any of it to load. I know im close, but something isnt right, can someone please look at this and tell me what ive done wrong? Thanks for any help you might be able to offer!

    http://www.mechromation.com/test/gallery.zip

  2. #2
    No one??? Come on, someones got to understand this...

  3. #3
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    Hi,

    A few problems I think, firstly all your variables in your text file (apart from the last set) don't correspond with your Flash. You have Image5Catagory, when it should be Catagory5.

    You also need to have some code to load the variables

    loadVariables("gallery.txt", "_root");

    (put that on the first frame, just before the function)
    That should get the descriptions coming up
    I'll get back with the other probs shortly

    Chi

  4. #4
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    And then to load the image, you need to get rid of the line

    textHolder.curImage...

    and replace it with

    pic.loadMovie(_root["image" + whichOne]);

    pic is a empty movie clip which you need to place on the top left hand corner of the box. This will make sure that the image loads into the box you have already,

    Hope this helps,

    Chi


  5. #5
    hey great Chi, thanks so much!! It's always the stupid little things i over look. It loads the text fine, but give me an error for the images. This is the error
    Error opening URL "file:///C|/My%20Documents/mechromation/gallery/test1.jpg

    I know everything is in the right directories and I've tried rewriting the code for it several ways and always the same error. Any ideas on how to fix that?

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