GeckOblue
06-16-2004, 12:31 PM
Hello!
Nice Fourm!
Here is my dilema:
I am trying to use a listbox component to take the user to different frames of the timeline.
For example:
The UI Component ListBox, has in it the labels, 'story 1', 'story 2', and 'story 3'. In the main scene that contains this component, there is the text of story 1 on frame 1, the text of story 2 on frame 2, and so on. The ListBox itself doesnt need to retrieve from any external source information, the text is already on the scene on different frames. All I want the buttons on the listbox to do is take the user to the different frames (corresponding with the name of the label/button).
This seems simple enough, but so far there doesnt seem to be any way to add actions to the individual rows/labels/buttons in the ListBox component. Under behaviors I was able to add on (change) {
//Movieclip GotoAndPlay Behavior
this._parent._parent.gotoAndPlay("2");
//End Behavior
but of course this applies to the whole component not to an individual button in the listbox component, so that when I click on 'story 5', it will still go to frame 2...
you get the idea.
SO how do i point the individual buttons in the component to go to and play different frames? (ListBox button: 'story 7' to go to frame 7, etc.)
I know I must seem dumb, its probably very simple...
but please give me a hand here.
Thanx,
GeckOblue
Nice Fourm!
Here is my dilema:
I am trying to use a listbox component to take the user to different frames of the timeline.
For example:
The UI Component ListBox, has in it the labels, 'story 1', 'story 2', and 'story 3'. In the main scene that contains this component, there is the text of story 1 on frame 1, the text of story 2 on frame 2, and so on. The ListBox itself doesnt need to retrieve from any external source information, the text is already on the scene on different frames. All I want the buttons on the listbox to do is take the user to the different frames (corresponding with the name of the label/button).
This seems simple enough, but so far there doesnt seem to be any way to add actions to the individual rows/labels/buttons in the ListBox component. Under behaviors I was able to add on (change) {
//Movieclip GotoAndPlay Behavior
this._parent._parent.gotoAndPlay("2");
//End Behavior
but of course this applies to the whole component not to an individual button in the listbox component, so that when I click on 'story 5', it will still go to frame 2...
you get the idea.
SO how do i point the individual buttons in the component to go to and play different frames? (ListBox button: 'story 7' to go to frame 7, etc.)
I know I must seem dumb, its probably very simple...
but please give me a hand here.
Thanx,
GeckOblue