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








Preloader For External Text File


How would I make my text files preload? as i have a site where the text takes longer to load than the page leaving it looking messy.

Can this be done?




FlashKit > Flash Help > Flash ActionScript
Posted on: 11-23-2003, 12:15 PM


View Complete Forum Thread with Replies

Sponsored Links:

Preloader External Text File With Images
Hi,
I need some tips if it is possible...
I am loading external text into textBox. That text file contain some text and <img src="images/image001.jpg"> etc.
Everything works just fine. I need to make preloader which will preload text file and all images from HTML tags. Trace gives me the size of a text file, not size of images.


//thx;





























Edited: 05/11/2008 at 08:39:51 AM by vandergrof

View Replies !    View Related
Including External Swf File With Preloader In Main Swf File
I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){
movieClipName.stop();
delete this.onEnterFrame;
}
}

my problem is that this file is around 3mb. I created a preloader with it, with the code


onClipEvent (load) {
total = _root.getBytesTotal();
} onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
percen101 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
;
;
}
}

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

Thanks for your help

View Replies !    View Related
Including External Swf File With Preloader In Main Swf File
I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){
movieClipName.stop();
delete this.onEnterFrame;
}
}

my problem is that this file is around 3mb. I created a preloader with it, with the code


onClipEvent (load) {
total = _root.getBytesTotal();
} onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
percen101 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
;
;
}
}

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

Thanks for your help

View Replies !    View Related
Including External Swf File With Preloader In Main Swf File
I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){
movieClipName.stop();
delete this.onEnterFrame;
}
}

my problem is that this file is around 3mb. I created a preloader with it, with the code


onClipEvent (load) {
total = _root.getBytesTotal();
} onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
percen101 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
;
;
}
}

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

Thanks for your help

View Replies !    View Related
Including External Swf File With Preloader In Main Swf File
I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){
movieClipName.stop();
delete this.onEnterFrame;
}
}

my problem is that this file is around 3mb. I created a preloader with it, with the code


onClipEvent (load) {
total = _root.getBytesTotal();
} onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
percen101 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
;
;
}
}

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

Thanks for your help

View Replies !    View Related
Preloader For External Swf-file How?
Hello,

I am not very experienced with Flash. I have the following problem:
I have a swf-file(unfortunately not the fla-file as it was generated with swish). It has about 240kb. So I want to install a preloader with a bar, that shows the loading process and when it is 100% loaded the swf-file should start.
I would be glad if anyone could help me with this problem. My own actionscripting skills are too low for it.

Thanks in advance
Greetings

Markus

View Replies !    View Related
External File & Preloader
Hi, I am not sure if this is the right forum to ask...

But how do you load in external file swf that contains an image, that also shows the preloader waiting for it to load into the main swf? Like it shows on this site. http://www.jamesgood.net/

Thank you.

View Replies !    View Related
Preloader For External SWF File
I'm sure this question has been brought so many times, but I'm unable to find exactly what I want...

I have one huge central movie clip (I'll call it MAIN) and inside that one there is another movie invoked by one of the buttons from the MAIN. When second one is open on the screen, in the last frame I want to load another MC, but this time external MC. So, as soon as second animation is triggered, at the last frame I want my external MC to load.

No problems with that. I made an empty MC, named it CLIP1 and placed it on the last frame of my second MC (the one that's nested into MAIN). On the last frame, I added this line:

loadMovie("ExternalMovie.swf", CLIP1);

Everything is fine, and movie gets loaded once the last frame is hit, but the problem is, that ExternalMovie.swf is around 380kb (no problems here since I am on ADSL, but I don't want other people that are still on Dial-up to wait too long). I also added nice little preloader to the external movie, but I never see that preloader. There is always slight delay and until whole external swf file is loaded, I don't see anything... and I should see preloader showing process bar... I have to say, preloader works great in main movie, since I use exactly the same script... and also, I can see preloader when main movie is loading... but the problem is I never see preloader when I'm dowloading external movie.

Anyone has any ideas please ? It would be greatly appreciated !

Thanks in advance and everybody have a great day !

Cheers !

View Replies !    View Related
Loading An External Swf File (preloader)
Here's my problem. Not sure how to do this, i'm not the flash regular here, just filling in while we get a new guy.

I've made the 'preloading' animation into load.swf. Now what can I do, so that the cartoon, will play load.swf while cartoon.swf is downloaded by the user?

I'm thinking that I'll need to find out what code to use so that this will work. Basically cartoon.swf will run load.swf, and keep running it while it does like a math calculation to see if the last frame of the cartoon has loaded. If not, keep running the preload, otherwise run the cartoon.

Anyways, I've got that down, I just need to know the scripting for something like this.

Can anyone help with this?

Big thanks in advance.

View Replies !    View Related
Check This FLA File :: External Preloader
Hi,

I Got problem with External preloader.

This is my Fla file, Can check for me the script on the external preloader, The Main.swf is working but not for external a,b and c.swf.

http://homex.coolconnect.com/member3.../download.html

Thanks.

Regards,
Amiwai..

View Replies !    View Related
External Jpg File Included In Preloader
Hey smart people,

i have a standard preloader for my main flash file.

I am putting a random function in for the background images so they cycle on site re-visits such as:

loadMovie("image" + random(10) + ".jpg", "_root.container");
}

The thing is... does the preloader incorporate this jpeg filesize in the 'getbytes' of my preloader for the complete swf file?

Hope I'm making sense...help appreciated

View Replies !    View Related
Preloader For A TRUE External File
okay.. i'm sure this is easy, but its giving me a headache!

Everyone knows how to code a preloader on the first frame of the external file that's being loaded... but how do you code a preloader for a movie that's not on the same timeline (i.e. the root's timeline)?

Flash MX

View Replies !    View Related
How To Make Preloader For External Swf File
I am loading an external swf file(which contains video) on button press. How to make a preloader for it. I am using Flash mx.

Thanx in advance

View Replies !    View Related
[F8] Need A Good Preloader For External .xml File
Hi,
I am new to actionscript and am currently using the following script to load 25 images into a movieclip container ("lgpicture") from an external .xml file. The problem is that each image loads individually and there is a long pause between viewing each image for the first time. Instead I would like, if possible, to use a preloader that will load all images at once, before any image is viewed with a percentage bar or something like that. I am unfortunately unable to compromise on the image size (some well over 500K) but one long pause in the beginning is much more favorable than pausing between each image. I would really appreciate any help I can get!!!

code:
lgpicture._x=0;
lgpicture._y=30;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images1lg.xml");
/////////////////////////////////////


/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = lgpicture.getBytesTotal();
loaded = lgpicture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (lgpicture._alpha<100) {
lgpicture._alpha += 10;
}
}
};
function firstImage() {
if (loaded == filesize) {
lgpicture._alpha = 0;
lgpicture.loadMovie(image[0], 1);
desc_txt.text = description[0];
lgpicture_num();
}
}
function lgpicture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

View Replies !    View Related
Preloader Also Calculate External File
I have splitted my swf into two files, to make it start up quicker.
so i have an "importent swf" file and a "extra cool stuff swf".

My problem is that i have an preloader in scene 1 that shows a counter from 0-100 when it preload the "importent swf". When that´s loadet it goto scene 2.

In scene 2 i have a empty movie clip with an ActionScript:loadMovie("svaevende toej.swf","toej");
this is my "extra cool stuff swf" as is supposed to be loaded in the back.
My problem is that the preloader starts up again and show a new counter from 0-100 for the "extra cool stuff swf" file!!!!
Since i want it to load in the back without interrupting what people are dooing, i need help to stop the preloader after it has loaded the "importent swf".

Confused??? well just write and i will provide with so much info as i can!!

View Replies !    View Related
Percentage Preloader For External File
i'm loading a .swf into my main movie and the file i'm loading is kinda big. so i want a "loading" animation that gives the percentage of the file being loaded and not the percentage of the main movie...

i tried putting the getBytesLoaded stuff into the .swf being loaded but once the main movie starts to load it, it counts the bytes of the main movie (very small filesize) and not the file being loaded...

is anyone not confused enough to point me in the right direction?

THANKS!!!!

View Replies !    View Related
External File Preloader WITH Percentage
Anybody finished Claudio's preloader tutorial?? Great tutorial... preloader works fine for me. However, I tried tweaking it a bit and cant get a part to work. Maybe someone can suggest a fix. I'm pretty sure its a simple thing I'm not seeing. Basically, I adapted the design totally, but chose to display a percentage along with the animated "loading..." thing there.

One difference is that my buttons are located in the Transition movie clip and the loadText dynamic text field(where the percentage is displayed) is also in the Transition movie clip.

Here's the code I attached to Content movie clip:

onClipEvent (enterFrame) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadText.text = Math.round(getPercent*100)+"%";
if (!loaded && this._url != _root._url) {
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}


If you visit http://www.brendonblake.com you'll see the busted result.

For a deeper look the fla is downloadable at: http://www.brendonblake.com/bb7.fla


I've spent the past week trying different things and cant seem to fix it.


ANyOne???

View Replies !    View Related
[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

View Replies !    View Related
Preloader Checking Root And External File
Hi
I have a movie (bookMovie) in the main scene with an external swf attached to it.
I have a preloader on the first frame of my timeline. I want the preloader to check both the root and the external file before it starts.

here is the sample of my code (it's actually an old solution posted on macromedia forum, but somehow it doesn´t work!):

this.onEnterFrame=function(){
if(((_root.getBytesLoaded()+_root.bookMovie.getByt esLoaded())==
(_root.getBytesTotal()+_root.bookMovie.getBytesTot al()))&&
(_root.bookMovie._url!=this._url)){
gotoAndPlay(1);
this.onEnterFrame=null
}
}

can anybody please give me a hint??
thankx so much
vbpaixao

View Replies !    View Related
[FMX] Including External File In Parent Preloader
Hello,

I'm trying to load a random background image into a flash movie but would like to have a preloader that covers both files. It seems that the file size of the external .jpg image is not added to its parent's movieclip until it has fully loaded, but by this time it is too late to be included in the parent clip's preloader.

Any thoughts?

Thanks!

View Replies !    View Related
[FMX] Including External File In Parent Preloader
Hello,

I'm trying to load a random background image into a flash movie but would like to have a preloader that covers both files. It seems that the file size of the external .jpg image is not added to its parent's movieclip until it has fully loaded, but by this time it is too late to be included in the parent clip's preloader.

Any thoughts?

Thanks!

View Replies !    View Related
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

View Replies !    View Related
Loading Both And External Sound File And The Movie With The Same Preloader
i made a movie.swf with several scenes. then i made another movie with just sound called sound.swf that i have load in the first frame of the second scene in level 2 so i can have it play over the whole movie becuase of the multiple scenes. in the first scene i have the movie.swf load with a preloader. is there anyway that i can have both the movie.swf and the sound.swf load with he same preloader. the reason i want the sound.swf to preload is because it loads late in the second scene. the url for the movie is:

http://www.geocities.com/aviewfromth.../3seconds.html

can anybody help? thanks

View Replies !    View Related
[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.

View Replies !    View Related
[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.

View Replies !    View Related
Adding Preloader Into External Swf File For Transition Loading Question
Hi guys, i m doing a website base on the tutorial from Kirupa tutorial here http://www.kirupa.com/developer/mx2004/transitions.htm .The website button function and External swf transition scripting is base on that tutorial. it would be great if i could let peoples to see the preloading process while my web loading the external swf file.. can any one here tell me how to add a preloader to show loading progress every time the external swf files loading? Thanks

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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...

View Replies !    View Related
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...

View Replies !    View Related
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...

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Load External Text With Html In Text File...links Possible?
hello forum.....

I loaded an external.txt file into my flash news section so it will be really easy to edit... my problem is when I try to add HTML.. as in ahref tags... the words that are supposed to show up as "links" do not!! I have the html text box checked in the character properties too... is this at all possible ?

View Replies !    View Related
Loading External Text File Into Text Area (flashMX)
Hi,

I am trying to load text from an external text file into a textarea in FlashMX. I am able to set the contents of the textarea by using a string ("test thingy"), but I was wondering if anybody could point me in the right direction on hoe to include text from an external file.

Used to set string:
scroller.text="test thingy";

Thanks a bunch,
Niklas Wahlberg

View Replies !    View Related
Loading HTML/Text From External Simple Text File…
To all the Flash Gurus:

Basically how do you do the above? I've gotten very small snipets of text to load from an external text file, but there was probably at maximum 50 characters. This is even after a long load time and a very fast connection (T1/off of the HD).

I'm trying to get this to work so that I don't have to update the flash files to update the text - or rather so that someone else can update them w/o me acting as a middle man except for special occasions. The best example, I think, of what I'm trying to do is www.spartamusic.com

Thanks-
Davin

View Replies !    View Related
Using Text File For Dynamic Text Field From External Domain
I have a .SWF file on a (we'll say original.com, for reference purposes)... I have a dynamic text file in that .SWF file, which is currently loading a text file using the loadVariables function. I would like the movie to start loading the text file from another server, which we'll call new.com, for reference purposes.

I'm told that Flash will not load files from external domains, but is that it - end of story? Is there any way I can somehow get this to work?

I know some stuff about PHP, so maybe that'll help?

Any help would be greatly appreciated... Thanks.

View Replies !    View Related
HTML Text In A Dynamic Text Box Called From An External .txt File
Hello,

I am trying to get a .txt file containing html text to load into a dynamic text field in flash.

All of the tutorials I have found and the books I have read all do this with a button. I need this to be done without a button.

If anyone knows of a tutorial or could help me out please let me know.

I am using Flash MX 2004 on a mac

Zard

View Replies !    View Related
Reading External Text File Into Movie Text Boxes
So I'm trying to read a simple text file into an array and then putting that text into the dynamic text boxes of 6 movie clips

the MC are instances of 'CategoryBox'. Each instance is name cat1, cat 2, so on.

In the parent movie file the dynamic text box instance is called 'catText' and variable 'catText'.


Code:
// load the text file for Titles Questions
this.loadVariables("title.txt");

//Lets get the game going
this.onEnterFrame = function(){


//Titles loads? FIRE!
if(titles!=null &&titleArray==null){
titleArray = titles.split(";"); //makes new_ARRAY into an array having values of strings separated by a semicolon
trace (titleArray);
//title generations
for (z = 0; z < titleArray.length; z++) {

this.cat[z].catText = titleArray[z];
}
}

}
now trace shows the titleArray is getting it's goods, but the text in the clips is "_level0.cat2.catText"

text files reads as such:
titles=blah;blah; so on

View Replies !    View Related
Auto Scrolling Dynamic Text From External Text File
Hi guys,

I'm loading a text file into a dynamic text box using LoadVars, and I've got it to scroll using this code:


Code:
var myInterval = setInterval(scrollUp, 500);
function scrollUp() {
_root.text_mc.textbox.scroll += 1;
}
...but there are two problems. One, the client says it's too jerky (as it's doing it a line at a time, rather than a smooth scroll), and two, the client would like it to be like a news scroller, meaning it automatically scrolls to the bottom of the text, and then the start of the text appears underneath and keeps scrolling continuously. I hope I've explained myself reasonably well!

If someone could help me out with these two things, I'd really appreciate it - cheers!

Boog

View Replies !    View Related
Text Effect On Multiple Objects From External Text File
Hello to all, I am having a lil problem and no one seems to be able to help me.

I am working on an interactive map, the map will contain different countries, each country is a movie. Each time the user click on a county it displays text in a dynamic field using a typewriter effect. (the text is imported from an external text file)


This is what I have so far:

var myMessage:String = "";
myData = new LoadVars();
a1_mc.onRelease = function(){

myData.onLoad = function(){
myMessage = this.a1message;
};
myData.load("texteffect.txt");

var i:Number = 0;

function autoWrite():Void {
if (i<=myMessage.length) {
monitor_txt.text = myMessage.substr(0, i)+"█";
i = i+1;
} else {
clearInterval(writingInterval);
}
}
// calling the function repeatedly with setInterval() method
var writingInterval:Number = setInterval(autoWrite, 20);


}

now this works Great for the one country “a1_mc”, but I have a lot of them: a1_mc, a2_mc, a3_mc, a4_mc……ect….., for the text it goes the same way: a1message, a2message, a3message….ect….

How can I set it up so it displays the right text for each country once clicked?
Keep in mind that I am using one dynamic field all of them.

Here is a sample of the project, i just started it so.....
cick on the top right country/sector of the map to see what i Mean (a1_mc)


http://wirelessconcepts.us/test/tacticalmap.swf

thank you

View Replies !    View Related
Uploading An External Text File Into A Dynamic Text Field
I have created the dynamic text field, Now I need to know the code to upload the text from the txt. file from the server.

Thank You.

View Replies !    View Related
Fading Random Ordered Text From External Text File
Newb to flash. Watching various tutorials trying to come up to speed.

What I would like to create is a small flash ap that displays text in a randowm order from an external text file. I wantot create a small text box in the sidebar of a web page where customer references are displayed in random order. (so users dont see the same ones each time) I want the text to fade in and out as the next text item is displayed.

Can someone kindly point me to a resource that is close to helping to create this? Or; is flash the wrong way to go for this?

Curt





























Edited: 12/02/2006 at 12:22:31 PM by cwrig

View Replies !    View Related
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?

View Replies !    View Related
Auto Scrolling Dynamic Text From External Text File
Hi guys,

I'm loading a text file into a dynamic text box using LoadVars, and I've got it to scroll using this code:


Code:

var myInterval = setInterval(scrollUp, 500);
function scrollUp() {
_root.text_mc.textbox.scroll += 1;
}
...but there are two problems. One, the client says it's too jerky (as it's doing it a line at a time, rather than a smooth scroll), and two, the client would like it to be like a news scroller, meaning it automatically scrolls to the bottom of the text, and then the start of the text appears underneath and keeps scrolling continuously. I hope I've explained myself reasonably well!

If someone could help me out with these two things, I'd really appreciate it - cheers!

Boog

View Replies !    View Related
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?

View Replies !    View Related
[F8] External Text Preloader?
Hello,

I'm trying to stop a movie clip from moving into view once the text of an external file has been loaded... is there an easy way to achieve this?

(The text is actually a 'swap' from text1.txt to text2.txt, etc which might complicate things?!?)

Is there something as simple as this at all?


PHP Code:




text_total = _root.blog_text_holder.blog_text_box.htmlText.getBytesTotal();
text_loaded = _root.blog_text_holder.blog_text_box.htmlText.getBytesLoaded();
text_percent = Math.round((text_loaded/text_total)*100);
if (text_percent == 100) {
    //move the object
    }







Many thanks for any help in advance!

View Replies !    View Related
External Text File Used In Flash Text Field
hi,

I am working on an fla project that loads an external text file. The problem is, when I put a return into the external text file, I get a double return in the flash textfield. (I would like the double return in the flash textfield to take the single return from the external text file, and not create a double return.)

My question is, can I use a code in my external text file to make the flash textfield behave correctly. Or, is their some sort of flash setting that will fix the problem.


can you help?
thanks

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved