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




Need A Way To Name A Xml File Via External Text File



Here's what I want to do:

Load an external .xml file using xmlData.load(), but I need to declare the name of the .xml file to load via an external file such as a text file.

This way, the text file can be changed and the flash movie will load a different xml file.

Is there an easy way can I do this?


Thanks.



FlashKit > Flash Help > Flash MX
Posted on: 03-18-2005, 02:04 PM


View Complete Forum Thread with Replies

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

HELP - Using Dynamic Text File And External Image File
Dear friends

I want a help. As we all know can add text to a swf through a txt file without modify swf file with "loadvariablesum" command.

But I want to load external image file through a text by inputing a link to txt file.

please help me

i also attached a sample file

thanks

rakesh raja
dotcommakers

[AS] External Text File --> Internal Text File
Hi,
I have an external text file which I am using to write the dynamic text in my movie.
Can anyone tell me how I go about making this an internal text file. I am getting my movie ready for publication and I want people to donwload a single file (as an .exe projector file)
This is the code I am currently using.

Code:
next_button.onPress = function(){
n =_global.chapterCount;
load_Text()
}
MyVars = new LoadVars()
MyVars.load("animation_notes.txt")
load_Text()
function load_Text(){
L="Lx" add n;
mySlide= MyVars[L];
}
stop();
Thanks,
Tim.

[AS] External Text File --> Internal Text File
Hi,
I have an external text file which I am using to write the dynamic text in my movie.
Can anyone tell me how I go about making this an internal text file. I am getting my movie ready for publication and I want people to donwload a single file (as an .exe projector file)
This is the code I am currently using.

Code:
next_button.onPress = function(){
n =_global.chapterCount;
load_Text()
}
MyVars = new LoadVars()
MyVars.load("animation_notes.txt")
load_Text()
function load_Text(){
L="Lx" add n;
mySlide= MyVars[L];
}
stop();
Thanks,
Tim.

[F8] External Text Files Wont Load Into External Swf File...
Hi,

I'm making a Flash website in Flash 8 (mac).

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.

One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.

I made that particular SWF on my mums computer running Flash MX 2004. The flash file itself uses the Scrollbar component from MX.

Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

I've attached the files in question. Its a 200kb ZIP download. Do tell me if you need to know more.

Thanks

Pass URL String From External File To AS Variable (dynamic File Names)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?


Code:
var vfile:String = string("path");

supervideo = function () {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream (netConn);
video.attachVideo(netStream);
netStream.setBufferTime(10);
netStream.play(vfile);

};

loadText.load(_global.text_url1);
loadText.onLoad = function(success) {
if(success){
showtitle.text = this.title1;
vfile = this.flv_name;
supervideo();
}
}
The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I know the value of vfile is being passed from the php file and getting into the supervideo(); function because i have a textbox echoing vfile. I have tried defining the variable with and without the ":String". Please let me know if you can see any errors. Thanks!

External Text File
I have made a FLASH movie in which the text loads from an external text file.Although I f i test the movie as a SWF in the FLASH player then the text shows up , but when i try to see it in a HTML page it doesent.I have thetext file in the same directory what is the problem ??

External Text File.
I have a movie clip menu with buttons that have this script attached to them to load text into a scrolling text box:

loadVariables ("text2.txt", "_root._root.text_box");

pretty simple stuff. i named my scroller clip "text_box". The actual dynamic text box is called "services" because when i first load the variable i want the "services" section to load into the text field

my question is: Is there any way to other items from my text file (such as &about, &otheritem, you know how it works i'm sure.) into that same text field ("services"). I know I can do it by making multiple text fields on multiple frames, but that seems like a hassle. any advice?

-fred

Text From External File Help
Hi,
I have an actionscript that loads a text file from an internet address.
ie.
loadVariablesNum ("http://websitename.com/file.txt", 0);

the file starts

&text= ...

I'm using this in a dynamic text field with variable set to
text.

When i run the .swf on my computer it loads the text file & displays the text in the text field.
When i upload this file to my web, the text field remains blank.

How can i resolve this? the text file is on a different site than my swf.

External URL - Text File
Okay-
What if I have a movie.....and the links in the movie change very frequently. Instead of opening the movie up and changing the links can't I use actionscript to call a link that I insert in a text file?

How would I go about this?
Thanks in advance.

Stepon

External Text File....
Hey folks, maybe someone can help me figure out what i'm doing wrong. I have an external text file with some variable defined in it and I'm trying to bring it into my Flash movie, but I can't seem to get Flash to read the file. My text file looks like this:

Phrase1=Hello&Phrase2=How are you

...the name of the file is phrases.txt and it resides in the same folder as my flash movie. In my actions window I have:

loadVariables ("phrases.txt",0);

...when Flash reads the text file I want to take my Phrase1 variable and place it into another variable named phrase.

...to check to see if Flash is reading the text file I am using the trace() option. I just want to see everything that Flash is doing while I'm working. That code looks like this:

trace(phrase)
trace("Hi")

...the reason I have trace("Hi") is so I can see that Flash is reading that far into my actionscript. So, here's what my code looks like all put together:

loadVariables ("phrases.txt",0);

phrase = Phrase1;

trace (phrase);
trace ("Hi");

Any help on this would be great. I have been racking my brain all day trying to get this to work. Thanks in advance.

-Tim

External Text File
Quote:




onClipEvent (load) {
this.loadVariables("update.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
numLines = 7;
origHeight = scrollbar._height;
origX = scrollbar._x;
needInit = false;
function initScrollbar () {
var totalLines = numLines+textbox.maxscroll-1;
scrollbar._yscale = 100*(numLines)/totalLines;
deltaHeight = origHeight-scrollbar._height;
lineHeight = deltaHeight/(textbox.maxScroll-1);
}
function updateScrollBarPos () {
scrollbar._y = lineHeight*(textbox.scroll-1);
}
}
onClipEvent (enterFrame) {
if (needInit) {
if (textbox.maxscroll>1) {
initScrollbar();
needInit = false;
}
}
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && textbox.scroll>1) {
textbox.scroll--;
updateScrollBarPos();
} else if (scrolling == "down" && textbox.scroll<textbox.maxscroll) {
textbox.scroll++;
updateScrollBarPos();
}
frameCounter = 0;
}
frameCounter++;
}
onClipEvent (mouseDown) {
if (up.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "up";
frameCounter = speedFactor;
up.gotoAndStop(2);
}
if (down.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "down";
frameCounter = speedFactor;
down.gotoAndStop(2);
}
if (scrollbar.hitTest(_root._xmouse, _root._ymouse)) {
scrollbar.startDrag(0, origX, deltaHeight, origX);
scrolling = "scrollbar";
}
updateAfterEvent();
}
onClipEvent (mouseUp) {
scrolling = 0;
up.gotoAndStop(1);
down.gotoAndStop(1);
stopDrag ();
updateAfterEvent();
}
onClipEvent (mouseMove) {
if (scrolling == "scrollbar") {
textbox.scroll = Math.round((scrollbar._y)/lineHeight+1);
}
updateAfterEvent();
}
onClipEvent (data) {
needInit = true;
}






Okay I used Patrick Mineault's tutorial on making a scrolling textbox with a scrollbar. The text loads successfully into the textbox when I open up the flash on my hardisk. But when I upload it to the web, it doesn't work anymore. Can I make it so that the flash gets the text file from a URL like : www.mywebsite.com/text/text.txt?

I'm using Flash 5, someone please help

External Text File....
Ok im loading text from a external .txt file and i no how to link to pages and stuff using html tags but what im wondering is can i bring images into the dynamic text box using the text file at all ?? Im guessing maybe not and its xml or php i would need but im asking before i spend hours trying.

Thanks, Mental

External Text File
Hello all,
I am working through the following tute on external text files and scrollbars with the view to having a news section on my website...

http://www.flashkit.com/tutorials/In...-532/index.php

I think i have followed the steps properly but the text file does not seem to load at the test movie stage (btm page6). the text is selectable and when you put the curser in there it seems unusually big - maybe something i have done. the scrolltext.txt file is saved in the same folder as the movie so i don't know why it does not work. Probably somethimg simple....attached is the folder with files.

Thanks

External Text File Help
Im trying to have a text box with scroll bar show up when the button is clicked, I cant seem to get it to work right and I'm not sure which code is the best to use for it.

Here is my .fla if someone can help.

http://www.angelfire.com/zine2/defco.../webtestin.fla

External Text File
Hi,

I have an externally loading text file "gallerytext.txt" loading into "gallery.swf".

I want to load "gallery.swf" into "mainmovie.swf".

The code I would normally use to load the text file would be something like this:

loadVariablesNum("gallerytext.txt", 0);

on the first frame of the "gallery.swf" movie, and then label the dynamic text box appropriately.

How do I change the code so that it will show up once loaded into "mainmovie.swf"?

Do I change it in "gallery.swf" or "mainmovie.swf"?

And In External Text File
When I load in an external text file I get carriage returns in my values.
For instance I got this:
&var1=hello
&var2=hallo
&var3=bonjour
etc....

My variables in flash will be :
"hello
", "hallo
" etc.

I use this code to get rid of them now :

Code:
for (i in loadText) {
myString = new String(loadText[i]);
indexNr = myString.lastIndexOf("
");
if (indexNr!=-1) {
loadText[i] = myString.substring(0, indexNr);
}
}
But is there a better way? or a way to save the text file differently ?

I DONNOT want to have all the vars on one line !!!
so no &var=xxx&var2=xxx&var3=xxx
Te file should stay clear for other people.

Thx for any ideas posted.

External Text File
hello friends

i am tring to load text from external txt file but it is not showing up i am using following code to load external text file

loadVariablesNum("info.txt", 0);

if u can please attach .fla .. so i can now how all this should work

thanks a lot

[F8] CSS Using An External Text File?
Ive just started using Flash 8 as I heard it was capable of using css. I currently have a dynamic text box (with a scroll bar component) that loads content from an external .txt file.

Ive been seacrhing for ages to find a way to load the content, as described above, and have a css file take care of the fonts and links. All the tutorials and examples I have found deal with using css on hard coded text, not loaded from an external text file.

Would anyone be able to help or point me in the direction of a good tutorial?

Thanks

Lewis

External Text File
Hi there,

Im looking for a peice of script that will read text from an external text file

so i have a news movie, I need it so i can update the text file and This will update the movie

Thanks
Alex

[F8] External Text File
My client wishes to be able to update certain information. I have an example flash file attached that suites my needs, except that I want the text file to be able to have certain formatting options (bold heads) and hyperlinks. Simply changing the code to text.xml instead of text.txt did not work.

Anyone have sugestions, code, or sample file about importing text from an xml file?

Thank you much Flash family.

External Text File
Hi gang. I have a test site published and im having an issue with the external text file not showing back up if you refresh the browser. here's the link HWMI . any help is appreciated! also if you have any comments on the design or anything else that might need attention, let me know! thanks!

Can't See Text From External Txt File
OK, I don;t use Flash all that much, but the boss wants a project done.

We're creating a CD media kit using flash and exporting as a .exe file.

I'm loading the text into the swf from an external file located on our server. This way the content can be updated and the Media Kit will always be recent and up to date.

My problem is that the file is getting loaded...but I can't see it. I've tried setting fontColor, backgoundColor....but still can't see it. I know it is there because I can copy and paste it from the movie.

Help! What am I missing...

this.createTextField("compinfo_txt", 10, -367, -198, 358, 425);
compinfo_txt.autoSize = "left";
compinfo_txt.border = false;
compinfo_txt.multiline = true;
compinfo_txt.wordWrap = true;
compinfo_txt.htmlText = true;
//compinfo_txt.selectable = false;
compinfo_txt.textColor = "#3366CC";
var com_txt:LoadVars = new LoadVars();
com_txt.onData = function(src:String):Void {
if (src != undefined) {
compinfo_txt.text = src;
} else {
compinfo_txt.text = "Unable to load external file from PerfectSoftware! Internet connection required.";
}
};
com_txt.load("url of text file here");

External Text File
Hi ,

New to this flash stuff but i do love it.
Still in very very basic usage of flash so please bear with me.

Im using flash mx.

I have a image of a cartoon charater with a speech bubble new to it.
What i would like to do is type lots os comments in a exteral text file and then make them load into the speech bubble every 15 seconds.?
Any suggestions.

The text does not need to link to anything its simply for a visual effect to make the cartoon character look like he is asking a new question every 15 seconds,

Would be great also if i can make it randomly pick a question rather then load the 1st, 2nd, 3rd, 4th ,.,, etc in the text file.

Can anyone show me how this is done? Im very wet behind the ears when it comes to flash/actionscript.

Thanks

External Text File Or Php?
i have a site to design for a client. i know about external text files integrating with flash mx but i was wondering if i need to use php at all. the site will be int he region of 40-50 pages with about 30 of those pages being roughly the same in design with different textual content (obvuously) i would like to know if php needs to be used (php/mysql) or will external textfiles be enuff. there are graphics there aswell. if i bring the graphics into flash then the file size will raise but if i can get them dynamically loaded then the filesize wont be so big.

what would you suggest. i have a php validation and submission script for the forms so i dont have to worry about that.

External Text File
I'm creating a projector file for a client and I need to give them the ability to change text within the presentation. I'd like to setup a txt file but I don't know how to make the whole thing work. I need some help bad. Can someone help me or point me to a tutorial for help. Thanks in advance.

External Text File .lml
Hi, I've been asked if it's possible for flash to load a text file from a different domain, with the extension of .lml . And then parse the data found within it (ie it won't be formatted for loadvars). I know I can format the data if I can get it into flash, but the only way I can think of getting it into flash is by first getting the file using php and then passing the data over to flash?

Thanks
James

External Text File
When I put this code in my flash movie I get this inside by text box: [object URLLoader]. I don't get it. What's the deal here?










Attach Code

infoBox.portfolioButton.addEventListener(MouseEvent.CLICK, showBox);
infoBox.portfolioButton.buttonMode = true;
function showBox(event:MouseEvent):void {
infoBox.play();
if (currentFrame == 1) {
var externalReq:URLRequest = new URLRequest("aboutMe.txt");
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalReq);
externalLoad.addEventListener(Event.COMPLETE, textReady);
}
function textReady(event:Event):void {
infoBox.infoBoxText.text = externalLoad;
}
}

External Text File
I will be creating a site where I need to make one portion bring in data from an external text file. One that people can edit that are not technical. I wanted to know if there is a way to do this and if I can make some sort of template where they can make certain things bold or different colors. Any ideas??? THANK YOU

External Text File
Hi everyone,
First of all thank you for running such a great site, it is so so helpfull!
I have a little question.
I'm trying to use external text file with flash mx. What I want to do is to define a variable in the text file.
I want to be able to define the default content of a projector on my site from a text file so I would have a text file with something like "web/client/project.swf" inside and I want to be able to pick it up from within my movie clip using loadMovie(); where the "url" attribute would be my text file content.
Any Idea??
Hope this makes sense.
Thanks in advance
Olivier

Need To Put In & In External Text-file
Can someone help me with this? I have made a gallery with externally loaded images and text. The text comes from a .txt file. The textfiled is rendered in html.
The text-file loooks something like this:
textNo1=<html>This is the text where I need to put an &</html>&
Now my lient needs to put an &-sign. I have tried to use the & and also the excape code u0026 but it doesn't work, at least not the way I am doing it. Does anyone know how to do this? Is it possible?

External Text File
Hi,
I am opening a an external text file. Everytime I put a "&" in the text everything after that disappears. I have a link that text file and the link contains "&" in it in the middle. Can anyone help please.

Cheerio

External Text File
Hi all,
Im trying to open an external text file with the help of button. It works locally on my computer. But as soon as i upload it on my site, it does not work any more. Can any one please look at the code and tell me what im doing wrong. Im not sure, if im putting the wrong path.

on (release) {
_root.flying_pages.empty_holder.loadMovie("1.jpg") ;
loadText = new loadVars();
loadText.load("1autumn.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_root.flying_pages.newsBox.html = true;
_root.flying_pages.newsBox.htmlText = this.myNews;
}
};
}

Please help me. thanks

External Text File
loadVariablesNum("testimonials.txt", 0);
gotoAndPlay("load");


This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.


Any Ideas?

External Text From XML File
hi I'm making a flash movie that contains about 50 buttons. at the moment, i've got each button's action set to:

on (release) {
gotoAndPlay("lots", 1);
title = "LOT No. 13";
status = "AVAILABLE";
price = "Contact Listing Agents for details";
}

what I need to do here is call the info from external files. so I'll have 1.xml, 2.xml, etc. Each one of these xml files will contain the proper info I need pulled when someone clicks on one of the buttons, BUT I do not know how to make this happen. Tutorials have not helped me at all as of yet.

can someone make me a quick sample .xml file and a code snip that I can use on each button? it must include that gotoAndPlay("lots", 1); so that I can re-use the same scene i'm using now and the new action should call the proper xml file to load in three variables: (title, status and price) are the variables I've got set at the moment.

thanks

External Text File
Code:
commandsA=Breakfast&commandsB=Lunch&commandsC=Dinner&commandsD=Drinks&a1=Clear&a2=Return TRX&a3=Reprints&a4=Enter
is there a way to get this vertical?
like this:

commandsA=Breakfast&
commandsB=Lunch&
commandsC=Dinner&
ect.

where Flash would still like it?

External Text File
guys, do u have other tutorials for a more effecient way on how to get data from an external text file?

i also need tutorials for posting data in a text file.. if u know any tutorials, please post them here.. thanx!

More Than One External Text File?
I need some help again, i have my movie loading a external .txt file.. it loads into a MC named main (which will be the main info area of the site)

that file seems to load just fine, but i also have a news area on the side and i have used the same tech that i used on the main MC but it just doesnt want to load!

please help me!

thank you!!

External Text File
ActionScript Code:
loadVariablesNum("testimonials.txt", 0);
 
gotoAndPlay("load");


This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.


Any Ideas?

External Swf File Does Not Load External Text
Hi,
I have an external text file that loads dynamically in my swf file.
It uses the actionscript:

loadVariables("joblist.txt","_root");

When I play the swf it works perfectly with the text scrolling in the dynamic text field, but when I load this swf file into my main swf file with loadMovie, the text does not appear.
I have tried embedding the fonts in both files, but it still does not show up when loaded into the main movie.
Can anyone help me with this?

Dynamic Video File Name (pass URL From External File To Variable)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes or maybe i just don't get how to pass a variable to a function.


ActionScript Code:
var vfile = "path";supervideo = function () {    var netConn:NetConnection = new NetConnection();    netConn.connect(null);    var netStream:NetStream = new NetStream (netConn);    video.attachVideo(netStream);    netStream.setBufferTime(10);    netStream.play(vfile);    };loadText.load(_global.text_url1);loadText.onLoad = function(success) {    if(success){            showtitle.text = this.title1;        vfile = this.flv_name;        supervideo();        }    }


The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I have tried defining the variable w/ and w/out the ":String". The video portion of the code seems to not use the variable correctly when it is in a function. If you have suggestions or see any errors please let me know. Thanks!

File is here (in MX format, though i am using MX2004) if you have time to take a look.

Dynamic Video File Name (pass URL From External File To Variable)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes or maybe i just don't get how to pass a variable to a function.


ActionScript Code:
var vfile = "path";supervideo = function () {    var netConn:NetConnection = new NetConnection();    netConn.connect(null);    var netStream:NetStream = new NetStream (netConn);    video.attachVideo(netStream);    netStream.setBufferTime(10);    netStream.play(vfile);    };loadText.load(_global.text_url1);loadText.onLoad = function(success) {    if(success){            showtitle.text = this.title1;        vfile = this.flv_name;        supervideo();        }    }


The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I have tried defining the variable w/ and w/out the ":String". The video portion of the code seems to not use the variable correctly when it is in a function. If you have suggestions or see any errors please let me know. Thanks!

File is here (in MX format, though i am using MX2004) if you have time to take a look.

How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!

Could anyone suggest a piece of advice to visualize the following idea?

I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.

I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.

I should be most thankful if anyone cared to come up with a solution.

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...

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...

External Text Loaded Into Text Field Won't Change File Attached
I have 3 textfields in 3 different frames. Each text field is for a different section of my website. I want to keep all the code that works for 1 textfield and just change the URL that is loaded. I tried so many different ways. I don't get a error so I believe the URL is being cached somewhere. When I trace it It shows that the other text doc has loaded but the text field doesn't show any change. Is there away to reload/stop cache/delete a variable?


PHP Code:



stop();var newsURL:String = "text/news.txt"//Below is other variables if you wanted to swap out the actual variable versus the url./*bioURL:String = "text/bio.txt"tourURL:String = "text/tour.txt"*///var newsURL:String = "text/news.txt"var textLoader:URLLoader = new URLLoader();        var textReq:URLRequest = new URLRequest(newsURL);var style:StyleSheet = new StyleSheet();//style defined belowstyle.setStyle("a" , {color:"#CC0000"});style.setStyle("a:hover", {textDecoration:"underline"});function textLoaded(event:Event):void{    text_mc.text_txt.styleSheet = style;    text_mc.text_txt.htmlText = textLoader.data;    }textLoader.load(textReq);text_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;textLoader.addEventListener(Event.COMPLETE, textLoaded);function onClickNews(event:MouseEvent):void{    newsURL = "text/news.txt";// I tried including this in the button textLoader.load(textReq);// also this    gotoAndStop(1);}news_btn.addEventListener(MouseEvent.CLICK,onClickNews);function onClickBio(event:MouseEvent):void{    newsURL = "text/bio.txt";    gotoAndStop(2);}bio_btn.addEventListener(MouseEvent.CLICK,onClickBio);function onClickTour(event:MouseEvent):void{    newsURL = "text/tour.txt"    //var newsURL:String = "text/tour.txt"    gotoAndStop(3);}tour_btn.addEventListener(MouseEvent.CLICK,onClickTour); 




Please help Thanks
http://www.theofficialvip.com/testUR...RLSwitcher.zip

Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.

Thanks

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