"&" Character Brakes Dynamically Loaded Text
I am loading an external text into a flash movie, but after the "&" character no data appears in the movie.
Anybody knows a solution for this issue?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-27-2004, 08:42 AM
View Complete Forum Thread with Replies
Sponsored Links:
Set Character Limit For Loaded Text
Hi all,
Question regarding dynamically loaded text in Flash.
I have news headlines with summaries that are loaded from external text files,
but the thing is that I only want to display 250 characters of the article in the summary text field, and where it truncates (cuts off) I want to add "..."
I'm up the wall
any ideas?
View Replies !
View Related
Set Character Limit For Loaded Text
Hi all,
Question regarding dynamically loaded text in Flash.
I have news headlines with summaries that are loaded from external text files,
but the thing is that I only want to display 250 characters of the article in the summary text field, and where it truncates (cuts off) I want to add "..."
I'm up the wall
any ideas?
View Replies !
View Related
Last Character Of Loaded Text Not Completely Visible
I load text into a dynamic text field, I set embedFonts property to true, set autoSize, apply a text format and set antiAlias to advanced (the text format uses a exported font from the library). When I test my movie, a part of the last character of my text is not visible. What is the cause of that and how can I fix it ?
View Replies !
View Related
Can't Get „¢ Character Loaded In Dynamic Text Field
I need the use of the chars ™ and ® but only the latter appears. I'm using a loadVars object and an external .txt file which is loading with success, but where I need the phrase "Soo Bahk Do™ Moo Duk Kwan®," I only get "Soo Bahk Do Moo Duk Kwan®"
Why doesn't "â„¢" load?
Edit:
I'd like to add that I have chosen to embed all uppercase, lowercase, and punctuation marks, and I additionally added ™ and ® to ensure they'd appear, but, the trademark logo still does not appear.
Edited: 11/11/2006 at 11:13:12 AM by PinoStyL
View Replies !
View Related
Dynamically Loaded Text File Doesn't Display In Text Box?
Hello People,
This is the scenario, hope you can help
I have a main mc, that loads into it an mc with a dynamically loaded external text file(" text mc")inside a text box(normal stuff). When the main mc load the text mc the external text file doesn't appear in the text box? When I execute the text mc by itself, it works sweet, text displays. I just need some help of getting the text to appear when it's loaded inside the main mc?
I've attached the text mc file so you can find the problem(note it will work fine, it's just when it's loaded inside the main mc the text doesn't display?)
thanks people
View Replies !
View Related
CreateTextField, Dynamically Loaded Text, And Setting Text Format..
I'm trying to format some text that i'm loading into a text box, that's inside a movie clip, that's created at load time. It seems that I have everything but the snippet of code that will apply the text formatting. I just don't know where to get it from, or rather, what to point it at.
my code is
Code:
//creates empty movie clip
this.createEmptyMovieClip("enter_mc", 10);
//creates text field inside movie clip
this.enter_mc.createTextField("welcome_txt", this.getNextHighestDepth(), 0, 0, 100, 300);
//sets text formatting
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
my_fmt.size = 20;
//
LV = new LoadVars();
// declare a new LoadVars object
LV.load("enterTxt.txt");
// load content in it
LV.onLoad = function(success) {
if (success) {
// when the file is loaded...
_root.enter_mc.welcome_txt.text = this.enterTxt;
// load the value of the variable "enterTxt" in the
// file into the text field "named" welcome_txt
}
};
and that works to create the movie clip, the text box, and load the text.
this
Code:
_root.enter_mc.welcome_txt.setTextFormat(my_fmt);
would make sense for formatting the text but it doesn't format the loaded text. there's nothing special about the text that's being loaded.
I'm at a loss, any help would be greatly appreciated.
View Replies !
View Related
Dynamically Loaded Text?
I've done this before, a very LONG time ago - and i'm kind of fuzzy of how to do this...
On my dynamic text box, called myText with a variable of newsText - I am trying to load in this url: gg_news.txt
The text file looks like this:
Code:
&newsText=news this is the news etc etc etc etc.
(am I supposed to use quotes and semi colons to end it?)
and this is my script:
Code:
_root.loadVariables ("../gg_news.txt",0);
What do you think is the problem?
I've done this in Flash 5, and now i'm with MX and i'm doing quite well, but my client wants to use a dynamic update system - and I can't for the life of me figure out what i'm doing wrong...
Thanks if you can help!
View Replies !
View Related
Dynamically Loaded Text
Hello.
I am trying to load some text dynamically into my movie from a .txt files saved within the same folder (news.txt).
So far, I have created my dynamic text box, given it a variable name (news). I then go to the frame where I want my text to load, and I have added the following action: loadVariablesNum("news.txt", 0);
Finally, on the first line of my news.txt file, I have added: news=
Now, this all works fine when my text box is on frame number one of the timeline, and the text displays correctly, however, I now want to do the same thing but with a text box that is held within frame number 15 of a movie clip.
I have tried doing this a couple of times and it doesn't work for me, so am I doing something wrong and do I have do something else in order to have the text display correctly?
Thanks for you time
IGD
View Replies !
View Related
Dynamically Loaded Text
Hi there,
Quick question re loading text from an external text file into a dynamic text box .
On the main timeline I've used the following code and it works fine.
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
news_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("news_1.txt");
news_txt is my text box and news_1.txt is the external text file.
Now I want to incorporate this text box into a movieclip. I've tried it and the text isn't loading. I think I need to adjust the code to reference the path to the text file. Not sure. Any help very gratefully received.
Many thanks
Q.
View Replies !
View Related
Dynamically Loaded Text
Hey guys I'm populating a dynamic text field from a text file.. but having troubles with line spacing...
http://www.actionscript.org/forums/a...3/t-36615.html
The above post describes the problems flash/windows/mac has interpreting line spacing..
What I'm trying to accomplish is just a little 'latest news' section, so the client can go into the text file, type in the date and a message under the date.
Would anyone have a suggested work around for this or maybe a different way completely.. as the line spacing isnt working properly.. and using <br> constantly wouldn't really be user friendly.
EDIT: Might as well ask this while I have this post; would there be any reason why the UIScrollBar component is making my loaded text dissapear?.. Without it the multi-line text is there.. as soon as I drag the scrollbar to the text field the text dissapears when testing movie.
View Replies !
View Related
Dynamically Loaded Text
I am trying to load text from an external .txt file but I keep geting an error message.
This is my code:
Code:
loadText = new loadVars();
loadText.load("bio.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.biotext;
};
This is the error I keep getting:
Quote:
The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
Thanks alot.
View Replies !
View Related
Dynamically Loaded Text
Hello once again kirupians, thus far you have been very helpful in my experience of learning flash and I hope that this time will proove sucessful as well.
** My dynamically loaded text will not scroll when loaded into my main movie **
For several reasons I've resorted to first getting the text to load into 'textwelcome.swf' and then 'textwelcome.swf' loads when the welcome button is released.
I am basing my external movie on kirupa's dynamic text loader and the buttons on my main movie are actually movieclips as i want them to be more attractive on rollover (mentioned in case it matters at all). The a/s on the buttons are as follows
PHP Code:
on (release) {
this.createEmptyMovieClip("textbox", 4);
textbox.loadMovie("textwelcome.swf");
textbox._x = 110;
textbox._y = -50;
}
Which loads the external movie with the dynamically loaded text which by the way does work apart from the main movie.
Seeing as i had no need to specify a level in the external movie's a/s i can't understand why it would be something to do with levels and that leaves me completely and utterly useless as to what to fix or change.....
(Please do not get discouraged by all this text, any help or direction would be helpful and I am sorry if I have overlooked an obvious solution but i am not fluent with flash yet and it doesn't 'come to me' just yet as to the possibilites.)
Thank you.
View Replies !
View Related
Dynamically Loaded Text Help Pls..
Hi
I have done a movie. In that, I called the movies externally using Load movie function. In total I called 6 external movies. Among them two movies call external data. When I have called these two movies into the main movie, the external data is not getting displayed. It hids When the external data is called into the movie clip. Can anyone pls help me out with this?
Thanks in Advance
View Replies !
View Related
AS In Dynamically Loaded Text
Is it possible to execute actionscript when a "link" is clicked in dynamically loaded text in a textbox? I am working on a projector project and want to dynamically load text but I want to have certian words in the text clickable that execute actionscript commands within the flash movie. Is this possible, I tried searching for an answer but couldn't find anything.
View Replies !
View Related
Dynamically Loaded Text
ive created a dynamically loaded text scroll box
Is there any way in which I can change the font colour and size of individual sections of the text.
When I edit the source text file it changes the whole document
Ive also tried editing it using the properties of the text box used in flash but that does the same
The ASCII i used was notepad
can anyone help me?!?!?!?!
View Replies !
View Related
Scrolling Dynamically Loaded Text
I need to load text from a .txt file into a dynamic text box. That's realatively easy....the problem I'm having is getting the scrollbar component to work with the loaded text.....
I have read through macromedias tutorial on this very topic but either don't understand it or it doesn't work..... I'm betting I just don't get it.....
Can someone lay it out in another manner for me..
thanks,
View Replies !
View Related
Draggable Mc With Dynamically Loaded Text
I'm using Flash MX and have a basic understanding of Actionscript.
I have a mc. The mc is supposed to resemble a small window with a title bar. The 'window' can be minimized, maximized, and closed. The mc ('window') is draggable. Inside that mc are a number of buttons (one of which is the buttn that makes the mc draggable).There is also another movieclip into which I want to place a text box that dynamically loads a text file. The code =
loadText = new loadVars();
loadText.load("news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newstext;
};
The text file loads fine. The problems now are:
1 The main mc - 'window' - drags erratically. It's jumpy and hesitates.
2 The other problem is that when I minimize my window (using : on (release) {setProperty("_root.win.bottombar", _yscale, "0");} )the lowerpart of the window disappears, but the text stays visible!!!!!
The same thing happens when I close the window (using:
on (Release) {setProperty("_root.win", _alpha, "0");} ).
The dynamically loaded text stays visible!!!
I certainly hope someone has an answer that will solve this issue for me.
View Replies !
View Related
Dragging Dynamically Loaded Text
I'm using Flash MX and have a basic understanding of Actionscript.
I have a mc. The mc is supposed to resemble a small window with a title bar. The 'window' can be minimized, maximized, and closed. The mc ('window') is draggable. Inside that mc are a number of buttons (one of which is the buttn that makes the mc draggable).There is also another movieclip into which I want to place a text box that dynamically loads a text file. The code =
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function() {
scroller.text = this.newstext;
};
The text file loads fine. The problems now are:
1 The main mc - 'window' - drags erratically. It's jumpy and hesitates.
2 The other problem is that when I minimize my window (using : on (release) {setProperty("_root.win.bottombar", _yscale, "0");} )the lowerpart of the window disappears, but the text stays visible!!!!!
The same thing happens when I close the window (using:
on (Release) {setProperty("_root.win", _alpha, "0");} ).
The dynamically loaded text stays visible!!!
I certainly hope someone has an answer that will solve this issue for me.
View Replies !
View Related
Dragging Dynamically Loaded Text
I'm using Flash MX and have a basic understanding of Actionscript.
I have a mc. The mc is supposed to resemble a small window with a title bar. The 'window' can be minimized, maximized, and closed. The mc ('window') is draggable. Inside that mc are a number of buttons (one of which is the buttn that makes the mc draggable).There is also another movieclip into which I want to place a text box that dynamically loads a text file. The code =
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function() {
scroller.text = this.newstext;
};
The text file loads fine. The problems now are:
1 The main mc - 'window' - drags erratically. It's jumpy and hesitates.
2 The other problem is that when I minimize my window (using : on (release) {setProperty("_root.win.bottombar", _yscale, "0");} )the lowerpart of the window disappears, but the text stays visible!!!!!
The same thing happens when I close the window (using:
on (Release) {setProperty("_root.win", _alpha, "0");} ).
The dynamically loaded text stays visible!!!
I certainly hope someone has an answer that will solve this issue for me.
View Replies !
View Related
Dragging Dynamically Loaded Text
I'm using Flash MX and have a basic understanding of Actionscript.
I have a mc. The mc is supposed to resemble a small window with a title bar. The 'window' can be minimized, maximized, and closed. The mc ('win') is draggable. Inside that mc are a number of buttons (one of which is the buttn that makes the mc draggable).There is also another movieclip into which I want to place a text box that dynamically loads a text file. The code =
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function() {
scroller.text = this.newstext;
};
The text file loads fine. But it loads before the 'win' mc loads. So, there is text hanging out there. I cant't seem to make the text box 'invisible' prior to loading it (although the mc it is embedded in is visible = false. The problems now are:
1 The dynamic text box loads immediatley and there is text hanging out there.
1 The main mc - 'window' - drags erratically. It's jumpy and hesitates.
I certainly hope someone has an answer that will solve this issue for me.
I have placed the files here:
http://www.landstownhs.vbschools.com/fla/
View Replies !
View Related
Scrolling Dynamically Loaded Text - How?
I'm using a custom scroller, which scrolls text inside a MC called textinfo - the text is just static text - this works perfectly, I can format and add as much text as I like and it scrolls nicely.
However, one one page, I need to do the same thing but the text needs to come from an external txt file. When I do this, I have to set the text box properties to 'Dynamic' - when I do this and play the movie - the text is invisible.
Basically, how can I scroll dynamic text with my custom scroller?
thanks
View Replies !
View Related
Dynamically Loaded Text Needs Centered Pop-up
Ok here is my prob,
I have a data txt file that pulls text into a textfield. but I want some of the text to be linked, so I made it render as html, but I want it to load in a centered pop-up. Here is what I have so far.
frame 1 AS
code: _global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL("javascript:window.open('"+url+"','"+winNam e+"','"+"width="+w+",height="+h+",toolbar="+toolba r+",location="+location+",directories="+directorie s+",status="+status+",menubar="+menubar+",scrollba rs="+scrollbars+",resizable="+resizable+",top='+(( screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};
here is my textfield AS:
code:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
showsList.htmlText = this.showsold;
}
};
loadText.load("Data2.txt");
and here is the what I have as my varible in my Data2.txt (not AS)
code: &showsold=<a href="#" onClick="openWinCentre('http://www.escapegrace.com','flyerwin','434','500','0','0 ','0','0','0','0','0')">this is my link</a>
I realize that flash cannot set the href to # and dectect the onClick, but is there anything that i can do about this?
Case
View Replies !
View Related
Searching Dynamically Loaded Text
I'm loading some dynamic text boxes with variables from an external txt file and trying to add a search button that can search through those variables. If it finds a match, I want the text box scroller to move to that position and highlight the text. Is something like this possible in Flash? If so, any hints on methods and such to use?
Thanks,
Grant
View Replies !
View Related
Scroller With Dynamically Loaded Text
Can anyone point me in the direction to a scroller that scrolls a text file from the outside, where the slider on the scroller accomodates for the size of the text file. Let's say you have 10 lines of text, or 100 lines,.. I need the slider part of the scroller to acomadate for it accurately.
Thanks in advance,
Mike
View Replies !
View Related
Dynamically Loaded Scrolling Text Help Please?
Hi Folks,
I've not looked at this stuff in a while and now I'm trying to use Flash MX 2004 Professional and I'm not that familier with it. I have a text box with dynamically loaded text that I want to scroll but.... not just a line at a time with each click, but smooth scrolling when you hold down the button.. can anyone direct me?
It seems that in this version the scrollbar component isn't there and I can't get scrollpane to work... please, any help is most appreciated, thanks!
Jim
View Replies !
View Related
Dynamically Loaded Text Field
does anyone know where I can get the HTML ( for example: <b></b> )
to display bullets in a dynamically loaded text file. Or if I can't do that, what characters or qualities besides bold and color I can put into a text field using HTML?
View Replies !
View Related
Strikethrough Dynamically Loaded Text With AS
Hey all,
I have a bunch of text that I am pulling out of a database with remoting and displaying as html styled with CSS in Flash. I need a quick and easy way to add strikethroughs to some of the text. I have been searching through livedocs and forums to try to find a way but I'm drawing blanks all over. Does anyone have any suggestions on how to do this? I guess if it came down to it I could use the drawing API, but I'd rather not because that would be a pain in the ass.
-Rhino
View Replies !
View Related
Clean Dynamically Loaded Text
Quite simply, how do i get clean (as in - on a HTML site) looking dynamically loaded text (9pt verdana min).
every time i export the movie the text loses clarity with its anti aliasing (im using a jpeg setting of between 75 and 85 percent)
If its not possilble whats the next best thing
Also can zapdingbat fonts be used in flash as dynamically formated text (beyond eg:html 1.0)
View Replies !
View Related
Dynamically Loaded Text & Navigation
Hello all,
I'm new to this forum as well as Flash. So any help from here out is truly appreciated.
I'm currently working on a website for my bio which requires navigation. If anyone is familiar with gurusnetwork.com's "Display External Text" tut, that's where I'm at right now. I finally got the scrollbar to work with the loaded text but now I can't press on a button to go to another external text file. I've placed the stop action for each frame label and tried:
on (press){
gotoAndPlay("bio");
}
for the button but nothing happens. All text files start with the same variable as set for the dynamic text box. Also for the layer my text box is on I have placed this code in the frame:
loadVariablesNum("myBio.txt", 0);
I'm all out of ideas and I know there's probably something I'm overlooking. So to all of guru's out there please shed some light on this for me. To get an idea of what I'm trying to accomplish here's my first flash site http://fade.to/topgun
Hope I've explained enough and thanks for the help.
View Replies !
View Related
Scrolling Dynamically Loaded Text - Help
I followed the Scrolling Dynamically Loaded Text tutorial & it worked great. The only problem I am running into is I have a huge space after each line. I can't seem to figure out what code to use so I can add <BR> from html at the end of each line.
Test site http://www.rbvll.org/final.html Choose Standings, majors & the file will load but there are spaces.
Properties:
Dynamic Text
Instance Name - scroller
Selectable Text Button
Action Script:
loadText = new loadVars();
loadText.load("majorstandings.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.majorstandingstext;
};
Any help would be greatly appreciated.
Thanks
Deb
View Replies !
View Related
Dynamically Loaded Text Formatting?
hey i have a tex file loaded and was wondering if i can make it so when i do backspace in my editor, it wont skip a line in flash.
hostingbox=3000 MB diskspace
45 GB bandwidth a month
FrontPage Server Extensions
Unlimited Websites Per Account and E-mail Account
PHP 4.3.2 , SSI, CGI, Unlimited MySQL databases
Custom Error Pages
24/7 FTP Access
Agora Shopping Cart
cPanel 7.2.0 "X"
Fantastico v2.0
.htacess
Live AIM Support
Streaming
Instant Online Activation
Guaranteed 99% uptime
and i get this:
3000 MB diskspace
45 GB bandwidth a month
FrontPage Server Extensions
...
is there any way to get rid of those extra lines? I found out a way to do it with using spaces, but it almost defeats the purpose of dynamically loaded text and just easier to edit in flash...
thanks for your help
View Replies !
View Related
Links Within Dynamically Loaded Text
Dear All.
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 ";
}
Thank you for reading.
Sam.
View Replies !
View Related
Scrolling Dynamically Loaded Text
Ok,
http://www.kirupa.com/developer/mx/dynamic_scroller.htm
i had no problem doing this. BUt my question is now if i load this movie into another one. What must i change?? where do i change the level or something??
I have just got into flash, i used to made everything in swish, but now swish doesnt satisfied my needs.
thx
View Replies !
View Related
Hyperlink In Dynamically Loaded Text
Hey all,
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?
Please help!
Cheers in advance
View Replies !
View Related
Format Dynamically Loaded Text
Hi there,
I want to format my dynamically loaded text like this:
text <a space here> more text
text <a space here> more text
text <a space here> more text
basically I want to 'tab' the text to align it in a text box.
I use HTML in my text file, but can't think of a way of creating this 'tab' or spacing format.
any ideas gurus?
View Replies !
View Related
Dynamically Loaded Text Question.
Heyas.
For my site, I want it so that when you press a button, it loads dynamically scrollable text. I think I can do this, using the excellent tutorial on this site. My question is, how can I make it so that when I press another button, the text disappears?
View Replies !
View Related
Formatting Dynamically Loaded Text
Hi,
After 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() {
name_txt.text = this.name;
email_txt.text = this.email;
location_txt.text = this.location;
};
var formatObj = new TextFormat();
formatObj.size = 10;
formatObj.font = "_serif";
formatObj.bold = true;
name_txt.setTextFormat(formatObj);
The text is loaded, but no formatting. What am I missing?
View Replies !
View Related
Scrolling Dynamically Loaded Text Help
This tutorial by Kirupa http://www.kirupa.com/developer/mx/dynamic_scroller.htm I cannot get to work for me. I don't know where the dynamic text that I want to be scrolled should be typed siince I am in MX2004. If you would like to see my .fla just ask. Thanks!!!!
-Dean
View Replies !
View Related
|