FORUMS: list search recent posts

Problem setting the Scrolling Thumbnail

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John Doe667
Problem setting the Scrolling Thumbnail
on Jan 11, 2006 at 5:37:06 pm

Hi Everyone,

I have problem setting the Scrolling Thumbnail when its on another movie clip that I put on the stage. Could I have help from one of you please...

Here the SWF file (as you will se the rollover is doing strange things) :

http://test.duck.realdecoy.com/scrolling_vert.swf

Here the FLA :

http://test.duck.realdecoy.com/scrolling_vert.fla

Thanks for helping me on this

John River


Return to posts index

lajoiet
Re: Problem setting the Scrolling Thumbnail
on Jan 11, 2006 at 6:33:11 pm

Well, I don't know why it's doing what it's doing, but if you take the code off of the "slider" movie clip and put it on the root timeline (after addressing the objects inside it by precursing them with "slider." it seems to work normally.

Delete the Actionscript from the Slider MC ("symbol 4") and on the blank frame on your main timeline (Layer 5) put this in:

slider.panel.onRollOver = panelOver;

function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;

}

var b = slider.stroke.getBounds(_root);
trace(b.xMin +" - "+ b.xMax +" - "+ b.yMin +" - "+ b.yMax);

function scrollPanel(){
if(_xmouseb.xMax || _ymouseb.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;

}

//if (panel._y>= -500) {
//panel._y = -500;

//}

if (slider.panel._y>= -168) {
slider.panel._y = -168;

}



var xdist = _ymouse - 200; // stage._width /2;

slider.panel._y += -xdist / 6;

}

You also commented out the other end of the slider distance check so it keeps scrolling past the last thumbnail. I'm guessing you did this because it wouldn't go to the end. The problem is you have a "greater than"(>) where you need a "less than" (<) since you're dealing with negative _y values.

if (slider.panel._y<= -500) {
slider.panel._y = -500;

}


Return to posts index

John Doe667
Re: Problem setting the Scrolling Thumbnail
on Jan 11, 2006 at 6:47:03 pm

Thanks alot "lajoiet" for this quick anwser... It help me solve my problem.

Thanks

John Doe667



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]