ActionScript 3.0 :: Textfield Scrolls When Selecting Text?
Aug 10, 2011
I 've got a textfield that is inside a movieclip scroller. I've got an issue though, when selecting the text, and dragging down the text moves one notch, is it possible to disable that?
Basically it does it with mouseWheel to, but I've set that on off, so it's ok.
But is it possible to disable it when selecting, too?
The text comes from an XML file, and I suppose that scroll happens because of white space on the XML. I tried disabling white space using AS3 but it doesn't seem to work.
View 9 Replies
Similar Posts:
Feb 22, 2011
I have a swf, loaded into the non-application sandbox in Adobe AIR 1.5 (the shell is already installed with our users so I can't update to version 2+).On the stage in the swf are buttons, movieclips, animations etc - all of these work fine.When we add an input TextField, selecting this TextField causes a Security Sandbox Violation. Error message (in debug mode) is (I've edited the actual file names):
[trace] *** Security Sandbox Violation ***
[trace] SecurityDomain 'file:///path/to/local/loaded.swf' tried to access incompatible context 'app:/loadingApp-debug.swf'
[code]......
View 1 Replies
Feb 4, 2009
Trying to format input text fields using format buttons in Actionscript has been challenging. I've been able to put some pieces together, however I am still missing some things. Here's my code:
Code:
function selectText() {
startSelect = Selection.getBeginIndex();[code].........
I need the ability to click the Bold button and it bolds or unbolds at the cursor so if I hit the bold button what I type from that point on will be bold until I hit the button again and then it goes back to regular. I am able to change it to bold or unbold by selecting the text and clicking the button but I also need to do it without selecting.
View 3 Replies
Aug 18, 2009
I have a scrolling static text box which scrolls up well, however when scrolling down stops showing the text toward the end of the textfield.The textfield and textfield mask are both movie clips. I have the following code on the up and down buttons:[code]
View 10 Replies
May 9, 2007
I'm sure this is very simply but I can't seem to get the trick down. I have a simply scroller with text. Nothing dynamic, just a plain 'ol scroller. I'd like the text to fade in or out, from the top or bottom, as the user scrolls. Take a look at this site and click on The Film link. The text fades as you scroll up/down. [URL]. I've tried making the mask for my scroller into a gradient but that doesn't affect the text.
View 1 Replies
Sep 29, 2004
I am trying to create scrollable text that scrolls up/down automatically (meaning without having to continously click on the button) when either the user mouses over or clicks on the button. Currently I am using the action script:
on(release)
{
scrolltext.scroll -=1;
}
View 1 Replies
Jan 12, 2005
i have a main movie and i load some external swf....the swf have their intro and their outro...i followed the tutorial from this site trasitions b/n external swf but when i put my files instead of the files of the tutorials does not work.
1.the 1st swf load normally but the scrollbar doesnt scrolls the text down
2.when i press the second button the 2nd swf loads but when i press again the 1st button or the 3rd button nothing loads. i'll really aprocciate if you help me with this because my head's spinning around i will attach the files to see what i mean..the file is saved in flash mx
View 1 Replies
Feb 24, 2009
When im over a dynamic text field and I scroll the mouse wheel down the dynamic text scrolls up a line...what's up with that??
View 1 Replies
Sep 27, 2004
I currently have a dynamic text box loading some html text (from external source) and scrolling automatically (need it to display news for a website that will be updated weekly by the client) .... I was wondering two things:
1 - Is it possible to endlessly loop the text (currently scrolls it and stops at the end)?
2 - My main movie is at 35 fps (too fast) can you set the speed of the scroll?
here is the actions on my container movie clip (very basic)
[Code]...
View 1 Replies
May 26, 2011
Multiline htmlText scrolls on drag selection of text
It also scroll on mouse wheel event..
var css:StyleSheet = new StyleSheet();
css.parseCSS('.red-text{font-family:"Lucida Grande";color:#ED1C24;font-size:10;font weight:bold;leading:-8;}');
[Code]....
View 2 Replies
Jul 27, 2004
creating a simple scrollbar that scrolls dynamic text. What I am looking to do now is be able to scroll a movie clip with text and an image in it. How do I do that?
View 3 Replies
Aug 14, 2010
I have a small issue going on. I created a dynamic scrollbar which scrolls dynamically loaded XML text. But it's not scrolling..You can view it here:(Click Start, 2 times the right arrow, then the book, to the righthand side there is a scrollbarI have divided my Scrollbar into 3 classes, the actual scrollbar, the scrollbar custom event and the scrollbar including content and mask.This is the actual scrollbar:
Code: Select allpackage com.own.ui
{
import flash.display.*;
[code]......
View 5 Replies
Nov 8, 2010
I'm currently looking into selecting and formatting text but I think I need someone to point me in the right direction.What I would like to achieve is this : So after clicking the button: the text "This selected....." should be red. Only red in the output box would be ok too, but preferably in both.
The input text is an input textfield and the output a dynamic textfield.I have been looking into TextSnapshot but this only seems to apply to static text. Using the htmlText property I could input a string with html tags but that's gonna be complicated I guess. Is there any way of achieving this using TextField.setTextFormat() ?
View 1 Replies
Dec 3, 2009
how do you make a horizontal scrolling text like in music players where song name scrolls from right to left for example?and then repeats itself after some time...
View 2 Replies
Mar 19, 2010
Is it possible to set focus on a text input component that contains text without selecting the text? I want to be able to focus on the component and have the cursor flashing after the last letter in the field.I am currently using:myTi.setFocus();That correctly focuses myTi but it also selects all of the text currently in the field. What would I need to add to just have a cursor flashing at the end of the characters currently in myTi?
View 1 Replies
Oct 5, 2010
Consider there are two text field objects:
TextField1="texta";
TextField2="textb";
Output: texta textb Now I want to select from "ta" in TextField1 to "tex" in TextField2. By the drag of a mouse. I know that by conventional methods it is not possible? Is there any other way to achieve this? And I need to highlight the text also.
View 1 Replies
Jul 28, 2011
I made an AIR app and enabled it so the user can move it around the desktop where they want. One problem is on a page of textfields, if the user tries to select text (click, drag cursor to select the text) the app drags instead.
Any easy solutions other than having to set up listeners for every textfield and "interrupting" dragging?? (AIR 2.7)
View 1 Replies
Oct 11, 2010
When I use TLF text in CS5 flash seems to use to capacity / I cannot do any clicks for around 10 secs when selecting/deselecting textfield. What could be the reason for flash slowing down so extremely?
Im using WinXP, SP3 System: HP xw6600 Workstation @ 2.50GHz, 3,25 GB GB of RAM,
View 3 Replies
Jan 31, 2011
I am developing a coverflow application where I have populated a data grid from an xml file. Now when I click on the cover flow , it generates a pop up with a result drawn from a random number generate function.This random number matches with the index of the data grid and displays the row in the pop up. I could not access the text inside the row. How to do it?
[Code]...
View 0 Replies
Dec 21, 2005
how can i make a movieclip and a textfield to resize to the content of the text in the textfield? I mean, if I have a textfield with 3 letters font name XXX and then the content of the field change, how can i resize te textfield so the text dont autoadjust to the 3 letter space?
View 3 Replies
Jun 18, 2008
Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why. If you have any clues... The AS I'm using:
[Code]...
View 3 Replies
Aug 29, 2011
in as3 how do i get the text of a textfield to know when to line break according to the width of the textfield.
View 4 Replies
Mar 12, 2010
I have MovieClip with TextField in, how can I dispatch when change text in TextField or remove TextField or add something else.
View 3 Replies
Nov 1, 2010
I'm using Flash Pro CS5 Win 7 to edit an existing FLA file, the text is suppose to be Arial Regular but it keeps changing to Arial MT. I've tried the embedded text option and selecting Arial Regular but again it keeps reverting back to Arial MT.
View 4 Replies
Jul 11, 2009
i've created this class:[code]..........
but qhen i instence an HTMLText it says tom me:
TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText()at classi::HTMLText() at intro_sito_fla::MainTimeline/frame117()0
1) How can i set this parameter?
2) How can i get request.data value? It's not a string, so...?
View 1 Replies
Oct 25, 2010
When applying text formatting to a comboBox, the text formatting appears perfectly on the dropdown menu items but the textField text disappears.Removing the text formatting from the textField makes the textField text reappear but of course there is no text formatting.
Is there a trick to this.
View 9 Replies
Aug 19, 2006
how to tell the cursor(vertical text flasher) to jump to the end of the text in a input textfield - so that you can continue typing from the end of existing text?
View 5 Replies
May 10, 2011
I have a text field where user can type and few controls to customize the text properties like: font, size, color etc.If a user has typed say "Hello World", the caretindex is next to d of World. I want that if now the user makes some changes to the cusomization properties like: changes font size, then the text appearing next is of the font size set and not that of d. How can I do that?
View 1 Replies
Jul 24, 2006
I have a dynamic textfield that loads text from a txt file. The content of the txt file will be modified daily by the client.What i need is that if there is too much text in the txt file, the dynamic textfield resizes (and not only with autosize because the text can be really long).[code]it doesnt look very good but it works. The only problem is that if I have a really long text the maxsizeY doesnt work fine.
View 1 Replies
Dec 31, 2004
I have an application that combines words introduced by the user to create new words. I would like to be able to save the resulting combinations into an external txt file.
View 2 Replies