Disable The Text Selection Abilities And Such Of Flash TextFields (so They Act Like Labels)?

Sep 3, 2010

How can i disable the text selection abilities and such of flash TextFields (so they act like labels)?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Disable Inputbox Text Highlighting/selection?

Feb 25, 2010

is 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 Replies

Flash :: Disable List Selection But Keep Children Functions

Apr 30, 2011

i 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]......

View 2 Replies

ActionScript 2.0 :: Clone Selection Between Two TextFields

Oct 16, 2004

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.

View 2 Replies

Flex :: Disable Selection Of A Row?

Sep 16, 2011

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.

View 1 Replies

Flash :: Add Abilities To The JW Player (and Customize It)?

Feb 28, 2011

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 Replies

ActionScript 3.0 :: Disable Scrolling On Textfields?

Feb 13, 2008

Is 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 Replies

ActionScript 3.0 :: Way To Disable Scrolling On Textfields?

Feb 13, 2008

Is 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 Replies

ActionScript 2.0 :: Disable ENTER Key In Textfields?

Aug 16, 2004

I 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.

View 1 Replies

Flex :: How To Disable Hover And Selection Colors

Feb 10, 2011

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] .....

View 3 Replies

Flex :: Disable Selection & Rollover Colors In A List?

Feb 26, 2011

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]....

View 1 Replies

Flash :: Change Selection Color In TextArea (or Other Text Components)?

May 31, 2011

Is it possible that such simple thing isn't possible to change. I searched for this but couldn't find anything useful.

View 2 Replies

Actionscript :: Disable Datagrid Header Rollover Color And Selection Color?

Jul 22, 2010

how 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 Replies

ActionScript 3.0 :: Disable Text Wrap Of Dynamic Text In Flash Cs3?

Oct 26, 2009

There 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 Replies

Actionscript 3 :: Abilities For IFDEF Compiler Preprocessing?

Aug 16, 2011

As 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 Replies

Actionscript :: Flex Not Having Native JSON Parsing Abilities?

Aug 10, 2011

I 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 Replies

ActionScript 3.0 :: Compare Dynamically Generated Textfields Text With Xml Text?

Mar 18, 2011

how to compare the text of dynamically generated textboxes with xml value. the instance name to the textboxes are assigned at runtime.

View 3 Replies

ActionScript 3.0 :: Disable Text Copying In A Flash Website?

Jun 5, 2010

[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 ?

View 4 Replies

ActionScript 3.0 :: Flash - Disable Key Listeners While Inputting Text?

Mar 6, 2011

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 Replies

IDE :: CS4 Jsfl - Fl.getDocumentDOM().selection Doesn't Retain The Selection Order

Nov 11, 2010

I 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 Replies

ActionScript 2.0 :: Selection.setFocus Selection.getFocus Inputting From Mc?

Sep 6, 2007

i 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 Replies

Flex :: Align Text In Spark Labels?

Aug 26, 2010

I 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.

View 1 Replies

Flex :: Underline Style For Text/labels?

Feb 3, 2012

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.

View 1 Replies

Flex :: Mx:formitem Multiple Labels - Add A Second Label To A Text Box?

Nov 21, 2011

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.

View 1 Replies

ActionScript 2.0 :: XML Photogallery With Scrolling Thumbnails And Text Labels?

Jun 20, 2007

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.

View 5 Replies

ActionScript 3.0 :: Text Disappearing From Textfields?

Oct 12, 2009

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";
}
}

View 7 Replies

ActionScript 2.0 :: Can't Set Text In Input Textfields?

Aug 26, 2010

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 Replies

ActionScript 2.0 :: Allocate Dyn. Text To Several Textfields?

May 9, 2008

I 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 Replies

IDE :: Text In Textfields Randomly Move?

Nov 2, 2009

This 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.

View 5 Replies

ActionScript 3.0 :: Input Text Selection In Firefox 3?

Oct 13, 2008

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







Copyrights 2005-15 www.BigResource.com, All rights reserved