MistahT
asked on
Hyperlinks for Flash Combo Box Items
Hi Everybody,
I'd like to add hyperlinks to the items in my combo box in Flash CS4.
The combo box will act as a navigation to different websites.
Can anyone please explain to me how to do it?
This is the code so far:
function subList():void {
cb1.addItem( { label: "INTRODUCTION" } );
cb1.addItem( { label: "HISTORY" } );
cb1.addItem( { label: "OBJECTIVES" } );
cb1.addItem( { label: "PERFORMANCE" } );
cb1.addItem( { label: "MANAGEMENT" } );
}
function subClick (event:MouseEvent):void {
cb1.removeAll();
subList();
}
cb1.addEventListener(Mouse Event.CLIC K, subClick);
Thanks!
I'd like to add hyperlinks to the items in my combo box in Flash CS4.
The combo box will act as a navigation to different websites.
Can anyone please explain to me how to do it?
This is the code so far:
function subList():void {
cb1.addItem( { label: "INTRODUCTION" } );
cb1.addItem( { label: "HISTORY" } );
cb1.addItem( { label: "OBJECTIVES" } );
cb1.addItem( { label: "PERFORMANCE" } );
cb1.addItem( { label: "MANAGEMENT" } );
}
function subClick (event:MouseEvent):void {
cb1.removeAll();
subList();
}
cb1.addEventListener(Mouse
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i take it you figured out you need to import the URLRequest class?
ASKER
thanks so much for the quick reply! :)
I pasted your code, but receive the error:
1120: Access of undefined property urlRequest.
Open in new window