A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: sequential image loading via +i

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    19

    sequential image loading via +i

    Flash 8, actionscript 2.

    Code:
    for (var i = 0; i<squarecount; i++) {
    		var ico = timeline.attachMovie(iconlinkage, "ico_"+i, i);
    		var img = timeline.iconLinkage.createEmptyMovieClip ("container"+i);
    			container.loadmovie("test01.jpg");

    I would like to load images into submovie clips of the movie clip iconlinkage. iconlinkage is replicated with other code a number of times so i want to load a different image into a submovie clip (container) rather than iconlinkage as the image would be replicated too.

    I have tried to amend the code (admitely swiped from somewhere else) using +i which is already sucessfully used to replicate iconlinkage in my additions to try and dynamically create sequentially numbered submovieclips in which to load my images. Ideally I would like the correct code to load sequentially numbered jpegs too so I don't have to repeat a load of code over and over with 1 number changed.

    Please guys,
    any thoughts?

    Thanks very much in advance,
    James
    Last edited by jameskeane; 03-07-2007 at 10:43 AM. Reason: AS2

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