A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: scroll bar help

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2004
    Posts
    461

    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

  2. #2
    Abandon all Hope Inflicted's Avatar
    Join Date
    Aug 2003
    Location
    Harlem A+, Netherlands
    Posts
    296
    Is this MX2004?
    I can't open it...
    Save for MX if you want
    regards

  3. #3
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    Sorry.

  4. #4
    Abandon all Hope Inflicted's Avatar
    Join Date
    Aug 2003
    Location
    Harlem A+, Netherlands
    Posts
    296
    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!
    regards

  5. #5
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center