First of all, I've never built my own components - only used the ones that come with Flash and reskinned them. The only comments I can contribute have to do with that.
If you choose to go this route:
You need to drag the scrollPane component on to the stage and give it a name, then resize and position it however you'd like.
Place the content that you want to display in a movie clip (MC). Make sure that when you create this MC you check "Export for Actionscript" in the Advanced properties, and give it an identifier name.
In the Properties pallette, click the Parameters tab and enter the name of your MC into the "contentPath."
When creating the buttons inside your MC, add _root. or specify whatever level you want to affect to your action.
Example:
Code:
on (release) {
_root.gotoAndPlay("myFrameLabel");
}
Then you should be good to go.
If I missed something, I'm sure one of the Flash gods will correct me .
One of the things that may be causing this to happen is that you need to have similar code attached to each instance of the button. In other words, each button in every frame should have the appropriate code telling it what to do when pressed.
Look in the Behaviors palette (if that's how you attached your code), or in the Actions palette.
I dont do the scrollbar with the components - i do the scrollbar manually from a tutorial -> the scrollbar works fine, the problem are the buttons -
i give each frame the same instance name that appears on each button on the list - The problem is that if i click the first button 2 times, the button goes to the next frame.
Look this
Scene 1 -
Layer 1: 50 keyframes with the stop action
Layer 2: 50 keyframes - each one have a diferent image
Layer 3 : Is where the list are, and is frame 1 to frame 50
The Code works fine is only that problem - but im sure that is not the instance name
I'm not sure what you can do about that besides give instructions to users to click only once, or put a time delay of some sort, whether AS or frame based.
If the on(release) function/behavior is taking them to another frame in the timeline, then it's doing exactly what it's supposed to do - click twice, move twice.
I seem to remember reading somthing about document.mouseDblClk but I'm not sure how you'd implement that here.
I'm not sure what you can do about that besides give instructions to users to click only once, or put a time delay of some sort, whether AS or frame based.
If the on(release) function/behavior is taking them to another frame in the timeline, then it's doing exactly what it's supposed to do - click twice, move twice.
I seem to remember reading somthing about document.mouseDblClk but I'm not sure how you'd implement that here.