Loading External SWF File
I have built a preloader I want to use to load a second swf file, as the other file is quite large. I can make it preload the movie it is in, is there any way I can get it to preload an external SWF file? I am using Flash 5. Thanks in advance.
FlashKit > Flash Help > Flash Newbies
Posted on: 08-06-2002, 09:59 AM
View Complete Forum Thread with Replies
Sponsored Links:
Loading External Swf Which Load External Txt File
Hi,
My main movie loads an external swf with the following:
code:
createEmptyMovieClip("contRight_mc", 5);
contRight_mc.loadMovie("contHome.swf");
contRight_mc._x = 485;
contRight_mc._y = 0;
contHome.swf loads an external text file and stylesheet:
code:
loadVariablesNum("contHome_no.txt", 0);
globalStyle = new TextField.StyleSheet();
globalStyle.load("global.css");
hdrHome00_txt.styleSheet = globalStyle;
hdrHome00_txt is a dynamic text field with the variable hdrHome00, which is used in the loaded text file:
hdrHome00=<html><body><hdr>text</hdr></body></html>
All files are currently in the same directory. When I test contHome.swf (the swf loaded by the main movie), everything works. But when I test the main movie the text does not load, or at least it does not show up as I receive no errors in the output window, and I can't figure out why. Can anyone help?
View Replies !
View Related
Loading External Files Within External File
Is there a way to load an external file from within an already loaded external file?
Example:
I want to do a section devoted to blog entries. So, I was wanting to externally load the dated references in one textbox on the right side, and when the user clicks on one date, it loads the referenced text file into the larger box next to it.
Any ideas of how to accomplish this?
Thanks!
bbbco
View Replies !
View Related
Loading External Swf File Into Another Flash File
Hello,
I made a slideshow as a .swf file and I used the ULLoader to import it into another flash document. It works fine when I test the movie, but when I email the new .swf file with the slideshow I get this message.
Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///Users/juliabay/Library/Mail Downloads/Adrian_Slideshow.swf
Help! What does this mean?
Thanks in advance,
Julia
View Replies !
View Related
Loading External AS2 File Into AS3 File.
Hi all,
I've made a quiz using the actionscript 2.0 flash templates (recommended by my teacher), however the teacher has just informed me that Flash CS3 won't allow it to be loading externally and that I have to start all over again.
Is there anyway to load my quiz (as2) into my main as3 file? I really don't want to have to start again.
Thanks,
Jess
View Replies !
View Related
Loading An External File?
Hi,
I will try to explain what i am trying to do (I am not very experienced in the actionscript area)
I have a main movie, in which there is a MC. Now the MC is set to "visible 0". when the user selects it from the menu its then visible... So far so good.
Then in the MC I want to load an external .swf, which would be a photo gallery (saving loading time on the main movie)
The MC can be "picked-up" and moved, like you can when you click the blue bar on a program to move is form one place to another on the screen! With me so far.... good.
I want to load this swf file into the MC in a set place (X=249.6 and Y=127.5). All I seem to be able to do is load the swf file, but not in the MC, its in the main timeline!
I have tried adding a MC to the current MC, and putting a "Onload" action on frame 1, but again it loaded it into the main timeline...
If anyone can help I would be grateful.
Neil
View Replies !
View Related
Loading External .swf File
I am in the middle of a nightmare! I'm trying to load an external .swf file into a mc.
The mc has an instance name and it is on the main time line before ( and after) the loadMovie event occurs.
Both files are in the same directory.
My frustrating thing is this - if I view the main movie via the flash player (locally) and then call the the external clip - it loads fine. However if I'm viewing the main movie via a web browser, again locally - it doesn't work.
Please, please, please. I'm going mad!
View Replies !
View Related
Help With External File Loading
Im using Flash MX and let me explain what im doing first. Well I have a flash movie playing, by default at beginning it loads the external file "news.swf" into the movieclip 'themovie', on my navigation bar every button that you push is set to load a new external file into the 'themovie' movieclip. That problem i have is that if "news.swf" is loaded already it loads it up again with the slide in effect. This is my best stab at the code for it, but im not really an Action script guy lol...can someone help me with this?
if (_root.themovie.loaded == "news.swf") {
stop;
} else {
_root.themovie.loadMovie("news.swf");
}
View Replies !
View Related
Loading External Txt File
I am trying to put a news section on my site that loads the txt from a txt file. I followed the tutorials on here, but I cant get it to work on the site im working on now. I have gotten it to work befor, but can figure whats wrong now.
I have:
loadVariablesNum ("news.txt",0); - on the first frame of the movie.
and I have the text box in a movie clip.
Anthony C
View Replies !
View Related
Loading An External .swf File?
Hi
I am using Flash 5.
Would you perhaps know how to load an external .swf file into a website?
While one is visiting my website, I want them to be able to click a button on the home page which will load another .swf file into the same window.
I don't want this .swf file to initially load with my website as it will take too long. That is why I would like it to load separately if someone selects to view it.
I have checked the Actionscript Reference provided by Macromedia, but I am very confused with "( url, target, method )"??
Please help!
View Replies !
View Related
Loading External SWF File
Question:
Can I load an external SWF file and goto a particular frame in the SWF file that I’m loading all in one press of a button?
I have no problem with the load command:
on (press) {
loadMovieNum("movie.swf.",2);
}
and then navigating the new SWF file once it’s loaded by pressing the button again
on (press) {_level2.gotoAndStop(15)
}
but I can’t seem to load the movie and goto, “say frame (15)”, in one click of a button.
Any feedback would be appreciated.
Thanks,
Tom
View Replies !
View Related
Loading An External .txt File
Okay, here is the story
I am building a site for my father-inlaw.
on the stage (it is only one frame) I have a movie clip with a dynamic watch mc
also on the stage, I have a dynamic text box with the scrollable feature turned on and the instance name of textbox.
this is the script I used in the scripts layer of my movie
loadVariables("welcome.txt", "textbox");
It doesn't work...
I have tried this
loadVariablesNum("welcome.txt", "textbox");
but it only loaded the text file in a new browser window.
Any ideas anyone?
View Replies !
View Related
OSX Help Loading External Pdf File
I just completed a sales presentation in MX on my new Mac. When I review my exe file everything is linked and works as was planned. When I review my Mac projector or swf file, my link to an external pdf does not work. It opens a browser window and cannot find my pdf document.
Is there some other code I need to put in to launch Acrobat Reader and load the external pdf when on a mac. We would really like this to be cross platform.
Thanks
Debbie
View Replies !
View Related
OSX Help Loading External Pdf File
I just completed a sales presentation in MX on my new Mac. When I review my exe file everything is linked and works as was planned. When I review my Mac projector or swf file, my link to an external pdf does not work. It opens a browser window and cannot find my pdf document.
Is there some other code I need to put in to launch Acrobat Reader and load the external pdf when on a mac. We would really like this to be cross platform.
Thanks
Debbie
View Replies !
View Related
Loading External Swf File
I'm trying to a load an external swf file into a movie clip in another flash file. I tried using the Loadmovie actionscript but there is a problem. It loads fine but it continues to play and stays on the screen. I want it to go away when another button is selected. When you click another button it points the timeline to another label, away from the external file, but the movie still plays. Whats the best way to have the external file play and be controlled by buttons?
View Replies !
View Related
Loading External AS File
Hi guys
does anybody know how to link an extrenal AS file
I want to change actions dynamically so that whenever i make changes in .as file it should be automatically reflect in the movie (just like we used load variables to read text from external txt file)
anybody??
View Replies !
View Related
Loading An External File On Top
I have a main SWF file...from inside this MAIN swf file I am calling a MovieClip to come and within that movieclip a SEPARATE swf file is being loaded into the MAIN swf.
the Separate swf file loads right on top of the main swf's buttons so there will be a mouse over conflict between the two.
so I added this line to the button that loads the SEPARATE swf into the MAIN swf:
after load movie separate
_level0.visible = 0
assuming that level0 means the main swf. But it didn't work
then I tried adding it in my separate SWF file, adding it in the first frame of the swf:
_level0.visible = 0
didn't work.
All i am trying to do is that make the underneath level disable while there is a swf loaded on top of it and right when the separate swf is unloaded the main swf becomes active or visible.
View Replies !
View Related
Loading External File
i have made a site with flash and got a small prob when loading external swf. i have btn's in the main movie which has a blank container movie in the middle. and the main moies background is blue.
thing is when i click the btn to load the external movie the part that container movie covers goaes white for a second bfore the external movie loads....this looks very ugly.
can it be made more smoother so that the user dont see a blank white space before the movie loads?
View Replies !
View Related
Loading External Swf File
In one of my first web sites, www.buenosw.com, I was able to make seperate swf files and then have thoses external swf files loaded onto my main stage with a click of a button, and choosing diferent levels so everything else stays while still loading that swift file. This was in flash 5 and now i am using Flash MX and cant for the life of me figure out how to do so. Please help.
thnx in advance.
View Replies !
View Related
Loading External Mp3 File
I need some help. I built a website for a musician. He wanted samples of his songs on the website and I made the buttons and gave the script:
on (release) {
getURL("http://2heavenorbust.com/sounds/01track1.mp3","_blank");
}
When it I click on the button it takes me to a page that says action cancelled. I then hit the refresh button on the browser and then it gives the choice to play or download the sample. Is there an easier way. I would have imported the files on the site but he wants a loop playing at all times.
Any help would be appreciated.
View Replies !
View Related
Loading From An External File
I have a nice little text file, and all I want to do is load it character by character? Is that possible? If not, I guess I could load it into a string, or something so I could check it character by character. My real problem is not understanding how to load (and only load, not do some funky thing where I display it to a dynamic text file) from a text file. All I want to do is load the contents of a text file (those contents being "Blearg") into a string variable, so that I could do all the neat stuff with it. Ultimately I want to be able to load the text from a file, and examine it character by character to build a world map. That would allow me to design my levels in text files, and be done with it.
If anyone has any suggestions about a better way to do it, or "This won't work" or anything, feel free, I'm desperately seeking help.
View Replies !
View Related
Loading An External Jpg File
I have created an empty movieclip Monster on my main timeline. Purpose is to load an external jpeg file (from the same directory as my flash file) into this Monster empty movieclip. This is my code in the Monster clip:
onClipEvent (load) {
this.loadMovie("Monster Ape.jpg", this.getNextHighestDepth);
}
But, the jpg failed to appear on screen.
So, I changed the code to:
onClipEvent (load) {
loadMovie("Monster Ape.jpg", 100);
}
Using the second set of code, the jpg appears on screen but I wonder if this jpg has been loaded in the main timeline or into the Monster clip? Any advice?
Thanks in advance.
Ultraman
View Replies !
View Related
Loading An External Swf File?
Hi I'm trying to load an external swf in a presentation. I tried to use LoadMovie in Actionscript but the only option is to give a URL address. I am using Script Assist as I am not too keen on Actionscripting. I need the presentation to run locally on any computer so I need to know how to set up Actionscript so it will load an swf from a folder on a Hard drive.
I have an swf and I want to be able to click the button and then have it load an extrnal swf and play it locally. Is this possible? How do I do that? I am using v8. Sorry but I treid to search the Forums but I kept getting errors.
View Replies !
View Related
Help With External File Loading.
I have a flash movie that loads external movies. Everything works fine when the swf is run in the standalone player, it also works fine with the html preview from flash. I am running into a problem when I upload it to a web server.
If I put the movie in a web page, it is looking for the external movies at the location of the html file that the movie is embedded in, not in the folder that folds the swf files. I discovered this by checking the Apache error logs.
Code:
loadMovie("movie.swf");
The main flash movies and the external movies are in the same folder, so I am not including any relative path information.
I don't understand why it is looking for the movie where the html is, and not right next to itself.
View Replies !
View Related
External File Loading
I have recently designed this site for a band: www.freewebs.com/phoenixjersey. The problem I am having is that I want to preload the 'Pics' section which is loaded into a holder_mc on the main .swf but the pics.swf loads 12 external .jpgs from an external 'images' folder.
a) Where do I put the preloader_mc and script so that the external jpgs called by the pics.swf will be preloaded? (using the same preloader used to enter the main site)
b) Can this same script be used for each external .swf so that it's content would also be preloaded: 'Biog', 'media' etc. sections?
Any help would be greatly appreciated
View Replies !
View Related
Loading External TXT File Into A MC
Hi all of you,
I have this problem, i need to load an external txt file into a MC where i have the dinamic text where it should appears the info of the external txt file
I can not make this thng work, it loads ok if i place the Dinamic Text outside the movie clip (MC) but not inside it.
It also has to be seen througt a ScrollPlane in the case the external txt has more info that the one i can place in the Dinamic Text
so i give the details and the code i´m using
-The Dinamic txt has the instance name - my_txt
-The MC has the name - textonov
-The external txt has the name - novedades.txt
(this txt it is correctly structured because it works outside the MC,
it starts with &myText= and at the end of text, is &&)
-Thecode i´m using is this one:
-----------------------------------------------------------------------
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
my_txt.html = true;
my_txt.htmlText = this.myText;
} else {
textonov.my_txt.text = 'ERROR LOADING .TXT FILE!!';
}
};
my_lv.load("novedades.txt");
------------------------------------------------------------------------
Please if any of you have an idea to solve this,
i´ll apretiate a lot
thanks in advance
oce
View Replies !
View Related
Loading External WAV File
I am trying to load an external .wav file into my Flash .swf when a corresponding button is pressed in the .swf. What is the code that goes from the .swf to a folder titled "Audio" which contains the .wav and has that .wav play when the button is pressed? I've tried a couple of loadSound(); variations, but no luck. Any ideas anyone? Thanks!
View Replies !
View Related
[CS3] Loading External SWF File
Hello Everybody!
I desperately need your help! I am trying to load an external file for my flash project but it does not work. It keeps saying "Error: A 'with' action failed because the specified object did not exist". I have all the file in my flash file and I don't understand why it keeps prompt when I'm trying to click on Control Test Scene or Control Test Movie. Please help!!! I have zipped the folder and then upload to megaupload. Below is the link.
http://www.megaupload.com/?d=KZFYC790 (4.06MB)
PS: By the way, the external swf file is not in the center of the frame. How do you adjust to make it center? Thank you in advanced!
Happyvince :-(
View Replies !
View Related
Loading My External .SWF FIle
Hi, i dont have a lot of experience with action script and was wondering if any one could tell me the script i need to load my external file called code.swf, it is located at C:UserslukeDesktopUnit 2sbCode.swf
C:UserslukeDesktopUnit 2sb is where my game is located as well.
Thanks For Help
CHeers
View Replies !
View Related
Loading External Swf File
Hi All,
i am new to actionscripting
i have a requirement where in i have to popup a swf file from my application.
pretty much same as you all see in yahoo messenger...
when a user requests for a private chat, it just pops up with a new private chat window
can u guys help me through this plzzzzzz.
View Replies !
View Related
Loading External Php File
Hi All,
Can anyone help me with loading an external php file.
Is it just like loading and external html file ? Ive tried converting the below files names to a .php equivelant, but its not working
thanks
testtxt.html = true;
var format = new TextField.StyleSheet();
//path to the css file
var path = "test.css";
var myVars:LoadVars = new LoadVars();
// Define onData handler and load text to be displayed.
myVars.onData = function(myStr:String):Void {
if (myStr != undefined) {
var quick = myStr;
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
testtxt.styleSheet = format;
testtxt.text = myStr;
} else {
//throw an error if we cannot find the css file
testtxt.text = "Error loading CSS file!";
}
};
View Replies !
View Related
Loading External Swf File
I am a newbie to the whole actionscript world. Almost at "Hello World!" stage. . I am working on a prototype which loads one of the 2 swf files from a swf file randomly. Both my target swf files have just text. Here is the code in my source swf's actionscript:
public function RunApp():void
{
var intM:int = Math.round(Math.random()*2);
var url:String;
if(intM == 0)
{
url = "test1.swf";
}
else
{
url = "test2.swf";
}
var request:URLRequest = new URLRequest(url);
var loader:Loader;
loader = new Loader();
this.addChild(loader);
loader.load(request);
}
But this doesnt seem to load my target swf files.
I would really appreciate anyone helping me on this. Thanks in advance.
View Replies !
View Related
External Loading Of TXT File Help
Ok,
I am trying to loading one .txt file and one .css file for every page of the website I am building (Contact Us Page, About Us Page, Etc...) All of the different pages (Contact Us Page, About Us Page, Etc...) are on the same layer called content. The code and my issue follows:
ActionScript Code:
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("text/htmlText.txt");
var cssLoader:URLLoader = new URLLoader();
var cssRequest:URLRequest = new URLRequest("styles/style.css");
var style:StyleSheet = new StyleSheet();
function textLoaded(event:Event):void
{
cssLoader.load(cssRequest);
cssLoader.addEventListener(Event.COMPLETE, cssLoaded);
}
function cssLoaded(event:Event):void
{
style.parseCSS(cssLoader.data);
external_txt.styleSheet = style;
external_txt.htmlText = textLoader.data;
}
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
This code works for one content page(For example About Us Page) , however, when I try to put it on another page (For example Contact Us Page) on the same layer and test the movie it does not work and I get an error which is attached to this post in the output error window.
What am I doing wrong? Please help.
View Replies !
View Related
AS3 Loading External CSS File
Hello, I am finding some trouble using an external css file in as3 and would appreciate the help
here the code:
Code:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.text.StyleSheet;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
var pageContent:String = "<h1>Please work</h1>";
var txtContainer:Sprite = new Sprite(); txtContainer.x = 50;
txtContainer.y = 100;
addChild(txtContainer);
var myTxt:TextField = new TextField();
myTxt.width = 300;
myTxt.wordWrap = true;
myTxt.autoSize =TextFieldAutoSize.LEFT;
txtContainer.addChild(myTxt);
var cssLoader:URLLoader = new URLLoader();
var cssRequest:URLRequest = new URLRequest("as3styles.css");
cssLoader.addEventListener(Event.COMPLETE, cssLoaderComplete);
cssLoader.load(cssRequest);
function cssLoaderComplete(evt:Event):void{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
myTxt.styleSheet = css;
myTxt.htmlText = pageContent;
}
my CSS file says: h1{color:#FF0000;};
my CSS file is in the same folder as the SWF,
the text appears but is not formatted,
what has gone wrong!!!
View Replies !
View Related
Loading A External Swf File
Hi, im new to the forum.
I have one swf file which is basically five images moving up one pixel every frame using actionscript. The swf plays perfectly once opened in flash but once i load this swf into another flash file using
----------------------------------------------------------------------
ActionScript Code:
_root.createEmptyMovieClip ("holder_mc", 1);
_root.holder_mc.loadMovie ("writing.swf", _root.holder_mc);
--------------------------------------------------------------------
the onEnterframe event in the writing.swf does not seem to work as there is no movement.
Anyone have any ideas?
Thanks cjkmcc
View Replies !
View Related
Loading External .mov Or .flv File
Hi -
I am working on a project where we want to load videos into our flash pages with other flash elements. The movie is not going to repace my flash page. It's going to sit within the flash page with the other things. I am very new to flash, i'm not having any luck at all.
In some cases, when the page loads - we want the video to start on the page when a button is clicked.
Other cases, we want the video to load and start automatically playing when the page loads.
I have .mov and .flv files to work with.
Any help is much appreicated. Thanks,.
View Replies !
View Related
Loading An External Swf File
New to Flash and actionscript I have jumped in at the deep end. I purchased a piece of pre written flash software with editable XML to display an interactive UK map. This has come without the Fla source. My problem is when trying to load the swf into a movie clip on my stage I can not see the map. Something is there because the cursor changes to a hand shape. I just used the following line of code:
mc_loader.loadMovie("uk_ir_locator.swf")
where mc_loader is the instance name of an emty movieclip symbol on my stage.The swf and XML file are both in the same directory as my file. Can anyone help
View Replies !
View Related
Un-loading An External File
How do you unload a movie clip after rolling off of a button?
This is what I have written but it does not do this. The swf file stays showing after I roll off the button....
on (rollOver) {
loadMovie("jeffWoodBioJeff.swf", "target");
}
on (rollOut) {
removeMovieClip("jeffWoodBioJeff.swf");
}
View Replies !
View Related
Loading External Flv File
this might be a dumb question but i want to speed up my swf load time so i want to load my flv video that plays automatically in teh beginning externally with actionscript instead of having it embedded in the swf...however i have no idea how to do this what exactly is the code in order to load my flv file externally and then continue playing the rest of my swf file?
help is soo greatly appreciated :)
View Replies !
View Related
Loading External Txt File
I know I'm missing something real simple.....
trying to load and external txt file from my server using dynamic text box and this script,
this.loadText = new loadVars();
this.loadText.load("text1.txt");
this.loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
the blogger is loaded into the root inside an empty movieclip.
by itself the swf works but when I upload the txt. file and the swf I get no text.
thanx 4 any help.
swift.
View Replies !
View Related
Loading External File
hey i'm sorry i'm posting this here but I tried reading this tread but i could not understand anything ( loading external swf, small question ( 1 2 )) so I'm asking to know how i can load a movies in my index.swf without clicking on any bottons (and it possible please tell me how it is done with the cliking.)
Thank You very muck and sorry if had to start a new thread.
.:ICED T:.
View Replies !
View Related
Loading External Txt File
I just followed the tutorial http://www.kirupa.com/developer/mx/m...ynamictext.htm
but i have a simple question u guys now, i use the font arial but i want it bold. how can u do that without change it in the txt file like this <b> </b>
View Replies !
View Related
Loading XML File Into An External SWF?
Here's my problem:
I have buttons on my main timeline. Click a button and it loads an external 'gallery.swf' into the main timeline. gallery.swf has an instance of Slideshowpro on it. Slideshowpro gets all it's info from an external XML file through the AS: my_ssp_instance.xmlFilePath = "pathtofile.xml";
I'm trying to set the XML file dynamically, but when I click the button on my main timeline it loads the xml file before there is the gallery.swf loads. I've been told to use movieClipLoader, but do not know how. Also, someone suggested doing the following:
On my button:
on (press)
{ _root.buttonsDown_mc.gotoAndStop(1);
_root.strXMLpath = http://mywebsite.com/ssp_director/images.php?gid=2;
_root.blnXml = true;
releaseWws("sports");
trace ("***XML***="+my_ssp.xmlFilePath);}
Then on the gallery.swf:
listenerObject = new Object();
listenerObject.albumData = function(eventObject)
{if (blnXML == true){
ssp.xmlFilePath = _root.strXMLpath; blnXML == false; }}
ssp.addEventListener("albumData", listenerObject)
This isn't working though, it never get's inside the 'if' statement. Any help? thanks
View Replies !
View Related
Loading An External XML File
The .swf is still very very basic as of now, but im making a little file that keeps you up to date with NYC weather. The problem is it has to read off an external XML file at:
http://xml.weather.yahoo.com/forecastrss?p=USNY0996&u=f
I tried using the tutorial on kirupa.com with using a .php file to act as a "middleman" for this. First I tried the tutorial at Adobe's website but that had no effect, and neither did the tutorial on Kirupa... Mind you I've tried this locally and it worked fine, when i upload it to the web it never loads the xml file.
I attached the .fla and .php file to this post, you can see the .swf at work (rather, not working) at:
http://herenbdy.iblogger.org/NYCweather.html
View Replies !
View Related
Help: Loading External .txt File
im trying to create a loadVariableNum() event in my flash movie. but i had this little problem that obviously i can't work it out.
i am segregating the files needed for the movie to function properly...
SCENARIO: a folder named as "Directory" is my main folder where all my .txt files and subfolders(that contains my flash movies) are located.
PROBLEM: i want a flash movie in the subfolder named "Movies" to dynamically post or display a specific text with a specific variable in to my dynamic text box inside the flash movie by using the code below:
Code:
loadVariablesNum("txtFile.txt",1,"POST");
but my flash movie won't display the text content of "txtFile.txt", instead it flags error messages:
Quote:
Error opening URL "file:///C|/Documents%20and%20Settings/mixeeplikstick.DEV%2DEN/Desktop/My%20Work/Directory/Movies/txtFile.txt"
--------------------------------------------
i know there is something missing on my code....
help please!
View Replies !
View Related
Loading External .txt File
I have seen a tutorial on this, but it was very un-thorough and it didn't have it the way I was looking at. Is there any way to load individual variables from a .txt file, like so:
[level 1]
enemy1=5
enemy2=10
enemy3=15
[level 2]
etc...
It's done in some other Flash games and in Soldat, and it would make scripting ALOT easier as I can change all of the variables without loading Flash. Thanks very much for your time and any help given. Wsp.
View Replies !
View Related
Loading External Txt File
I know I'm missing something real simple.....
trying to load and external txt file from my server using dynamic text box and this script,
this.loadText = new loadVars();
this.loadText.load("text1.txt");
this.loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
the blogger is loaded into the root inside an empty movieclip.
by itself the swf works but when I upload the txt. file and the swf I get no text.
thanx 4 any help.
swift.
View Replies !
View Related
Loading External File
hey i'm sorry i'm posting this here but I tried reading this tread but i could not understand anything ( loading external swf, small question ( 1 2 )) so I'm asking to know how i can load a movies in my index.swf without clicking on any bottons (and it possible please tell me how it is done with the cliking.)
Thank You very muck and sorry if had to start a new thread.
.:ICED T:.
View Replies !
View Related
Loading External Txt File
I just followed the tutorial http://www.kirupa.com/developer/mx/m...ynamictext.htm
but i have a simple question u guys now, i use the font arial but i want it bold. how can u do that without change it in the txt file like this <b> </b>
View Replies !
View Related
|