Quote:
|
Originally Posted by annexion
PHP Code:
listBox.dataProvider=[{label:"Story 1",data:"s1"},{label:"Story 2",data:"s2"},{label:"Story 3",data:"s3"}];
var lbListener={};
lbListener.change=function(evt){
timeLineReference.gotoAndStop(evt.target.selectedItem.data);
}
listBox.addEventListener("change",lbListener);
|
Thanks annexion ....
That didnt exactly work out for me. Let's see if I can try explaining things a lil better.
I have the following instances in my movie.
A listBox = productList_lb
A Product MovieClip = products_mc
Inside of the products_mc I have 4 frames with frame lables to help with navigation : 1 = blank 2 = coffee 3 = tea 4 = candles.
In my productList_lb, I have 4 Labels. Labels that I filled manually in the component inspector. Those labels are: 0= Welcome 1 = Coffee, etc..
naturaually what I want to do, is script it so that clicking on Coffee, will perform this action ->>
PHP Code:
_root.products_mc.gotoAndStop("coffee")
Now, I tried your suggestion annx, and First, the "dataProvider" simply filled my listbox with Welcome from top to bottom.
So I deleted that line, and re-filled my labels out mannually... and then the rest of the code, still didnt do anything.
The "blank" frame has a page that says "Start Shopping" .. it's tied to the Welcome label in my listbox.
So far, with everything I've tried, nothing moves my movie off that "blank" frame.
Maybe I should try sending the .fla to someone?? ...
I hope someone is able to help answer this question.
There is always a solution to every problem.