Dynamic Text Always Showing
Hi
I have a dynamic text field that i want to control the alpha on. Currently the dynamic text field resides within a mocie clip and I want to animate and control the alpha property. The text always shows 100% though. DO I have to create a text object to have this type of control?
thanks
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-01-2006, 02:16 AM
View Complete Forum Thread with Replies
Sponsored Links:
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;
}
View Replies !
View Related
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?
Attach Code
//Here's my actionscript:
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:
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;
}
View Replies !
View Related
Dynamic Text Box Not Showing Full Text (file Included)
Hello,
Here's the problem I'm having:
I have created a dynamic text box and written text in it. I'm doing this because static text boxes tend to blur text sometimes, and dynamic text boxes don't do this. Then, I've selected the box and transformed it into a MovieClip. The problem is that, the text box doesn't show the full text, that is entered there, unless I stretch it out to much, and then the stage alignment functions don't work properly. Is there a way, of fixing the bad display of my entered text?
Thank you.
View Replies !
View Related
Showing % From Dynamic Text
hey, guys.
its been a while
i'm loaing some dynamic text from a text file, and i require a % sign be shown. I have embedded the font, but the percent sign seems to be ignored. What do i need to do? I'm sure its got something to do with the % being reserved or something...
thanks,
-myk
View Replies !
View Related
Dynamic Text Not Showing
Hello,
i am new to flashkit and think its a pretty good site.... i have been using flash for uni for about a year now and am getting quite deep into it as the course requires.
I am currently trying to finish a peice of coursework but am having problems with one bit. heahache is an inderstatment... i ahve a movie symbol with another movie symbol inside it
Symbol1 > symbol2>
within symbol2 i have a scrollable dynamic text with custome buttons that scroll the text up or down. Nit too sure if this is a factor but the symbol 2 is sliding on to the stage using a motion tween.
For some reason or another te dynamic text doesnt show but the buttons do show.
I would post the fla file but due to the fact that its a bit of coursework i am not too sure what the rules on that are.
I have tried to make a new fla file with just the one movie symbol and the dynamic text setup in the same way but this work fine.
Any help would be appreaciated.
Regards
dexs
View Replies !
View Related
Dynamic Text Showing As A Dot.
Hi Folks,
I've tried searching, but i couldn't find anything that I was doing wrong. I tried using the example from the documentation: -
Code:
var label:TextField = new TextField();
label.autoSize = TextFieldAutoSize.LEFT;
label.background = true;
label.border = true;
var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0xFF0000;
format.size = 10;
format.underline = true;
label.defaultTextFormat = format;
label.width = 100;
label.height = 100;
addChild(label);
All I see is a white dot. Any ideas what I might be doing wrong?
All the best,
Ash
View Replies !
View Related
XML Not Showing In Dynamic Text Box
I have tried searching the forum for this and have not found a resolution.
I am loading an XML file and trying to display the contents into a dynamic text box. When I test the movie, nothing shows up. I don't even have any errors and the trace is not working.
There is also no mask in use and the fonts are embedded.
Does anyone have any ideas as to what I'm doing wrong?
View Replies !
View Related
Dynamic Text Not Showing
I am going through the Flash 8 Actionscript (Training from the Source) textbook. The last two exercises I went through set up functions that send a response to a dynamic text box. However, even though my code is exactly the same as the books completed file, my text does not work when I test the file. I'm thinking that there is some sort of setting within the books completed file that is not set the same as my flash defaults. I can't seem to find the difference. Any help would be appreciated, as I'm at a standstill.
View Replies !
View Related
Dynamic Text Swf Is Not Showing?
hey there..
So I'm trying to add a swf (photo gallery) to my existing easing menu page. When I do I see the images but no text in the description box. What do I need to do to see the text. I know the xml is working since the image shows.
Thanks..
Electricfan
View Replies !
View Related
Dynamic Text Not Showing Up
I've created a mp3 player but wen i put it in a movie clip the dynamic text no longer shows up? any one know why? heres the code i'm using...
stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
trace(songname[i]+" "+songfile[i]);
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text = name;
} else {
this._parent.display_txt.text = "loading...";
}
};
this.sound_obj.onSoundComplete = function() {
(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfiles[song_nr], songname[song_nr]);
};
};
btn_play.onRelease = function() {
this._parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
btn_stop.onRelease = function() {
this._parent.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
btn_rev.onRelease = function() {
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
playlist.load("playlist.xml");
Many Thnaks
Sean
View Replies !
View Related
Dynamic Text Not Showing Up
I hope someone could help me . I'd make it as detailed as possible plus these are the files (graphics, mp3s and other valuable content removed)
Here's what I wanted to do:
1) load the text into a movie clip so that it would be possible to add a custom scrollbar
2) in general, make the flash blog work
Problem:
It appears that the dynamic text isn't showing up. It loads. In fact, I can select and copy the text loaded from the database.
Other info:
1. I used this script: www.flashblog.org. It's in Spanish so I'm kind of groping. And yes, I did check the babelfish translator just to read the manual. Anyway, it's a great script and could "easily" (not for me) be modified by anyone who has know-how in flash and php.
2. I set up "testflashblog" on phpmyadmin (localhost), imported the database file (__.sql--->see the folder "ddb") and modified connFlashblog.php from the Connections folder to something like this:
Quote:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connFlashblog = "localhost";
$database_connFlashblog = "testflashblog";
$username_connFlashblog = "root";
$password_connFlashblog = "";
$connFlashblog = mysql_pconnect($hostname_connFlashblog, $username_connFlashblog, $password_connFlashblog) or die(mysql_error());
?>
It absolutely worked on the default template which came with the script.
3. I made a movieclip that would load the news. I placed it on layer "1" which is masked. It's also within a movie clip. (a movie clip within a movie clip).
4. I modified the script of the original source. Instead of placing it on the main timeline, I added "onClipEvent load ... " You know how it goes.
Result/Problem:
The text did load. In fact I could see the wod "start." The content, however doesn't show up.
HELP, anyone?
View Replies !
View Related
Dynamic Text Not Showing
hi
i'm trying to load a txt file into a swf, it works fine if i view the swf on its own.
the problem is the swf is loaded into another movie, and the text is not showing. the rest of the page shows including the scroll bar...and it scolls the right amount for the text.....just no text !
hope you can help
this is the script i'm using
loadText = new loadVars();
loadText.load("upload/topten_list.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
playtext.text = this.playlist;
};
i'm new to flash, so i think it's the "this." bit but not sure
View Replies !
View Related
Dynamic Text Box Not Showing Up
Hey,
Am having a bit of a problem with my dynamic text box not showing up. I will try to explain the best I can.
ok....
I've follewed this great to tutorial from monkeyflash.com on how to create it www.monkeyflash.com/flash/drag-and-drop/.
Now, in my project this tutorial will be one of my extrenal swf. The problem is that when it gets loaded into the main movie (via an emptyMovieClip) everything works fine, but my dynamtic text does not appear when you have dropped a shape on the right target or even not on the right target.
here's part of the code:
star_mc.OnRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == starTarget_mc) {
reply_txt.text="Nice Job!";
this.enabled = false;
counter++;
}
The part that is highlighted in blue, I have tried adding _root or _parent to the code and still it will not display in the main movie.
e.g.
_root.reply_txt.text="Nice Job!";
_parent.reply_txt.text="Nice Job!";
The dynamic text box is not inside a mc, its just on the stage.
Does anyone have an idea why the dynamic text won't show up in my main movie?
Thanks in advanced
View Replies !
View Related
Dynamic Text Swf Is Not Showing?
hey there..
So I'm trying to add a swf (photo gallery) to my existing easing menu page. When I do I see the images but no text in the description box. What do I need to do to see the text. I know the xml is working since the image shows.
Thanks..
Electricfan
View Replies !
View Related
Dynamic Text Not Showing Up
I have a swf with dynamic text loading into a mc in another swf. The problem is it is not showing the dynamic text when it is loaded into mc but it is showing when tested independently.
Why isnt the text not showing up and what would I need to do to fix it?
Thanks.
View Replies !
View Related
Dynamic Text Field Not Showing Embedded Text
I have a dynamic text field within a seperate movie clip. When i dont embed the fonts it works, however when embedded the text disappears. I have been searching for a simple explanation but have not had much luck. Does anyone have any idea's on what can be causing this?
Thanks
View Replies !
View Related
Dynamic Text Not Showing Through Clip
I have a series of movie clips that i'm loading and unloading through an interface. There is dynamic text on the interface because the flash text, my client feels, is too hard to read (i agree).
Basically when I load the movie clip into the interface the dynamic text is not showing through.
Is there anyway to work around this other than just going static with it? Let me know, thanks.
Justin
View Replies !
View Related
Dynamic Text Not Showing Up On Web Page?
I am loading some dynamic text and when I test it on my computer it is fine but when I up load the movie to the web it won't bring in the text. I even changed it so when i previewed it on the computer to go to the server...works fine but not on the net.
anyone had trouble like this before?
View Replies !
View Related
Dynamic Text In Movieclip Not Showing
I'm trying to create something that looks like a spreadsheet but I'm failing at the first hurdle. The text is not showing up in the following code, please point out where I'm going wrong.
myTextFormat = new TextFormat();
myTextFormat.font = "Arial";
myTextFormat.size = 8;
myTextFormat.color = 0x000000;
p = 0;
q = 0;
for (i=1; i<65; i++) {
_root.createEmptyMovieClip("button"+i, 100+i);
_root["button"+i].lineStyle(2, 0x000000, 100);
_root["button"+i].beginFill(0xFFFFFF, 100);
_root["button"+i].moveTo(0, 0);
_root["button"+i].lineTo(50, 0);
_root["button"+i].lineTo(50, 16);
_root["button"+i].lineTo(0, 16);
_root["button"+i].endFill(0, 0);
_root["button"+i]._x = p*50;
_root["button"+i]._y = q*16;
p++;
if (p%8 == 0) {
p = 0;
q++;
}
_root["button"+i].createTextField("theTextBox", 100, 0, 0, 50, 16);
theTextBox.background = true;
theTextBox.border = true;
theTextBox.backgroundColor = 0xFFFFFF;
theTextBox.borderColor = 0x000000;
theTextBox.multiline = true;
theTextBox.wordWrap = true;
theTextBox.variable = "myText";
theTextBox.setNewTextFormat(myTextFormat);
myText = "hello";
}
View Replies !
View Related
[F8] Dynamic Text Not Showing - Need Some Wisdom
Hello I am trying to get static text to show up in a text field from an external txt doc. I have been working on this for HOURS. I can not figure it out. I have attached the fla file.
The main_menu4.fla holds all my scenes. the scene I was trying to work on first was the events scene. I was trying to load my external events.txt found in the vars folder with no luck. the master2.fla has variables in place....
...just not getting it.....if anyone could kindly share any wisdom i would be so grateful. Still learning and someday hoping I can help others as you all help me which I will! I have attached the file for review.
http://www.awenarts.com/dynamicText.zip
Thanks again...Peace and kind regards Laura
View Replies !
View Related
Dynamic Text Boxes Arn't Showing Up
For some reason my dynamic and input text boxes refuse to show up on the stage. Any idea why this would happen? It is suposed to have boarder around it so regardless of what value is in it it should be there but I can't even see the box when i run it. the varable it suposed to display has been given a value. The text is not the same colour as the backround. I'm not new to flash and I can't say i've ever had this happen to me before. Any help would be appreciated.
It works like it's suposed to if i just open a new window and do it. So the only thing that i can think of that might be causing problems is the mask. Do masks and dynamic text boxes not mix? First time i've really used a mask in a game. Ok it IS the mask's fault n/m I can get around it now.
View Replies !
View Related
Showing Last Line Of Dynamic Text Box
Hi,
I have a dynamic text box, that i am constantly automatically adding text to, a couple of lines at a time. I have created some buttons using the scroll feature allowing you to move up and down the text. However is there anyway that I can make it so when new lines are added they are shown (ie the botton few lines) rather than it starting at the top of the text box each time?
Many Thanks
Laura
View Replies !
View Related
Dynamic Text Not Showing Last Line
My dynamic text box won't show the last line of text, no matter how much or how little text I am feeding it. The text box has an instance name, set to render html, set to multiline. My code is getting the text into the box, but it keeps clipping the last line.
Does anyone know why this would be happening?
I'm using Flash MX Professional 7.2
View Replies !
View Related
Dynamic Text Not Showing Up In Browser
It's really not anything fancy. Simple dynamic text. It works when testing it in FlashMX, and it works when I play it in Dreamweaver. But when I preview it in a browser, the dynamic text doesn't show up. It doesn't show up when I upload it to a site, either. Any ideas?
View Replies !
View Related
Dynamic Text Not Showing Up [renamed]
I have a deadline and am relatively new to flash - I've used a tutorial to load dynamic text into a text field using buttons. The code on each button is
on (release) {
loadText = new loadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
Obviously button 2 loads "TEXT2.txt" and so on
But I need to scroll it using a dragger rather than up and down buttons provided in the components (whch don't look great). Can anyone help!!!!!
View Replies !
View Related
Masking Dynamic Text Not Showing Up.
I'm using Flash8. I did this tutorial:
http://www.kirupa.com/developer/mx2004/maskfonts.htm
And my problem isn't the mask but the dynamic text is not loading from the XML file anymore. I think this is because in the tutorial the first thing you do is make the dynamic text field a movie clip. As soon as I do that the text data doesn't load from the external XML file. The code that previously worked was:
_root.prompt = this.firstChild.childNodes[1].firstChild.nodeValue;
prompt_txt.text = _root.prompt;
But now I made the dynamic text field prompt_txt a movie clip named prompt_mc and it doesn't load. So I realize now that prompt_txt lives inside prompt_mc but how do I get the text data from the XML file there???
View Replies !
View Related
Dynamic Text Not Showing In A For Each Loop...
Hi there,
I'm having a very strange problem. I'm saving in a textfield some text from an xml file but the text does not show at all.
This is my code:
Code:
public function setUpMenu():void {
/////////// SETUP NAVIGATION BUTTONS
menuXML = xml.navigation.children();
var i:int = 0;
var initY:Number = clogo.y + clogo.height + 30;
for each (var singleMenu in menuXML) {
var menuBtn:MovieClip = new MovieClip();
var titleString:String = singleMenu.navName.text();
var widthToSend:Number = 12*(titleString.length);
var heightToSend:Number = 15;
var bgmenu:Sprite = new Sprite;
bgmenu.graphics.beginFill(0xffffff);
bgmenu.graphics.drawRect(0,0,widthToSend,heightToSend);
bgmenu.graphics.endFill();
bgmenu.alpha = 0;
var navTitleFmt:TextFormat = new TextFormat();
var navTitle:TextField = new TextField();
navTitle.text=titleString;
navTitleFmt.size=14;
navTitleFmt.color = 0xdddddd;
navTitleFmt.font = "Verdana";
navTitle.width=widthToSend;
navTitle.height=25;
navTitle.embedFonts = true;
navTitle.wordWrap=true;
navTitle.autoSize=TextFieldAutoSize.LEFT;
navTitle.x=2;
navTitle.y=2;
navTitle.selectable=false;
navTitle.mouseEnabled = false;
navTitle.defaultTextFormat = navTitleFmt;
navTitle.alpha = 1;
navTitle.visible = true;
menuBtn.addChild(bgmenu);
menuBtn.addChild(navTitle);
menuBtn.name = titleString;
menuBtn.buttonMode = true;
menuBtn.x = 20;
menuBtn.y = initY + i * (20 + menuBtn.height);
i++;
menuList.push(menuBtn);
menuBtn.addEventListener(MouseEvent.ROLL_OVER, menuRollover);
menuBtn.addEventListener(MouseEvent.ROLL_OUT, menuRollout);
menuBtn.addEventListener(MouseEvent.CLICK, menuClicked);
menuBtn.alpha = 1;
addChild(menuBtn);
}//close For
}
You'll see from here that for each element in the XMLList I create a mc. I save inside that mc an invisible sprite and the text over it. Pretty standard stuff.
Well, the xml is fine, I traced all, the xml, the xmllist, the 'titleString' var I created, everything is in there. heck even if I change the bgmenu to alpha = 1 it shows! The only thing is that the text is not showing. I traced also "navTitle.text" and is fine.
I change the font to Arial, or any other system font, or even one added to the library and it does not show.
It happens in CS3 and CS4 on a pc, windows vista (just in case it may be a hardware problem).
Any insight? I'm going crazy!
View Replies !
View Related
Dynamic Text Field Not Showing Text
ok here is the problem .. i have a dynamic text field in " 1.swf " . and am loading "1.swf" into "main.swf" .. the text field shows info wen u press a button .. it works fine wen i run the 1.swf seperatly but as soon as i load it in "main.swf" . i see no text .. it's really annoying .. please help with me with it
View Replies !
View Related
Dynamic Text Not Showing In Text Field (AS2)
Greetings,
I need to start by saying, I am a Newbie to the whole flash game, and have for the part been fumbling round blind trying to educate myself.
I acquired a couple of flash templates, one a whole site flash, that uses timeline frame names to change the text and pics for the various pages inside the site. Then I also have a flash photo gallery.
I inserted the flash gallery in the appropriate spot in the timeline to correspond with the page name and everything appeared to be working fine. Until I l looked closer.
The gallery uses XML to load the pics ,thumbs and descriptions to the gallery.
All the pictures show correctly in the main flash movie, except that the dynamic text fields of the description and also the preloaders do not show.
When you play just the scene of the gallery it all works fine. I am thinking that it has something to do with the fact that the gallery is inside the other flash but I have racked my brain trying various things with no luck.
Also when played in the main movie the web link in the description text works even though there is no text visible ( Pointer changes to hand on hover over)
I have looked in the debugger and it appears that the xml file is correctly loaded and the variables are in the correct dynamic text field.
Sorry for the long winded description! It is probably a very simple solution but I am not seeing it.
Thanks in advance.
Cheers,
Fred.
View Replies !
View Related
Dynamic Text Field Not Showing Through Mask
Hi Guys
I'm making a file for my website, and I've got a scrollable area, using AS to scroll a movie clip vertically.
There is a mask layer in place to show the movie clip contents, and hide what is not in the "Viewable Area"
The movie clip will contain some images, but for now, it's just "junk content" to see if it works.
My problem is that I have a Dynamic Text Field inside the movieclip that just does not show up through the mask.
Any help on this would be great. Please see the attached fla if you need more info on my problem. If you can modify my fla so it works the way I would like it to, and re-post it here, that would be great.
Thanks in advance for any help.
View Replies !
View Related
Showing Symbols In Dynamic Text Feild
I need to add a copyright and registration trademark symbol in the dynamic text field that i have creted.....as these are symbols its difficult for me to incorporate in the dynamic text field. i tried downloading a font whch has these symbols and used html tags to show up...it did work well....the only issue being the font needs to be installed on the individuals users machine....and if the user odes not have it.....will not be able to c it.....
Is therea away i can resolve this issue....?? can i laod images in dynamic text feild ?
I need this problem to be resolved on urgent basis.....can anyone please help em out with this !!!!
Cheers!
View Replies !
View Related
Dynamic Text Box Not Showing HTML Hyperlink.
Ok in Flash MX i have this AS on frame 1
loadVariables("text.txt", this.menu);
And another symbol has a text box with the instance name "menu" with the variable "textbox" and render text as HTML clicked on.
and I have a text file with this in it
textbox="<html>Test 1 2 3 ABABABABABABAB <A HREF=http://qmow.net> PLEASE WORK!</a>"
All that shows in the text box is "Test 1 2 3 ABABABABABABAB".
All I need is <br><a href=*>and<font> to work...
thanks in advance.
View Replies !
View Related
Dynamic Text Not Showing Up When Loaded Into Main Swf
Hi,
I have a movie with a dynamic text box that works fine when it plays by itself, but when I load that movie into the main .fla, it craps out. I wrote a trace in the code below that shows the text is loading in the main movie successfully, but it doesnt display. Any ideas?
Code:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
ran = this["DISPTXT"+1];
_root.home_txt.text = ran;
trace("successful");
} else {
_root.home_txt.text = "The text failed to load due to an error";
trace("unsuccessful");
}
};
loadText.load("home.txt");
stop();
-patrick
View Replies !
View Related
Printing & Dynamic Text Fields Not Showing Up.
I am havingtrouble trying to print from a button in my FLASH movie.
this is what I am usign for my code:
Code:
on (release) {
print("_root.partsPanel_mc.choices_mc.objectClip_mc", "bframe");
}
now this DOES print, and it DOES print the correct target MC. (objectClip_mc)
objectClip_mc is a movie clip that consists of some STATIC text and some dynamic textFields that are populated by choices throughout my movie.
It only prints the STATIS text though..and NOT the text inside the dynamic textFields.
The font (ARIAL) "IS" embeded. I also have a (#b) in the frame/layer that has the objectClip_mc on it. the layer above it (and NOT inside the objectClip_mc) is a mask.... and when teste, the text is visible so I know the embeding is working. (I have "ALL CHARACTERS" checked for embed option)
Id appreciate any help on this...or tips. If you have experiencewith printing form FLASH..PLEASE post!!
thanks
View Replies !
View Related
Levelmytext Showing In Dynamic Text Field
Hi,
I have lots of buttons which are triggered to show, on roll over, a text in a dynamic text field.
I'm using this action:
on (rollOver) {
myText = "Beige Ferrari";
}
on (rollOut) {
myText = "";
}
The problem is, that as long as you don't roll over one of the buttons the text field shows: levelmytext
In the next frame with different buttons it shows:levelmyLoadercontentHoldermy
What can I do to leave the text field empty as long as one doesn't roll over one of the buttons.
View Replies !
View Related
[MX] Full Article Not Showing In Dynamic Text Box
Hi,
I have gone through many of the threads but I haven't been able to find an answer yet.
I have a dynamic text box importing a file. Everything is find and dandy, but the file that is being imported is only showing about half of the text.
Are we restricted by how much text we can load into the dynamic text box? If not, how can I fix this.?
So far, here is the code I used to import the text:
loadVarsText = new loadVars();
loadVarsText.load("news2.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.htmlText = this.var1;
} else {
trace("not loaded");
}
};
It's right out of the book, so any help you can give would be great.
Pixalant
View Replies !
View Related
Dynamic Text Field Not Showing In Nested MC...
Now I have a dynamic text field that loads and displays fine when I play the movie it is in from _root. But... I have that movie nested in another which is nested in another. When I play them nested together the dynamic text field will not display. There is an apparent area where the mouse changes to a cursor like a text field should be there, but nothing...
Anyone know how to fix this?
Here is the code where I create the text field...
var news_var:String = "";
var xmlNews:XML = new XML();
xmlNews.ignoreWhite;
xmlNews.load("../news.xml");
xmlNews.onLoad = function(bSuccess:Boolean):Void {
if (bSuccess){
var xnRootNode:XMLNode = this.firstChild;
var aNewsItems:Array = xnRootNode.childNodes;
for(var i:Number = 0; i < 3; i++){
var aNewsItem:Array = aNewsItems[i].childNodes;
for(var j:Number = 0; j < aNewsItem.length; j++){
news_var += aNewsItem[j].firstChild.nodeValue + "
";
}
news_var += "
";
}
}
else{
news_var = "Document failed to load or parse. Error code: " + xmlNews.status;
}
_root.createTextField("newsText",5,251.9,7.8,348,1 97);
newsText.multiline = true;
newsText.wordWrap = true;
newsText.border = false;
newsText.html = true;
newsText.selectable = true;
newsText.embedFonts = true;
newsFormat = new TextFormat();
newsFormat.color = 0xffffff;
newsFormat.bullet = false;
newsFormat.underline = false;
newsFormat.size = 12;
newsFormat.font = "fontNews";
newsText.text = news_var;
newsText.setTextFormat(newsFormat);
};
View Replies !
View Related
Showing XML Content On A Dynamic Text Field
Hi there, i“m trying to read an xml file content and display it on a flash dynamic text field i take the AS code from a tutorial on the web, but it“s not working, i didn“t receive any errors on it it“s just shows the empty text field. Can anyone help me out with this?
PHP Code:
//Declara la variable "obj_xml" como un objeto XML
function loadXML(loaded) {
if (loaded) {
inventor = this.firstChild.childNodes[0].childNodes[0].firstChild;
mostrador_txt.text = inventor;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("datos.xml");
And this is the xml file:
PHP Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!--<!DOCTYPE note SYSTEM "note.dtd">-->
<siteconastec>
<principal>El alcance de este asesoramiento abarca el brokerage de sociedades, los comodities, la consultorķa general en materia de finanzas, y el servicio de soporte y asesorķa operativa.</principal>
<integrantes>
</integrantes>
<clientes>
</clientes>
<servicios>
</servicios>
</siteconastec>
I only want to show the existing text.
Thanks
Juan
View Replies !
View Related
External Txt Into Dynamic Text Box Not Showing Correctly
Hello,
I've been HOURS dealing with this and I can't find a solution...
I have a dynamic text box, and I want to show into it different texts (loaded from external txt files) depending on which link the visitor clicks.
It's weird, because if I copy-paste text inside the textbox, it's everything all right and it's displayed OK. But if I load the text from the external file and then do something like:
Code:
myText.text=loadedtext.Content
Some characters are missing. I thought that the problem was that I use acents (the text is in spanish) and the font I'm using doesn't include them, but I have embed the characters missing and if I copy-paste the text directly to the textbox, everything is displayed OK!
I don't know why this is happening, it's weird, even some characters after the letter with an acent are missing. I've tried formatting the text in html, or changing the missing characters to their url code, but I get nothing.
Does anybody have a clue on this? Thx.
View Replies !
View Related
Flash CS3 Embedded Dynamic Text Not Showing
Using Flash CS3, AS3:
Font: Arial, Size: 55, Anti-aliasing turned on.
When I don't embed the font, the text that I change will show up, but it is not anti-aliased.
When I do embed the font, the text won't show up if I change it, but if I don't change it the text looks much better!
View Replies !
View Related
Dynamic Text Box Showing Scene And Frame?
I have what may be the world's biggest flash file (60+ scenes w/over 2500 frames per scene). It's a logic tree for business processes, and it's become quite unmanageable. I was wondering if anyone knows of a way to use a dynamic text box to display the scene name and frame number/label that the movie is stopped on?
Thanks,
Kevin W. Lowe
View Replies !
View Related
|