See Related Forum Messages: Follow the Links Below to View Complete Thread
LoadMovie And Importing Text Files As Variables
I have my main timeline that we'll call "mother" and I have a movie (other swf) that is loaded into "mother" using loadMovie that we'll call "daughter". Simple? (By the way "daughter" is in a movie clip in "mother" with an instance name if that helps.)
"Daughter" is loaded into "mother" when a button is clicked. In "daughter" there is a vector graphic and a dynamic text field with a variable to load a text file.
When I open the "daughter" movie by itself in the standalone player, the vector and the dynamic text field (with the text file variables inside) are visible. When I play my "mother" movie and the "daughter" clip is loaded, it loads, the vector graphic shows, the dynamic text field is there (selectable) but the variables are not loaded into it.
I think this has to do with tageting but I'm not very good at that. Can someone you there PLEASE help me!?
Thank You
Multiple Variables In One Text Files
Hi everyone! I'm building an application that executes a few actions. On press, an FS command launches an install.exe and also executes a batch files. The batch file copies a text file from the cd and copies it into a folder on the operating system. The text file contains a variable. ie: (_root.txtApplication = WordPerfect2K) With loadVariables, I retreive the variable from the text file and send it to a dynamic textbox in my flash application.
My Problem is that for every software I install I also send a text file containing a variable that gets loaded with loadVariables,in order to keep track of all the software I have installed in a dynamic text box on the application.
Here's a sample of my code to retreive the variables and pass them in MyArray.toString
loadVariables ("Apps/Acrobat5.txt", "_root.MOVAppBank");
if (txtApplication = "Acrobat5") {
MyArray[0] = "Acrobat5";
}
loadVariables ("Apps/OfficePro.txt", "_root.MOVAppBank");
if (txtApplication = "Office Pro") {
MyArray[1] = "Office Pro";
}
txtApplication = MyArray.toString();
I have a MC called MovAppBank that contains a dynamic text box called _root.txtApplication. This text box gets the variable and passes it into the array number.
I want to pass all the variables found into that single textbox.(_root.txtApplication) I figure if you load the variable and pass it into an array, you only need to make the textbox = the array.toString.
Is this logical? Any easier way?
thanks
Al
Importing Multiple Swf Files Into One Timeline
Hi guys,
I've had to decompile about 100 frames of an animation I made after Flash MX crashed and I lost an entire movie clip I was working on. I want to import them in a sequence, as you do with seperate images that have been numbered such as 001.jpg 002.jpg etc. but when I use flash mx's import feature it creates a new layer for each swf file imported. This becomes extremely tedious when you try and position it right back onto one layer so does anyone know any way to import multiple swf files in a sequence onto one layer. I hope you's understand what I mean, please reply if you don't.
Thanks a lot
Elderon
Problem While Importing Multiple SWF Files
I am having some problems with the importing of multiple SWF files. Thier file name is starting from FILENAME1.swf to FILENAME100.swf
Now when i import it into Flash MX, it just imports only the selected file. Not the sequence, as it always do with other files like PNG or JPEG sequences.
Any idea why it is not working ??
How To Pass Variables Between Multiple Swf Files?
Hi guys, here is my code:
import be.wellconsidered.services.WebService;
import be.wellconsidered.services.Operation;
import be.wellconsidered.services.events.OperationEvent;
var ws2 = new WebService("http://mcccu-pc12/ChineseCheckerWebsite/WebService.asmx?WSDL");
var userName : Operation = new Operation(ws2);
var timer1 : Timer = new Timer(1000,0);
timer1.addEventListener(TimerEvent.TIMER, theTimer1);
timer.start();
userName.addEventListener(OperationEvent.COMPLETE, getUserName);
userName.getUserName2();
function getUserName(e :OperationEvent):void
{
var tf3 : TextFormat = new TextFormat();
tf3.size = 20;
tf3.color = 0xFF0000;
loginName_txt.setStyle("textFormat" , tf3)
loginName_txt.text = e.data.toString();
}
create_Button.addEventListener(MouseEvent.CLICK, onCreate);
var loader:Loader = new Loader();
function onCreate(evt:Event):void
{
timer1.stop();
create_Button.enabled = false;
var swf:URLRequest =new URLRequest("GameCreate.swf");
loader.load(swf);
addChild(loader);
loader.x = 255;
loader.y = 200;
}
How do i pass my variable timer1 and e.data.toString() to another SWF file after after i pressed create_Button in 1st SWF?
How To Pass Variables Between Multiple Swf Files?
Hello,
i am using visual studio 2005, i used asp.net to create my website, sql server as my database, used webservice to pass from flash to asp. When i login through the website, i will then press a button to go into FIrst SWF. My first swf has shown my login name using webservice, but how do i pass this variable to another external swf file when i press a button in the FIRST SWF file which links to the 2nd SWF file?
FIRST SWF FILE CODE:
Attach Code
import be.wellconsidered.services.WebService;
import be.wellconsidered.services.Operation;
import be.wellconsidered.services.events.OperationEvent;
var ws2 = new WebService("http://mcccu-pc12/ChineseCheckerWebsite/WebService.asmx?WSDL");
var userName : Operation = new Operation(ws2);
var timer1 : Timer = new Timer(1000,0);
timer1.addEventListener(TimerEvent.TIMER, theTimer1);
userName.addEventListener(OperationEvent.COMPLETE, getUserName);
userName.getUserName2();
function getUserName(e :OperationEvent):void
{
var tf3 : TextFormat = new TextFormat();
tf3.size = 20 ;
tf3.color = 0xFF0000;
loginName_txt.setStyle("textFormat" , tf3)
loginName_txt.text = e.data.toString();
}
LoadVars: Multiple Text Boxes, Multiple Text Files.
Is it possible to use one LoadVars object to load different text files into different text boxes?
I know I can do this:
ActionScript Code:
var textLoader:LoadVars = new LoadVars(); textLoader.onData = function(content) { trace("Data loaded successfully."); someBox.text = content; };button1.onRelease = function() { textLoader.load("file.txt");}button2.onRelease = function() { textLoader.load("file2.txt");}
I know this will load two different text files into the same text field, but I want to be able to define different boxes, like maybe
ActionScript Code:
textLoader.load("file.txt", someBox.text);
though that is obviously not correct.
Any ideas?
AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
I have a php file that makes this list
Code:
Cid1=3
&Lid1=22
&Title1=amazing
&Date1=1212128413
&Ext1=jpg
&Hits1=129
&Rate1=9.5000
&Cid2=1
&Lid2=22
&Title2=cool
&Date2=1212128413
&Ext2=jpg
&Hits2=129
&Rate2=8.5000
Now, I want to load the 7 bits of data into 7 dynamic text boxes.
I have to code to load a movieclip as a button onto the stage.
When I click that button I want the data to load.
I can kind of load all the data as a string into one dynamic field but don't know how to get each variable into a different text box. Any help would be great.
Regards,
Glen Charles Rowell
This is some working code for loading one variable but I need help with the rest please.
Code:
var url:String = "http://www.secretcanttellsorry.php?cid=3&orderby=ratingD&guid=on";
var Cid1:URLLoader = new URLLoader();
Cid1.addEventListener(Event.COMPLETE, completeHandler);
Cid1.load(new URLRequest(url));
function completeHandler(event:Event):void {
poptext.text = event.target.data as String;
}
Importing From Text Files
I want to be able to import work from a text file to my flash movie!!!! can i do this using a dynamic text box? using a "LoadVariablesNum" command? im not sure, SOMEONE PLEASE HELP ME!!!
Importing Text Files
I am using Flash 5. I need to why this code doesn't load my text file into my movie clip. I have put the code on the movie clip layer on scene 1. The movie clip is a text scroll. It isn't for the net. It is a promo cd. Does there need to be more code?
Code:
onClipEvent (load) {
loadVariablesNum("textVision.txt", 0);
}
The text file has the following plus more text and html code in it:
"textVision="The underlying causes of vision loss, its severity and the limitations that it imposes vary from person to person.<BR><B>Legal
textVision is the instance name for the movie clip and the text box's name is textVision as well set at multiline and HTML.
[Edited by cturner on 08-16-2002 at 10:30 PM]
Importing Text Files
im trying to load a handful of text files each on their own separate pages of a site - when i test, none of the text files load into the flash movie. it looks like i've done everything correctly in flash. when you preview loading external variables, does it work in test mode, or does it only work when you've uploaded all the files to a server and access from the web?
thanks,
alec
Importing Text Files
I have a project which I would like to import text content into via dynamic text boxes.
Can anyone point me to a tutorial, or tell me how to
i) import txt or xml files into the dymanic areas of the flash content
ii) how to style up the content using css or html ( I know about the css and html markup but need to know how to get it working within the flash.
Thanks in advance
Neilb1969
Loading Multiple Variables In An Array From External Files
hi !
i've got a question
i'd like, for a news page, that it updates itselfs when a file is uploaded on the server, keeping the old news at the bottom and the new one at the top, so i thought i could use text files with the date as name (ex:220604.txt) holding variables (date,title, txt) as strings so that i could store them in an array that would sort each time the swf is loaded.
then the news could displayed in order where i want them to be
first:
does this seem right to you, will it work ??!!
second:
if i ask it's because i'm stuck between the loadVars and the Array and i'm not the super pro of the array so if you understood what i'm trynig to say please help me !!
Thanks a lot !
Modularizing Into Multiple .swf Files And Still Sharing Variables And Functions
Hello,
I've been pulling my hair out trying to figure this out.
I would like to modularize into three .swf files.
1. boot.swf - this one will take the other two, put them together, and let them share functions and variables
2. api.swf - this would be a set of functions and variables that are used by the third flash file
3. main.swf - this is the main functionality, but it needs to make use of some of the functions and variables in api.swf
The reason I want boot.swf to load them, is so that I can mix and match api's with the main program code being plugged in. But, boot.swf will be the standard file that I start with.
I have gotten as far as getting boot.swf to load main.swf using Loader. However, I can't seem to get main.swf to access anything in boot.swf... let alone access anything in api.swf.
Any assistance is much appreciated!
Thank you!
Modularizing Into Multiple .swf Files And Still Sharing Variables And Functions
Hello,
I've been pulling my hair out trying to figure this out.
I would like to modularize into three .swf files.
1. boot.swf - this one will take the other two, put them together, and let them share functions and variables
2. api.swf - this would be a set of functions and variables that are used by the third flash file
3. main.swf - this is the main functionality, but it needs to make use of some of the functions and variables in api.swf
The reason I want boot.swf to load them, is so that I can mix and match api's with the main program code being plugged in. But, boot.swf will be the standard file that I start with.
I have gotten as far as getting boot.swf to load main.swf using Loader. However, I can't seem to get main.swf to access anything in boot.swf... let alone access anything in api.swf.
Any assistance is much appreciated!
Thank you!
Importing Arrays From Text Files
Okay, I have been working with Flash 5 for only a few months, however I have had experience with Flash 4. My problem is that I DON'T know how to import arrays from a text file. With normal variables (or stings) the text file may contain, for example:
&varialbe=blah blah blah
&var=12
How do I create one that uses an array?
Oh, and while I'm at it, how do I export variables to a text file? Thanks.
Importing And Formatting Text From Ext. Files..
I am currently using Flash 4 and would like to know if there is any way my swf can import text from an external file and format it with HTML tags to create paragraphs, tables, bold and italics, etc...
If doing this requires Flash 5, I am willing to buy it!
Importing Text Files Into Flash
Can anyone help please?
I'm trying to import a text file into flash, and I'm having no problems when viewing the .swf file, but as soon as I look at it in the web page the movie's embedded in, it stops working. Any ideas?
Text Files Importing Issues
hi there
i am making a site which has a database on it all updatable by the user. some of the database will have news items on it which are updated weekly. all of these items will be on the homepage as links. however, as the news stories change the names of the links are going to change, not the actual URL but the title.
for example in week one a news story about footballers roasting one another is on there, the link to this page on the homepage will say latest news. footballers roast dinner
if in week 2 the story is about cows eating special GM grass i need o change the title of the news link on the homepage.
i know you can import text files into flash, but how do you do it. im going to need a seperate folder so the administrator can do this themselves.
how do i import text into flash and can i change the font/colour etc of it, can i still make it a link if it is just a piece of text. the URL wont change just the content.
please please help im stuck!!
Importing Text Files (Only Know The Basics On This)
I have some data in a text file (below for example), I'd like this file to be read into a Flash file
"AK2~Hairdressing Level 2 Year 2 Of 2","HDRN2AK2-2B1FA","12:30","14:30"," 10/ 9/2007","M316"
"AK2~Hairdressing NVQ L2 (Grp A)","HDRN2AK2-1B1FA","12:30","14:30"," 10/ 9/2007","M316"
"Beauty Therapy Level 1 Grp D","BTHN1-1B1FD","9:00","10:30"," 10/ 9/2007","M306"
"Beauty Therapy NVQ Level 1 Grp A","BTHN1-1B1FA","9:00","10:30"," 10/ 9/2007","M306"
I know how to import the text file into a dynamic text box, but this will only allow me to view it how it is like in the text file. I want each field (column) to be seperated with a gap. When you go to the airport and see the screens with Flight departure and arrival, locations etc..., this is what I am aiming for. (I've looked on the net but stuggling for any useful help)
Any ideas would be greatly appreicated, thanks
Importing Text Files As Urls
I have designed a flash 5 header for a business forum
http://b2b.nbkayaking.com
A part of the header contains a section called Hot Links and I want to display the url of one of the better posts made by users. I don't want to edit the header everytime I change it so dynamic loading is the answer I guess. I know that MX can import information contained in text files, not so sure with 5.
So I am sure it can be done but I am not sure about making that text a url so that it is clickable.
Cheers
Importing Text Variables
ok so im trying to import a var into flash to make some code work. i got no luck. can anyone help?
loadVariablesNum("totalvar.txt", 0);
Importing Text Variables
ok so im trying to import a var into flash to make some code work. i got no luck. can anyone help?
heres a link to an example fla.
Importing Text Variables
ok so im trying to import a var into flash to make some code work. i got no luck. can anyone help?
Multiple External Text .txt Files In Different Swf Files
I'm trying to have several external files (txt or html) attached to a several swf flash files, loading in different levels of one main movie, for easy updating.
Example is: loadVariablesNum("ext-track.txt", 0);
This I can do, partly working.
Say you click the button for "about" that loads that flash file (in a layer), it fails to load in the relevant external file (the movie loads just not the external text file).
When you open up the "about.swf" on its own, it loads up the external file no problem. It just fails to do it when I am loading it from the main swf movie file that then loads this in a layer.
I can get all the text files working by putting in all the loadVariable parts in the main movie but I need them put into their relevant swf movies.
Does that make sense?
How do you correct, something to do with layers or targetting? I'm sure it'll be easy for you guys, Actionscript ain't my thing.
Thanks.
Freaking Out - Importing Multiple Arrays From Text File
i'm trying to import 51 arrays for each state and DC...
text:
AK1=Alaska~http://www.ak.nea.org~<a rel="nofoll...Alaska~114</a> Second Street~Juneau, AK 99801~Phone: (907) 586-3090
&AL1=Alabama~http://www.myaea.org~<a rel="nofollo...g/~Alabama</a> Education Association~422 Dexter Avenue~Box 4177~Montgomery, AL 36103~Phone: (334) 834-9790]
&AR1=Arkansas~http://www.aeaonline.org~<a rel="nof.../~Arkansas</a> Education Association~AEA Bldg.~1500 W. 4th St.~Little Rock, AR 72201~Phone: (501) 375-4611
etc...
script:
onLoad = function () {
AK = AK1.split("~");
AL = AL1.split("~");
AR = AR1.split("~");
...etc
I've also tried:
AK = new Array();
AK = AK1.split(~);
or
AK = new Array();
AK = eval (AK1.split(~));
But AK1 never splits!!!
ends up:
AK = undefined (or blank)
AK1 = "Alaska~http://www.ak.nea.org~<a rel="nofoll...Alaska~114</a> Second Street~Juneau, AK 99801~Phone: (907) 586-3090"
I'm about to lose it!! help!!
Importing Multiple Data Types From A Text File
I have a text file where I want to pull out multiple variables of different types.
Take for example the following
GalleryActive = true;
ImageDirectory = "Interior";
subGallery[1] = Before;
subGallery[2] = Construction;
subGallery[3] = After;
Images[1] = 15; // number of images in sub gallery "Before"
Images[2] = 10; // number of images in sub gallery "Contruction"
Images[3] = 17; // number of images in sub gallery "After"
MainHeader = "The Gradow Estate";
SubHeader = "Exploring the Interior";
I have pulled arrays out of a file before with parsing, but this was only an array and not multiple variables including arrays. Can anyone help me with this? I'm not even sure if this is a good listing convention. Basically I need to import this data from a text file and I was wondering if anyone could show me some sample code for this?
Thank you in advance.
Error When Importing Text Files (Flash 5)
I want to dispaly the contents of a text file into a textbox (when I click a button - using the loadvariable thingy).
But when I click the button, nothing happens.
Using the debugger gives the following error messages
Error opening URL "file:///C|/DOCUME%7E1/PETER%7E1.PET/LOCALS%7E1/Temp/blonde.txt?"
When I put the file on the C drive, it gives:
Error opening URL "c:londe.txt"
All security on that file is set to Full Control, so that can't be the problem
Anyone can help me? This is driving me nuts
Importing External Text Files Into A Scroll Area
I am making a flash website for a University project and i am a bit stuck at the moment. I have two problems, the being that I need to be able to import an external text file, so that the user can easily update the site. I thought of using loadMovie but that doesnt seem to work. Any suggestions ??
Secondly when i load the text file i want it to be able to figure out if it needs scrolling or not. So if more text gets added later on then a scrollbar can appear or visa versa if text gets taken away then the scrollbar dissapears. The client i am making it for does not have Flash, nor does he know how to use it, so it all needs to be done in the swf file.
Cheers
Importing External Text Files Into A Flash Website
Hello everyone
I have recently been given the honour of learning a bit of actionscript 3.0 by my boss in order to develop flash websites. I have constructed a basic website with four pages(Home, Text1, text2, and Contact) which i can navigate between using a bit gotoandstop actionscripting. I have never done this before and all was going well until I used actionscript to import external .txt files into my flash file. Here is my actionscript just so you can see how I did it;
//This variable is creating my textfield
var externalText:TextField = new TextField();
//This is going to be my URLrequest which will hold the info where my text file is. The text file should be in the same folder as the .FLA file
var externalReq:URLRequest = new URLRequest("myText.txt");
//This is going to load my URL Request. First I create it (line9) and then define it (line11)
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalReq);
//This adds an event listener to look out for a completed text file. The event listener is called textReady
externalLoad.addEventListener(Event.COMPLETE, textReady);
//This data below will determine the size, location and other properties of my textfield
externalText.width = 200;
externalText.height = 200;
externalText.x = 300;
externalText.y = 100;
externalText.border = true;
externalText.wordWrap = true;
//This line of script places my created & defined text field on the Stage. Without it, it won't appear.
addChild(externalText);
//This is my eventListener. It is saying to fill my textfield variable "externalText" with the data contained in my target file "myText.txt"
function textReady(event:Event):void
{
externalText.text = event.target.data;
}
I was very pleased with myself untill I exported the swf file and found that when I navigated from the page containing this text to another, the page would change but the text would remain, obscuring everything else.
My question is, how do I make it so that when i navigate to another page the external text will dissapear, only displaying on the correct page?
Initially I thought I would have to add a conditional statement and a function on the other pages of my site saying "if this text appears, remove it', but I had trouble defining the variable and function that would ensure it did not reappear. Then I thought that if I could define my text as dynamic (which I don't think the externally imported file is) then that might stop the problem. The problem is I have no idea how to this, i thought that i could create my own custom class and somehow use that to make the text dynamic but my small brain is about to explode and I'm not totally sure of the technicalities of doing that.
Any help would be well appreciated
Cheers
Importing Number Variables From Text File
I have a slight problem that I cant figure out for you Flash Guru's out there. Here is the code.
for (i=1; i<=NoPlans; i++) {
setProperty ("_root.Menu.DropMenu.ClipButton" add i, _visible, true);
}
The "NoPlans" variable is loaded from a text file with a whole number value, but doesnt seem to work. If I were to place a text field in the movie with the name "NoPlans", the variable displays in the text field!! But why does it not work in the for statement??!! Me no understand.
Any help would be greatly appreciated.
Importing Variables From A Text File Problem
Right. I am loading some variables from a text file. The text file contains one specific variable,
Code:
&de_amount=2
This variable is posing a big problem because when I later come to use this variable in a mathematical equation is doesn't read it as a number. For exmaple,
code: result = de_amount+1;
result shows as "21", not "3".
I rarely import from a text file, but unfortunately I have to on this occasion.
Can anyone tell me why this happens?
Thanks in advance.
ASCII Text Encoding For Importing Variables - Mac
I have been trying to set up my site (www.amberbutler.com) to import variables instead of having to updated the SWF everytime I notice a misspelled word.
I have done this before, but only on a PC. I couldn't get it to work (always displayed "undefined") so I got a tutorial. Followed the instructions to the letter, as implemented on my site, still only "undefined." So I created a new FLA and followed the instructions to the letter - still undefined.
Here's where it gets interesting. I download a test FLA and compared code and everything - exactly the same. I ran the test FLA on my computer and it worked flawlessly. I then opened up the text file and changed some of the varaibles...for instance, in the test file, it was something like:
Code:
&testvariable=Hello, and welcome to my life.
I changed it to
Code:
&testvariable=Hello, and all my life is boring.
Just to see if it would work.
I then saved the text file and ran the FLA - UNDEFINED.
I know that flash can only import ASCII variables, and I am using a Mac with Text Edit to create my files. When I saved, I checked "encoding" but there was no "ASCII" option.
What's the equivalent, and why can't I get an ASCII file on my Mac?
Thanks!
sogj
Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.
Which FLASH** guru out there can lead me in the right direction?
greatly appreciated...
*g.guru.
Multiple Scrolling Text Boxes From Text Files
Hello!
I have been trying to solve this problem long enough and need some help.
I am creating this in Flash 8.
I want to have a text area that has scrolling text. The text is brought in from a text file (one ending in .txt). Yes, there are a zillion tutorials that detail the steps. In fact, I have it working. The example that worked for me was one in which the scroll component was used and some action scripting. Works perfectly.
But not one that gives me a clue what to do if I want multiple text boxes using various external text files.
I have the timeline with the cells set-up so each cell is a new page (there is a script stop; to accomplish this along with keyframes).The idea is to navigate to a keyframe and it appears as if it is a new page. A box with a graphic in it changes, and a box for dynamic scrolling text exists. I got the first “page” with perfect scrolling text from an external text file.
Here’s the action script:
myVars = new LoadVars();
myVars.onLoad = function(){
textbox.text=this.Grun01;
};
myVars.load("scroll01.txt");
Now, if I do this same thing for the next page, all the pages stop working. The text files are different as are their first lines before the = signs. They are as such (in part):
File called scroll01.tx has a first line Grun01=
No html was used.
The text box’s properties were set to Dynamic, multipleline and an instance of textbox. The UIscrollBar instance was with parameters set to textbox.
I did the second text box (in the next cell) to load scroll02.txt, a first line of Grun02= and changed the action script to:
myVars = new LoadVars();
myVars.onLoad = function(){
textbox.text=this.Grun02;
};
myVars.load("scroll02.txt");
I also varied the text box’s properties to an instance of textbox02. The UIscrollBar instance was with parameters set to textbox02.
What do I need to do to be able to have each page with scrolling text loaded from an external file?
Thanks in advance,
Bill H.
Just A Little Lag ~multiple Swf/text Files~
I have a container movie that pulls in a seperate swf's (only one seen at at a time) both the container and swf are pulling mutiple text files and images and such, dynamically, from files in subdirectories.
Sometimes I get 'undefined' in the text fields. I'm wondering if this lag can be averted by me or is this a server thing? Usually it calls it up properly. Sometimes faster than other times. A preloader does nothing as the lag also slows the call of the swf, so sometimes ill click to call it, and it can take a second or two before the loader starts, then lag (sometimes) while its calling text files and such.
Is this an .as situation? Can I get all my variables for all the swf files (container and as many seperate swf as I want) to be cached right at the begining on the main (container) movie? It should be associated with multiple .swf files> Would this help deal with my problem or am I off track with that thinking?
I'm using v8, but I thought I would post here in noob than in Flash8.
Any advice or insight would be helpful
Saving Multiple Text Files
I'm developing an executable flash-based editable presentation in Flash 5 to compete with Powerpoint. It's pretty simple, the user can edit the presentation, and change the text, and the data in the included charts. The user can then save the data into an external text file using
Code:
fscommand ("save", "data.txt");
Now, we would like to add the option to save multiple versions of the variables. That's easy. But we also want Flash to be able to save information about the versions, specifically a name and a date created.
The easiest way I can think of is to create a seperate text file that contains only the name and modified dates of the files, which flash can use. Now, here's the question: can I use the "save" FScommand and Load Variables to deal with a small portion of the variables, or do they only save all data, and replace all variables in the file?
Multiple Dynamic Text Files
Okay, no luck with the previous posting so here we go again.
I have a movie and need to call in three seperate dynamic text files on the screen at the same time, all different text files. i can and have one working fine, but when i try three it buggers up big time.
i've a feeling its to do with the following
loadVariables("news01.txt", "");
LoadVariables.... Multiple Text Files
i'm having problems loading more than one external text file into a message board / forum....
it's something to do with the following code (from "_dupbutton" MC), but i've attached the .fla file so the paths can be seen.
the script below opens up a single text file no problem, but if there is more than one reply to a subject or topic, it doesn't load them all up (unless you submit another reply)
Code:
on (release) {
loadVariables (_root.Forum.PathToDir+_root.Forum.Category+"/"+_root.Forum.File, _parent);
_parent.Thread = "loading...";
_parent.File = File;
_parent.Topic = Topic;
loadVariables (_root.Forum.PathToDir+_root.Forum.Category+"/"+_root.Forum.File, _parent);
}
please can someone help... this is doin my head in!!!
cheers - ric
(using Flash 5)
Load Multiple Text Files Into A .swf?
Hi..
I want to create a news feeder with dynamic text.
So what I would like to happen is:
A news (dynamic text) is fading in.. Holds back for couple of seconds. It then fades out and another news fades in..
I manage to load ONE text file.. But how do I load the next one?
Im a complete newbie so Im not sure if there is a code in flash, or if I should make a code within the textfile..
(Im using MX)
Thanks!
Multiple Dynamic Text Files
I am using a simple script to load xml texts into my movie:
ActionScript Code:
text = new XML();
text.load("gov.xml");
text.onLoad = function(ok)
{
if(ok)
{textbox.text = text;}
}
The xml is something like this:
Code:
<gov><p align="left">
Bla, bla, some text....
</p></gov>
and
Code:
<law><p align="left">
Bla, bla, some text.... # 2
</p></law>
Now I have whole bunch of these xml short paragraph files, and I would like to combine all of them into one.
So that for example if frame # 3 is entered the gov xml file loads, and if some button is pressed the <law> xml loads.
How can I set this up?
Loading Multiple Text Files
Hi! I've got several archived text files - 040107.txt, 040207.txt, 040307.txt, for example - and I want to be able to build a dynamic link which loads whichever file is selected into the Flash movie. This list needs to be able to build itself as I write new files every day and add the old ones to the archive. I'm stumped. How can I do this?
Multiple Text Files In Textbox
I would like to know how to load multiple text files in a textbox. I followed the dynamic scroller tutorial here, which works w/ loading the 1 text file. But I'm making a all-flash site for my poetry site, and can't load the poems list, and the poem text in 2 different list box's. I got it to load one or the other, and I tried the & thing, but didn't work. Any help is greatly appreciated.
Multiple Txt Files In One Text Area
Hi,
What I am trying to do is simple i think but i am having problems. I have a bunch of buttons that when clicked on, I want a txt file to load into a dynamic text box. I read the tutorial on how to do this (http://www.kirupa.com/developer/mx/dynamic_scroller.htm) but I can't figure how to incorporate the code into a button.
Can someone please help me. I must have this project done by the end of the day.
Cheers
Michael
Multiple Text Variables?
heres an example of what I'm trying to do....
take a quiz question...
"what are the 3 closest planets to the sun?"
theres 5 dynamic input text boxes
(5 chances to get the right planets)
and a "go" button to check if the answers are right
how can I load the variables from all 5 inputs into one variable
then check if the correct 3 (planets) are there
...in any order.....excluding blank or wrong answers.....
then hit "go".....if the 3 correct answers are present
....goto and play frame " "
is this not such an easy task????
any help/direction....
-TNX-
hoopty
Multiple Text Variables
I would like to know if/how one could use a single external text file to populate text in multiple dynamic text objects.
For example. In my FLA on my stage, I have three dynatext objects, each with a different var:, as follows...
var:text1
var:text2
var:text3
I have one external text file (flashtext.txt) that has the following contents...
text1=Hello.&
text2=My name is...&
text3=Aj!
I would like to load the one external text file and then have each of the dynatext objects pull in the text that matches their specific variable.
Is this possible? I have tried to get this to work but cannot find a working solution. I don't want to spend more time on it if it isn't even possible.
Thanks for any assistance.
--
aj
Multiple External Text Files In The Same Movie
Hi,
I hope you can help me out :-)
I have a main movie with a container clip and a scrollable area that refers to an external .xml file. It uses this code which works fine:
"_root.loadVariables("factstext.xml", "");"
BUT
When I push a button in my main movie and a new movie is loaded in my container clip, which also has an external .txt file, it doesn´t take the specific .txt file from the new movie, but the old one from my main movie.
Has it something to do with my instance names of the textfields or...?
Hope you can help me out.
Thanks,
Thomas
|