473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Mouse over action for a item in a list box

42
Hi guys , just a quick one, if anyone knows

I have a listbox that contains some items .
Is there mouse over action for that when i go over the item from that listbox to do something?

Thanks.
Jul 10 '09 #1
2 4066
Which version of actionscript are you using?

I think this should work:

on (rollOver) {
I don't have flash any more so I havn't tested it.
Aug 10 '09 #2
gopan
41
If you have a list named ccList then you can have the roll over and roll out functions as this in AS2

Expand|Select|Wrap|Line Numbers
  1. var listenerObj:Object = new Object();
  2. listenerObj.itemRollOver = function(eventObj:Object) {
  3.     trace("Roll Over");
  4. };
  5. listenerObj.itemRollOut = function(eventObj:Object) {
  6.     trace("Roll Out");
  7. };
  8. ccList.addEventListener("itemRollOver", listenerObj);
  9. ccList.addEventListener("itemRollOut", listenerObj);
  10.  
and in AS3

Expand|Select|Wrap|Line Numbers
  1. import fl.events.ListEvent;
  2.  
  3. function rollout_fn(e:ListEvent):void{
  4.     trace("Roll Out");
  5. }
  6.  
  7. function rollover_fn(e:ListEvent):void{
  8.     trace("Roll Over");
  9. }
  10.  
  11. ccList.addEventListener(ListEvent.ITEM_ROLL_OUT, rollout_fn);
  12. ccList.addEventListener(ListEvent.ITEM_ROLL_OVER, rollout_fn);
  13.  
Aug 14 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nick Stubbs | last post by:
Can anyone tell me how to code the listbox so I can move an item up and down the listbox with the mouse. For example, the play list in Winamp 5 can be sorted by you selecting a song and moving it...
5
by: mabond | last post by:
Hi My project has a form, two list boxes (lstArchive and lstSchedule) and two buttons (btnSendArchive and btnSendSchedule) Each list box represents the content of a directory. The command...
0
by: dbuchanan | last post by:
Hello, The actions pane locks up after selecting a listbox. I have tried all kinds of things and have narrowed it down to this. If I click in the listbox the action pane locks up. Neither a...
0
by: jojobar | last post by:
We are using the ASP:Menu control (horizontal) for site navigation. We would prefer that the menu items only be expanded when we click on a top level menu item rather than when the cursor hovers...
2
by: Roberto Reale | last post by:
While developing a drag&drop enabled application I found out this "strange" behaviour: if I put a message box into the QueryContinueDrag event handler the message box is shown but the mouse cursor...
1
by: Sim | last post by:
Hello NG, I try to use drag and drop function between two list views. For this I found following code: ...
1
by: rdemyan via AccessMonster.com | last post by:
My application is mostly about performing analyses on data: looking for errors/problems/potential savings, etc. I would like to create a form where a user can create action items for themselves,...
2
by: Mohit | last post by:
Hi all, I am working on a windows application with a list view on a form. Now I wanted to show hand cursor when mouse is over list view item and default(arrow) cursor at other places. List...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.