Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : Combo box combined with timeline control


Aguilanegra
8/26/2005 10:45:28 PM
Hello All,

I am looking for some precedent on development for the following:

Customization of a combo box to include a timeline control (scrubber
equivalent) for an imported movie.

I understand that there may not be an immediate answer to this...however, can
anyone point me in the right direction?

Thank you,

Mateo
myIP
8/27/2005 12:00:00 AM
Customization of a combo box to include a timeline control (scrubber
equivalent) for an imported movie.

Do you want a ?customization? of a Flash comboBox component or one that is not
from Flash?

What are you importing this movie in and how?

The only possibly way I see using a comboBox component as a actual scrubber
would be using the scroll thumb (when it appears) inside the comboBox and while
moving it will also go to the desired frame which I don?t think is possible.

If you want to use a Flash ComboBox for timeline control and scrub it by
moving your mouse over the items, you would want something like this on your
timeline as shown below. cbNav is the instance name of your comboBox and each
case goes to a specific frame.

gotoFrame = new Object();
gotoFrame.itemRollOver = function(eventObj)
{
trace("index "+eventObj.index);
switch (eventObj.index)
{
case 0:
{
gotoAndStop(6);//frame number 6
break;
}

case 1:
{
gotoAndStop("MISSION");//frame label "MISSION"
break;
}
case 2:
{
gotoAndStop("PRODUCTS");//frame label "PRODUCTS"
break;
}
} // End of switch
} // End of the function

var myButtons = [
{label: "Home"},
{label: "Mission"},
{label: "Products"}
];

cbNav._lockroot = true;
cbNav.addEventListener("itemRollOver", gotoFrame);
cbNav.dataProvider = myButtons;
stop();
Aguilanegra
8/29/2005 12:00:00 AM
myIP,

Thank you for your help. I am actually looking for a solution that would
allow for the scrubber to be a part of the combo box component. The selectable
items I plan to use to load new movies onto the stage, but within the area of
the combo box itself, it would allow for "scrubbing" the timeline of the
imported movie.

Thank you,

Mateo
AddThis Social Bookmark Button