Ok, there's nothing wrong with that code. There must be something wrong with either your file structure or your text files.
Here is a more cleaned up version (though what you posted should work). I get rid of the showThumbs function, the mascots mouse events, the alpha animations and my beautiful comments (why in the world would you want to get rid of them?)*sarcasm*
Make sure to delete the entire visuals layer. Nothing more, nothing less.
I've tested this. It does work. So, if you can't get this to work. The problem is 100% with your setup.Code:#include "mc_tween2.as" var images:Array = []; var urls:Array = []; var lv:LoadVars = new LoadVars(); var lv2:LoadVars = new LoadVars(); lv.onData = function(src:String) { images = src.split("\r\n"); } lv2.onData = function(src:String) { urls = src.split("\r\n"); loadContainers(); } lv.load("logos.txt"); lv2.load("urls.txt"); this.createEmptyMovieClip("panel", this.getNextHighestDepth()); var count:Number = 0; function loadContainers() { for(i=0;i<images.length-1;i++) { var symbol:MovieClip = panel.createEmptyMovieClip("symbol"+i, i); var thumb:MovieClip = panel["symbol"+i].createEmptyMovieClip("thumb", i); var image:MovieClip = panel["symbol"+i]["thumb"].createEmptyMovieClip("image", 30+i); panel["symbol"+i]._x = 202*i panel["symbol"+i]._y = Stage.height/4; var mcl:MovieClipLoader = new MovieClipLoader(); var mclL:Object = new Object(); mclL.onLoadComplete = function() { count++; if(count ==images.length-1) { beginScroll(); } } mcl.loadClip("events/"+images[i], panel["symbol" +i]["thumb"]["image"]); mcl.addListener(mclL); panel["symbol"+i].id = i; panel["symbol"+i].onRelease = function() { trace(urls[this.id]); } } } function beginScroll() { var limit = Stage.width - panel._width var time = panel._width / 150; if(panel._x <= limit) { panel.roundedXSlideTo(0, time, "linear", .25, beginScroll); } else { panel.roundedXSlideTo(limit, time, "linear", .25, beginScroll); } panel.onRollOver = pauseResume; } function pauseResume() { delete this.onRollOver; this.pauseTween("_x"); var x = panel.getBounds(_root); this.onEnterFrame = function() { if(_xmouse<x.xMin || _xmouse>x.xMax || _ymouse<x.yMin || _ymouse>x.yMax) { this.resumeTween("_x"); this.onRollOver = pauseResume; delete this.onEnterFrame; } } }
Nope. That like controls the _x position. You'll get it, eventually (i hope)Sorrie, i saw the wrong line medy . its the panel["symbol"+i]._x that controls the sizes. right?
Keep readin'! It'll come up. mcl is my variable for a MovieClipLoader object. It doesn't need to be called mcl, that's just what I used because that's what most texts use for examples and I didn't want to confuse you.var mclL, what that? i thought that was only something called mcl but i never heard of mclL yet
mclL is a MovieClipLoader Listener. With it, you can react to events like onLoadInit (when the actions on the first frame of an imported movieclip are executed) and onLoadComplete (when whatever your importing finishes loaded).



*sarcasm*

) 





Bookmarks