-
scroll bar help
download the attachment please.
open up "info3.swf". The scroll bar works fine in there and it stops where i want it to stop. Now, open up "main7.swf" and click on the "info" button (the info button opens up the external movie "info3.swf", in "main7.swf" the scroll bar still works fine, but does not not stop scrolling. I included both of my .fla's. Please help, i think i am missing some sort of a code in "main7.fla".
Thx,
Baljinder
-
Abandon all Hope
Is this MX2004?
I can't open it...
Save for MX if you want
-
-
Abandon all Hope
A very common mistake: never use _root in an external movie. Use "_parent" or "this"
instead. _root refers to the timeline of the main movie:
code: up_btn.onRollOver = function() {
onEnterFrame = function () { trace(this.txt._y);txt._y -= 10;if (this.txt._y<-150) {this.txt._y = -150;onEnterFrame = null;}};
};
up_btn.onRollOut = function() {
onEnterFrame = null;
};
down_btn.onRollOver = function() {
onEnterFrame = function () { trace(this.txt._y);txt._y += 10;if (this.txt._y>32) {this.txt._y = 32;onEnterFrame = null;}};
};
down_btn.onRollOut = function() {
onEnterFrame = null;
};
stop();
good luck!
-
unreal, you are unreal. Thanks for you help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|