Problem With Text.
hi, How do u make the different text appear in a fixed place when the user rolls the mouse on different images.
For example: If I have one fixed place on the left and my pictures are on the right. I want the text to appear on the left in the fixed place each time I roll my mouse over it.
Thanks, Syed
FlashKit > Flash Help > Flash MX
Posted on: 10-01-2003, 01:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Loaded Text File Wont Show All Of The Text In Dynamic Text Field
- Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
- Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
- Help With Text Fields And Inputting Text From External Text Files
- TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
- How To Break Up Text When Calling Text Into A Dynamic Text Field
- Load Text From A Text File Into A Dynamic Text Field
- Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
- Getting A Dynamic Text Box's Text From HTML-formatted Text?
- Dynamic Text, Loading Text From Text File
- Loading Ext. Text Into Scrolling Text Box. Problem With Text? Help Please?
- How To Add Text To Dynamic Text Field Where Text Cursor Is. Please Help
- Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
- One Text Box, Each Button Loads Different Text Into That Text Box
- Arabic Text (RTL Text) Containing English Text
- Duplicating Text In One Text Input Box To Another Text Box
- How To Make Flash Movie Read Text From A HTML Text Box In Current Page
- Dynamic Text Box Jumping To A Section Of Text File Based On Date Stamp
- External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
- Changing Font And Size Of Text Added To Dynamically Created Text Fields
- Dynamic Text From MySQL Problem. Multiline + HTML-rendered Text Wanted...
- Static Text (device Fonts) Vs. Dynamic Text (anti-alias Non-embedded)
- How To Format External Text File To Show In Three Separate Columns Through Text Area?
- How To Stop Text Floating To Right Side Of An Image Inside A Dynamic Text Field
- Mask Layer Hides Labels, Button Text, And Selected Text For Combobox
- 2 Problems: 1. EmbedFonts Makes Text Disappear, 2. Dynamic Text Vertical Position
- Long Text Doesn't Fit Inside Single-line Input Text Field
- Can HTML Formatted Text In A Dynamic Text Target A MC On A Main Stage?
- Changing Text Inside A Text Field, Bold/Italic/Underline Ect ...
- Streching A Text Box Area To Match The Exact Size Of The Text Inside.
- Antialias Text With Variable Text Inside Flash Authoring Environment?
- Antialias Text With Variable Text Inside Flash Authoring Environment?
- Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
- Setting A Text Box's Text Property That Is Inside A Duplicated Movie Clip?
- Copy And Paste Of TEXT SCROLLER, CHANGING TEXT, To Stay For Each Section......?
- Button Function - Load Text File To Dynamic Text Field
- Show Text Created In Javascript Text Editor And Saved In Xml File
- Dynamic Text Box Doesn't Update From External Text/html File
- Dynamic Text Box Doesn't Update From External Text/html File
- Embed Jpeg In Dynamic Text Using External Text File Html
- Embed Jpeg In Dynamic Text Using External Text File Html
- Using Buttons To Change The Text File A Dynamic Text Field Loads?
- [F8] Dynamic Text Controlled Diff From Static Text? (alpha Question)
- [F8] Can Flash Load Text Without Changing It And Display Whats Raw In The Text File?
- [F8] Displaying HTML Entities In Dynamic Text From External Text Files
- Dynamic Text Field Loads Text, Font Not Showing Properly
- Embed Jpeg In Dynamic Text Using External Text File Html
- Is It Possible To Skew A Dynamic Text Field To Create A Text Percentage Preloader
- News Ticker: Error While Converting Static Text To Dynamic Text.
- Passing User Input Values(text Form) Into A Text File
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.
If someone could please inform me on how I should do this I'd be vary greatful.
If you need any further information I'll reply as soon as possible.
Help With Text Fields And Inputting Text From External Text Files
help with text files and paths
i need some help with input text field and text files.
i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:
onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}
and the code on the frame action is:
fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();
i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using
loadVariablesNum ("text.txt", 0);
placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.
should the load variable be on a frame actions or on a button action and whats the path to my input text field???
any help appreciated - as its driving me mad.
thanks
eskymo
TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:
I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.
I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.
If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.
I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.
This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.
Let me know..and thank you all so much.
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,
If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.
The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )
The code which formats the text boxes is:
with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}
my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:
var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;
Any suggestions most welcome.
Thanks
Getting A Dynamic Text Box's Text From HTML-formatted Text?
Hey! You recognize me yet? I've got (hopefully) one last question for a while. Could somebody please tell me how do to get the text value of a text box with text that's formatted as HTML? ( it was formatted similar to "textBox.htmlText = "...";")
I tried "myVariable = textBox.htmlText", but it just gave me the formatting garbage it's using (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT>) without the actual text that my users see. I also tried "myVariable = textBox.text;", but it returned a blank variable.
Many thanks, me Flash bruthas
Furry
Dynamic Text, Loading Text From Text File
I have a large text file, full of, believe it or not, alot of text. When it loads into the textbox in flash, it cuts off after a certain amount of lines. How many lines does it cutt off at and if I can, how do I increase this? THanks
Loading Ext. Text Into Scrolling Text Box. Problem With Text? Help Please?
Hi,
I am hoping someone can help me. I am loading an external text file into a scrolling text box. I was able to get my box and buttons, scroll bar, etc to work correctly. However, I am having two other problems that I cannot figure out.
1) My text file that I am loading is several lines long (320 or so), however, when I test my movie only the first 20 lines of the text shows up. How can I make all of my text show up? I will be adding to this text file over time and adding updates to it. So the text will gradually have more lines added over time.
2) The 20 lines of text that is showing up is all double-spaced, while the text in my text file is single spaced. How do I make my text show up single spaced? I checked the paragraph settings of my text box and everything is set to zero. What can I do fix this?
I am using Flash 5.0 and I created my text in Metapad.
Thanks in advance to anyone who can help me out.
How To Add Text To Dynamic Text Field Where Text Cursor Is. Please Help
Hello,
How do you, if possible, can add text to a dynamic text field on where the text cursor.
Example:
| = text cursor
by pressing a button I want to add "How are you?" where the cursor is
____________________________________________
Hello
|
Bye
____________________________________________
Results:
____________________________________________
Hello
How are you?|
Bye
____________________________________________
Please Help!
Thank you in advance!
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
Your help/advice would be greatly appreciated,
-Scott
One Text Box, Each Button Loads Different Text Into That Text Box
I was wondering how I would go about this...I have one text box and I want to have each button load different text into that text box for my webpage. How would I go about coding that so when I click on home it would load the text for the home page and when I click on contact it would load the text for the contact page.
Arabic Text (RTL Text) Containing English Text
Hi,
I am having difficulties in displaying English text within Arabic text without changing the sequence of the text.
Actual Text:
"القائمة" Menu إضغط زر
What the text is shown on Flash:
إضغط زر Menu "القائمة"
Anybody has any solution or work around solution?
Thanks!
Duplicating Text In One Text Input Box To Another Text Box
I have 3 text input boxes in one scene.
I want the user to type his name into the first box. When a button is clicked the user's name goes into the second box.
A new user comes along, and types his name into the first box. After clicking the button, the new user's name is moved to the 2nd box, while the name that was in the second box, moves into a third box.
I can get the first action to occur (user's name into 2nd box after clicking button) but I can't get the 2nd name to move into the third box.
It is just making me crazy. Any ideas are much appreciated!!
Dynamic Text Box Jumping To A Section Of Text File Based On Date Stamp
I am VERY new to Flash MX (version 6) and need some help.
I want to build a text file with different messages that are listed/identified by a date stamp, and then have a flash program to display these messages based on whatever the current date is.
Is this possible? How do I build the text file? Do I need separate text files for each message? What ActionScript code do I use to identify the current date, and then display the appropriate message with the current date.
Any help, tutorial or guidance is appreciated. Thanks!
External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
I've been reading every post on this that I can find, and so far, I have not stumbled on the solution.
I have a dynamic text box and a text box variable. I load an external text file into the variable and then load the variable into the dynamic text box. The file that gets loaded changes via different buttons pressed. That's working just fine.
The "real" problem is the double line breaks you get when loading in external text. The only way I have found, so far, to solve that is to set the text box to use htmlText and then use the myText.condenseWhite = true; function. That works also. BUT, when set to render text as html, I can no longer embed the fonts. If I try to embed the fonts, the text no longer appears. If the fonts are not embedded, they look bad.
Is there a simple, or not so simple solution? I need very clean looking text that does not have double spaces between lines. Here is a bit of the simple code I'm using. This is attached to a button.
Code:
on (press) {
Spec_txt.autoSize = "left";
Spec_txt.border = true;
Spec_txt.multiline = true;
Spec_txt.wordWrap = false;
Spec_txt.html = true;
Spec_txt.condenseWhite = true;
//Spec_txt.embedFonts = true;
myData = new LoadVars();
myData.onLoad = function(){
Spec_txt.htmlText = this.content;
};
myData.load("parafix.txt");
}
I've had to comment out the embedFonts attribute. When it is enabled, the text does not show.
Thanks for the help.
Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.
Link
In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:
_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;
Thanks so much!
Dynamic Text From MySQL Problem. Multiline + HTML-rendered Text Wanted...
Hi.
I'm in the process of writing a guestbook using Flash, PHP and a MySQL database. A large part of the Flash-code, is fully functional, but there is one strange problem.
The text i'm echo'ing from the PHP document into Flash, doesnt wrap correctly in my textfield. I've set the textfield to multiline and I've pressed the "Render as HTML"-tab. But the text is displayed with HTML-tags and stays on one line.
This is how it looks: http://www.riminalitet.org/guestbook.swf The buttons below the field are "Next"- and "Back"-buttons for the submissions...(It's danish )
I've experienced that it works if I use
instead of <br> in my HTML-formatted code. But I'd like to use <b>BOLD</b> as well. And if I urlencode my output-code from PHP, nothing changes. Still one line with HTML-tags...
The textfield is embedded in a scrollPane. I'm targeting this field in my LoadVars function. Can this has something to do with the problem?
Should I use the ScrollBar component in stead of the scrollPane to retrieve dynamic text? (This would be a little bugging, since my goal is to display the text nicely with some graphics around it).
Hope some of you guys can help me with this. Bye now...
Static Text (device Fonts) Vs. Dynamic Text (anti-alias Non-embedded)
Any thoughts on which is better to use?
When i use static text and device fonts (arial) the text looks great. The text doesn't change so no need to be dynamic.
Or
I use dynamic text (arial) non-embedded and it looks good too. The text doesn't change but leaving it as dynamic makes it render better.
How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!
Could anyone suggest a piece of advice to visualize the following idea?
I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.
I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.
I should be most thankful if anyone cared to come up with a solution.
How To Stop Text Floating To Right Side Of An Image Inside A Dynamic Text Field
Hi
I have dynamic text field that loads in a txt file containing
html formatted text including an embedded image.
When I test the movie the text that should appear bellow
the image, instead, runs down the right side of the image.
I have tried adding various html attributes including -
Code:
<br clear="all"><img src="image.gif" /><br >
I have also tried attaching a style sheet and appying the
following class -
Code:
img.allClear {
clear: all;
}
and also redefining the image tag -
Code:
img {
clear: all;
}
None of witch have worked.
Can someone help with this please.
Regards Mydogmax
Mask Layer Hides Labels, Button Text, And Selected Text For Combobox
does anyone know how to get flash to stop hiding text that resides on movie clips that have a mask layer over them? the masks appear to work fine but hide this text and i cannot figure out how to get it to stop.
thx
=========================================
Don't sweat the petty things and don't pet the sweaty things.
2 Problems: 1. EmbedFonts Makes Text Disappear, 2. Dynamic Text Vertical Position
I have the following code:
--------------------------------------------------------------------------------
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;
imageText.autoSize = true;
//imageText.embedFonts = true;
imageText.html = true;
imageText.htmlText = text; // variable loaded earlier in script....
imageText.selectable = true;
imageTextFormat = new TextFormat();
imageTextFormat.color = 0xCA9E1D;
imageTextFormat.size = 16;
imageTextFormat.font = "Sabon RomanSC";
imageText.setTextFormat(imageTextFormat);
//imageText.embedFonts = true;
trace(imageText.text);
--------------------------------------------------------------------------------
The problem:
If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.
Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.
Any help with either (or both) problems would be fabulous. Thanks,
Drew
Long Text Doesn't Fit Inside Single-line Input Text Field
Hi, I've been browsing these forums for a long time but this is my first post.
I'm creating an interface by which a user can design and order their own customized decal. Please see my example (I've added my script at the bottom of this post):
http://www3.sympatico.ca/sin.young/decaldesigner.html
My issues are:
1. I've set the character limit to 21, but if you were to type in 21 "W"s into the input field for whatever reason, or choose a wider font, the text shifts to the left and some of the characters become hidden as they don't all fit. I'd like to make the width of the text to always fit inside of the width of the white area. I can't figure out how to make this work.
Here's an example that does pretty much what I'm trying to describe: www.stickerjunkie.com.
2. I have the Standard Colors combo box working perfectly but can't seem to get the Fonts combo box working.
Any hints or links to actionscript tutorials/help that might be useful to my predicament is extremely appreciated.
// display colors and formatting
decalColor = new Color(decal);
color1 = new Color(decalColor);
//
function changeColor(comp) {
decalColor.setRGB(comp.getSelectedItem().data);
}
//Standard Colors array
standardcolors = [{label:'STANDARD COLORS'},
{label:'White', data:0xffffff},
{label:'Black', data:0x000000},
{label:'Silver', data:0x9c9c9c},
{label:'Gray', data:0x636b73}];
collistStandard.setDataProvider(standardcolors);
collistStandard.setSelectedIndex(0);
collistStandard.setChangeHandler('changeColor');
//
//Fonts array
myfonts = [{label:'FONTS'},
{label:'Arial', data:'Arial'},
{label:'Serpentine', data:'Serpentine'},
{label:'Enviro', data:'Enviro'},
{label:'Forte', data:'Forte'}];
fontlist.setDataProvider(myfonts);
fontlist.setSelectedIndex(0);
fontlist.setChangeHandler('');
Changing Text Inside A Text Field, Bold/Italic/Underline Ect ...
Is it possible to change the appearance of text inside a text field, like say to bold, italic, underline, color and even a type of font if need be ... ?
Example:
Like say you have text field, and you have some option buttons, (bold/italic/underline/color/type-of-font) that when clicked on will dynamicaly change the text/font appearance in the text field.
Any tutorials on this matter, anyone know ?
Antialias Text With Variable Text Inside Flash Authoring Environment?
Here's the code I'm using, and the question I have is after the code.
<code>
if (_root.button == 1){
mytext = "<b>Available:</b> {Available}<br>";
} else if (_root.button == 2){
mytext = "<b>Price:</b> {Price}<br>";
} else if (_root.button == 3){
mytext = "<b>button 3{button_3}<br>";
} else if (_root.button == 4){
mytext = "<b>button 4{button4}<br>";
} else {
mytext = "<b>Zoning:</b> {Zoning}<br>";
}
</code>
P.S.
These brackets "{}" are used for Generator variables that get pulled in from an access database.
So my question is this...
Is it possible to get this text to show up antialiased in my dynamic text field?
I've already tried to publish the movie with the text field option set to "EMBED ENTIRE FONT", and the only thing that shows up is the data coming from the database... the text that is already embeded in the variable does not show up.
Am I doing something wrong in my code?
any help would be greatly appreciated. Thanx.
-fourfold
Antialias Text With Variable Text Inside Flash Authoring Environment?
Here's the code I'm using, and the question I have is after the code.
<code>
if (_root.button == 1){
mytext = "<b>Available:</b> {Available}<br>";
} else if (_root.button == 2){
mytext = "<b>Price:</b> {Price}<br>";
} else if (_root.button == 3){
mytext = "<b>button 3{button_3}<br>";
} else if (_root.button == 4){
mytext = "<b>button 4{button4}<br>";
} else {
mytext = "<b>Zoning:</b> {Zoning}<br>";
}
</code>
P.S.
These brackets "{}" are used for Generator variables that get pulled in from an access database.
So my question is this...
Is it possible to get this text to show up antialiased in my dynamic text field?
I've already tried to publish the movie with the text field option set to "EMBED ENTIRE FONT", and the only thing that shows up is the data coming from the database... the text that is already embeded in the variable does not show up.
Am I doing something wrong in my code?
any help would be greatly appreciated. Thanx.
-fourfold
Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
hi,
i'm trying to load news.txt into a textfield using loadvars.
news.txt:
-----------------------------------
&news=<p font face="Verdana" size="12"><b>Recent Achievements:</b><br>Congratula etc. etc.
the as:
----------------------------------
loadnews = new LoadVars();
loadnews.load("flash/news.txt");
loadnews.onLoad = function(success) {
newstext = loadnews.news;
trace(newstext);
gotoAndStop(2);
}
the trace is showing that newstext is the text out of news.txt ... in the frame 2 that the onLoad function refers to is a textfield (multiline, with the html as true) which is supposed to display the newstext variable.
If i set newstext to something else ... eg: newstext = "some text" then it works fine ...
what's going on???
Cheers,
Ben
Setting A Text Box's Text Property That Is Inside A Duplicated Movie Clip?
How do you set a text box's property that is inside a dynamically duplicated movie clip?
for instance:
I have several duplicated movie clips (mc1, mc2, mc3, etc...) which were duplicated off a movie clip named "mc" and I was wondering how you set a text box's property that is inside one of those duplicated movie clips.
I don't know how many of these movie clips there are, or I would just use a for() or while() loop.
I hope I've explained this clearly, but I think I just confused everybody.
Furry
Copy And Paste Of TEXT SCROLLER, CHANGING TEXT, To Stay For Each Section......?
here's the problem:
I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.
I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.
If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.
I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.
This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.
Let me know..and thank you all so much.
Button Function - Load Text File To Dynamic Text Field
Hey again,
okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.
Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.
Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.
here is what i have as the script.
Frame1 - body.swf
_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}
loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);
Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}
can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks
Wolfie
PS - Let me know if you want or need more info. Am happy to post it up.
Show Text Created In Javascript Text Editor And Saved In Xml File
Hi all
I am currently investigating how to show text in flash that is created using a javascript text editor in a CMS. The text is imported from an XML file and you can see an example of the data below.
My problem is that the current version of the text display component I've created for flash has no room for "weird" symbols. This means that a lot of characters are not displayed and somtimes only half the content is displayed.
Preferably, the component should be as good at showing html content as if ws displayed on a normal html webpage.
I also want to be able to load images into the text component. They should be specified in the XML code as simple <img> tags.
Do you have a good idea of a solution or do you know a super solution already made? Preferably a solution that can be used for commercial purposes.
Here is an example of content that should be imported into flash:
<data>
<paragraph id="paragraph1">
<heading><![CDATA[test]]></heading>
<image></image>
<imagedescription><![CDATA[]]></imagedescription>
<body><![CDATA[<h1><font size="3">…Tekstmodul </font></h1>
<p>
<font size="3">Vinens udseende</font>
</p>
<p>
<font size="3"> </font>
</p>
<p>
<font size="3">Vinens udseende har stor betydning for, hvilke forventninger vi har til vinen, allerede inden vi dufter til eller smager på vinen. </font>
</p>
<p>
<font size="3"> </font>
</p>
<h2>
<u>
<font size="3">Iagttag vinen</font>
</u>
</h2>
<p>
<font size="3">Det er lettest at iagttage vinens farve, når man holder glasset på</font>
</p>
<p>
<font size="3">sdfdsfs</font>
</p>
<ol>
<li>
<div>
<font size="3">dsfdsfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">sdfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">dsfds</font>
</div>
</li>
</ol>
<p>
<font size="3">s…</font>
</p>
<p>sdfdsfds </p>
<p>dfsxcvxcvxc</p>
<p> </p>
<p> </p>
<p>asdsa</p><p> </p>]]></body>
<file internal="false">
<linkname></linkname>
<resource></resource>
</file>
</paragraph>
</data>
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Using Buttons To Change The Text File A Dynamic Text Field Loads?
I have a text field that loads text from a text document which works great for the news section of my site. However, is there a way I can keep that same text field and change it's content based on what button is pressed? For instance, if someone is viewing the "news" section of my site, and then they click on the "links" button, can I unload news.txt and load links.txt into that text field?
[F8] Dynamic Text Controlled Diff From Static Text? (alpha Question)
hi! i'm trying to fade in a movieclip with text but am running into some problems. the movieclip contains 4 dynamic text boxes which will serve as buttons and 1 static text with a title. however, the tween function is currently only fading in the static text and not the dynamic text boxes.
the main part that i'm talking about starts from "function scaleUp()" and down, but i posted what i have so far for context. with the posted code, the static text will fade in with the tween, but the dynamic text just plops there.
thanks for your help OH, and if you would also like to help, i want to have the 4 dynamic texts fade in one after another; i'm not sure whether or not to use an array or for script....and either way, i'm not really sure how to script that, so if you could help me with that too, that'd be awesome. thanks!
PHP Code:
// place background at 0% alpha
var fadeIn:MovieClip = _root.attachMovie("bg", "bg_mc", 0);
bg_mc._alpha = 0;
// import flash tweens
import mx.transitions.Tween;
import mx.transitions.easing.*;
// on enterframe, tween alpha to 100% and on complete, start centerline function
fadeIn.onEnterFrame = function() {
var bgFadeIn:Tween = new Tween(bg_mc, "_alpha", Strong.easeOut, 0, 100, 2, true);
setTimeout (centerLine, 750)
delete this.onEnterFrame;
};
// places center line (invisible)
function centerLine() {
var introLine:MovieClip = _root.attachMovie("line", "line_mc", 1);
line_mc._x = 450;
line_mc._y = 300;
line_mc._visible = false;
lineTween();
}
// makes line visible and tween out (changing _width)
// on complete, begins scaleUp function
function lineTween() {
line_mc._visible = true;
line_mc._alpha = 50;
var tween:Tween = new Tween(line_mc, "_width", Strong.easeOut, 0, 901, .75, true);
tween.onMotionFinished = function() {
scaleUp();
}
}
// changes _height of rectangle to make box and start fadeText function
function scaleUp() {
var upTween:Tween = new Tween(line_mc, "_height", Strong.easeOut, 1, 200, 1.2, true);
upTween.onMotionFinished = function() {
var placeText:MovieClip = _root.attachMovie("text", "text_mc", 2);
text_mc._x = 0;
text_mc._y = 200;
text_mc._alpha = 0;
text_mc.text0.text = "about";
text_mc.text1.text = "portfolio";
text_mc.text2.text = "photos";
text_mc.text3.text = "contact";
fadeText();
}
}
function fadeText() {
var textTween:Tween = new Tween(text_mc, "_alpha", Strong.easeOut, 0, 100, 3, true);
}
[F8] Can Flash Load Text Without Changing It And Display Whats Raw In The Text File?
just curious... I just want flash to read a txt file and do nothing to it... just echo it out loud and display it in Flash...
is there a way to do this?
like if the text file had "the quick brown fox jumped over the lazy dog" in it and NOTHING else... no variable syntax or anything..
is there a way this can be done?
I appreciate anybody who can help
[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)?
Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Here's my actionscript:
PHP Code:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
Here is my stylesheet:
Code:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
News Ticker: Error While Converting Static Text To Dynamic Text.
I made a simple news ticker. But am stuck with a silly error. I made the text static text. now when I make the text dynamic to load data from xml the text is not visible.
Not sure what is wrong with this.. Any help would be greatly appreciated. Thanks in advance.
Ruben Benjamin
www.rubenbenjamin.com
Passing User Input Values(text Form) Into A Text File
Hey,
I've created a form-like input to receive user input in the form of text in a frame. Now, I would like to pass that input into an external text file. I hope to get help to implement this. Let's assume that this app will be only used locally and not over the web.
Thanks
|