XML Text Displaying Markup
We are encountering an intermittent issue where the markup and tags that we are reading in from an xml file are being displayed. This problem occurs randomly for some and not at all for others. Has anyone experience this issue and have any insight?
Adobe > Flash Data Integration
Posted on: 10/16/2008 07:06:21 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Unwanted HTML Markup In Text Box Value
I've inherited a Flash MX 2004 document that has some text entry points that verify you've entered the right text before continuing or provide you a warning message and urge you to try hard. They're set up like so:
Code:
on (keypress "<Enter>")
{
if (titleInputText == "hoped-for text entry")
{
gotoAndPlay("someNamedTarget");
}
else
{
comment = "Hey--enter hoped-for text entry to continue!";
}
}
Some of them just weren't behaving at all correctly. With some handy-dandy trace() statements, I found that a few of them were returning values that included HTML formating of the text. Instead of getting
Code:
something entered
I was getting
Code:
<FONT = "Arial">something entered</FONT>
which is causing me all sorts of problems. How on earth can I turn off the HTML tags? Where did it come from?
(Why, yes, I do know just enough to get myself in trouble. Why do you ask?)
Any help would be greatly appreciated on this.
Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...
I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony
//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);
//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
Markup Tool
Hi
I am developing an application called markup. This allows a user to markup on pages/content he is viewing….my markup application has one tool bar and one markup area ….
What I want is to have different makrup areas for different pages in a presentation.
How I m doing this…
in a master file /base file I load this markup swf and the presentation swf….my markup is works fine if there is only one page in the presentation…but if there are more than one my markup objects are visible in the second page also…but I want separate markup regions for separate pages..
please help me..
thanks
shan
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
Namespaces In Xml For Html Markup
hi, we have an xml file we will be loading into a project. The xml will be littered with AS3 friendly styling (inline) but we were hoping to avoid the ugly CDATA--ie:
Code:
<![CDATA[<p>This is text</p>]]>
The approach we are hoping to accomplish would be declaring a namespace in the xml:
Code:
<pages>
<page>
<content xmlns:h="http://www.w3.org/1999/xhtml">
<text targetid="1">
<h:font color='#ffffff'>This text</h:font>will go into the box with id of 1.
</text>
<text targetid="2">
This text will go into the box with id of 2.
</text>
</content>
</page>
</pages>
i know there is a Namespace class, but i am not sure how to tie the two together....can someone give me a lead? I have read this , but it does not lead me to the connection with how this MAY work with html...if at all.
Using Web Standard Markup In Flash
Hello,
Simple question: I have numerous transitional xhtml pages marked up and ready to go. The code is basic but uses a few tags that are not recognized in Flash via HTML import- <h1>, <div> etc. Is there a best practice method for using this code without having to "dummy" down the code for use in Flash? Is there any advantage to importing the xhtml pages as XML and going that route or will I have the same problem?
Thanks,
Bob
Flash Markup Language
hey,
anyone out there know's anything about flash markup language? Just saw it at work at http://www.sukima****a.com. Thanks.
Flash Inventing Nonexistent Markup <li>
Hi There--
Have put together a site where textfields are imported using the loadVars command.
Here it is:
http://grasshpr.home.mindspring.com/...ernate1_3.html
Here's the entire folder, which includes the textfiles and the fla:
http://grasshpr.home.mindspring.com/shinnAlternate1
The problem is that on some of the textfiles, Flash is adding markup where there isn't any, in the form of list dots. The kind you get when you put <li> in front of a line. (It probably won't do it for you. Flash just wants to drive me crazy. (It's succeeding.))
This only occurred in the last iteration of the design.
It's occurring on both of the computers I have access to, so it's something in the file.
Since this is the first time I've imported text, I'm utterly clueless as to what could be making this happen.
Has this happened to anyone else? If so, how did you solve it?
Any insight will be vastly appreciated.
Thanks for reading this,
Lee
My Flash Variables Contain Html Markup?
am using actionscript below to post variables to cgi script:
stop();
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
recipient ="user@domain_name.com";
subject="Enquiry from website";
bt_submit.onRelease = function() {
if (t_name.text == "") {
avertissement += " name";
}
if (t_email.text == "") {
avertissement += " email adress";
}
if (t_comments.text == "") {
avertissement += " comments";
}
if (avertissement !== "") {
t_status.text = "Please fill in these fields : "+avertissement;
avertissement = "";
} else {
loadVariablesNum("cgi-bin/nms_formmail.pl", 1, "POST");
t_status.text = "";
nextFrame();
}
};
bt_clear.onRelease = function() {
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
t_status.text = "";
};
The flash variables are sent to the script which generates an email message but the variables seem to come with html markup. Here is what comes in the email:
Below is the result of your feedback form. It was submitted by (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test@test.com</FONT></P></TEXTFORMAT>) on Thursday, May 10, 2007 at 17:31:17
---------------------------------------------------------------------------
comments: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test message</FONT></P></TEXTFORMAT>
phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">000 555 3430343</FONT></P></TEXTFORMAT>
name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test name</FONT></P></TEXTFORMAT>
---------------------------------------------------------------------------
The same script works fine with html, have been searching everywhere trying to find a solution but everything I try either doesn't work or still sends variables with markup??
Any ideas??
Retaining Markup Tags In HtmlText Fields
Is it possible to wrap an XML object so that it's element tags are preserved (not parsed) if it populates a text field as htmlText? I'm trying to use XML in an htmlText field where other (non-XML) text is styled using CSS. I get the results I'm looking for (except for the CSS) when I populate the text field as plain text (not htmlText).
I tried wrapping the XML in a <![CDATA[]]> tag, but that too was parsed when used as htmlText.
Any ideas?
W3C Markup Validation Service Web Site Shows Lots Of Errors For .swf Object
Hello;
I'm using the method to insert a .swf file into an Html document as described in the "Frequently Asked 'Flash' Questions" tutorial in this forum:
http://www.sitepoint.com/forums/showthread.php?t=210919
The flash object works fine in my browser.
When I try to validate the Html using the W3C Markup validation service it says that there are no attributes for SRC, QUALITY, PLUGINSPAGE, TYPE, WIDTH, HEIGHT, and MENU. It also says that the element EMBED is undefined.
Since it shows so many errors it looks like the W3C Markup Validation Service might not configured to work to .swf objects.
You can copy and paste the code below and you can see what I'm talking about. Here's the link to the W3C Markup Validation Service page:
http://validator.w3.org/
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Shockwave Flash Movie</title>
</head>
<body bgcolor="#AAAAAA">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="250">
<param name="movie" value="300 x 250.swf" />
<param name="quality" value="autohigh">
<param name="menu" value="false" />
<embed src="300 x 250.swf" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250" menu="false"></embed>
</object>
</body>
</html>
I think that using the flash object will be ok but for my peace of mind can somebody tell me is it safe or wise to use the .swf object when the W3C web site shows so many errors?
Thanks.
[F8] Displaying HTML Entities In Dynamic Text From External Text Files
I'm pulling content for a dynamic HTML formatted text box from a series of client-editable text files using LoadVars.
Flash 8 allows for the use of HTML entites in HTML text, and my client's text includes copyright and trademark symbols.
If I load some HTML text from within a script, the text box displays entities fine (like &174 to display a ® trademark symbol).
However, when using LoadVars to load the text from an external text file, I can't use ampersands in the text file, because the LoadVars interprets them as indicating the start of another variable.
I tried using Unicode, for example u00ae. Again, this works fine when the text is drawn from within a script, but when the loadVars displays it from the text file, it just displays the Unicode as a literal string. Other HTML formatting in the text files, such as bold or italic, displays fine.
Does anyone know a workaround for this (short of converting all 80 of my text files to XML)?
[MX04] Dynamic Text Field Not Displaying Text (NOT EMBEDDED)
Hello,
I am working on a Flash portfolio website for myself. I have several dynamic text boxes that display information about the various pieces in my portfolio. The text content of these boxes is loaded from external .txt files. The text fields are set to use "_sans" font and there is NO font embedding.
Recently, while working, I tested the site and noticed that my text boxes were no long displaying data. Through testing the problem I was able to determine that the data is being loaded from the external .txt files and into the correct variables, however, the text is not "appearing" in the text fields at run time.
I tried placing a new dynamic text box on the _root of the movie and writing the following code on the first frame of the ROOT timeline:
Code:
_root.myTest_text.text = "this is a test"
the dynamic text field (with instance name "myTest_text") again appeared blank at runtime. As before, the font was set to _sans and NO embedding was taking place.
I tried the same text box and the same code in the clean, empty file and it worked fine.
Has anyone encountered this problem? Is it a bug? Will I need to rebuild the file from scratch?
If anyone has any assistance or advice to offer I would appreciate it.
Thank you!
Displaying Text From An External Text File Help Please
Hi, I was wondering if anyone knows how to display text dynamically from an external .txt file. Also, I would like the text to have scrolling capabilities and the ability to format in HTML (i.e. I want to put in hyperlinks).
Thank You!
Displaying An Xml Attribute As Text In A Dynamic Text Box
How do I display an attribute as text in a dynamic text box? I've successfully loaded images with image descriptions. When you roll over the image a description is displayed in the dynamic text box below, but I want a second message to appear once the image is clicked.How do I do that?
I thought I could add the second message as an attribute named "detail", but I can't seem to load it as text.
Here is my xml:
ActionScript Code:
[size="2"]<gallery >
<img thumb="images/Sunset.jpg" detail="sun" >Sun is beautiful!</img>
<img thumb="images/Winter.jpg" detail="Winter"> Winter is beautiful!</img>
<img thumb="images/Waterlilies.jpg" detail="Waterlillies"> Waterlillies are beautiful</img>
<img thumb="images/forest.jpg" detail="Forest">Forest is beautiful!</img>
<img thumb="images/Tree.jpg" detail="Tree">Tree is beautiful!</img>
</gallery>[/size]
My code to load text:
ActionScript Code:
function lightUp(evt:MouseEvent):void{
evt.currentTarget.alpha = 1;
for(var k:int = 0; k < xmlList.length();k++){
if (xmlList[k].attribute("thumb") == evt.target.name){
info.text = xmlList[k];
}
}
Can you please advise on how to load the 2nd text
Displaying Text From XML In Incrementing Text Boxes
Hiya, I'm sorry if the title of this post doesn't explain what I mean too well, here's some more explanation:
I want to parse the data from an XML file into an array and then put each of the values in the array into a dynamic text box on the stage. The text boxes are name "number1_txt", "number2_txt" &c.
I have managed to set up a loop to parse the XML into my array and also to generate the names of the text boxes dynamically but I can't get the values from the array to display in the text boxes!
Quote:
function parseXMLNumbers(doc:XML):Void {
temp = new Array();
for (a=0; a<doc.firstChild.childNodes.length; a++) {
temp[a] = myXML.firstChild.childNodes[a].firstChild.nodeValue;
z = a+1;
var numberBox:String = "number"+z+"_txt";this.numberBox.text=temp[a]
}
}
If someone would point out what my glaring error is I would be really grateful as i am just getting to grips with actionscript.
Many thanks in advance everyone and thanks for reading this !
Displaying Text
I know this is a stupid question, but how do I dispay text in Flash MX using actionscript? I want to put a changing variable in a movie clip.
Text Not Displaying Well....
Hi,
I am making a cd rom for a presentation. We're using a projector and the text is not displaying the way it should.
I am encountering problems with fuzzy text....with Arial and Verdana.
I am trying to use Flash 2004 Pro. cos it has the anti-alias button...but this is still not working.
Any ideas welcome pls?
Displaying Text?
USING FLASH 5
i'm importing a .txt file into a dynamic textbox. For some reason it will not display the foriegn characters correctly. ie é è ë
they come out completely different? any ideas
rat
Displaying The Right Text
Code:
phpurl = "script.php";
res1.text = "You can send your score 5 times a day.";
s_Score= new LoadVars();
r_Score= new LoadVars();
s_Score.tscore = 500;
r_Score.onLoad = function(succes)
{
res1.text = r_Score.resx;
}
s_Score.sendAndLoad(phpurl,r_Score,"POST");
stop();
Okay, a while ago I worked on a game. Now I gave up on it back then because i couldn't get it to work teh way I wanted too, but I just picked up the game again. What i want it to do is display the text "You can send your score 5 times a day." until someone hits the 'submit score' button, after which I want it to display the result from the php file. But if I include the 'res1.text = "You can send your score 5 times a day.";' it never displayes the result from the php file. And if I remove that sentence it displays _level0.res1 at rirst, which obviously isn't what I want.
So how do I get this to work properly?
Text Not Displaying
I'm having trouble getting the text to display in a swf, called from a different swf. This is a flash based mp3 player that gets info from an MP3 tag and displays it. I've attached the .fla.
The actual test implementation is here:
http://www.vectorcds.com/screaminWeb...ment/test.html
This has stumped me for two days now. First when I was working on the standalone player, the mask was giving me problems, so I just eliminated it, now the text still won't display even with no mask at all, but it's being loaded into another swf.
Fff Text Not Displaying
I have a dynamic text feild with a fff text in it. In safari this opens up just fine, but on pc, using explorer and opera, they are replaced.. This doesn't happen w/ static textfeilds. What is the problem?(I have tried to turn on render as html in the options box but nothing seems to happen..) Thanx in advance by a very frustrated flash newbie. JR
Displaying Text
I made a report-like flash movie.
Different users can input their text in a textfield that has a prefixed size.
But on different machines the same text is displayed different:
sometimes on one machine all the words fit in the textfield, and on another one the same text doesn't fit anymore and the last word is missing.
It's even harder to match the screen with the printed version.
Is there a way to prevent this differences. (I'm using the arial font)
should I embed it, antialias or ...?
Could someone give me any advise on this topic?
Displaying Var With Other Text
Is it possible to display a users entered name throughout paragraphs of writing and make the paragraphs look natural no matter how short or long the name is?
Maybe the summary was enough to make you figure it out but I'll explain. I have a paragraph which I would like to begin with my users name. Later on in the flash I would like to be able to have the users name appear in different parts of paragraphs.
At the moment I have the dynamic text box at the start of a static text box. The problem is when a users name is very short it leaves spaces to the left as my text is position to the right.
This works OK for starting the paragraph but not ideal when I want to use the name in the centre of para as it will leave large spaces either side of the players entered name unless the name is long enough to fill the space.
Is there away to make the whole paragraph dynamic with a variable included among it?
Displaying Text From XML.
Hello,
I hoping that somone can steer me in the right direction here.
Right now I have an application that reads an XML and displays thumbnails of images.
A user clicks on the thumbnail and a larger image appears.
What I would like to do is, instead of loading "images" into the thumbnails from the XML,
I would like to load "text" into the thumbnails from the XML.
So now the user can click on the text and an image would appear.
I just can't seem to get my head around it.
Attached below is the code I am currently using.
Thank you for any help you can provide
Attach Code
var urlRequest:URLRequest = new URLRequest("load.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
var xmlList:XMLList;
myXML.ignoreWhitespace = true;
urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
urlLoader.load(urlRequest);
var arrayURL:Array = new Array();
var holderArray:Array = new Array();
var nrColumns:uint = 6;
var sprite:Sprite = new Sprite();
addChild(sprite);
var thumb:Thumbnail;
var thumbsHolder:Sprite = new Sprite();
sprite.addChild(thumbsHolder);
function fileLoaded(event:Event):void {
myXML = XML(event.target.data);
xmlList = myXML.children();
for (var i:int=0; i<xmlList.length(); i++) {
var picURL:String = xmlList[i].textInput;
arrayURL.push(picURL);
holderArray[i] = new Thumbnail(arrayURL[i],i);
if (i<nrColumns) {
holderArray[i].y = 100;
holderArray[i].x = i*100;
} else {
holderArray[i].y = holderArray[i-nrColumns].y+110;
holderArray[i].x = holderArray[i-nrColumns].x;
}
thumbsHolder.addChild(holderArray[i]);
}
}
////////////////////////// Thumbnail.as ///////////////////////////////
package {
import flash.display.Sprite;
import fl.containers.UILoader;
public class Thumbnail extends Sprite {
private var url:String;
public var id:int;
private var loader:UILoader;
function Thumbnail(source:String,itemNr:int):void {
url = source;
id = itemNr;
drawLoader();
}
private function drawLoader():void {
loader = new UILoader();
loader.source = url;
loader.mouseEnabled = false;
loader.x = 0;
loader.y = 0;
addChild(loader);
}
}
}
Displaying Text?
I have this code for my button. How do I make it so when its rolled Over, it'll display a text area with text inside it? and when I roll Out, the text area will go away?
on (rollOver) {
}
Displaying Text
Hi, I swear I've gotten this to work when I just did it on the main timeline
but as part of a package I can't seem to get my text to appear...
package
{
import flash.text.*;
import flash.display.*;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
public class fontMaker extends MovieClip
{
var beloDin:Font = new Belo();
var myFormat:TextFormat = new TextFormat();
var countyTextFieldBelo:TextField = new TextField();
var countyFormat:TextFormat = new TextFormat();
var test:String = "test";
public function fontMaker()
{
trace("fontmaker is run");
countyFormat.font = beloDin.fontName;
countyFormat.size = 600;
countyFormat.color = 0x000000;
countyTextFieldBelo.autoSize = TextFieldAutoSize.LEFT;
countyTextFieldBelo.defaultTextFormat = countyFormat;
countyTextFieldBelo.embedFonts = true;
countyTextFieldBelo.alpha = 1;
countyTextFieldBelo.text = test;
countyTextFieldBelo.x = 300;
countyTextFieldBelo.y = 400;
countyTextFieldBelo.selectable = false;
countyTextFieldBelo.width = 1920;
countyTextFieldBelo.height = 1080;
keyFont();
}
public function keyFont()
{
trace ("keyFont has run");
addChild(countyTextFieldBelo);
}
}
}
Text Not Displaying
Hi, im making a website for a client, and ive included a flash advert in the page which displays images and some text, see here: http://www.mitchellpage.com.au/temp/calypso/
Some users have reported that they cannot see the text - why is this so.
Each text is 'static text' and uses 'anti-alias for animation'
i am using flash 8
Displaying Dynamic Text
Hi,
I'm trying to load a significant amount of data from an ASP page, convert the data into an array in flash, which I've done successfully, and then display this array data in a movie clip as it is retrieved from the array. There could be thousands of elements in this array and I want to be able to display them in a scrolling text field in my movie clip. I really don't know where to start on this. Any help would be greatly appreciated.
Displaying Text Files
gday again , i have a large amount of text that i want to use in my flash movie , i cant seem to find a tutorial of how to incorporate it in there ?? basically i will be changing the teyxt from time to time an obviously only want to change the text file and not the flash ... i want to display in the movie with a scroll bar or arrows etc as well ....
cheers !!
Displaying Dynamic Text
I need help with displaying dynamic text created from ActionScript calculations.
I created a calculator that figures a future value of a 401(k) account. In other words, by entering how much you plan to contribute into your 401(k) and how long you plan to save it will determine how much money you will have at the end of that period of time. Here's the problem ... when it displays the final amount it just shows a long number without commas and decimals. For example, it displays 634687 rather than 634,687.00.
Check it out: http://www.partnercomm.net/webcases/calculator/
It is not designed to look good it is only for testing purposes at this point. Obviously it needs to be more user friendly, but you get the idea.
You enter your information in the 5 top left boxes and hit the calculate button. Here is an example, go the the page and enter the following:
Number of years employeed: 2
Number of years saving: 30
Annual pay: 30000
Contribution percentage: 6
Rate of return: 8
Then hit the calculate button. When you see the results (bottom left "Total Future Value") you will see what I'm talking about. I want that number to have a "$" with commas and decimals. Any help would be appreciated.
Thanks!!
Dynamic Text Not Displaying
Hi,
I'm using Flash 5. I am making a scroller. I created a movie clip I'll call hzScroller. There's on layer and one frame in this clip (for right now). On this frame I made a text box:
dynamic
multiline
variable is myText
OK.. the actaully text in this text box is "Place text here".
I place this movie clip onto another clip in my main movie. But only the very first character shows up. The letter 'P'. Why doesn't the rest of the characters show up.
?????
Any Help Would be Appreciated!!
Displaying Text Like Html
I think this is an easy question...I just can't figure it out.
I have blocks of text that I want to look like html text - not anti-aliased. How do I do that?
Text Fields Not Displaying
Hi guys,
Got a quirky little bug on some text fields - input and dynamic - to display cumulative frequencies in a user built graph. You can input text into the input boxes.. you just can't see it onscreen.
I have dynamic text boxes that mimic the input text boxes which work fine so I know the text is going in to them (also a print function for the graph which prints out all the inputted text, and text generated for some dynamic text boxes which also have this same bug.
Working in MX but need to output to Flash 5. Any takers :P
Cheers,
iPuppy
Displaying Text From Variable
I'm trying to use flash to display text from a variable in the url, but it doesn't seem to be working. What I did was made a dynamic text box, and set the variable to match that of the URL, but it doesn't work. I'm a flash newbie, any ideas?
Text Displaying Like S&*%(@%&%t Using Scrollbar
Hi All!
I suppose this is a common problem....
Im using a scrollbar with of course a dynamic text field.
The problem is that the text appears fine within Flash (MX) - but when i publish or test it, it looks way different and not in a good way!
Any ideas? I have to stick with that font too, CLIENTS you know....
Thanks!
Text Not Displaying Through Mask. HELP:-
I have applied a mask inside of an MC, which also loads another MC into it. The mask is working well, in that I can see the loaded Movie through it, but I cant see the dynamic text that is part of that loaded movie. Does masking affect dynamic text fields? How do I get the text to show? Would it have anything to do with the fact my text field is pulling data an XML source that is initialized from within the loaded movie?
Displaying Random Text
Is there any way that I can get a text box to display a different message everytime you press a button. The different messages would already be pre-written obviously I just want to show them up at random when the button is clicked.
Thanks for the help in advance.
Displaying Text Backwards
im pretty sure its possible to disply text backwards in a dynamic text box. i tried inversing the xscale of the text box and the text itself. and i also tried putting it in an mc then reversing it. ive seen it done before, can anyone help? thanks
Dynamic Text Not Displaying
I have a problem I can't figure out. Hopefully someone has an idea.
I can't see any text showing in my dynamic text field, but I believe its there...
I have a dynamic text field on a button that I am attatching to a movieclip and placing on the stage (using the symbol linkage). The dynamic text field is set to "_sans" for the font and nothing is embeded.
Here's the line of code I'm using to define the text in dynamic text field:
Code:
newButtonMc["button" + count].thumbNum = count;
trace("COunt = " + count);
trace("TExt in 'thumbNum' var [newButtonMc] = " + newButtonMc);
trace("TExt in 'thumbNum' var [newButtonMc.buttonx] = " + newButtonMc["button" + count]);
trace("TExt in 'thumbNum' var [to textfield] = " + newButtonMc["button" + count].thumbNum);
This is what my trace shows:
COunt = 1
TExt in 'thumbNum' var [newButtonMc] = _level0.butMovie.square_2.button1holder
TExt in 'thumbNum' var [newButtonMc.buttonx] = _level0.butMovie.square_2.button1holder.button1
TExt in 'thumbNum' var [to textfield] = 1
COunt = 2
TExt in 'thumbNum' var [newButtonMc] = _level0.butMovie.square_2.button2holder
TExt in 'thumbNum' var [newButtonMc.buttonx] = _level0.butMovie.square_2.button2holder.button2
TExt in 'thumbNum' var [to textfield] = 2
So looking at the trace info, it seems to me that the text should be displaying. One button should be labeled "1" and the other "2" Right....
Thanks in advance
Text Not Displaying In Dynamic Txt Box
God I feel like a noob - I am setting the contents of a text box using
Code:
_root.SectionMenu.MenuButnS1.Section1UpperLabeloff.text = _root.header3;
A quick trace on the text box outputs indeed the text box contains the correct text, but in the movie, I see nothing. Weird, but even when set to have a bg and border, I see nothing. Using pro 7.2. Ideas would be great!
thanks
frank
Displaying Text And Variables
Hello all
I would like to display text and variables together.
ex:
_root.console.text = "Welcome to The Game",pname.text;
pname.text is the string value for a textinput field. however this doesn't seem to display the text input data just the Welcome to the game part. Any suggestions on the correct syntax?
Thanks for any help,Patrick.
Problem In Displaying Text
hello all,
I am trying to build a reading guide which will show some text attached to some speech. while reading the text, the word that is getting read should appear in a different style than the rest. I succeed in making this in English, but when I change the text to Arabic the words start jumping all around.
Here is my function
Code:
var startindex:Number = 0;
var lastindex:Number = 0;
function textWalker():Void {
if(str.indexOf(" ", startindex) == -1){ return; clearInterval(poll1); }
startindex = str.indexOf(" ", startindex);
lbl.text = str.substring(0, lastindex) + "<b>" + str.substring(lastindex, startindex) + "</b>" + str.substring(startindex, str.length);
lastindex = startindex; startindex++;
}
var poll1 = setInterval(textWalker, 500);
where str contains the text. lbl, where I display the text. lastindex and startindexis to track the sentences position.
would appreciate any help on this. Thanks
Dirar
p.s. Arabic is right to left, but str.substring(lastindex, startindex) is shows current word without a problem.
Flash Text Is Not Displaying...
What’s up everyone,
I got something I something I’d like to run past you. I’m starting to compose a portfolio via Flash and it turns out the images and button are working fine, but the text does not show on the screen (IE is the browser). If I go to macromedia.com and upgrade the flash player, IE then displays the full text on the screen with no problems. The Flash page was created in Flash 8 Professional
I’m wondering if there is a way to prompt the user to update their flash or have it done automatically. Any help would be much appreciated.
If you need to see an example please go to my website http://www.smoothwire.com/folio.html
Text Menu NOT Displaying
Hey,
can some one tell me why the menu (text) is not showing...the following text is suppose to be displaying: Products, About us, Upcoming Displays, Gallery and Contact.
Your help is much appreciated
regards,
unisa
Dynamic Text Not Displaying
I am very much an amateur at this... I've got a scrollable dynamic text field and I've embedded the fonts throught the "character" options on the properties bar.
When I publish this thought, it refuses to display certain characters... specifically capital letters "D" and "G"...
WHAT is going on here?
|