okay no problem...
on the main movie (index.swf), each button contains this code:
on (release) {
_root.theLoader_mc1.loadClip("mlb.swf", "theClip_mc");
}
whereas the empty movie clip "theClip_mc" is on the stage where the pages are being loaded. Think of it as a scoreboard, where the main screen is where the pages are loading.
The coding for the layer containing the clip is:
theLoader_mc1 = new MovieClipLoader();
Now for the scroll bar on the mlb.swf...
I have 3 layers, a Outline, a Mask and a Masked....whats scrolling is on the Masked and the mask is just a rectangle, the outline is just the outline of that rectangle. On another layer, I have an empty movie clip called actions. I double click on it, and theres Frame 1 and Frame 2-
On frame two:
gotoAndPlay(1)
on frame one(this is the real long code for what the scroll is going to be doing):
//setting the variables for the script;
_root.scrollerName = _root.scroll;
_root.left = 352.9;
_root.innerLeft = 425.9;
_root.right = 616;
_root.innerRight = 543;
_root.top = 229.7;
_root.bottom = 304.6;
_root.minXposition = -790;
_root.maxXposition = 369.9;
_root.idleScrollSpeed = 1;
_root.overScrollSpeed = 10;
//if the scroller has gone to the end, switch directions;
if (_root.scrollerName._x<_root.minXposition) {
_root.scrollerDirection = "right";
} else if (_root.scrollerName._x>_root.maxXposition) {
_root.scrollerDirection = "left";
}
if (_root._ymouse<_root.bottom && _root._ymouse>_root.top) {
//checking to see if the mouse is in the left area, if so, continue;
if (_root._xmouse>_root.left && _root._xmouse<_root.innerLeft) {
if (_root.scrollerName._x>_root.maxXposition) {
break;
} else {
_root.scrollerName._x = _root.scrollerName._x+_root.overScrollSpeed;
}
} else if (_root._xmouse>_root.innerRight && _root._xmouse<_root.right) {
if (_root.scrollerName._x<_root.minXposition) {
break;
} else {
_root.scrollerName._x = _root.scrollerName._x-_root.overScrollSpeed;
}
} else if (_root._xmouse<_root.left or _root._xmouse>_root.right) {
if (_root.scrollerDirection == "right") {
_root.scrollerName._x = _root.scrollerName._x+_root.idleScrollSpeed;
} else if (_root.scrollerDirection == "left") {
_root.scrollerName._x = _root.scrollerName._x-_root.idleScrollSpeed;
}
}
} else if (_root.scrollerDirection == "right") {
_root.scrollerName._x = _root.scrollerName._x+_root.idleScrollSpeed;
} else if (_root.scrollerDirection == "left") {
_root.scrollerName._x = _root.scrollerName._x-_root.idleScrollSpeed;
}
Then back on the main scene, theres one last bit of coding to go on the action movie clip and that reads:
on (load) {
_root.scrollerDirection = "left";
}
So that is that....It works when I publish that swf seperately...but doesn't when i click the MLB button on the index....
Here is the example of the scroll bar swf by itself if that helps too:
http://sportsnutsonline.com/mlb.html
if u click on the 1st team, the scroll bar will appear
If you need any more info, let me know...hope this helped u help me get an answer