On change: (Flex Properties)

I'd like to know how to use this. I've set an input text field with initial text with a style of italics, I'd like to have it change to normal when the user enters new text. I can't find anything to explain the proper syntax, and what I'm doing doesn't work:
change="text.normal"
I find the Flex help completely mystifying. I click on the Help button; I perform searches; I get nothing. It is this way for every single question. I must presume that this help system has the answers if I can only find the secret password. If someone has succeeded in finding the answer using help, I'd appreciate hearing how they did it.

Hello Thomas,
Listening for a change event is not really ok because if I'm not mistaking, a change event is triggered even if the user types someting into the TextInput( and you don't want events to trigger on every character you type into the field; except, if that's the purpose of your application ). A much cleaner approach would be to listen for focusIn and focusOut events and combine these with a custom TextFormat object.
http://www.igorcosta.com/flex3/doc/flash/text/TextFormat.html
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_Text_12.html
You would be doing something like this:
Create a TextFormat object that will handle the text formatting from "normal" to "italic".
Add a focusIn and focusOut listener to your TextInput.
When the user focuses the input field then inside the focusIn handler, simply apply the correct TextFormat to your TextInput( in this case, you'd be applying a format that will display the text the user enters as "italic" ).
When the TextInput looses focus then inside the focusOut handler you'd apply the TextFormat object again, but this time, without italic, causing your text to display as "normal text" once more.
Simple and more efficient than trying to do the same thing with a change event.
Best regards,
Barna Biro

Similar Messages

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to change the properties of a directory using java code

    Hai All,
    I need to change the properties of directory( websharing).
    Can i do this using java code.
    Regards,
    Charan

    I need to change the properties of
    directory( websharing).
    an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

  • How to change shape properties after having created one?

    Photoshop CC 2014 -- latest update as of October 06, 2014
    Windows 7
    How can I change a shapes properties after having created one.
    I have created a simple ellipse.
    When I drew the ellipse with the tool, I had the option for the fill color/style and stroke, etc.
    After I have created said ellipse, I wish to change its properties.
    I can use the Paint Bucket, gradient tool, etc for the fill, but is there way to get back to the original set of tools with which I created the ellipse in the first place?
    If I use Edit > Stroke... it adds a new stroke around the existing shape.
    If I use Edit > Fill... the entire layer is filled.
    There must surely be a way to reenter the tool set to edit an existing shape. No?
    Thanks,

    Hi everyone,
    Thanks for the helpful tips, advice, etc.
    I didn't explain myself very well--I apologize.
    However, with your tips I figured it out:
    When I create a rectangle or ellipse, I can later click on its layer and the Properties window appears with options to change their "Live Shape Properties."
    However, not so with the Polygon and Shape tools. With them, the Properties window shows only the Masks, but the Toolbar still shows some basic properties I can change.
    I was stymied by the above differences while working only on a Shape.
    I've attached two JPEG screenshots.
    I didn't need to change the actual shape, just the fill/stroke, etc.
    Later, I may wish to change the actual shape, but that appears to be done by simply creating something new.
    Thanks much!!

  • "Click To Change All Properties" Not Working In Dreamweaver CC For Padding/Margins

    Every time I try to use the "Click To Change All Properties" option in Dreamweaver CC (the chain link icon in the middle of the Magin/Padding box), it never seems to work. Nor does it use the CSS shorthand, it lists the top, bottom, left and right margins/padding separately no matter if I have the chain link icon connected or broken.  If I have it set to link all four sides, then enter a value into the top, nothing happens to the other sides. It's not until I enter a value in to the bottom that it auto fills in the other two sides. Anyone else having this issue?

    Thank you for your help. I think I figured out what I might have been doing wrong when setting the margins. I would first clickt the chain icon to join everything, then enter in a value in the Top box, but I wouldn't see the other boxes update with that same value, so I would immediately click the Bottom value box. Instead, if I just click on the inner white box, just outside of the perimeter of the chain icon, it updates all of the remaining values.
    The shorthand setting worked as well for the Padding/Margins. Thank you!

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

  • How to use Prompts in the Filter created in Change Report Properties

    Hi all,
    I have created one Datetime prompt in Change report properties dialogue box.
    Now how can I use this same one in the filter ??
    Since I didn't get Surface and Prompt option for the Date field in the filter.
    Any help is appreciated.
    Thanks

    Actually problem is with Datatype..It was timestamp but it should be Datetime

  • Can't change Movie Properties

    I just bought and downloaded 5 Pixar short subject movies.
    I have a 3 year old grandson that I've set up a Mac for.
    I've put his favorite movies and trailers on the desktop with large icons and slow double click. I set each movie to open in full screen and close when finished because he can't click on the red close button.
    The Pixar movies downloaded into iTunes, so it would be difficult for him to find them to play.
    I opened the mp4 in Quicktime and saved as self-contained movie, thinking this would do it. I put the movie on the desktop and opened it to get movie properties. I could not change them, so I can't set to go full screen or to close the movie when done. ???
    Is there no way to do this? "Protected" is one thing... but not being able to change the properties seems ridiculous.
    RM

    Better to use "reference" instead of "self contained" to save on HD space.
    Then unplug the mouse and teach the 3 year old the keyboard.
    The "Tab" key will highlight a file and a new tap on it will move the focus to a new item.
    Command key and the letter o key will launch QuickTime Player.
    Command key and the letter f will send the file to Full Screen (requires Pro).
    The Spacebar will start and stop playback. Up/down arrow keys will adjust volume.
    Command key and the letter w key will close the window. Escape key will send it out of full screen but leave the window open.
    Command key and the Tab key will allow switching between the Finder and QuickTime (focus changes each time the Tab key is clicked) and releasing the Command key will make that app the "front".

  • Cannot change Printer Properties in Word 2010 with J6480. Properties revert to default setting

    When I attempt to change Printer Properties in Word 2010, they simply revert back to the default setting.  I am unable to use the Printer Properties within the Word 2010.  If the default is grayscale, that is all the printer will print unless I change the default setup in the Control Panel. It appears to be an incompatibility with Office 2010 software as other programs allow the change of Printer properties.

    I have the exact identical problem.  Brand new printer (HP PhotoSmart C4780) on a brand new PC (Windows 7).  I cannot access the printer properties dialog box when the PDF file has been opened in an embedded Adobe Viewer window in Internet Explorer.
    When I select [Print] from Word or Adobe Viewer, or anywhere else, I can then press the [Properties] button and it opens the printer properties just fine.
    But if I open a PDF document through Internet Explorer, clicking on that [Properties] button doesn't do anything.  No error or anything.  If I press the [Save] in the Adobe Acrobet-embedded Internet Explorer window, it too does nothing.  This leads me to think it is an Adobe Acrobat issue.  However, I have found nothing in their support forums on this topic.
    Does anyone out there have any ideas?
    Scott

  • Change "name" propertie of a apex item

    Hi all,
    I´m trying to change some atributes of a select list item, like "name", but the apex put a name like "p_t04", even if i put a (( name="mine" )) in the atributes of form elements, when i check the html source code, the name "p_t04" is in there. Apex set the ID of a item like the name i choose to the item when i create then, but the select NAME=" " <<< that name, cannot be changed??
    sry about my english...

    Hi Dan..
    I need create a multiselect combobox. Is a combobox with checkbox inside. I found some JQuery in google, but to change the normal APEX select-list into the jquery multiselect i need change some properties to call the function. I alread try to create my own combobox, but its hard to populate with DB result and using position absolute after all, the final result is not so good, work, but not like i need it.
    I need change the atributes of the apex select list to change in to a multiselect. You think if i change that (if there´s a way to that)) will be a problem??
    tnks for help me.

  • Changing security properties

    how do I change security properties in Adobe Reader X or in Acrobat.com? I can create pdf's and convert but my documents have no security.

    There is no mechanism for changing the security on a PDF file from within Acrobat.com. You can choose to make it private or public, but that's all.
    To add password protection, you'll need to use Adobe Acrobat.
    Hope this helps!

  • Want to change image properties programmatically

    want to change image properties programmatically like
    adjust_to_fit,selection_rectangle,pane,show_pallete.
    Reply as soon as possible.
    [email protected]

    I understand.
    In terms of for the initial Ecommerce switchover we mass updated the MMIMAGE field in partsmaster so that the assumed naming convention of the image files are ITEMCODE.jpg.
    Your solution is good which covers the instance where the image file field is empty and then putting in a empty image field in there.
    The other scenario is that the MMIMAGE field is filled put the physical .jpg file is missing in the file system.  Is there a way to handle that. 
    I checked already the netpoint thumbnail handler .dll and browsed over the available member properties / methods but I don't think such a config exists.
    Mike

  • Changing a .properties file from within a programme

    Hi, I was just wondering is there anyway that i can change a .properties file from within a programme?
    I have certain values in the .properties file and I want to add a username and password to the file once it has been entered in a login part of the programme.
    I have had a look at the docs and can not seem to find any suitable methods.
    Cheers Gareth.

    store is a good method.
    In practical use, sometimes you have a .properties file full of comments (properties files are to be modified by humans, and humans need comments), but they are not retrieved by "load" so they will not be stored back by "store". It's a pity that it happens (the equivalent Windows API, WritePrivateProfileString, has a better behaviour).
    Maybe someone has written a method that can modify a properties file, without changing the order of the pairs name=value and without throwing out comments.

  • Changing link properties between tables

    Hello,
    Is it possible to change somehow properties for the links between tables?
    We have about 2000 reports and we should change most of the links, it would be very convenient to write short program to do this instead of destroying couple mouses and wrists etc...
    Currently we are using VB6 and RDC to work with reports but we are open for all ideas to solve this problem we have.
    Thanks in advance for any help!
    Timo

    Hi Timo,
    Unless you know exactly how all are going to change exactly it may be easier to hire a student to this for you.
    Here's a bit of code that should get you going, it's old but should work for you also. You'll need to know what fields are mapped etc... It actually adds the tables at runtime and what you'll want to do is get your existing tables and links and save the info in an array.
    Dim db As Database
    Set db = rep.Database
    Dim tables As ICRDatabaseTables
    Set tables = db.tables
    Dim desTable As ICRDatabaseTable
    Dim path As String
    Dim srcTable As ICRDatabaseTable
    Dim subloc As String
    ' Add a table.
    subloc = "Orders"
    Set srcTable = tables.Add(subloc, CRDTRecurringFile, "crdb_ODBC.DLL", "MS SQL Tsvanfps01", "nwind", "vantech", "vantech", subloc)
    ' Add a table.
    subloc = "Employees"
    Set desTable = tables.Add(subloc, CRDTRecurringFile, "crdb_ODBC.DLL", "MS SQL Tsvanfps01", "nwind", "vantech", "vantech", subloc)
    Dim links As ICRDatabaseLinks
    Set links = db.links
    Dim count As Long
    count = links.count
    Dim joinType As CRJoinType
    Dim lookType As CRLookUpType
    Dim pm As Boolean
    Dim indexInUse As Integer
    joinType = 5    ' set to Left Outer Join
    lookType = 2
    pm = False      ' used for Access tables
    indexInUse = 0  ' used for Access tables
    Dim vas As Variant
    Dim vbs As Variant
    vas = Array(2)  ' pointer to the field position in the source Table
    vbs = Array(0)  ' pointer to the field position in the destination Table
    Dim newdblink As ICRDatabaseLink
    Set newdblink = links.Add(srcTable, desTable, vas, vbs, joinType, lookType, pm, indexInUse)
    Have fun
    Don

Maybe you are looking for

  • Shared files between Vista and Windows 8.1

     I have a laptop with windows 8.1 on it and a desktop with Vista.  The desktop can access the files on the laptop, but the laptop cannot access the desktop files.  The network shows the desktop, but says it is cannot access it.  Is there a setting in

  • Multiple Hard Drives, External Hard Drive

    I'm not sure exactly how to phrase this question. I've been using Apple's Aperture program, but now that I'm subscribed to CS Cloud, I want to try Lightroom. I installed Lightroom. During the installation process, I created a new folder for storing i

  • How to add multiple test conditions in 'test' attribute expression of xsl:if tag

    Hi all, How to add multiple test conditions in 'test' attribute expression of <xsl:if> tag ? I have 2 parameters and I want To skip the massage if this 2 conditions happened I tried to write it :         <xsl:when test="($TransferToCompany = 0 and $O

  • Iphoto not opening, can't find pics

    Hi I have Iphoto 08 and when I connect a camera it does not open Iphoto anymore, nor can I click on it and open it to see the events etc. I am assuming Need to uninstall and reinstall? or just install again? my other issue is where do I find my pictu

  • WebDB not correctly installed?

    Hi there! We installed recently WebDB 2.2 and it's not exactly the way we want it to... ;-) I checked the Troubleshooting and found that the package(s) seem not to be installed correctly. Whenever I do (as WebDB user) 'set serveroutput on; exec webdb