ActionScript 2.0 :: Unable To Make Dynamically Loaded Text?
Apr 7, 2003for 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 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 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 to space dynamic text?through actionscript?the letters of my dynamic text are to dense and i would like to change this.
View 14 RepliesI loaded a swf and placed it in a movieclip on the stage. When I try to make this image clickable nothing happens.
Here's my code:
Code:
var sprite = cHolder.addChild(ldr)
sprite.addEventListener(MouseEvent.MOUSE_DOWN, displayCat);
If I attach a listener to the movieClip on the stage it works fine but I can't seem to get the image inside of the clip to work.
I'm making a Image slider. When the mouse is rolled over, It'll slide to one direction. Just like a normal image slider.The problem is, the images that I want to be inside this slider are in a folder and I want them to dynamically load into flash and into the slider.
For example, Lets say there are 5 images in the folder. I want flash to get all the 5 images and load them into the slider and do the normal scroll thing. When the 5th image is reached, I want the slider to display the first image. (in a continuous loop). If a new image is put into the folder, flash should now have 6 images in the slider.I've manged to get the Number of files in the folder to flash.How can I make a slider where images are loaded dynamically?
I'm trying to figure out how to make a dynamically loaded image actually move across my screes. So far, my script loads the image, but stops after 1 frame. Without the loaded image everything works just fine. It's all Action Script, so my gues is that I probably missed something along the way.Here's my script:
Code:
scaler.loadMovie("image.jpg");
set the starting value for 2 variables
var targScale = 45;[code].........
So 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]....
I'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 RepliesIs 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 RepliesUsed the scroller at [URL] but is there some way to hide it when its not needed?
View 2 RepliesI�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 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 ve problem in adding hyperlinks to dynamically loaded text from an xml file..
View 1 Replies