Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loading Jpegs Into Dynamic HTML Text Boxes



Hello all,

I have read that this is possible, but have had no luck achieving it despite following the instructions given. I am using Flash MX & would really like to get my head around this one, so if anyone has any tips that would be greatly appreciated!

Mike.



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-03-2005, 08:47 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Loading JPEGS In Dynamic Text Boxes?
I'm wondering if I can dynamically load an image file in a text box that I am dynamically loading a text file into?

I tried the image tag in my text file but it didn't work.
keep in mind, that I have my text being recognized as HTML to allow me to use some HTML tags...I thought that this would work


If you need more explaination, let me know.

Any help on this would be really great.

Thank you

Dynamic Text Boxes And HTML
Hi,

I'm trying to format some text in a dynamic text box with HTML (I've checked the box to enable it), and some very weird stuff is happening:

With no formatting, the text appears as Times New Roman with the colour that I set in the Character panel.
If I add <b></b> tags, the text becomes bold, but also the font switches to the one set in the Character panel.

I want to change the font and colour of the text so I added <font face=helvetica color=#FFFFFF>...</font> (I'm assuming you don't use quotes for the arguments (helvetica, #FFFFFF)). This seems to make the text between the <font></font> tags disappear!! What is going on?

cheers,

Darkwhiteorange

HTML In Dynamic Text Boxes
Ok, I am so very confused I am hoping there is a simple explanation. I have a Dynamic Text box called debug which references the variable Class, I have a flashVar.txt file that loads the variable, it's entire contents are:

Class=<i>This is italic</i>.

When I load this file, all is good. However, I am using FreeTextBox to create this file, and FTB doesn't use <i>, it uses <EM>. When the <i></i> is changed to <EM></EM>, no italic. I read here maybe it is because I don't embed the font. When I embed the font and use Class=<EM>This is italic</EM> nothing shows at all! No italic, no text. I have the exact same problem with <STRONG> and <b>. Please, I am at my wits end, what am I missing? (Yes, the text box has Render text as HTML)

Dynamic Text Boxes Displaying Html...
This is my code guys. Im using Flash MX

fieldTextFormat = new TextFormat();
fieldTextFormat.font = "Superhelio";
fieldTextFormat.size = 10;

profiletext.multiline = true;
profiletext.wordWrap = true;
profiletext.selectable = true;
profiletext.autoSize = false;
profiletext.embedFonts = true;
profiletext.text = "<a href='test.asp'>Flowers @ Design</a> is a contemporary bespoke florist based in Lindley, Huddersfield.";
profiletext.setTextFormat(fieldTextFormat);

Ive set profiletext textbox to be displayed as html but the link appears as text along with the stuff outside the tags. Why might this be? Ive tried using " and "" around the target file but to no avail.

Thanks in anticipation

Jonathan

Changing Value Of Dynamic .html Text Boxes On The Fly...
This seems it would be easy, but I'm having a difficult time wrapping my head around it and can't get it to work...

I have 5 buttons, 1 dynamic text box. I would like those buttons to change the contents of the text box by reading a different &variable from a txt. file.

I've attached a example .fla, it's hard to explain...

Help With Html Anchors In Dynamic Text Boxes
my knowledge with as is limited, and any help here would be appreciated:

i'm trying to load data from a php document into dynamic text boxes in flash. the php file consists of several different research topics, each with a brief description, url, etc.

my plan is to have 2 separate dynamic text boxes in the flash file, one that will serve as a navigation box, the other which will contain the bulk of the info. so far, i've been able to load each separate "topic" into the navigation box, and all the topics' info below in the other text box. what i can't figure out is how to link each "topic" in the navigation box to the text in the other box below so that upon clicking the bottom box will scroll to the right topic.

i've added <a href> tags with asfunction-ality to the topics in the nav box, but i don't know where to go from there.

everything would work smooth if i could add html anchors into the text in the lower text box, and have the nav buttons above link to those anchors. from what i've gathered, tho, it doesn't seem that flash 8 supports this.

any help, or even suggestions for alternate methods to achieve what i want, would be much appreciated. thanks.

Linking Dynamic Text Boxes And Html
is it possible to link an html file to a dynamic text box instead of a txt file? If so, how can it be done?

the html file I am trying to target regularly updates with current news articles. I am trying to make a news area on a flash website that will post the headlines listed in the html file. With the dynamic text box targeting the html file that refreshes periodically, I am hoping that whenever a user returns to the website, the news area will show the most current headlines.

I understand this could be accomplished by simply editing a text file daily, but I was hoping the website's news section could just manage itself instead of having to be updated manually.

Any suggestions?
And a preemptive thank you to anyone who has any advice to offer.

Formatting HTML Content In Dynamic Text Boxes
Hello,

Does anyone have any tips on formatting HTML content in Dynamic Text Boxes?

I have two specific issues:

1. embedding images is OK if you want to display an odd picture scattered amongst a few paragraphs of text, but if you want to display say three pictures in a row there does not appear to be a clean way of doing so. The pictures just render themselves one on top of another. You can 'force' line breaks, but then the formatting just looks pants and irregular. Am I missing anything?

2. Using a <a> tag you can link content to another page, but is it possible to direct the link to a fresh browser instance as you can in normal HTML using the _blank attribute?

I may be asking too much of what appears to be relatively recently intorduced functionality in to Flash.

Thanks for any suggestions.

TK

Linking Dynamic Text Boxes To HTML Docs?
I'm still not sure how to link Dynamic text boxes to HTML documents, even after reading many articles on Dynamic text in Flash MX. Can anyone help or point me to the code, if any.


bigjake

Dynamic Text Boxes, HTML, Text Files, Oh My
Can you apply HTML formating for text inside a TEXT file, load that into flash, and then have a DYNAMIC TEXTBOX display the text with the proper formatting?

If you can does anyone know of a good resource where this is demonstrated?


Thanks,

Anyone Have A List Of HTML Tags Allowed In Dynamic Text Boxes?
I was looking for the answer on macromedia.com but all I could find was the list for Flash 5, which I'm hoping is a subset of what's allowed in MX.

Creating Line Breaks With Dynamic Text Boxes Using HTML?
I have an array with a series of informational text lines. I would like to place them in a status dynamic text box listing which ones have been processed. To do this I need to make a dynamic text box with line breaks after each item in an array. Here is my script so far:

imageClips = new Array();
imageClips = ["WindowsInit.jpg","CTRLA.jpg"];


I then have a dynamic text box with html enabled called:
Status

In my action script I have entered the following code:

Status.text = "<br>" + 1imageClips[0] + "</br>" + "<br>" + imageClips[1] + "</br>";

I want the first line to read "WindowsInit.jpg" in the list, and then break to the next line reading "CTRLA.jpg"

Whenever I run the script it does not work. Can someone tell me how to properly insert line breaks into dynamic text boxes using arrays of text with a line break?

Thanks,
Sam

AS3/ XML Help Please With Loading Dynamic Text Boxes
First off here is my code:


Code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest("Content.xml"));

function LoadXML(e:Event):void {

xmlData = new XML(e.target.data);
ParseContent(xmlData);

}
function ParseContent(contentInput:XML):void {
instructions_mc.polygonTxt.text = xmlData
trace("XML Output");
trace("------------------------");
trace(contentInput);

}
now as you can see I have my dynamic text field in a mc as: instructions_mc.polygonTxt.text = xmlData

but this returns all of the xml doc as it appears in the output. How do I remedy this, as to say what is the correct path I am needing ? I would like to use the same xml file to populate several dynamic text fields already on the stage...

Please help! Thanks!

Loading Txt Files Into Dynamic Text Boxes
Hi everybody,

can anyone please tell me how to load an external txt-file into
my Flash-site (dynamic text box) in order to make updates quicker?
If you got a fla-File, or know where I can download one, it would easier for me to customize it for my purposes.

Thanks in advance

smik

Loading Images Into Dynamic Text Boxes
Hi all,

Can someone please tell me why this picture won't load into the dynamic text box? I am using Flash MX on Windows XP. The jpeg is saved as progressive. I've attached the files used. Many thanks.

Michael.

Help: Loading XML Into Multiple Dynamic Text Boxes
Hi Folks,

Any help would be greatly appreciated on this one. This is my second sleepless night. I'm new to Flash and I'm not a programmer so bear with me.

What I want to do is use one XML file to populate 3 text boxes in one interface *without* using PHP, Java, ColdFusion, SQLServer, Access. etc. Just Flash MX and an XML file. Is this possible?

Here's the desired goal. The user goes to the html page with the interface. The XML populates the far-left text box (a combo list) upon loading. The user can click on any item in the far-left text box which then populates a second upper right-text box with data in a paragraph form (a multiline box). When a link in the paragraph is clicked, it opens more information in a third text box below it. All of this happens within the same interface without changing pages.

Here is an example of something similar to what I am trying to do, but I can't use PHP (company won't support it):

http://www.flash-db.com/Components/?...ype=List%20Box

I was inspired by UltraShock's XML calendar demo at:
Demo: http://www.ultrashock.com/tutorials/...l_pitfall.html
Source: http://www.ultrashock.com/tutorials/...l_pitfalls.zip
but I don't need the slider, and I can't figure out how to eliminate it

as well as the One-Screen technology used in the Macromedia promoted site:

http://reservations.broadmoor.com

Does anyone know of any tutorials/advice out there that might help me achieve what I'm looking for?

Thanks for any help.

Cheers,

Shalon

3 Dynamic Text Boxes Loading Information From One Txt File
Hello ..i ve been trying to figure out a way to make this application where 3 dynamic text boxes load information from just one .txt file I know how to make 1 dynamic text box to get the ifo but for all three on them it doenst work. Is this possible or am i just waisting my time? Thanks

Loading Text Files Into Dynamic Text Boxes
hi,

I have created a dynamic text box in flash, and a text file.
I have read the tutorial at http://www.macromedia.com/support/fl...t_scrollmx.htm about loading text into text boxes.

I have decided to have my text file look like this;

Item=This is item 1
Item=This is item 2
Item=This is item 3
Item=This is item 4
Item=This is item 5
Item=This is item 5

What i want it to do is that when it loads the text file into the text box, it should only load the first 3 items (item 1 to item 3).

how do i go about doing that?

thanks

Problems With Loading .txt Files To Flash Dynamic Text Boxes
Hi,

I can successfuly load external txt files to dynamic text boxes, however i am having some issues when the text loads and appears in the text box.

When i test the movie and the text populates the dynamic field, the text comes out perfect however, any text after a "&" symbol does not appear.

i am using the same font(times new roman) in the note pad and in flash. I also made sure that i imported the font in the movie, just to be sure.

Ne one know how to fix this problem?

thanx

Loading Text Into Dynamic Text Boxes
the title pretty much explains. how do i load text from a .txt file into a dynamic text box.

Loading XML Text Into Dynamic Text Boxes
I have an XML document and I am trying to load the text from that doc into corresponding dynamic text boxes in flash. I wanted to use a loop to do this because I have 30+ textboxes to load text into and I thought this would be easiest to do. I know that the XML is being parsed and I can get it into the dynamic text boxes without the loop so I know the loop I'm trying to use is the problem. When I run the program, the text (from the XML doc) is not showing in the dynamic text boxes. The dynamic text boxes are named "page1box0", "page1box1", "page1box2", etc. Here is my AS code (and I'm using Flash 8):


//create new xml object
xmlDoc = new XML();
//ignore white space in xml doc
xmlDoc.ignoreWhite = true;
//used this in a loop to ensure that xml doc loaded
xmlDoc.onLoad = function(success) {
if (success) {
//trace(this);
j=0;
while (j <= xmlDoc.firstChild.firstChild.firstChild.childNodes .length) {
currentXML = xmlDoc.firstChild.firstChild.firstChild.childNodes[j].firstChild.nodeValue;
trace ("currentXML = " + currentXML);
currentBlank = _root["page1box" + j];
trace ("j = " + j);
currentBlank = currentXML;
j++;
}
//trace ("currentXML = " + currentXML);
} else {
trace("xml not loaded");
}
};

Loading Jpegs In Html
Hi all,

I am loading images into an html textField like so:


Code:
txt.htmlText = "<img src='bla/bla/bla.jpg'>";
this works fine aside for the times when the file extension is jpeg, with an "e".
In that case the image wont load. Note that the image is fine, and if i simply rename it to jpg, no e, it will load fine.
I cant just change the filename, because these are dynamically added images which i dont necessarily have control over.

Is there a way around this annoyance?

Thanks,
YoS

Dynamic Text Boxes / Resizing Text Boxes
I have a site with a dynamic text box that I have initialized (I'm not sure that that is the correct term) at the beginning with:

myText = new LoadVars();
myText.onLoad = function()
{ textBox_txt.htmlText = this.content;
};
myText.load("text/bio.txt");
stop();

Then I have just used a text box throughout with the same instance name, although sometimes I have it on a new keyframe. I assumed I could just keep loading text into it on different frames with:

stop();
myText.load("text/performances.txt");

This appears to be working, except that sometimes it seems to be confused and the text box on a certain frame has the wrong text in it. Do I have to initialize one for each frame in order for them to display the right code? What could be causing it to load another text file if it's frame action is telling it to load something else? It seems unnecessary to have to re-initialize it for a new text box instance in every new frame, but is that the way it has to be done?

Also, I'm not clear on resizing text boxes. It seems like if I use the width and height numbers to resize this text box on different pages then it changes the size of the text inside, and the scroll bar (the UIScrollbar) is a little squishy looking sometimes. How does this work?

Thanks for any help.

Dynamic Loading Of Jpegs
When I dynamically load jpegs into my swf some work and some dont. Generally the ones that dont work are the ones I produce on my computer using photoshop... ones that I download from the web tend to dynamically load in fine. Is there some setting in photoshop which I should use or any other reason that this should happen?
Thanks
Mark

Pre-loading Dynamic Jpegs
Ok so i was trying not to ask for any help, but i can't figure something out myself (probably something simple, and i'll kick myself later for asking...).

I have a button which, when pressed, defines the ''_root.section" and goes to another MC which has this actionscript: loadMovie(_root.section+".jpg", "_root.photo_holder");. This is to load a jpeg into a MC.

The next frame contains the following actionscript as a pre-loader:
if (_root.photo_holder.getBytesLoaded()>=_root.photo_ holder.getBytesTotal()) {
gotoAndPlay("loaded");
} and the following just says gotoAndPlay(_currentframe-1);

Once the if condition is satisfied, it plays ''loaded'' which basically says:
_root.photo_holder.gotoAndStop(1);
_root.mask.play("unmask");. Mask is a masking MC located ontop of the MC containing the JPEG.

All works fine during testing, but when uploaded to a server, sometimes the ''mask'' movieclips starts playing before the jpeg is fully loaded. The jpeg is not saved as progressive.

I don't really see a problem with the Action Script i've written above? Can anyone see something wrong or suggest something i may have needed to add? I haven't been doing this for long.

Loading Dynamic Text From An .html Doc
Does anyone know if loading dynamic text from a .html document (on a server somewhere) is possible? I have just learned the technique to load dynamic text from a .txt document into the .swf when the .txt is sitting in the same folder. Is the process the same when using an absolute url?
I dunno - I need some help.

Thanks!

Dynamic Text Loading Html Into Them
Hi I`m trying to load a html page into FlashMX

Below is my current code:-


loadVarsText = new LoadVars();
loadVarsText.load("what.htm");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");

scroller.html = true
scroller.htmlText = this.var1;
} else {
trace("not loaded");
}
};

It works in test mode, but when I upload the Flash online it doesn't work, even if I enter the full url for the html page, any one know what the problem is?

A BIG thanks if you can help.
vince

Loading Html Into Dynamic Text
From what I know, a html page cannot be loaded into a dynamic text box, but that it does support html tags. Well I am trying to figure out a way to embed this link
http://external.pictage.com/external...00&text=FFFFFF

Which is through pictage an online photo ordering for photographers clients. The page that it loads is simple and the only tags that flash doesn't support are the body and head tag. There is no tables or anythink complex just text and links.

Code:
<a href="http://www.pictage.com/event.jsp?event_id=172610&branding=yes" target="PICTAGE">AARP IT Panels</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=185459&branding=yes" target="PICTAGE">Bravo-Latessa Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=178482&branding=yes" target="PICTAGE">Cernitz-Schwartz</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=200479&branding=yes" target="PICTAGE">Conner-Geyer Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=164952&branding=yes" target="PICTAGE">Cunningham-Miller Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=198020&branding=yes" target="PICTAGE">Denz-Morgan Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=198382&branding=yes" target="PICTAGE">Derge-Massey Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=161521&branding=yes" target="PICTAGE">Desimone-Porter Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=190525&branding=yes" target="PICTAGE">Henely-Hanfling Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=190530&branding=yes" target="PICTAGE">Holmes-Lee Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=185457&branding=yes" target="PICTAGE">Keilp-Bolea Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=195460&branding=yes" target="PICTAGE">Keystone Center Awards Dinner</a>


So if anybody has any ideas how this can be accomplished. I would be very appreciative. I am not sure if I could somehow parse the webpage in php or xml and spit out just the link and text. Or I have heard people linking their flash file to an iframe that is layered on top of the flash swf but I am not sure how to do this.

Could someone please point me in the right direction.

Thanks.

Loading Html Into Dynamic Text
From what I know, a html page cannot be loaded into a dynamic text box, but that it does support html tags. Well I am trying to figure out a way to embed this link
http://external.pictage.com/external...00&text=FFFFFF

Which is through pictage an online photo ordering for photographers clients. The page that it loads is simple and the only tags that flash doesn't support are the body and head tag. There is no tables or anythink complex just text and links.


HTML Code:
<a href="http://www.pictage.com/event.jsp?event_id=172610&branding=yes" target="PICTAGE">AARP IT Panels</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=185459&branding=yes" target="PICTAGE">Bravo-Latessa Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=178482&branding=yes" target="PICTAGE">Cernitz-Schwartz</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=200479&branding=yes" target="PICTAGE">Conner-Geyer Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=164952&branding=yes" target="PICTAGE">Cunningham-Miller Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=198020&branding=yes" target="PICTAGE">Denz-Morgan Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=198382&branding=yes" target="PICTAGE">Derge-Massey Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=161521&branding=yes" target="PICTAGE">Desimone-Porter Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=190525&branding=yes" target="PICTAGE">Henely-Hanfling Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=190530&branding=yes" target="PICTAGE">Holmes-Lee Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=185457&branding=yes" target="PICTAGE">Keilp-Bolea Wedding</a>
<br><a href="http://www.pictage.com/event.jsp?event_id=195460&branding=yes" target="PICTAGE">Keystone Center Awards Dinner</a>

So if anybody has any ideas how this can be accomplished. I would be very appreciative. I am not sure if I could somehow parse the webpage in php or xml and spit out just the link and text. Or I have heard people linking their flash file to an iframe that is layered on top of the flash swf but I am not sure how to do this.

Could someone please point me in the right direction.

Thanks.

Dynamic Preloader (Loading Jpegs)
I am working on a project which require being able to load large jpegs through the load movie function, I am looking for a way to attach a preloader to the jpegs so that when they load in the main movie they are loading into will work like a normal preloader on an swf file. If someone could please point me in the right direction I would be truly grateful...

Dynamic Text - Html And Loading Variables...
Hi

I've created a php script (tested it and it works), that takes outputs 8 variables, which are strings. They are 4 dates and 4 comments associated for each date. I want to use these for a mini news section on my website.

I've created a small flash movie that will display this data in a dynamic text field. However, I'm not sure how to format the text field so that it uses the css style sheets - or at least so that it formats each string the way I want it. Could you please point me in the right direction?

Thank you in advance.

Dynamic Text Loading Using HTML Code
Hello there !!

Does any 1 no 2 load variables 2 a dynamic text field in flash using HTML script.

Loading Dynamic Text W/ Html Tags
Hi,

I'm sort of new to flash and have a HUGE question to which I'm hoping to find a clear answer.

I want to know what the best way is to dynamically load text from an external file into a flash movie. I am using Flash MX 2004. The text will contain basic HTML tags, such as font, bold, and italics. It will also contain img tags, as I want to include jpgs throught the text.

I've been thru the creation of dynamic text boxes, which load the text file... using the scrollpane component.. plus a multitude of other ways, but none have given me the outcome that I want.

Can someone please tell me the best way to do this? It seems like it's such a complicated feat for something that, functionality wise, alot of people would want to do.

Loading Dynamic Text, Using HTML Tags
I would like to load an external .txt file into flash. I would also like the text to contain HTML formatting, ie. <a> <li> etc. Here's an example of what I'm currently trying:

In the .txt file, I have the following:
&header=Here is my header
&one=This is where the first set of text would go
&two=This is where the second set of text would go, with a <a href="http://www.kirupaforum.com">link</a> right here.
---------------

In the .fla file, I have three dynamic text fields with "Render text as HTML" selected. In a movie clip on the main timeline, I have the following actionscript:

var mainVars = new LoadVars();
mainVars.onLoad = function(loaded) {
if(loaded) {
_parent.contentText.heading.text = this.heading;
_parent.contentText.theText1.text = this.one;
_parent.contentText.theText2.text = this.two;
for(items in this) {
trace("item: "+items);
}
}
else {
trace("Nope, didn't work");
}
}
mainVars.load("text/productsText.txt");
stop();


When I preview the movie, the text fields come up as undefined. I could use some help!

Loading Dynamic Text W/ Html Tags
Hi,

I'm sort of new to flash and have a HUGE question to which I'm hoping to find a clear answer.

I want to know what the best way is to dynamically load text from an external file into a flash movie. I am using Flash MX 2004. The text will contain basic HTML tags, such as font, bold, and italics. It will also contain img tags, as I want to include jpgs throught the text.

I've been thru the creation of dynamic text boxes, which load the text file... using the scrollpane component.. plus a multitude of other ways, but none have given me the outcome that I want.

Can someone please tell me the best way to do this? It seems like it's such a complicated feat for something that, functionality wise, alot of people would want to do.

Loading Dynamic Text, Using HTML Tags
I would like to load an external .txt file into flash. I would also like the text to contain HTML formatting, ie. <a> <li> etc. Here's an example of what I'm currently trying:

In the .txt file, I have the following:
&header=Here is my header
&one=This is where the first set of text would go
&two=This is where the second set of text would go, with a <a href="http://www.kirupaforum.com">link</a> right here.
---------------

In the .fla file, I have three dynamic text fields with "Render text as HTML" selected. In a movie clip on the main timeline, I have the following actionscript:

var mainVars = new LoadVars();
mainVars.onLoad = function(loaded) {
if(loaded) {
_parent.contentText.heading.text = this.heading;
_parent.contentText.theText1.text = this.one;
_parent.contentText.theText2.text = this.two;
for(items in this) {
trace("item: "+items);
}
}
else {
trace("Nope, didn't work");
}
}
mainVars.load("text/productsText.txt");
stop();


When I preview the movie, the text fields come up as undefined. I could use some help!

Dynamic Text Loading Using A HTML Code ?
Hey Flash gurus !!

How can v load variables 2 a dynamic text field in flash using HTML code ??

I mean does any 1 Know what is the HTML code 4 loading a variable 2 a dynamic text field.

Hope any 1 Knows the answer !!!!!!

Jikku Jose

XML, HTML, Dynamic Boxes, Newbie Question
Hello all.

I have 2 swf's on one page, one is a series of photographs, the other is a box.

Basically, what I want to happen is when someone clicks on one of the photographs, it loads the photograph and some text underneath it (like a caption).

While someone recently clued me into using newLocalConnection, I'm having a hard time thinking about the implementation.

One thing I thought about would be to have a click on one of the photos load an XML file into the box. But what kind of box should I use? And if I use XML, should I use CDATA to get some sort of HTML-esque formatting inside the box?

Any ideas on helping me get started?

Thanks.

Jeff

Loading HTML Page On Dynamic Text Field
How do you load the html page on a dynamic text field? Is this possible. I want to display the text with a link on it on a dynamic text.

Trouble Loading HTMl Dynamic Text Files
Hello, I hope some clever bugger out there can help me?

I'm trying to have a basic text box load an external text file which contains basic html editing - nothing more than allowed according to the flash help file. This is the action script I'm using...

loadVarsText = new loadVars();
loadVarsText.load("welcome.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
welcomeText.text = this.welText;
} else {
trace("not loaded");
}
};
stop();

...which loads the text file fine but the editing doesn't work, it just appears on the page when I run the movie. In the properties box for the text box I have clicked the html button.

Is there something simple I've missed cos I'm sure this should be an easy thing. Thanks all for any help.

Proudy.

Masked Dynamic Text Loading Without HTML Fromat
I have an easing menu movie clip(contentHold_mc) that has Dynamic text fields inside it that load external text appears. The font has been embed to make it appear under the mask on the main stage but the problem is the text doesn't load with the html fromatting. In fact any text that has an html format tag applied to it doesn't show up. Can anybody help me to solve this problem?

The code I used for loading my text is:
NText = new LoadVars();
NText.load("textfiles/morafe bio.txt");
//creating the loadVarsText function
NText.onLoad = function() {
hom_news.html=true;
hom_news.htmlText = this.newstext;
};

Loading URLs From Dynamic Text .html List?
How does one get a dynamic text file to load a url (using Flash MX 04) referencing:

&url19=http://yoururlneeded.com/

when the action script reads:

onClipEvent(load) {
loadMovie(_root.url + "portfolio1.jpg", this.cont);
url=_root.url19;

}


You see I need visitors to click on the portfolio images, and the same button has been instanced throughout the entire template I purchased, so I can't simply "convert to symbol" each new button with a movie (hot spot) because no matter what I do it changes all the little portfolio buttons at the same time. The script "On Release - getURL=("") works if I place it right under the above mentioned loadMovie, but it then ruins the flash hot-spot layered deeper beneath.

It seems as though the dynamic text file has places for at least 30 url's, but it does not work at the moment. Can anyone offer a solution - please?

Thank you in advance.

-

HTML Page Not Loading In Dynamic Text Field
Hi guys,
i referred the tutorials from newweb.co.uk to create a flash file with dynamicaly loaded text and images from an html file. This works very fine in my computer where the text and images are loaded into the dynamic text field..but when i check in other machines...the swf file is not loading the html file into it. The html files are stored in the same location as the swf file, so the question of wrong path does not come into picture....how do i rectify this problem....please help....

Thanks in advance

Why Is My Dynamic Loading Taking So Long To Load The JPEGS?
I've got my flash movie to dynamically load a list of images from a text file and then randomly pick one and fade in... fade out... then pick another randomly and fade in... fade out... etc...

The problem is that it seems to be unusually slow to load over dial-up for the file sizes involved... The swf file is smaller than 2k and the 3 images are all under 25k. Not a very big download. If anyone could check it out and give me some ideas I'd appreciate it!

http://www.rantingsofthemad.com/resume/

flash file = header.fla
the webpage= resumesite.htm

The flash file is named "header" and you can take a look at the action script to see if there is something I can do to optimize it or if I might be better off going another way. I originally had imported the images, but the file size grew to over 224kb. Not very friendly for a dial-up... Thanks again!

Input Boxes - Then Printing A Frame With Dynamic Boxes With The Input Text In Them...
I have created a flash document with input text... I put the input text with a a variable for each.. I need to print the variables on a seperate page. I used a bounding box inside a movie clip and the printing is working correctly... However it is not reading my input boxes into the dynamic text boxes..

What I did is I have the input boxes on the root timeline........ You input it and go through a few frames and you get the option to print from a button (which is printing 2nd frame of a movie symbol) NOTE: the printing is working correctly using #b.... This is what I have on the 2nd frame of the movie clip for the dynamic text boxes to read the input boxes and place those variables inside of those dynamic text boxes so it will print them as they inputted them...

Here is what I have for my button:

on (press) {
print(_root.Printing, "bmovie")
}


Here is what my variables are on the input boxes which are sitting on the root timeline, each word is a variable:

curious
passionate
accountable
resourceful
commited
teamwork
open
engerizing

External_focus
Clear_thinker
Imagination_courage
Inclusive_leader
Expertise


INSIDE THE PRINTING MOVIE I HAVE A FRAME WITH THIS ACTION ON IT FOR THE DYNAMIC TEXT BOXES TO READ THE INPUT TEXT BOXES:

External_focus1 = _parent.External_focus;
Clear_thinker1 = _parent.Clear_thinker;
Imagination_courage1 = _parent.Imagination_courage;
Inclusive_leader1 = _parent.Inclusive_leader;
Expertise1 = _parent.Expertise;
curious1 = _parent.curious;
passionate1 = _parent.passionate;
accountable1 = _parent.accountable;
resourceful1 = _parent.resourceful;
commited1 = _parent.commited;
teamwork1 = _parent.teamwork;
open1 = _parent.open;
engerizing1 = _parent.engerizing;


FOR SOME REASON IT IS NOT PRINTING MY INPUT BOX INFORMATION IN THE DYNAMIC TEXT BOXES.... DOES ANYONE KNOW WHY?

Problem Loading Html With Images In Dynamic Scrolling Text
hi everything said in the topic.

i'm loading an external .txt/.html file in my dynamic text field with html enabled and everything works except the images won't show up.

i use: <img scr='bla.gif'> for example.

i would be glad if someone could spent a minute helping me.

thx
nicolai

Loading External Swf Into Empty Mc - Loaded Swf Loses Dynamic Jpegs?
Hi,

I have searched the forum but have not found anyone else with this particular problem.

I have a dynamic slideshow in a swf file (slideshow.swf) which loads in the images through an array with descriptive text etc. It works fine when tested.

The problem is that I need to load it into an empty mc on a layer of my main movie (latest.swf). The slideshow.swf movie loads okay, but the images don't get loaded into the slideshow. I know it must be something to do with the
Code:
_root
changing but I have tried changing the code to
Code:
_parent
and
Code:
this
but this breaks the slideshow.

The files are here - Slideshow

Any advice? Thanks!

Loading External Swf Into Empty Mc - Loaded Swf Loses Dynamic Jpegs?
Hi,

I have searched the forum but have not found anyone else with this particular problem.

I have a dynamic slideshow in a swf file (slideshow.swf) which loads in the images through an array with descriptive text etc. It works fine when tested.

The problem is that I need to load it into an empty mc on a layer of my main movie (latest.swf). The slideshow.swf movie loads okay, but the images don't get loaded into the slideshow. I know it must be something to do with the
Code:
_root
changing but I have tried changing the code to
Code:
_parent
and
Code:
this
but this breaks the slideshow.

The files are here - Slideshow

Any advice? Thanks!

HTML Text Boxes Within MCs
When I drop a text box (input or dynamic) and set it to handle HTML, I can change the style of the text dynamically. When I select that text box and convert it to a movie clip, using any HTML tags such as <B> or <I> make it disappear. Interestingly enough, <A> still works. Anyone have a work around for this??


e.g.

MyTextBox = "<B>Howdy</B>"; // works fine

convert to symbol...

MyMovieClip.MyTextBox = "<B>Goodbye</B>"; // disappears...

I tried setting font, color, size, height, width, depth, and aiming halogen lights at it, all to no avail.

Copyright © 2005-08 www.BigResource.com, All rights reserved