Disable The Text Selection Abilities And Such Of Flash TextFields (so They Act Like Labels)?
Sep 3, 2010How can i disable the text selection abilities and such of flash TextFields (so they act like labels)?
View 1 RepliesHow can i disable the text selection abilities and such of flash TextFields (so they act like labels)?
View 1 Repliesis there anyways I can disable people from highlighting/selection the text inside an Input Box? I have tried the 3 buttons next to the "Single Line" dropdown but none of them work.Is there a as3 code I need to put so people cannot highlight/select the text inside a input box for example in a form?
View 1 Repliesi got a s:List with a dataprovider and a custom itemrenderer. now my itemrenderer has a button within. Every time i choose a item from the list, i get focus on the item, but clicking the button within the item only causes the s:List to select the hole item and wont let me press the button within the item.
is there any solution to disable the "list" selection functionallity but keeping the items within the list enabled / clickable?
as requested, here the code (relevant parts)
CategoryTree.mxml
<s:List id="data1" name="D1" x="-2000" height="100%" minWidth="600"
width="{this.width}" dataProvider="{this.childrenResult1.lastResult}"
itemRenderer="gui.components.Category">
[Code]......
I was wondering if it's possible to have 2 selection simultaneously. Let me explain. I wanna be able select a piece of text within a textfield and have that selection-square displayed also on another textfield, using the
Selection.getBeginIndex() and EndIndex();
i.e. I select the 1st 5 characters of my textfield 1 and I have then the 1st 5 characters of my textfield 2 selected simultaneously.
I want to disable (and look disabled) some rows in a spark datagrid. I found this answer to stop selection which is greatIn flex, is there a way to capture and optionally cancel a row selection event in a DataGrid?
But I want in addition to show that the particular row is not selectable. Ideally I want to have some sort of overlay but I am not sure if that is possible. My alternative solution is to change the text color to grey for the unselectable row. Looking at the datagrid renders they all seem to be column based. I looked at skinning potentially (overriding the alternating color property) but this just sets the background property and not the text color.
I want to create a custom video player.I already have implemented the default player to play my streamed movies from Amazon S3 and my goal is to : customize completely the skin of the player add new abilities to the player like add text, images, drawings on the video at some cue points.make the player interact with javascript and forms using json for encapsulate the data.A "creator" want to add some text and a drawing on a movie (duration 4:00)He seek 1:30 and add a red bold text label: "Watch this carefully !"He seek 2:05 and add a white rectangle with 50% of opacity to overlay something.The player send json data to javascript.The "creator" submit the form and json-data are inserted in the database.In the frontend, some user play the video and see the text at 1:30 and the drawing at 2:05.What is the best way to customize the player in this case: Create a plugin ? Create a new player extending the JW Player ?
View 1 RepliesIs there a way to disable scrolling on textfields? We are having a reoccuring problem where textfields that schouldn't be scrollable still scroll for 1 line.
View 9 RepliesIs there a way to disable scrolling on textfields?We are having a reoccuring problem where textfields that schouldn't be scrollable still scroll for 1 line.You can see ALL of the text in a textfield (nothing is hidden below the fold), but when you click and drag, the text field scrolls up one line. This looks really sloppy but we can't find a fix.It seems that flash autosize makes the textfield a few pixels too short.I've tried every variation I can and looked through the as docs with no luck.
View 14 RepliesI have several "field types" such as Radios and Checks, but I also have a field type of my own called "multiVal".The purpose of the field is to allow the user to enter several values in one field, by pressing the Enter key. For this, I'm using a textArea component.I already wrote the code for the dynamic sizing of the textArea, and the Key Listeners, and it all works fine. My only problem is when the user presses&holds the ENTER key in the text field, because while my functions only count it as one press, the field itself is field with several line breaks.I am NOT interested in making it the other way around (having the function to add several "values" as long as the key is down). My GUI's specifications require that it only adds a SINGLE entry per key press.
I know I can probobly get around this by diving into the UIObject class, or textField class, but I'd really like to find a more effecient way than this.
Flex 4: mx|tree - How can I disable items selection? I want to disable the hover and selection colors so when a user selects an item it's background won't change color. how is that possible. I do not want to choose the selection and hover colors. the background contains an image so it won't be useful. I need to completely disable the colors.
I tried to override the Tree class but with no luck. This is the class that overrides the tree Class:
package components.popups.WelcomeBack {
import mx.controls.listClasses.IListItemRenderer;
import mx.controls.Tree;
[Code] .....
How do I disable the rollover, selection & focus colors in a list? I tried setting them to "{null}" but that just makes them black:
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="100%" height="100%"
[Code]....
Is it possible that such simple thing isn't possible to change. I searched for this but couldn't find anything useful.
View 2 Replieshow could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that....
View 2 RepliesThere is a dynamic text box and I set it's wrap to be falseHowever, when I input text and press enter key, it still return to next line. How should I fix it in Flash CS3?
View 3 RepliesAs there any abilities for IFDEF compiler preprocessing? So that if it is bin-debug, some lines are in the code, if it is bin-release, those lines disappear from code?
View 1 RepliesI have done some searching around, and from what it looks like so far, there is no native way to parse JSON in Actionscript/Flex. XML is automagiaclly parsed and life is good. Why isn't JSON parsed this same way?
View 1 Replieshow to compare the text of dynamically generated textboxes with xml value. the instance name to the textboxes are assigned at runtime.
View 3 Replies[code]...
If i click to any Read More link the text opened in a new window is still available for copying What should i do to to DISABLE text copying in a flash website fully ?
I have an input textfield and some keys listeners on the stage. When typing in the input textfield the key listeners of the stage and loaded swfs get triggered. I've tried different things with focus and stopPropagation but nothing's been working, at least the ways I've been implementing it.So my question is, "How can I make it so that when I am typing into the input textfield, none of the keylisteners get triggered?"
View 2 RepliesI never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>
View 2 Repliesi am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus
View 6 RepliesI have 2 spark labels next to each other. They are in a basic layout and both have bottom set to 0. They have different font sizes (28 and 12).
Both fields only display numbers. I want the baseline of the numbers to line up.
At the moment they do not as there are no descenders and the descender area of the line is obviously a different height for the 2 different font sizes.
I use the setStyle("textDecoration", "underline"); for showing an underline on text hover. This works fine but the underline is touching the text itself. Is it possible to put some spacing between text and the underline?
Update: 02/072012 I'm using Flex SDK 3.5 so I cant use the spark solution for now. Im using Label component and setting the textfield's style.
I'm a new to Flex, and I'm trying to add a second label to a text box.
like this: Label [_______] label 2
So the first label will describe the text box and the second the unit, for example:
cost of cleaning [_______] $ per hour
Can I do this with a label inside the form item?
what I have tried looks like this:
mx:FormItem label="cost of cleaning">
<mx:TextInput id="proSRO2YO" text="" width="120" maxChars="20"/>
<mx:Label text="dollars per hour"/>
</mx:FormItem>
but that results in a second label one line below, I need these on the same line.
I built the photogallery (actually four!)[URL] with a main gallery that loads the four categories. I originally had the category names appear on rollover using hover captions.
[URL] Worked great! Now the client wants to nix the hover captions and add labels in text. I thought it would be a cinch to code but I am not getting anywhere with it. Here is the code I have...
[Code]....
I have added a movieclip "thumbTxt" to the library with a dynamic text field "tipText" in it. I would like to attach it to the thumbnail, add the label from the XML and position it above the thumbnails. I have tried attach movie and I am just at my wits end. I have googled and can't find a solution that works for me. I have a feeling it is something simple that I am just not seeing.
I'm working on an interactive poetry project. I have 49 textfields displayed in a 7x7 grid. The properties are stored in an array. Here is the code for that. For the purposes of demonstration I place the character "S" as text in each field. This code works as intended.
var instances:Array = [];
for (var i:int = 0; i < 49; i++) {
var j_inst:TextField = new TextField();
j_inst.text = "S";
[code]....
The problem occurs when I want to change the text. When it's triggered the text simply disappears. I have no idea why and I'm running out of ideas. I've tried without the embedded font but to no avail. Changing other text properties like instances[j].x works but whenever I change the text I lose it.
function ChangeText(e:TimerEvent):void {
for (var j:int = 0; j < 49; j++) {
instances[j].text = "X";
}
}
I have an input textfield were I need to insert a number when it has focus and the user presses a button, like in a calculator. I have everything else working, the problem is thatinput1.text = anything;doesn't work, not for any of my 10 inputfields, like it does with my output fields (dynamic textfields)
View 4 RepliesI was wondering how i can prevent a scrollbar, so i was thinking about allocating the text to several dyn. textfield (depending on the size of the text)
View 3 RepliesThis happends in a *quite heavy* flashproject at work. And what's even more interesting is that it doesn't happend every time. It seem's to be at random. What happends is that text in textfields would move ~1px in X or Y. Have anyone else encountered this?
I thought that it was the layout code that sometimes was updated but no luck with that. And it is not that the text is getting reset either. But it seem's to happend on mouse-input ( press / onRelease ).
This has been tested on different computers and it moved on all, nut in different ways.
i have an issue with actionscript 3 and firefox 3.i have a dynamic input textbox on stage where users enter their email address. when i select the text inside of the input and drag and my mouse cursor off the stage, the typing goes into overwrite mode, not allowing me to type more than 2 characters.
View 2 Replies