Knowledge Base |
Accordion Panel V3
(views: 18958)
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: 6286)
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
User Comments
What is the code for AS3?
posted by bDoc on 2010-01-25
It would be great if someone could post the code for AS3.
Write to support
https://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2010-01-27
Please open a new support ticket and I am sure you will get that code. Please don't forget to specify the order ID. https://www.jumpeyecomponents.com/support/open.php
Login to post your comment









