Professional :: The Accessiblity Of HtmlText In TextFields?

Mar 6, 2012

how Flash handles accessibility of htmlText in Textfields? I know that no additional steps are needed to make Text Fields accessible. But it doesn't say anything about the content. For example, if there is an html link in the textfield, will that link be made accessible to a screen reader program so that the user may "click"/activate it? Below is some sample code. The implementation isn't so important to know, but it may give some insight to the question.There's a textfield on the stage with the name "myTextField".

function linkHandler(link_event:TextEvent):void{
trace("link_event.text");
}

[code]......

View 1 Replies


Similar Posts:


Professional :: Specify Dynamic Url In HtmlText?

Apr 6, 2011

I am populating a dynamic text box with some information that comes from an xml.
 
//fill in the text
     infoBox.informationText.htmlText=
     "<font size='16' color='#FFFAF0'>"+calledMarkerIndex+[code]....
 
I am also placing an image in the text box which you can see from the url above.I would like this url to be dynamic just like the other variables that are filling in the text box calledMarkerIndex, calledMarkerDate, calledMarkerDescription.
 
I have another variable which specifies the url I'd like named calledMarkerContent. I've tried simply chaning the text piece for this but it does not work.
 
"<img src='calledMarkerContent'/>"+

 I feel like maybe I am just making a scripting error.  Or maybe I cannot use a dynamic variable in this place. 

View 1 Replies

Professional :: HtmlText Bold Capital U Won't Render?

May 28, 2010

It seems like I found a bug in Flash Professional CS5.  For some reason a bold capital "U" will not render in htmlText. It will render fine in a normal text box and will render as a lowercase u or as a non-bold capital U.  I have tried typing two UUs in a row, typing a letter before the U, but it always skips the bold capital U.

View 8 Replies

Professional :: TextFields Are Blocking Buttons?

Mar 20, 2010

I've been creating a calculator as part of an assignment. I've created button instances in actionscript and then putting a text field over it. The problem is the text field blocks my button so it is difficult to press.exaple code:

var equals_btn:equals = new equals();equals_btn.x = 247;equals_btn.y = 369.9;equals_btn.width = 115;equals_btn.height = 45;this.addChild(equals_btn);
var equalText = new TextField();equalText.x = 276.1;equalText.y = 349.9;equalText.width =

[code]......

View 5 Replies

Professional :: HtmlText With Clickable Images Behaving Buggy When Fonts Are Embedded?

May 19, 2010

when the embedFonts is removed, it works perfectly as expect. Otherwise when an image is clicked, it selects the whole text around it.
 
testtext.htmlText="Curabitur dolor eros<a href='event:test'><img src='003.jpg'></a>eget odio.</p>";
testtext.embedFonts=true;

 did anyone come across this before? is there another way to make an image clickable inside a dynamically loaded xml text?Alternatively can anyone suggest a method to style dynamic textfields instead of using html?I've tried with many different fonts, and many different stylesheets, its still the same.

View 1 Replies

Professional :: Make Simple Input TextFields?

Aug 10, 2010

I open up Flash CS5 and make a simple INPUT TEXTFIELD. I run the program, and I can't even use all the characters. It is under ARIAL font. This is literally destroying my soul. Look, if I want to embed fonts, I will embed fonts like in CS4. What is the crazy idea that now we have to embed every font we want to use? Is that how this is going? If I want to use ARIAL, I literally have to embed it? Did APPLE get their hands on Adobe developers and do something seriously this sick to the CS5 world?
 
I want to make simple input textFields like in the past, without having to embed fonts.

View 5 Replies

Professional :: Make A Custome Scrollbar TextFields?

Nov 7, 2010

if it's only textFields that you can make a custome scrollbar for? I found some custom scrollbar code, and it works fine on textfileds, but I have a container movieclip that holds some dynamically loaded movieclips. I want to be able to scroll the container if too many child clips are created. Also, how to you tell a container movieclip to not show the overflow of it's child mc's? The current container has it's child mc's overflowing through the bottom boundary.

View 1 Replies

Professional :: If Else Conditional Statements For Dynamic TextFields

Nov 29, 2010

This is about a self assessment quiz.There will be four options and each one has a scale from1-5 i.e., "option a" has 1mark, "option b" has 2marks,"option c" has 3 marks, "option d" has 4marks and "option e" has 5 marks and we count the answered and we display the score for example if there are 20 question in it if they answered "option e" 5 times the score will be 25 and option d 5 times the score will be 20, and if "option c" for 5 times the score will be 15,and "option b" for 3 times the score will be 6 and "option a" two times the score will be 2, and we add up all the score and display in a dynamic text field called "score" and the total score is 68.

And I have another dynamic text field called "tsc" where I have to display the tags like excellent , good, better ......etc. Till now every thing is fine but I am unable to compare them it is displaying excellent even if i get 10 marks. If the score is greater than 55 "tsc" should display Excellent, if the score is greater than 41 or less than 55 "tsc" should display Best, if the score is greater than 26 or less than 40 "tsc" should display Better,if the score is none of the above "tsc" should display Poor.

This is my code on the submit button:
on (release) {
gotoAndStop("sQ");
if (scor>=55) {
tsc = "Excellent";
} else if (scor == 41 && scor<=55) {
[Code] .....
Where:"sQ" is the frame name where i am displaying the score details"scor" is the var name for the dynamic text field for displaying total score"tsc" is the var name for the dynamic text field for displaying the tags llike good, Excellent, better, poor.....etc.

View 4 Replies

Professional :: Visibility, Order And Position Of Dynamic Textfields Inside Movieclip?

Dec 16, 2010

this concerns flash cs5 and the timeline.Everybody knows the effect you get when you use appendText() to add text to a multiline dynamic textfield, right ? Well, I have a movieClip as a container, and I would like dynamic textfields to populate this movieclip in the same manner as textStrings would populate the dynamic Textfield. 
 
How would this work?I have buttons that trigger addChild() function so as to populate the movieclip with textfields, but how do I make sure that the textfields make up an arbitrary list as a menu user chooses which buttons to click?
Let's say this is the visible text when the swf runs.(I cut away some of the code to make this more to the point):
 
var buttonTrace:TextField=new TextField;
addChild(TextClip.buttonTrace); buttonTrace.x=0;
buttonTrace.y=0;
buttonTrace.text="Breadcrumbs";
 
Now for each time I click a button in the menu I've made, a new textfield appears with the name of the button. This is how I want it. BUT......... How do I control the display properties and positioning of dynamic textfields within a movieclip ? How do I control persistent visibility, and how do I make these textfields appear one after the other in the order they were clicked.

View 7 Replies

Professional :: Dynamic Classic TextFields - Text Fields Display Errors

Jun 16, 2011

I'm trying to implement some dynamic classic TextFields, but I am seeing errors when the text tries to render. What I am doing is trying to implement a system that shows tolkens and a cash eguivent, I'm using the code

[Code]....

I'm thinking there is something in the TextField that is not set correctly, I tryed to set the autoSize to CENTER but that didn't fix much...

View 7 Replies

ActionScript 3.0 :: HtmlText <img> Tag?

Jan 12, 2011

if I use an <img src='images/pic.jpg' /> within a text box that is using classic text, dynamic text as its settings, it has been assigned "render text as html" and has been set to multiline, it works great, that is when my image is in the top of the text area. When I move the image to the end of the scrolling text, it makes my text block larger to accommodate the text instead of making it just scroll more.

View 2 Replies

ActionScript 3.0 :: Htmltext <img> Won't Appear?

Feb 29, 2012

context: flashplayer 9, in the same folder as the .fla I have an images folder and inside that the png I wish to display

For the life of me I can't get the img tag to work in a textfield Here is my code, what the bleep am I missing here!! (the other html tags seem to work but not image)

import flash.display.Sprite;
import flash.text.StyleSheet;
import flash.text.TextField;

[Code].....

View 2 Replies

IDE :: No Space After <p> In HtmlText?

Feb 3, 2009

I have been working with htmlText and everything is loading and appears fine with one minor exception. For some reason there is no space between paragraphs defined by the <p> tag. There will be a line break, but not the extra space between the paragraphs.

View 2 Replies

ActionScript 2.0 :: <br> In HtmlText?

Apr 26, 2011

I been doing more programming in other languages through the past two flash changes and am now using CS5 (and AS 2.0) for work. Tell me, why doesn't this work:

Code:
this.createTextField("test",1,100,100,500,500);
test.html = true;
test.htmlText = "Hi<br><br>Hi";
No breaks show up - it appears as "HiHi"
I've tried <br /> and <BR> etc. embedFonts && regular.

View 2 Replies

ActionScript 3.0 :: XML - HtmlText And CSS Formatting?

Nov 6, 2008

I (well, a rather angry client) found an oddity I would like to consider a bug in formatting htmlText coming fom XML's toString() method with css.

If somehow an empty tag ends up in XML like <h1></h1>, all of the following text in the field is formatted to the CSS defined props of h1. In the (simplified DocumentClass) code below I have an XML object which has an empty h1-tag after the first sentence of the first paragraph. Placing the XML it in the field renders the text following the empty tag as bold and with the fontsize set for h1.

Strangely, if the html source is initialized as a string and put straight in the textField (see commented code), all formatting is OK.

View 10 Replies

Layout Mess Up If Use Css In HtmlText?

Jul 2, 2009

layout mess up if use css in htmlText.ike if I do

<p><span style='display:inline;color:#6b97fe'>Tel:</span>1234567</p>
there would be a line break after </span>
OR

[code].....

View 2 Replies

ActionScript 3.0 :: GetCharBoundaries And HtmlText?

Jul 21, 2010

I am having an issue using getCharBoundaries() with htmlText.  In the following code, I am trying to get the location of <img> tags, so that I can then move the image to where the <img> tag in the text, rather than the image being placed on the next line.  getCharBoundaries returns an actual rectangle when I use plain text, but when it's htmlText, the function returns null (I put in a trace statement just to make sure of whether I was getting null or not).  I've read that getCharBoundaries() can be unpredictable; does anyone know of a workaround or why this might be happening? 

[Code]...

View 3 Replies

ActionScript 3.0 :: HtmlText: <img Src= From Library?

Feb 23, 2011

I have a htmlText Field, and I wanna embed a Movieclip from my library into the text.I've tried everything for about 5 hours, nothing worked, even though the Adobe Help stated that it's possible:src: Specifies the URL to an image or SWF file, or the linkage identifier  for a movie clip  symbol in the library. This attribute is required  all other attributes are optional. External files (JPEG, GIF, PNG,  and SWF files) do not show until they are downloaded completely.

View 9 Replies

Actionscript 3 :: Flash - CS4 <b> Tag In With HtmlText?

Mar 2, 2010

I have the following setup:wo textfields on the stage with Arial normal and Arial bold, both embedded. I then have another textfield which I am setting like so:tb.htmlText = "Test <b>Test</b>";For some reason, the bold text is not displaying as bold, but as regular weight. I have tried embedding the fonts in the library, using the [Embed] meta tag and even resorted to using CSS to force the fontFamily. Weirdly, I can use Font.enumurateFonts and see both fonts are embedded, but the textfield refused to use the bold version inside the < b > tags.I've been told this is a problem with Flash CS4 on a mac and that it will work on PC. I refuse to believe this is the case, however. Surely Adobe would have fixed this by now?

View 3 Replies

ActionScript 3.0 :: Using GetCharBoundaries() With HtmlText

Jul 21, 2010

I am having an issue using getCharBoundaries() with htmlText. In the following code, I am trying to get the location of <img> tags, so that I can then move the image to where the <img> tag in the text, rather than the image being placed on the next line. getCharBoundaries returns an actual rectangle when I use plain text, but when it's htmlText, the function returns null (I put in a trace statement just to make sure of whether I was getting null or not). I've read that getCharBoundaries() can be unpredictable; I've attached the code as a txt file. Update: Even if I try calling getCharBoundaries on a character a few positions before the img tag, so that it's an actual character and not markup, I still get a null value returned.

View 1 Replies

IDE :: HtmlText Leading And Kerning?

May 30, 2007

problem stated in my title. Attach is my code.

Code:
this.createTextField("myText",this.getNextHighestDepth(),23,72,300,400);
//bgPic._alpha = 25;
var titleS:TextFormat = new TextFormat();
titleS.font = "TradeGothic";

[Code]...

View 3 Replies

ActionScript 2.0 :: How To UNBREAK HtmlText

Mar 14, 2008

I am trying to create a menu with htmlText. That is, using a textField with several "html links" that call a function (<a href='asfunction:......).I have an array with the menu's options and I use a FOR loop to create each "html link".The problem is that I need the links in one line (at least until the maximum length of the textfield's line is reached..). I was doing this:content.htmlText += "<a href:asfunction...>..." ...but the line breaks. I tried to do:

content.htmlText = content.htmlText + "<a href:asfunction...>..." ...
but it does not work, either. And, if I do:
content.htmlText = content.text + "<a href:asfunction...>..." ...

[code].....

View 1 Replies

ActionScript 3.0 :: EmbedFonts And HtmlText?

Jun 4, 2009

I am reading some CDATA text from an XML file. This text has HTML tags in it.I want to place this text into a dynamically created textfield that has embedFonts set to true. However,when I set this to true, the html formatting doesn't work. Instead, I only see the text without any of the formating.

Now, when I comment out my embendFonts = true statement, the html formatting works, but I loose my linked, library font. (Since the font Futura is on my machine, it stil uses a jaggy (system?) version of it, I'm assuming this would be a problem on a different machine).Is it possible to use embedFonts with htmlText? Am I calling this stuff in the wrong order?

Code:
copyTformat.font = myFont.fontName;
copyTformat.size = 18;
var tf:TextField = new TextField();[code].....

View 4 Replies

ActionScript 3.0 :: Using Java In <mx:htmltext>?

Jun 10, 2009

Im my html webpage I'm using this code

Code:
<div id="example"></div>
Code:
<script type="text/javascript">
flashembed("example",

[code]....

and I wonder if i could still get this effect trough htmltext. or does it has to be done in another way

View 4 Replies

ActionScript 3.0 :: HtmlText And GetCharBoundaries?

Jul 21, 2010

I am having an issue using getCharBoundaries() with htmlText. In the following code, I am trying to get the location of <img> tags, so that I can then move the image to where the <img> tag in the text, rather than the image being placed on the next line. getCharBoundaries returns an actual rectangle when I use plain text, but when it's htmlText, the function returns null (I put in a trace statement just to make sure of whether I was getting null or not). I've read that getCharBoundaries() can be unpredictable; does anyone know of a workaround or why this might be happening?

Even if I try calling getCharBoundaries on a character a few positions before the img tag, so that it's an actual character and not markup, I still get a null value returned.

[Code]...

View 1 Replies

ActionScript 3.0 :: HtmlText Working In Cs3 But Not Cs5

Oct 8, 2010

I'm trying to use flashmo_225_bar_slider and the html description text works in flash cs3 but not cs5,

View 1 Replies

ActionScript 2.0 :: Xml To Array To HtmlText?

Nov 24, 2004

I have a xml-file wich content I need to push into an array, and afterwards i need to make a selection and add that specific array-value to the htmlText of my textfield, but he doestn looks to it as html input

Code:
xmlContent = xmlRoot.childNodes[xmlTeller].firstChild;
-->
MainArray[xmlTeller][2] = xmlContent;

[Code]....

View 1 Replies

ActionScript 2.0 :: HtmlText - Use Of The Image Tag

Sep 24, 2004

I have a dynamic text field that I am loading html into. Ok... that works great. My problem lies in the use of the image tag. How do I do something like this: <p>blah dslfjskdjflskdjf </p> <img src="pic1.jpg" width="320" height="180" /> <p>more filler</p> So that the text renders, the pic renders on the line below and the next <p> renders on the line below the picture.

View 4 Replies

ActionScript 3.0 :: Ludicrous HtmlText Offset?

Aug 4, 2009

so I'm working on an app requiring me to lay some simple HTML as multicolumn text, and hacking around w/ g.skinner's old regexp method of reflowing as3 TextFields. I'll be happy to share this code if I can get it working. No desire to get into screwing with text.engine at this point, and this has to be back compatible to FP9 anyway.

So I'm back-and-forth parsing from likely break points to determine if we're in a tag here, and jump ahead to the end of it if we are. The ridiculous issue I'm up against is simply that there doesn't seem to be a TextField method for getting the htmlText offset -- NOT the visible text offset -- of a character. Is there a way to do that?

View 12 Replies

ActionScript 3.0 :: Embed Images Into HtmlText

Jul 8, 2011

I'm searching high and low for a solution how to embed small 16x16 Icon Images into htmlText! Has anybody an idea where I could find something on the net about that item ??? Found this, but can't get it to work at all.

[Code]...

View 1 Replies







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