Hello all, im kinda new to flash and in particular to actionscript. Im being “made” to learn it in work, tho it does beat doing ASP all day
Anyways, I’m having a bit of problems figuring out some code
I have a horizontal scroll pane, which holds an external .swf (a timeline) and a set of buttons below the pane (a set of dates).
My idea is to set up the dates so that when the user clicks on them, the scrollPane will move to that date (the specified x coordinate of the external file)
At the minute I’m just using: -
scroller.setScrollPosition(x, y)
as the on(release) command for each button. This instantly shifts the timeline to the position I want it to end at.
I really need it so that there is a movement and the scroll bar slides and comes to a rest at that position, so I was wondering if anyone has any ideas on the script required, or knows of any tutorials that address this.
Sorry, my explanation was kinda rubbish, ill try again
I have a scrollPane (200px by 200px). In it is a reference to a very long .swf file (2000px long, 200px high). This loads into the scrollPane, which itself has only a horizontal scrollbar. The idea is that users will be able to grab the scroll bar and scroll through the length of the external file. I also want there to be set _x positions on the file, so that when a person clicks on one of the date buttons, the scrollPane will scroll the file to the correct area…
eg… 3 button… 1999, 2000 & 2001
three “sections” of the external file… showing information about each of these dates.
the user can either scroll manually to each, or click the date butoon, which will move the scrollbar along to the correct place (same idea as an anchor point in an HTML text section… when u click it the text smoothly scrolls to the correct point and slows down before stopping, not just snap to that position)
hope this makes it clear (tho i think i may have confused myself in the process!)