As the title suggests, I am trying to simply scroll an mc (not dynamic text) under a mask via an up and down button.
Have it all set up except for the button actions…
could use some help – what actions should go in the up and down buttons
Thx
As the title suggests, I am trying to simply scroll an mc (not dynamic text) under a mask via an up and down button.
Have it all set up except for the button actions…
could use some help – what actions should go in the up and down buttons
Thx
There are like a zillion ways to do this, perhaps you could post your .fla here so we can help you out.
Setting up your movie:
Label the thing which should scroll as “list”
Have it and the thing its masking in a movie clip.
Give the first frame actions:
scrollspace=0
Give the down button these actions
on (press, release) {
if (scrollspace<=10) {
//Change that to ten to fit in the thing which should scroll
_root.scroller.list._y-=10
scrollspace+=1
}
}
And the up button…
on (press, release) {
if (scrollspace>=1) {
_root.scroller.list._y+=10
scrollspace-=1
}
}
I think thats what you’re looking for :bored:
I gave you the code!
Hey thanks much denacioust
I really don’t know what happened cause when I posted I didnt see your awesome post…
Thanks – much appreciated!
No prob
I use the scrollpane that comes in the componets panel…
first create the movie clip be sure to include a background so you can can control the size of it in the scrollpane window…name the movie clip whatever then export it for action scripting so it can link to the scrollpane…next drop a scrollpane on the stage set its properities …in scroll content put the name of the "movie clip "in the instance also put the name of the “movie clip”…
test it… if it works you can then go to the scrollpane assets in the library and edit the colors of the scrollpane like the thumbnail and the arrors etc etc
The first “buttons” method what having frame interference. Totally not smooth. Like some elasticity problem.
I tried the method above with the mx pro scrollpane component and my mc never shows up even with a proper path entered. And, yup, it is set for export via actionscript. But no luck… :vamp:
well, found out what was wrong with the component.
I was publishing in AS1.0
You have to publish in AS2.0 for that to work.
I think my use of Penners functions is affecting the Buttons version mentioned above…could this be so?
:: Copyright KIRUPA 2024 //--