ActionScript 3.0 :: Make The Text In The TextArea Component Clickable?
Jun 11, 2009
I have text in a textArea component that I need to be clickable and open up the users email program.The text shows fine when I have this:infoBox.taEmail.text = xmlDataSelect.office[evt.target.selectedIndex];but I can not click on it, so I tried this:infoBox.taEmail.htmlText = "<A REF="mailto:"+xmlDataSelect.office[evt.target.selectedIndex].email+ "</U></A>";
View 2 Replies
Similar Posts:
Mar 18, 2011
I want to add an event listener to each word inside the textarea. Is this possible?I have a function that shows a list of inventory items in a game I'm making. I put the list inside a textarea so that I can scroll through the inventory, but I want to be able to allow the user to click on each item. For Example:
Potion
Antidote
Sword
[code]......
View 1 Replies
Nov 3, 2009
A little much put in the title, but my question is just that. I have the following AS3 code for my textarea...
addChild(Texta1);
Texta1.alpha = 0;
Texta1.blendMode = BlendMode.LAYER;
[Code].....
Unfortunately, when I start placing text in this text area. Either through code or user input, the text will be placed on a new line after about 80-100 pixels. Yet I want it to start a new line after 320 pixels (it's length).
View 0 Replies
May 2, 2011
I want to make a TextArea component public so it can be accessed from other frames. For example, I want to be able to say that if this button is pressed change the TextArea text to "1" and go to the frame.
I have no idea how to do this, i've tried : frameHome.textArea.text = "1"; to change the text but it doesn't work so i'm presumming that i'm a little off mark.
View 1 Replies
Nov 30, 2009
I am just starting to use the TextArea component in Flash CS3. How do I change the font size, style, and color of the text within the textarea? Can I also change the textarea background color from white to something else?
View 3 Replies
Jun 29, 2006
I'm importing text into a TextArea component and it all works fine and dandy.Though I want the textarea to not form a scrollbar but to actually just keep adjusting its height so there is never a scrollbar.I looked through all the properties and I have no idea what to test for to see if there is a scrollbar.
View 1 Replies
Feb 23, 2010
I'm using AS2 in Flash CS3.I have a TextArea component in the stage that's loading its text from an XML and I've been able to use the ul and li tags to create lists. However, when I try to include a nested list it just inserts a line break between the nested list and the main list rather than indent it further. Is there a solution for this issue?Failing that, how would I be able to add non-breaking spaces into the XML so they will render inside the TextArea component? I've tried and without success. I scoured the net for some help with this and found some information about modifying the font embedding xml file with a new entry for the non-breaking space and that didn't work either, so that leaves me somewhat stumped.
View 1 Replies
Mar 13, 2007
I have a problem with textArea component. Whenever I press the scrollbar down and release it, all text inside my textArea get selected.
View 4 Replies
May 9, 2006
I have inserted a TextArea component and i can add text normally by changing it in the parameters tab. but i was wondering if anyone knew the code so i can make it show and input text field ? (call a .txt file in to the TextArea component)
View 1 Replies
Jan 22, 2009
I have a movie clip which has 3 different text boxes inside it. I want to make each text box clickable similar to a hyperlink in HTML (clicking on text box 1 takes you to one website, clicking on text box 2 takes you to another website, etc.). Right now my code is as follows:
ActionScript Code:
MyMovieClip.gotoAndStop(2);
MyMovieClip.TextField1 = "Click Here For Example 1";
[Code]...
So, you will see that I have 3 different text fields (labelled TextField1, TextField2, TextField3. Something is obviously wrong with my onRelease function, so my question is how can I make TextField1 clickable and send you to [URL] when you click on it? Am I using the right approach in the first place?
View 1 Replies
Oct 12, 2010
I'm loading copy from an XML doc. How can I make allI can't put href statements in the XML as the XML is actually pulling Twitter postings.
View 9 Replies
Aug 20, 2009
In an AIR app, I am loading a bunch of arbitrary text via JSON, loading it into an object, and displaying it via a custom renderer. I would like to have urls be clickable. So I'm sure that this is possible via some crazy regex thing (as I found for php here), but, Flex being flex, I'm astonished that there isn't some builtin functionality for this that I'm just not finding, or, failing that, a library that someone has created to do just this. (I'm equally astonished that this question hasn't been asked here before. I anticipate being flamed with the link to that)
View 2 Replies
Jan 16, 2009
I want to make a "module" composed by an image and a text and make this clickable, how could I made this in AS? PS: to create the text I'm using the TextField(), what I have to use to make the image from a url?
View 1 Replies
Feb 25, 2011
-this is supposed to make multiple buttons with text(not clickable yet) -it seems to coppy over, or remove the previous myButtons[i] movieclip each time it goes through the loop. -there are 3 strings in buttonText.length -on the output i get 0,1,2 -but on the screen I only see one gradient (its only a pink box, but one problem at a time) -the box appears where roughly the 3rd button should be. -full code attached
View 14 Replies
Oct 11, 2010
Is it possible to save text of textarea in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?
I tried saving htmlText of textarea but the problem is when i replace it in textarea <p> tags causes problem.There will always be another extra line.
View 3 Replies
Oct 11, 2010
Is it possible to save text of textarea (flash 10, as3, cs5) in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?
I tried saving htmlText of textarea but the problem is when i replace it in textarea tags causes problem. There will always be another extra line.
If anyone wants to view p tags problem try following. Just click on text and then move your down arrow key, cursor will go to next line.
[Code]...
View 1 Replies
May 29, 2009
Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?
View 1 Replies
Mar 1, 2009
I want to make a dynamic textarea with loaded text from an external textfile, and then I want custom made arrow buttons to start scrolling the loaded text on mouseover (not click) andt stop scrolling on mouseout. Ala like in this webpage[url]...
The part with the loaded text is fine, but I can't manage to script the arrow buttons to do what I've just described. Even though I have searched the Internet for recipes I just find how to scroll loaded text on click or with a scrollbar
View 1 Replies
Jan 23, 2010
I am creating a component that will be a large plus or a large minus. I don't want to use a bitmap because even I can draw this using the Graphics class, but the component must be clickable (the Shape class is not). It will be part of an item renderer, so I want it to be as light-weight as possible. UIComponent does not seem to sent CLICK messages.
View 3 Replies
Jul 19, 2009
ok after using the textbox component and finding out that the font size (possibly the most important variable for that type of component) is not avalible at design time (the creator needs shooting for that one) and you ahve to do it by code.i ahve a ton of text companents and combo boxes all called diffrent and relevent names of course.
View 1 Replies
Aug 28, 2008
We have a TextArea that is created dynamically reading in XML data with the textFormat set to Arial font as the default. When we publish it the font tag for a subscript and superscript fonts is not displaying even though we have embedded the fonts. It displays
properly if the font is installed.
View 2 Replies
Jun 23, 2009
Is there a way to get a TextArea to automatically scroll down when text is added to it?I have had a look around but havent found anything that works.
View 2 Replies
Nov 20, 2009
The scroll policy for the textArea component appears to be "auto", and that works just fine.However, I want to be able to turn it off in certain situations, i.e., not have the scroll bar appear.I do the following which I thought would turn it off but the scroll bar still shows up.
Code Snippet:
myTF = new TextFormat("Arial", 10, 0xFFFFFF,false);
myText_mc.myTextArea.setStyle("textFormat", myTF);
myText_mc.myTextArea.verticalScrollPolicy = "OFF";
myText_mc.myTextArea.horizontalScrollPolicy = "OFF";
View 2 Replies
Jan 27, 2010
How does one customize the text area component ( I mean text font, text size, colour and so on). Nothing like that appears in Component Inspector.
View 5 Replies
Apr 10, 2010
I am facing a problem while using textAreacomponent in Flash cs4.I set the text of this component at run time with coding i.e dynamic text and after that i am rotating this component with -2.After rotation it dosen't show the text why is it so?
View 1 Replies
Mar 22, 2008
I'm working in ActionScript 3 and, yet again, I'm starting to regret trying to use components as it seems I always run into a brick wall when using them : (
I have a TextArea component instantiated and added to the display list programmatically via ActionScript 3 code (not AS2, which is all I could find reference to on the net about this).
How to disable the border so it doesn't show around the TextArea component? I've tried a bunch of things, like for example:
myTextArea.setStyle("border", "false");
and
myTextArea.setStyle("borderStyle", "none");
View 11 Replies
Sep 20, 2004
I'm using the textArea component, but i want to scale it to the size of the browser window. The problem is it scale the content(xml+css) and the scrollbar, and i want to just change the size. I've also tried to attach the Component and then setting the size, but that give the same problem.
View 3 Replies
Aug 12, 2009
I have got an array full of strings and I want to populate the elements into dynamically created textarea components. I have seen "this []" syntax used to dynamically create arrays, but I can not get something similar to work for text area components.
Here is the code that I am trying:
Code:
for (var i:int = 0; i < aActivities.length; i++) {
this["taNode_" + i] = new TextArea();
this["taNode_" + i].move(20,50 + (10*i));
this["taNode_" + i].height=26;
this["taNode_" + i].text=aActivities[i];
addChild(this["taNode_" + i]);
}
I get this message when I run my movie:
"1180: Call to a possibly undefined method TextArea."
I do have an instance of a textarea in my Library as I know you have to for things like data grid.
View 4 Replies
Nov 14, 2010
I have a TextArea component in a flash document, and this TextArea is loading text from a .txt file.
However, when you're viewing the textarea in a webpage, you can not only select the text that has been loaded into the textarea, but you can also delete the text written there, like it's a word document or something.
Is there any way I can disable this?
View 3 Replies
Nov 19, 2009
TextArea component does not load after publishing as AIR .I have a TextArea component in the library. Its Class is: fl.controls.TextArea I add it to the stage using the addChild method. Running it inside the flash CS4 the textArea component gets added to the stage as intended. But after publishing, the textArea component doesn't get loaded. What may be the problem? The stage is blank without any textarea.
View 2 Replies