i feel like i'm in an alternative universe with all the
attention this thread is gaining.
the code i gave is not sophisticated, at all. other forum
contributers and i have left code snipets that have been much more
complex and solved much more difficult problems.
but it sure seems like this one has resolved a need. or
someone has placed a link to this thread. is a link bringing other
commenters here?
This works but it seems only to scroll to the left. The
script is beyond what I am familiar with. This is really high end
stuff you have on here. I have one movie clip which is the
background is basically tiled and will scroll. and the rest is the
ambient artwork.
kglad, you're a superstar :) This has to be the oddest
thread, but props go out to you, there must have been an
underground mob of people trying to scroll the stage using as3. You
are now their king.
this scrolls right and left. if you have trouble maybe your
movieclip's reg points are not on the left?
and yes dz, this is odd. there must be a link to this thread
on someone's blog. that's the only explanation i can think of to
account for all the thank yous.
we can add this to listen for mouse clicks on the scroll
arrows, and to enable the mouse wheel, both of which will scroll
our menu up or down, we can add some event listeners:
function enableScrolling():void
{
btnUp.buttonMode = btnDown.buttonMode = true;
btnUp.addEventListener(MouseEvent.CLICK,
exampleMenu.scrollUp);
btnDown.addEventListener(MouseEvent.CLICK,
exampleMenu.scrollDown);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheel);
}
function onMouseWheel(e:MouseEvent):void
{
e.delta <0 ? exampleMenu.scrollDown() :
exampleMenu.scrollUp();
}
quote:
Originally posted by:
rudevils Hi all flash junkie, i need some help here.
I'm a newbie in flash can anyone here tell me where i should
start learning to be a flash expert ??
I'm in the same boat, I downloaded the development studio,
read all about ActionScript, but then couldn't figure out the IDE.
Is there a good book or site to learn from?