Knowledge Base |
Important! All new questions are usually answered within the next business day.
Accordion Panel V3
(views: 4638)
Accordion Panel V3 is a professional accordion component that loads movies and movieclips and supports both horizontal and vertical orientation, it supports customized tweens, states and visual styles. Here are all known issues for Accordion Panel V3. If you have any questions that you think we should discuss here please let us know.
Use HandCursor on Accordion Panel's items
(2007-07-20 - views: 1334)
Q: I need a way to turn the cursor into a hand cursor when someone mouses over the Accordion Panes. Can you please let me know if you can make this happen?
A: Attached is a fla file which contains the actionscript that will allow you to use handCursor on Accordion Panel's items. However, below is the full commented actionscript you need.
//Set the property useHandCursor to true for the accordion's headers
//First we have to listen for an event that is dispatched after all the component is drawn
var lis={}
lis.onDrawComplete=function(){
if(accordionPanel.items){
//We traverse the children list and for every item we set its header's useHandCursor property to true
for(var i in accordionPanel.items){
accordionPanel.items[i]._header.useHandCursor=true
}
}
}
//accordionPanel is the instance name of your panel component on stage
accordionPanel.addEventListener("onDrawComplete",lis);
See the attached file.
Files: HandCursor.zip
//Set the property useHandCursor to true for the accordion's headers
//First we have to listen for an event that is dispatched after all the component is drawn
var lis={}
lis.onDrawComplete=function(){
if(accordionPanel.items){
//We traverse the children list and for every item we set its header's useHandCursor property to true
for(var i in accordionPanel.items){
accordionPanel.items[i]._header.useHandCursor=true
}
}
}
//accordionPanel is the instance name of your panel component on stage
accordionPanel.addEventListener("onDrawComplete",lis);
See the attached file.
Files: HandCursor.zip
Login to post your comment
Other questions in this item:
Installing the Accordion Panel V3 Open the accordion panels automatically the title isn't showing in the horizontal mode Use the Accordion Panel without external XML file Open the Accordion Panel upwards Vertical title for horizontal accordion panel Stopping video content when changing the panel Load different kind of data into AccordionPanelV3 Auto open a panel on startup Rotate the direction of the text on horizontal Accordion Dimensions TEXTU appears in my file HyperLinking panels Accordion Panel communicates with a loader Access header title and panel content Panel opens only after content is loaded, when loadExpandedItemsOnly is true Access header title and panel content Acces accordion panel from content Panel opens only after content is loaded, when loadExpandedItemsOnly is true Load new content without XML Access accordion panel loaded with loadMovie inside container clip Non Latin characters Acces accordion panel from content Graphics below the accordion panel Getting accurate accordion height Non Latin characters Flv playback inside accordion Get the size of panel's content Open panels from bottom to top and left to right Accordion Panel communicates with a loader Open panels upward for vertical accoirdion and to the left for horizontal accordionMenu |
|
|

