dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Scrollpane / duplicateMovieClip loding problem

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    Houston TX
    Posts
    563

    Scrollpane / duplicateMovieClip loading problem

    Hi all,

    I have a bit of a problem loading a JPG image into a duplicateMovieClip.

    Here is how I have it set up.

    1: I put The Flash 8 scrollpane component on the stage and loaded it
    with a movieClip called "ImageLinks". The MC "ImageLinks" has 3 elements on seperate layers. Element 1 is a MC called "thImage", ( short for thumbnail image), that has an empty MC in it called "imageSlave". This is where I
    want to load an external JPG dynamiclly from the image path in an XML file.

    2: I also have inserted a dynamic text box into the MC called "ImageLinks".

    3: On top of all theis I have placed a Blank button with the hit area set only
    so that I can script the action of the button dynamiclly.

    Now with the MC set up I use the duplicateMovieClip function to load
    as many dups as I have images in the XML file.

    Here is the code for making the dups and the attempt to load the images in
    the dups.
    _______________________________________________
    ImagePath = new Array();
    ImagePath = value_video_image;
    num = totalSubC;
    trace(num);
    ystart = 0;
    n = 1;
    while (n <= num)
    {
    duplicateMovieClip(bar, "thumb-bar" add n, n);
    setProperty("thumb-bar" add n, _y, ystart + n*50);
    this("thumb-bar"+n).thImage.imageSlave.loadMovie(ImagePath[n-1]);
    trace(n);
    trace(ImagePath[n-1]);
    n = n + 1;
    }
    setProperty("thumb-bar", _visible, 0);
    __________________________________________________ ____

    This code makes the dups with no problem, but doesn't load the images
    into the dups.

    Please Help!

    Best regards
    Toby
    Last edited by Toby Mack; 09-14-2006 at 03:52 AM. Reason: Correcting spelling
    Best regards
    Toby Mack

    For the best and funniest Audio Blog on the Internet come visit:

    http://feeds.feedburner.com/Fla****UpBlog

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Location
    Houston TX
    Posts
    563
    I was hoping there would be someone who could help with this.

    Toby
    Best regards
    Toby Mack

    For the best and funniest Audio Blog on the Internet come visit:

    http://feeds.feedburner.com/Fla****UpBlog

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    Houston TX
    Posts
    563
    Help Please

    Toby
    Best regards
    Toby Mack

    For the best and funniest Audio Blog on the Internet come visit:

    http://feeds.feedburner.com/Fla****UpBlog

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