Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll an attached movie clip

Status
Not open for further replies.

wikfx

IS-IT--Management
Dec 16, 2001
196
MT
Hi I have a movie clip in my library that I dynamically load images into than attach it to my main timeline using attachMovie, now I would like to create some kind of scrollbar or navigation to move this movie up and down so that the user can cycle through all the images.

thanks.

W i K
 
Try the ScrollPane component.

Wow JT that almost looked like you knew what you were doing!
 
how do I dynamically attach the movie to the scrollpane?

W i K
 
thanx I dunno why but I tried that link and cant seem to get it to work here is the code I am using without a scroller:

Code:
myLoader = new MovieClipLoader()

function loadPics(){
myY = 10;
myX = 10;
for (i=0; i<= _root.image_array_length - 1 ; i++){
this.attachMovie("image","image" + i, i);

this["image"+i]._y = myY;

myLoader.loadClip( "images/" + image_array[i] + ,this["image" + i]);

if ((i+1) % 2 == 0){
myY +=90;
trace(myY);
this["image"+i]._x = 10;
}
else {
this["image"+i]._x = 100;
}
}
}

thanks again

W i K
 
The link I gave you is referring to AS1.0 components and not MX2004 components.
 
is there a way I can do it in MX2004.

Thanx

W i K
 
ok I finally got the content to load in a scroll pane, now I have another problem. I cant scroll it as the scrollers on the scroll pane are not working they are still disabled like flash doesnt know there is content in the pane

Thanx



W i K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top