Setting Dynamic Text As Html Via As2
I have a dynamic text feild tht is created once my loadVars is successful. The issue is when I try to set the dynamic text to html it doesn't display at all. Her is the code
Code: var myLV:LoadVars = new LoadVars(); myLV.onLoad = function(success) { if (success) { holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200); holder.new_txt.setNewTextFormat(my_fmt); holder.new_txt._alpha = 50; holder.new_txt.autoSize = true; holder.new_txt.embedFonts = true; holder.new_txt.html = true; holder.new_txt.htmlText = myLV.info; trace("hippy"); } else { holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200); holder.new_txt.setNewTextFormat(my_fmt); holder.new_txt._rotation = 45; holder.new_txt._alpha = 50; holder.new_txt.autoSize = true; holder.new_txt.embedFonts = true; holder.new_txt.text = "There was a problem loading in the text content through the load vars function."; } If I comment out the line: holder.new_txt.html = true; everything thing works fine with my embedded font.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-09-2007, 12:09 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help - Setting Dynamic Text From HTML
Would be grateful if someone could tell me how to set the value of dynamic text in a movie from HTML.
Can it be done with Javascript ?
Can it be done within the syntax of the <OBJECT> element ?
Any help appreciated,
Dominic.M
Setting Dynamic Text As Html Via As2
I have a dynamic text feild tht is created once my loadVars is successful. The issue is when I try to set the dynamic text to html it doesn't display at all. Her is the code
Code:
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.html = true;
holder.new_txt.htmlText = myLV.info;
trace("hippy");
} else {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._rotation = 45;
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.text = "There was a problem loading in the text content through the load vars function.";
}
If I comment out the line:
holder.new_txt.html = true;
everything thing works fine with my embedded font.
Setting Status Bar From Link Within HTML Text Box
Hi... this has been tried using Flash 5...
I know that if you want to set the status bar when rolling over a button you use getURL()... but I want the status bar to display the web address of the link created in a text box in which HTML is used
i.e. my HTML text box says for example:
"to link to my webpage <a href=" + linkVar + ">Click here</a>" ;
where
linkVar = "http://www.mywebpage.com";
has been set earlier to avoid confusion over the double quote marks) .
I want the status bar to read "Link to: http://www.mywebpage.com" and have tried:
"to link to my webpage <a href=" + linkVar + " onMouseOver = " + statusLink + ">Click here</a>" ;
where
statusLink = "window.status='Link to: http://www.mywebpage.com'; return true;";
has been set earlier to again avoid double quote problems...
in other words calling javascript, but this does not seem to work though it logically seems like it should
anyone any ideas?
thanks in advance
Chris
Setting Dynamic Text With Dynamic Path's
Hey guys,
I am pulling in this info with XML and trying to pass it thru a loop to plug in all of the news posts...however, for some reason, I cannot get the paths to work while I have a variable in it.
Any ideas?
ActionScript Code:
import flash.net.*;
import flash.events.*;
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var numz:Number = 0;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("news.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseBooks2(xmlData);
}
function ParseBooks2(tourInput:XML):void {
var tourList:XMLList = tourInput.Newspost.datez;
for each (var dateElement:XML in tourList) {
// create entries newsTitle_txt
["newsButton"+numz+"_but"]addEventListener(MouseEvent.CLICK,onClick);
function onClick(e:Event):void{
trace(this)
//launch news story
}
// THIS IS WHERE I AM HAVING TROUBLE...ANY IDEAS? It pulls the info in, but I cant set this text using the variables..
var newsTitles:String = "newsButton"+numz+"_but.newsTitle_txt";
trace(this[newsTitles].text);
this[newsTitles].text = tourInput.Newspost.title.text()[numz];
numz++
}
}
this.stop();
Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
Problems With _txt.text Setting Dynamic Text
When a user clicks a button, I want the feedback to reflect various text. In this case they click continue to read additional text that does not fit on my stage.
I have a dynamic text box with an instance name of feedback_txt with all characters embedded.
In my actionscript in the frame actions I have the following:
continue_btn.onPress = function(){
feedback_txt.text="This is the text to display in the dynamic text field"
};
Problem is, only the first couple words show up. Once I click on the dynamic text box, the rest of the text is displayed.
Any idea why this is happening?
Thanks.
Setting Text In Scrollable Dynamic Text Field
This is not really a question, though maybe someone can explain this behaviour.
1. Create a dynamic text field
(instance name: yadda_txt; variable: yadda)
2. Drag a scrollbar component on it
(target textfield: yadda_txt)
3. Set text
Method 1:
yadda_txt.text = "some very very long text... etc... etc...";
Method 2:
yadda = "some very very long text... etc... etc...";
If you use method 1, the scrollbar will become active.
If you use method 2, the scrollbar will NOT become active.
Is it because the target textfield is yadda_txt?
Perhaps the scrollbar is listening to events on yadda_txt?
I'm actually wondering if the scrollbar really is disabled, because I can't enable it with setEnabled(true);
Unless the scrollbar checks yadda_txt which is still quite empty.
Anyone know how any good Flash books?
Setting Dynamic Text...
Hello!
I'm having some problems when trying to set some dynamic text in flash mx. I've got a main scene with a bunch of instances of a button, that button has a movie attached to the over. The movie has an instance of a graphic that has a dynamic text feild. For each button, I want the text to be different. I've done it this way to make the size of the file as small as possible.
Scene1 contains multiple named instances of Button1
Button1 contains Movie1
Movie1 contains Graphic1
Graphic1 contains a dynamic text field.
I've tried loading the values on load and when over the button but nothing seems to work.
Any ideas?
Setting Dynamic Text With Php
Ok, is there a way to set the dynamic text inside a flash file ( say $flashtext ) with php ie. ( text.swf?flashtext=Text Here )?
any help appreciated
Re-setting Dynamic Text Box Variables..possible?
I have 2 dynamic text boxes receiving text from an HTML tag. The movie needs to be changed to loop 3 times, each with different text. One box uses the variable "header", the other "text".
Here's what I'm doing:
+ feeding in text via OBJECT and EMBED tags (header1=xxxx&content1=yyyy&header2=aaaa...etc) (6 vars in all)
+ init a loop on frame 1 to = 1
+ pushing all the vars imported into an array (for ease of use and tidyness) newsArray with 6 elements
+ then, killing the imported variables, header1=0 (to save memory)
+ on frame 2 I have a looper check (if loop > 3 then loop = 1)
+ also an if, else if statement to choose the news based on loop's value:
(pseudo-code) If loop==1 then header=newsArray[1], text=newsArray[2]
else if
loop==2 then header=newsArray[3], text=newsArray[4]
etc
It's not working though. Is there something I don't know? I am learning ActionScript as I go so it may be my fault. Can the value of a variable assigned to a dynamic text box be changed during a movie? Is it going to be easier to set the visible of boxes overlaid on each other?
TIA
Leon
Dynamic Text Alpha Setting
How is it possible to change alpha property of a MC with a dynamic text field? I tried this code with both MCs, one with dynamic and another with static text ...
onClipEvent (load) {
this._alpha = 20;
startDrag (this, true);
}
... it works fine with static text, but just the dragging works for the dynamic.
Any idea? Could the Color object be the solution?
Please, bring some light!!! Thanks!
gokito
Setting Text Of Dynamic Textfield
Hello!
Okay, I have a movie in my library which contains one dynamic textfield. I set the Var of this textfield to "MyText" and added 2 instances of this movie to the scene.
How can I change the text of this 2 textfields now seperatly? When I use:
onClipEvent(enterFrame)
{ MyText = "Hello!"
}
... then only the first instance is change. When using something like:
_level0.Movie1.MyText = "Hello1";
_level0.Movie2.MyText = "Hello2";
... nothing happens. Help!
Martin
_alpha Setting For Dynamic Text
When I use the an onMouse event and myVariable = “ text” Can I make the text a lighter shade? Can you set the _alpha transparency on dynamic or input text?
THX
Setting A Text Field As Dynamic
When you change a text field to dynamic text, the format of the text changes. As in the font becomes nothing like it's suppose to look and the text also loses it's boldness. Does anyone know if there is a way around this? Is there a solution that will allow the text to remain unchanged when using dynamic text??
Thanks.
Setting Dynamic Text Attribs
I pressed F1, looked all over, checked my FlashMX Saavy book and another one I have laying around and could not figure this out. I need to know the syntax of changing a dynamic text box's text size and bold/normal attributes. I have set it to html rendering. Here's what I use when I change the contents:
_root.inf_01.PPBOX.presNFO
The instance name is: PNboxinfo
Thanks.
Setting Dynamic Text Not Working In AS2
I'm working on a complex file given to me by another designer and I'm having a problem with being able to set dynamic text. Basically, I just want to set the text of a nested instance (e.g., with an instance called foo and a instance inside foo called bar, I'm using foo.bar.text = "test".) This works beautifully and as expected in a test file. But when I move the symbols and code to the other designer's file, nothing happens. I.e., the dynamic text is blank.
I feel confident that I'm not making any errors (I'm using tested code and symbols!), but I cannot think what else could be causing the error. Mine is the only ActionScript in the entire file.
Are there bugs with dynamic text? Could this have to do with font substitution? I did change the fonts to Arial and "device fonts" without effect.
Thanks!
Dynamic Textbox > Setting Text > XML Value
Why won't this work?
Code:
var galleries = this.firstChild.childNodes;
for(var i=0;i<galleries.length;i++) {
var gallery = galleries[i];
trace(gallery.attributes.name);
duplicateMovieClip(_root.btn_dummy,"btn_" + i,i);
_root["btn_" + i]._x = 50;
_root["btn_" + i]._y = 50 + i*22;
_root["btn_" + i].btnText.text = gallery.attributes.name;
trace("++++ " + _root["btn_" + i].btnText.text);
}
So I duplicate a button I made on the root called btn_dummy and the duplication works just fine but only the text doesn't show.
My first trace shows my XML child nodes, but the second trace just shows "++++ undefined".
Isn't this the right way to do it?
_root["btn_" + i].btnText.text = gallery.attributes.name;
Any one?
Thanks!
Setting Dynamic Text Colors
Okay, I thought this would be easier, but I must be missing something. I have a dynamic text box with an instance name of "messagebox". I want to change the color of the text in this box. However, my code isn't working.
Here is my code:
CODEtextCol = new TextFormat();
textCol.color = 0xFFCC00;
textCol.underline = true;
messagebox.setTextFormat(textCol);
Setting Dynamic Text In A Button
My main timeline has a movie clip called "all_buttons"
All_Buttons
---------------
The "all_buttons" movie clip has 6 instances of the same button. This button a dynamic textbox variable name called "txt"
Each button inside 'All_Buttons'
------------------------------------
Each button is name button_1, button_2, button_3, etc... With the behavior of a button.
Problem
------------
When trying the following in Scene 1, Frame 1, Actions layer.....the text doesn't change.
all_buttons.button_1.txt = "Text goes here";
Setting Input Text To Dynamic Text
ok here's my problem:
i have a few textfields that are at first dynamic.
when clicked a button they change to input text. that works
in my script i have this :
Code:
editFields = [Name, lastname, adress, phone, email];
later in the script when clicked the button
Code:
editFields[i].type = "input";
all ok up untill now...
i created another button and when clicked on that i want all textfields again set to Inputtext, al except the 'name'textfield
that one has to stay dynamic.
my problem is that i can't figure out how to keep one textfield
dynamic.
anyone know how i can achieve this ?!
thnx in advange
assenoost
Setting Text In Dynamic Text Movieclip?
Is it possible to set the text in a movieclip that used to be a dynamic text field?
Create a dynamic text field with the Text Tool from the toolbar.
Convert to Symbol.
How to set its text? Looking at the available Movieclip methods and properties, I don't think it's possible.
But.. if I don't convert my text field to a movieclip, I can't target it for printing.
Setting A Dynamic Text Fields Content
I have am creating text fields dynamically using:
this.createEmptyMovieClip("shape", 2);
shape.createTextField("textField", 1, 0, 0, 100, 200);
with (shape.textField) {
selectable = true;
type = "input";
html = true;
border = true;
background = false;
multiline = true;
text = "enter lable here";
autoSize = true;
}
path to each of these is on a count as follows
_root.MC1.shape.textField.text
_root.MC2.shape.textField.text
What I want to do is have a path like:
"_root."+target+".shape.textField.text" = TextVar;
But for some reason it will not work - guess it is something to to with the path to text being text not a var called text?!?
Can anyone help?
Cheers in advance
Ol
Setting Variable From Dynamic Text Field.
ok im getting close now.
i have a dynamic textfield with an instance name of recorde_id
my code goes to a database and brings back a number an displays it in this dynamic text field. this works fine.
im trying to set a variable called finalScore = "the dynamic text field";
how do i do this.
cheers aron.
Dynamic Text Field Setting Bold
I have ran into a problem. Its very simple really I have a dynamic text filed in the text field properties I have set it to bold and I talic. when run the movie the text field never show bold or itelic. What am I doing wrong
(NUB) Setting Dynamic .text And Variable Scope
Hello all,
First, using flash9 and ASC3.
Complete newbie to flash programming but couldn't find answers in this or the newbie forum. I am an artist but have some limited programming experience. But always seem to get caught up on simple logic issues.
I am trying to set (and keep track of) a dynamic text field in a movie clip. I am adding the movie clip from the main timeline and trying to set its properties as well.
//Main timeline code
//create key
var addkey = new key();
gameclip.addChild(addkey);
addkey.name = (j+"_"+i);
addkey.x = i*tileSize;
addkey.y = j*tileSize;
addkey.blockletter.text = game[j][i];
//this is the problem line. game[j][i] references an array of text letters. i.e "A"
trace(addkey.blockletter.text);
//Movie clip code
function initblock(letter){
blockletter.text = lettter;
blockletter.x = 10;
blockletter.y = 1;
//blockletter is the name of the dynamic text field
}
initblock("A");
So, the problem line in the main code above does not give an error and the trace confirms I am setting *a property correctly. However, it's obvious I'm not setting the dynamic text field in the addkey because it does not change.
I have also tried setting a global variable in the main timeline to hold the value for letter and reference that when I call the initblock function in the movie clip but I can't seem to create or reference global or root variables. -- I know, pretty pathetic.
Any help or logic insights would be greatly appreciated. I hope this post is appropriate for this and not the newbie forum.
-cheers
Setting Variables For Dynamic Text Boxes...
i'm trying to set up a PHP / Flash email form. I know how to set up the PHP portion but i dont know what to do in flash.
I have the dynamic text boxes labeled as (name_txt, email_txt, message_txt) and i'm kind of lost as to where to go from there.
Any help would be appreciated.
Setting Dynamic Text Via Class Function
I'm trying to use a button class and add the text label to the created buttons dynamically via an array.
The other functions in the button class are working correctly, except for this one:
private function setTitle(_val:String):Void
{
title_mc.title_txt.text = _val;
}
"title_mc" is the instance name of a movie clip containing the button background and a dynamic text field with the instance name "title_txt".
The button text is being passed into the function correctly via "_val". (I can trace it and see that it is there.)
When I run the movie, however, I get the following error:
"There is no property with the name 'title_mc'."
I'm just about ready to junk the whole object-oriented class thing and go back to setting up the buttons manually (where I would easily have had it completed by now).
All thoughts greatly appreciated.
Thanks!
CP
Dynamic Text Box - Setting Character Limit
I'm able to do this with an Input field, but the project I'm working on requires that the text field be dynamic. There isn't an option to set the character limit for a dynamic text box like there is with an input field. Is there an actionscript for this?
much thanks
Setting Dynamic Text In Tweened Animation
I'd like to be able to dynamically control text in an imported clip, where the artist has used shape tweening to animate the text.
From my reading of the documentation, to do shape tweening of text you have to convert it to objects which can no longer be accessed as a text field. So clearly I can't do this directly. Is there any trick or work-around that might help?
Like, could the text be left as a text field, then somehow, the main application does the work of converting it to an object at runtime so that it will work with the tweening? (That seems like a pretty dubious prospect honestly, but it's all I can think of...)
Setting Dynamic Text Field In Buttons?
Ok, I'm a newb
And I have a problem: I want to make completely dynamical buttons in which I want to set the text field.
I have a pretty plain movie in which I have created a button which only has an UP-state. In this button is a dynamic text field, which has the instance name dynText.
What I want to do is to drag, say like 10, instances of the button on to the stage and give them unique instance names. For ex button1, button2.... button10.
Then I would like to be able to change the text on each button individible...
Please, help - anybody???
Setting Dynamic Text Field Variable Dynamically
Hiya guys
I know that we can set up a var for a dynamic textfiled by putting it in the box but is there a was to do it by code, every route I have taken has failed,
any help greatly appriciated
ta
Zen
[MX04] HTML Tags Needs To Be Disabled In Dynamic Html Enabled Text Fields
Hi Buddies,
Am loading some dynamic text from an xml which has html tags inside dat text. I jus loading dat specified texts into a dynamic text fields where html is enabled and assisgned as a htmlText instead of normal text.
It works fine, but the thing is, i want to disable certain html tags to be rendered but it shud display as it is as a normal texts.
Is there any way to do dat
Scroll Bar For Html Dynamic Text Field Won't Work With Html
Hi:
I'm trying to add a scroll bar to a dynamic text field that is populated with an XML file. (see attached scolltext.zip file).
If I populate the field with plain hard coded text, it works fine. However, in my application, I need the text to contain html formatting codes. When I change the hard coded string to include html, it doesn't appear to work.
Can anyone suggest an alternative way to create a scroll bar for this dynamic text field? I need the html to stay as is because eventually the glossary will be populated via XML through a CF server.
Thanks in advance for any assistance!
Dawnthea
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...
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...
[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)?
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...
Html Text Field Write To Flash Dynamic Text Box
I have a dynamic text field in Flash.
I would like to have users type a message in the HTML text field and have it eventually appear in the Flash dynamic text field.
How can I get text from an HTML text field (on the same page as the swf) to write to the Flash dynamic text field?
Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,
In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.
I have tried these macromedia solutions with NO success:
http://www.macromedia.com/support/fl...t_outlines.htm
http://www.macromedia.com/support/fl...namic_text.htm
http://www.macromedia.com/support/fl...haredfonts.htm
Does anyone have a working sample .fla they can send me?
-Jimmy
|