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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scroller that loads into other movie

Status
Not open for further replies.

avaloon

Instructor
Jan 16, 2005
7
0
0
SE
Hi!
I have a problem with some Actionscript..
I have a horisontal scroller that works fine when its used without it loading into another movieclip.
I have a master file that loads in that scroller swf file, i think it has some errors with the paths.. but I´ve tried various ways to get it to work, but no sucess.
I have three objects on stage, the content mc with AS:
onClipEvent(enterFrame) {
_root.scrollMC._x=-1*(_root.slider.b);
}

And then the sliderpath with as:
onClipEvent (load) {
setProperty (this, _x, _root.slider._x);
setProperty (this, _y, _root.slider._y);
}

Finally the scrollerbar with as:
onClipEvent (load) {
setProperty (this, _y, int(_y));
}
onClipEvent (enterFrame) {
a = new Object();
a.y =this._y;
a.x =this._x;
_root.path.globalToLocal(a);
b=int(a.x*2);
}

Do u know what I need to change for the scroller to work when its loaded into another swf?
Cheers!
//Avaloon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top