A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Text/Scrollbar problem

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    13

    Text/Scrollbar problem

    I am trying to display the name under each image that is being loaded in the scrollbar. The code works fine since most of it was created with help from people from this site. My problem is the text shows up at first. Then when i start to scroll, all but the first image disappears and the text is not bounded within the box. I think it may have something to do with the depth.

    the code in question is in bold

    the scrollbar is in the main timeline. The content is in a mc named "images2"

    the code is in the mc "images 2"

    Code:
    path = "thumb/";
    image = ["babin, savannah","balard, russell","baldwin, susan","balard, russell","ballard, terianne","ballog, greg","barbee, rhoda","barbee, ruth","barnard, david","barnard, john","barnes, andrea","barnes, jonathan", "battistelli, andrew",
    "bays, daniel","beeson, michelle","bell, danielle, (nicole)","bell, kenneth","bentley, lisa","berberian, anee","berberian, mehron","bergeron, cory", "berry, caleb","berry, stephanie","berthelot, jessica",
    "bias, colby","billingsley, jamie","billingsley, matthew","billman, matthew","blackman, jonathan","blanchard, tyler","blanton, kara","boccanfuso, tina","bolden, michael","bolen, jonathan","bollinger, ellice","bolton, katlin","bonhomme, daniel","boothe, ethan","bordelon, claire","bordelon, courtney","bordelon, michael","bostick, hazel",
    "bouillion, mark","boulet, peter","boyd, stephen","boydstun, jeffrey","brabham, joey","bratschi, crystal","braxton, brandi",
    "breaux, lindsay","breaux, marley","breithaupt, evelyn","brinker, melissa","brooks, callie","brooks, celeste","broussard, mallorie","broussard, tiffany","broussard, william","brown, clarissa","brown, clarissa","brown, joshua","brown, kristian","brown, melissa","brown, suzanne","buck, emily","bundick, rebecca","burke, bryan","burnett, jeremy","burns, laura","bustard, datha","butler, amy","butler, kim","butterfield, bethany","butterfield, will","byles, jessica","bynog, kristin","byrnes, matt"];
    for(var num=0; num!=image.length; num++){
    ref1 = createEmptyMovieClip("myMovieClip"+num,num );
    ref1._x = num*75;
    
    ref2 = ref1.createEmptyMovieClip("imageHolder", 1);
    ref2.loadMovie(path+image[num]+".jpg");
    
    ref1.createTextField("marker", 50, 0, 105, 75, 20);
    ref1.marker.text=image[num];
    
    
    bClip = this.createEmptyMovieClip("btn"+num,num+500);
     with(bClip){
    w = 75; h = 100;
    bClip._x = ref1._x; 
    bClip._y = ref1._y;
    lineStyle(1, 0xF00000, 0); beginFill(0xF00000, 0);
    lineTo(w,0);  lineTo(w,h);  lineTo(0,h);  lineTo(0,0);
    endFill();
    _root.myScrollPane2.refreshPane();
    bClip.onPress=function(){
    pressed = _name.split("btn");
    _root.name.text=this._parent.image[pressed[1]];
    _root.bigImage.loadMovie("unzized/"+_root.name.text+".jpg");
    	}
     } 
    }
    any suggestions?

  2. #2
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    can you post a link or FLA or something so i can see what's happening?....
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

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