Hi guys..
I am trying to scroll a movieclip with a scroll bar....I have tried ULscrollBar but it ends up only works for text...
Are there anyway to scroll MC by using only AS3 in flex environment...? Thanks.
Hi guys..
I am trying to scroll a movieclip with a scroll bar....I have tried ULscrollBar but it ends up only works for text...
Are there anyway to scroll MC by using only AS3 in flex environment...? Thanks.
check this page: http://www.gotoandlearn.com/index.php?currentpage=6
I honestly don't know what Flex can and can't do, but what I do in Flash is
stage.addEventListener (MouseEvent.MOUSEWHEEL, MouseWheel, false, 0, true);
function MouseWheel (e:MouseEvent) {
if (e.delta > 0) {
mc.y += 10;
} else {
mc.y -= 10;
}
}
The MOUSEWHEEL listener runs everytime the mouse wheel is moved up or down. The delta tells you whether the mouse wheel went up or down. It can either be negative or positive, I don't remember whether negative is when the wheel goes up or when it goes down, same with positive.
Or you can add 2 buttons, one that scrolls up when you click it and one that scrolls down.