Hi NightAvatar, About your reqt of showing default suggestive text in the TextInput, there is a opensource flex component library called "Flex Lib", which provides a custom component named "PromptingTextInput" u can check it out in d below link, U need to add SWC of the lib to ur project and use it as u would the TextInput component. There are many other very effective custom components present in that library, check them out.
http://code.google.com/p/flexlib/wiki/ComponentList Cheers!!, Raghavendra. On Mon, Feb 8, 2010 at 1:16 AM, FlexiSush <[email protected]> wrote: > Hey > There is an easy solution for your problem which you can find in my > blog > > http://flexphpworld.wordpress.com/2010/02/07/using-objectcollector-class-for-accessing-objects-created-dynamically/ > > On Feb 4, 1:14 pm, NightAvatar <[email protected]> wrote: > > I am new to Flex but somewhat experienced to javascript. I am used to > > adding simple scripts to elements using "this" to define the element. > > Apparantly that doesn't work with Flex - which really sucks for me. :( > > > > How can I create a script that is assigned to 20+ elements > > (mx:textInput's) and is triggered when a user clicks it (focusIn, > > really). I wanted something like: > > if (this.text=='Placeholder text...') { > > this.text=''; > > this.setStyle("color", 0x000000); > > } > > > > Any idea how I can do this? It kind of makes me mad that I can't use > > such a simple script. I am guessing the Flex version will be 5 times > > longer! :( > > > > Thanks for any help! :) > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

