Can I add a "mouseOver" method in a subclass?  How?

I have the following subclass that extends TextArea.  The contentBackgroundAlpha is 0 at the start.  Is is possible, including mouseOver and mouseout/mouseouthandler() methods wthin this sublcass so I don't have to write managers mouseOver and mouseout/mouseouthandler() in the application code?

package

{

Import spark.components.TextArea;

public class clickableText extends TextArea

{

public function clickableText()

{

Super ();

setStyle ("contentBackgroundAlpha", 0);

setStyle ('borderVisible', false);

buttonMode =true;

Editable =false;

mouseChildren =false;

useHandCursor =true;

}

}

}

Thank you!

Hi doug,.

You can do this way...

package
{
Import spark.components.TextArea;
public class clickableText extends TextArea
{
public void clickableText()
{
Super();
setStyle ("contentBackgroundAlpha", 0);
setStyle ("borderVisible", false);
buttonMode = true;
Editable = false;
mouseChildren = false;
useHandCursor = true;
addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);
addEventListener (MouseEvent.MOUSE_OUT, onMouseOut);
}
private void onMouseOver(event:MouseEvent):void
{
setStyle ("contentBackgroundAlpha", 1);
}
private void onMouseOut(event:MouseEvent):void
{
setStyle ("contentBackgroundAlpha", 0);
}
}
}

Thank you

Jean Claude

Tags: Flex

Similar Questions

  • LR CC: How can you add labels 'ABC' to multiple slides and how to apply the different transition and pan / zoom to select slides?

    I want to add different labels to most of the slides.  The 'ABC' option adds the same label to all slides with includes date shot and camera settings that I don't want.   I also want to control the slides have pan / zoom.  Seems to be something pretty basic that I'm missing?

    1. by clicking on [ABC] creates the text box.  By clicking on the menu dropdown determines what appears in the box.

    (and you can create multiple text boxes with different information!)

    "Custom text" will appear the same on each slide. The other choice pull metadata each individual slide - "Filename", "Caption", etc.

    The dialog box "Edit...". "you can create a combination of metadata to display in a box.

    In the dialog box "Edit...". "Alternatively, you can create something like this, where the text {Custom} is the same before the {file name}... etc.

     

    2 pan/Zoom is a feature very poor slide show-it is fixed and will apply to all slides without any possibility of control. Better to leave off...

  • Cannot add the payment method that I can't change the country in Windows store information field.

    Hello

    I want to buy an app in the store windows using my credit card.  I found the section where I can add payment options.  It's all good and Nice, the only problem is that I can't change the country for when I'm in my credit card information.  It is a static field set to the United States.  Fill in the information because I live in the Canada.  If you can let me know if this is something I could do wrong.

    LinkHero

    I discovered what the problem is.  I don't know when this happens or what it is connected to.  As far as I know is if you go in '-> Panel-> clock, language and region change the location ' then change the "location:" in your country.  You should be able to add the payment method.

    Now, it worked for me and I'm guessing that this setting is set by default to the States.  Don't know why it is not requested in the installation where you live, but I guess they have there reasons.
  • How can I add a contact in my address book?

    The address book is totally useless to me if I can't add people to it. There is currently no way to do and no place to go for instructions. Can someone please send comprehensible instructions on how to find and then open my personal address book or the address book and then collected it please tell me what's the difference between them? It is VERY non-intuitive.

    Open the address book window.
    You have a directory pane list down the left margin with your listed books?
    If this is not the case, the menu bar, select View-Layout-directory pane.

    In the directory pane, you can select the folder for one of your books.

    To add a contact press on the new Contact button and fill in the form.

    If you want to add a contact from an e-mail that you received, you need to work from the header of the Message or message open in a tab pane.
    When you view the header of a received message, there will be a star to the right of the address of the sender. If the star is filled with color the contact is already in one of your books. Clicking on a star not filled it will add to the personal address book
    By clicking on a color filled with stars will open the edit contact dialog box where you can add details to the contact or change the book it is saved in.
    This isn't the same star to the left of the subject line of message in the Inbox.

    The two default address books are staff and collected books.
    The personal book is for contacts you add and use it as the main book.
    The collected book collecting the addresses of people you send an email to.

    You can move contacts from one book to the other drag-and - drop contact.

    There is what is called the Contact side bar that sits in the window of writing. If yours does not appear when you open a window writing press F9 to switch on.
    From the sidebar of Contact you can add contacts to your e-mail.
    You can double-click a contact to add to an address field.
    You can drag and drop a contact to an address field.
    If you add more than one contact to an e-mail you hold down the CTRL key while clicking on all of the contacts you want and then use one to add it to: buttons at the bottom of the sidebar.

    You can also start a contact by typing in one of the address fields and Thunderbird will offer suggestions to your address books. This method has been a bit buggy in the latest versions so watch this closely to ensure that you get the contact that you thought that you have selected.

  • How can I add a second e-mail address for this computer

    I added a second gmail address for my wife on this computer.
    How can I access this address and add it to the menu bar that appears in the Inbox for my address?

    You should be able to add using a method similar to the way in which you added your own.

    If you talk about the opening of two accounts at the same time.
    You may have problems if you then try to open two accounts at the same time. It can open a window for the connected account. If this is a problem, try maturation of the second account, using private browsing (PB).

    If you're talking about only the possibility to use the auto form fill then all you need to do is enter the relevant text and use once and it will appear in the future. You must save the story and not be in PB for this to work. (So you can take the problem because of the workaround above and used only account of your wife in PB).

  • I'm using Time Machine (1 TB), works very well, but because full starting to delete previous backups. Can I add another (LaCie 1 TB) HARD disk for backups? If so, how to proceed. Thank you!

    I'm using Time Machine (1 TB), works very well, but because full starting to delete previous backups. Can I add another (LaCie 1 TB) HARD disk for backups? If so, how to proceed. Thank you!

    You can add another drive to accept backups Time Machine... assuming it is correctly formatted for Mac to Mac OS extended (journaled), but things are not exactly "continue."

    You have not indicated if you intend to add the player to the USB port on the Time Capsule, or connect directly to your computer using USB or FireWire connections. Or the other method works, with the option to connect directly to the computer being the faster connection.

    Once the disc is added, you would go in Time Machine preferences (click the "clock" at the top of the screen on your Mac) to add the disk for Time Machine backups and delete the old Time Capsule disk, since backups will go is no longer this destination.

    Since you have a new drive, Time Machine will do a new full backup of your Mac and then go forward with incremental backups.

  • Hello, I forgot my security questions, I want to change but the need for an aid station. And I do not add a post before rescue. How can I add now? Please help me. TNX.

    Hello, I forgot my security questions, I want to change but the need for an aid station. And I do not add a post before rescue. How can I add now? Please help me. TNX.

    You can not and need to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (137646)

  • Can I add bluetooth to my PC 15 hp laptop, model 15-g039wm

    I do not have realiuze I have bluetooth on my new pc. Not sure if I need to add it to my home group or how it is important that it be... Only use the pc at home.

    If I need it to connect, can you help me by providing information on how to add, etc. ?

    Thank you

    Barb

    The most common use of bluetooth technology is to synchronize the data with a phone that you can do with usb or to attach a bluetooth mouse or keyboard or a headphone as if you wanted to make the stone of rosette or something like that. It is not used to network with other computers, usually. If you have never actually used bluetooth I don't see why you need to have. If you feel that you are missing something in the way very easy to add bluetooth is with a cheap usb bluetooth dongle.

    $10 on amazon.com

    The other method would involve the removal and replacement of the wireless card to install one that makes the wi - fi or bluetooth connection. It would cost maybe $ 40-50 for the card but is not an easy task on your laptop model. It is no easy access door and would require fairly complete disassembly and would jeopardize security.

    Bluetooth is a feature of premium generally not provided at the lower end of the points of laptop computer prices, such as the models of Wal-Mart.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • I just got a new supplier of cable installed at home and now we find that our usual printer print wireless. How can I add this to the new network?

    I just had a new supplier of cable installed at home and now we recognize that our habit of printing wireless printer, how can I add this to the new network?

    Hello

    • What is the brand and model of the printer?
    • What happens when you try to print?
    • You receive an error message?

    You can view these methods:

    Method 1:

    Disable the firewall and check.

    The Windows Firewall is enabled by default in this version of Windows. To make sure that it has not been disabled, follow these steps:

    1. open the Windows Firewall by clicking the Start button, then Control Panel. In the search box, type firewall and then click onWindows Firewall.

    2. in the left pane, click turn Windows Firewall on or off. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. below for each type of network location, click on disable Windows Firewall, and then clickOK. We recommend that you turn on the firewall for all network location types.

    For more information, visit the following link:

    http://Windows.Microsoft.com/en-us/Windows7/Understanding-Windows-Firewall-settings

    Note: Run the computer without antivirus software or firewall is a potential threat to the computer; Be sure to activate security software after completing the troubleshooting steps and after identifying the problem.

    Method 2:

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    See also:

    http://Windows.Microsoft.com/en-us/Windows7/install-a-printer-on-a-home-network

  • I can not add to my favorite web pages, if I click on 'Organize Favorites' error ERROR 55 unspecified [message of the web]

    I can't add web pages to the favorite folder

    Hi wilfred Souza.

    1 when was the last time it was working fine?

    2. must occur when you add a Web page to the Favorites?

    3. did you of recent changes on the computer?

    4. you use Internet explorer as your web browser?

    Method1

    This would happen if all the Favorites are corrupted on the computer.

    Note: Try the procedure if you are using Internet explore below.

    I would suggest that take care you of all your Favorites and later delete everything by sailing until under location and check if it helps.

    C:\Documents and settings\ (name of the user account)-Favorites

    Method 2

    If the previous step fails, then I suggest you repair Internet Explore on the computer and see if it helps.

    How to reinstall or repair Internet Explorer in Windows 7, Windows Vista and Windows XP
    http://support.Microsoft.com/default.aspx?kbid=318378

  • How can I add the volume control icon to the notification area?

    How can I add the volume control icon to the notification area? I don't know how it disappeared.

    Hello

    1 Please reboot nothing so interfere with this process.

    Click with the right button on Taskbar - Properties - tab Notification area - check box Volume - if it is grayed out
    Then, use this link. (Ditto for power, clock and network.)

    How to enable or disable the system tray in Vista icons (there are several methods
    "(et vous devrez peut-être utiliser l'ensemble)."
    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    If necessary: a Mr Fixit

    System icons do not appear in the notification area in Windows Vista or in Windows 7 until you
    Restart the computer
    http://support.Microsoft.com/default.aspx/KB/945011

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How can I add items to the Menu of the button lock, I don't, change user, close and lock. I want to add 'restart '.

    How can I add items to the Menu of the button lock, I don't, change user, close and lock. I want to add 'restart '.

    How can I add items to the Menu of the button lock, I don't, change user, close and lock. I want to add 'restart '.

    This tutorial should do what you want. Use method 2.
    http://www.Vistax64.com/tutorials/105003-shutdown-options-start-menu.html

    Please read all notes caefully, not only the parts of the statement.

    t-4-2

  • How can I add a slider in a mxml file?

    I can't add a cursor to my .mxml file... When you use addChild() it seems do not work and try to add it manually to the mxml using the same method that say a button also does not work... any help?

    Hey, robert,.

    This thread can probably help you with that:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/ToggleSwitch-in-Flex/m-p/797365/h...

    Good luck!

  • I can't add music on my Media Player, there is no tab add to add more music, no quick fix to this problem?

    I download music and it does not add to the library of my media player and I can't do it manually. Windows 7 program, I can play with her music, but any new music I download I can't add it very sad

    Hi Patrick,

    Thanks for posting the question on the Microsoft Community Forums.

    According to the description provided, looks like you are facing a problem when adding music to Windows Media Player.

    It would be great if you could answer these questions to help you further.

    1. is the question confined with any particular music?

    2 have you made changes on the computer before this problem?

    This problem occurs because of the corruption of Windows Media Player library or settings.

    I would suggest trying the following methods and check if it helps.

    Method 1:

    I suggest to run the Windows Media Player library and Settings tool and check.

    See the following Microsoft article:

    Open the troubleshooter in the Windows Media Player library: http://windows.microsoft.com/en-US/windows7/Open-the-Windows-Media-Player-Library-troubleshooter

    Open the troubleshooting Windows Media Player settings Troubleshooter: http://windows.microsoft.com/en-US/windows7/Open-the-Windows-Media-Player-Settings-troubleshooter


    Method 2:

    Try to clear the database of Windows Media Player. To do this, follow these steps:

    a. Click Start, click Run, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.
    b. Select all files in the folder and then click on Delete on the file menu.
    Note: You don't have to remove the folders that are in this folder.
    c. restart Windows Media Player.
    Note Windows Media Player automatically rebuilds the database.
    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:
    a. exit Windows Media Player.
    b. If you run Windows 7, click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.
    c. Select the Media Player folder, and then click on Delete on the file menu.
    d. restart Windows Media Player.
    Note: Windows Media Player automatically rebuilds the database.


    Method 3:

    Try to add music to Windows Media Library and check.

    Add items to the Windows Media Player library: http://windows.microsoft.com/en-US/windows7/Add-items-to-the-Windows-Media-Player-Library

    Keep us informed on the status of the issue.

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • How can I add a network from Windows XP to Windows 7 network. I use a Linksys WRT54G2 router.

    How can I add a network from Windows XP to Windows 7 network.  I use a Linksys WRT54G2 router.

    Try the method here...

    http://www.howtogeek.com/HOWTO/15247/complete-guide-to-networking-Windows-7-with-XP-and-Vista/

Maybe you are looking for