Hi everyone
I have created with flash 6 nice smooth vertical scroller but it not works with flash version 8
please help, i have attached the source code
Thank's ahead
David
Printable View
Hi everyone
I have created with flash 6 nice smooth vertical scroller but it not works with flash version 8
please help, i have attached the source code
Thank's ahead
David
I just opened it in FLASH 8 and tested it..it scrolled for me (dont why you had all those extra frames in there either)
first of all thanks Whispers for your replay
ya, it work's for you because you are testing it with with publish flash 6 version...
if you go to File>publish settings>(type)flash - and than choose version for flash player 8
and than ok and test - it wouldn't be work... the reason ? i don't know
(about extra frames :) it's only for testing, i have to put there images and bitmap texts, but help me first to get him works)
david
where is the scroll code located?
in root, layer "scroller_bg" there is a movieclip that inside it there is a 3 frames with AS...
yeah i found it....it was ina code clip located OFF stage.. (I have it in its OWN layer now) I check it out..
yeah i found it....it was ina code clip located OFF stage.. (I have it in its OWN layer now) I check it out.. but right off the top of my head...all the code that is used is depricated code..
have you any recommendation for me about this problem ?
well I would suggest:
1.) using code that ISNT old (use current methods)
2.) in AS 2.0 code is CASE sensative and you didnt have same instancenames as you did in the code..
anyways...I got it to work... delete that WHOLE MC that has those 3 frames of code in it...
and put this ON the scrollbar movieClip
code:
onClipEvent (load) {
oldY = 0;
newY = 0;
currentY = 0;
}
onClipEvent (enterFrame) {
currentY = _root.dragMC.buttonMC._y;
newY = oldY + (currentY - oldY)/8;
_root.scrolledmc1.scrolledMC._y = newY;
oldY = newY;
}
and take the startDrag code OFF the button and put it in frame 1 like this:
code:
this.onPress = function() {
startDrag("", false, 0, -264, 0, 0);
}
this.onRelease = function() {
stopDrag();
}
here is the .fla I had working...
Thank you whispers :)
it work's excelent now,
Best regards :)
David
I think you will find that it cuts off the last 50 pixels or so of the "scrolledClip" (never could get it fixed)
cheers.
Make special note about the case sensitivity that one had me going for a minute.