ActionScript 2.0 :: Breaking Lines On A Dynamically Loaded Text?
Aug 13, 2007I�m loading text from a txt file but I�d have to break lines where desired.
I tried using but it appear as text. how can I do it?
I�m loading text from a txt file but I�d have to break lines where desired.
I tried using but it appear as text. how can I do it?
I�l loading some text from a xml filme into Flash (dinamic text field)But I can�t break the lines. When trying to break the lines with ENTER on the xml, the flash breaks two lines.I learned that using #&10; the lines would break just once. But how can I make this if I�m going to build a xml editor using php? Is there another method of breaking lines when desired on xml?
View 1 RepliesI have some XML data loaded using LoaderMax. Flash is putting all my text on one line without any spaces. I need to break it up so each threat is on a separate line. [code]...
View 4 Repliesi am using is flash cs3. the as2 swf contains a tween code using mx transitions.when i remove this tween code and hard code it on the enterframe there seems to be no problem.afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf.i had made a post in the actionscript forums hoping to gain some light on the issue.URL...[code]
View 2 RepliesSo this is my code so far. What I am trying to do is load the attribute of name into separate MC's that are clickable to then once clicked have the MC "txtBox" load what is in the attribute "link".As it stands now the name of the buttons is loading perfectly, but the trace is bringing back an undefined value
Code:
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success)
[code]....
Just installed Flash CS4 and the first thing i realized was:When I break apart text the curves straightens in some places.Is there a setting i need to set up for this not to happen?Didn't have any problems in CS3.
View 1 RepliesI'm externally loading text from a .txt file. I need to format that file using CSS. I've got the CSS file set up and everything. I've tried every tutorial I can find to try and load the CSS, but nothing is working.Here is the script for loading the text:
var textLoader:URLLoader = new URLLoader();var textReq:URLRequest = new URLRequest("content_files/commissions.txt");
textLoader.load(textReq);textLoader.addEventListener(Event.COMPLETE, textLoadComplete);
[code].....
except with an external txt file for the animation to read from. ... is this possible to do with flash, i have read a cuple of tutes, but haven't been able to get it working..Here is what i have so far, I created a dynamic text box and can read in the text using
loadText = new loadVars();
loadText.load("hello1.txt");
loadText.onLoad = function() {
[code].....
Im currently doing a quiz, which, after the user completes all the questions, displays the users score and depending on that score, a certain message ie
if (score<=2) {
Score_Msg.text =" That was poor!":
} else if (score<=5) {
Score_Msg.text = "You know a bit but not much";
}
In the text, i want to include a hyperlink. Is there anyway of making certain parts of dynamically loaded txt into a hyperlink?
After completing the dynamic text loading tutorial, I'm attempting to format the text after it's loaded with the following[code]...
View 3 RepliesI followed the tutorial for Scrolling Dynamically Loaded Text & its works well. The problem I am experiencing I have a limited about of space in my movie for the text box. The text file has all the data that I need to display but for some reason I only see a portion of the information & I can't seem to figure out my mistake.
View 9 RepliesI keep on running into weird formatting problems when working with external text files loaded in dynamic text boxes. the latest is with the attached txt file. It stops displaying the text right before the first href HTML tag...
View 12 RepliesIs it possible to call different data from a same text file? In the tutorial about the dynamically loaded text, the example was "kirupatext=" and the text was loaded from after that in the txt file. Is it possible to make it stop loading after a certain point?
For example,
" kirupatext=
Hello There!
I am an example of text that has been loaded from a separate location on kirupa's server. Best of all, notice that you can scroll the contents of the text up and down by clicking on the arrows. This is a nice, useful feature that you can use on your site."
How can I make it load only up to "Best of all"? Is it possible to break up the text into 2 parts so that they are loaded by different text boxes? i tried adding another marker like "kirupatext2=" at another point, but it just gets loaded along with the first "kirupatext=".
I found the following tutorials helpful, but now I want to combine them, but I don't know how.[URL]
code for the scroller
loadText = new loadVars();
loadText.load("answers.txt");
//creating the loadVarsText function
[code]....
Another problem for me with the dynamic scroller found on the Kirupa site: [URL] I can't figure out how to create URL links in the text. I tried selecting "render text as HTML" and added this to the .txt file: < a h ref=" mylink" > mylinkhere < / a> (without the spaces) but it just showed up 'as it'.
View 1 RepliesI'm fairly new to action script so this might be me being simple but: I followed the Scrolling Dynamically Loaded Text tutorial and added it to my flash movie and although it works perfectly in the tests and once published once it loads in the browser all I get is the word undefined at the top of the text box. I've searched all over for a solution but as I said my understanding of action script is fairly limited.
[Code]...
except with an external txt file for the animation to read from. ... is this possible to do with flash, i have read a cuple of tutes, but haven't been able to get it working...
Here is what i have so far, I created a dynamic text box and can read in the text using
[Code]...
Txt being the name of the instance of my text box....but see when i try to make this into a symbol or clip, and animate it, i dont see the text anymore
Does anyone know if it's possible to make a url link within text dynamically loaded from a .txt file into a blank dynamic text box?
View 1 RepliesAfter completing the dynamic text loading tutorial, I'm attempting to format the text after it's loaded with the following.
var loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
[Code].....
I have a dynamic text box (myText.text and services.text), that load different texts from different buttons. Below is the code for one of the buttons. Where it says... "here" I want to create a link that opens up a centred html file. Is there any coding that I can use?
wed1_btn.onRelease=function() {
myText.text = "Wedding Consultation... ? ";
services.text = "Our consultation.. blah blah. Click here for fees ";
}
I have a set-up a movie to dynamically load text from a text file. Now I realize that I want to attach live links to some of the urls in the text file. My question is can you attach the links in a text file by putting html tags in there or is it better to turn the text file into an XML file with the tags in there?Also can you attach CSS styles to that text file.. for instance in addition to adding links to the text I would also like to change the color of the text.
View 1 Repliescreate links in a dynamically loaded text box? I have a dynamic text box with this code (Flash MX/1.0):
loadText = new loadVars();
loadText.load("news_txt.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newstext;
};
I followed this tutorial [URL] but I need to be able to make links within this text. I'd like to be able to add other HTML code to the text (bold, underline, etc.) but just being able to make hyperlinks from the .txt file would be great.
Is there a way of checking if a text dynamically loading (ed typing) is in english language (and not for example in spanish, or japanese)?
View 2 RepliesI am loading an external text into a flash movie, but after the "&" character no data appears in the movie.
View 2 Repliesfor my shoutbox i load text into my film. i did it like the tut told me, but so the dyn-text-box cant display the text as html, but that is necessary
View 3 RepliesUsed the scroller at [URL] but is there some way to hide it when its not needed?
View 2 RepliesI have a menu list, and I want that when I click on an item, an instance of a movie clip from the library is loaded in the stage and that a specific title and content (dynamically loaded text from a .txt file) are loaded into that instance.I found out how to do the first part of the process, but I still don't know how to get the dynamic text, and then put it in its place... here's my code:
mContatti.onRelease = function() {
_root.quadro.attachMovie("finestra", "finestra", 1, {_x:-300, _y:-300});
_root.quadro.finestra.testo.titolo.text = "Contatti";
[code]....
This question relates to the gallery that I'm working on; basically, I am now trying to add text comments which change according to which button you press to the images. I know how to make this work by applying actionscript to each individual button, but I would like to put all of the actionscript on one layer, meaning that I would have to use the 'button.onRelease = function ()' operation instead of the 'on (release) { function" operation.The code is a variation of Kirupa's code for the tutorial on loading information from an XML, and the xml is his completely. Here it is so far:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
[code].....
I have a text box which dynamically loads the information from a .txt file. I want to scroll the text, with buttons that I have made(not the component scroll bar that comes with Flash MX), up and down through the text I have. I've tried many different scripts, and none seem to work. Is there a good concise walkthrough for this anywhere?
View 7 RepliesI have an XML with a node, let's say like this:Code:<ROW text="This is a line which needs to be broken right here /n to go on from the other line"></ROW>How can I break the line exactly where the /n is after I loaded this XML? Or how to change the XML to get this in the easiest way?
View 14 Replies