Variable From Text File
Aye Up
A quick problem :
I have a text file which contains a number of variables, one of which decides how many movie clips are duplicated. The variable name is mcNumber. On the first frame of the movie I have a duplication script which will duplicate according the mcNumber value. Well in theory it should but it doesn;t like the value being imported.
If I set the value inside flash using a declared variable (dupNumber)its fine. I've tried assigning the text file variable (mcNumber) to the internal variable ( dupNumber) like so: dupNumber = mcNumber; and also converting it to an integer, dupNumber = int(mcNumber); but no success.
Have i missed something ?
any help gratefully received.
regards
Simon 'I haven't a ruddy clue' Hurrell
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-24-2001, 12:26 PM
View Complete Forum Thread with Replies
Sponsored Links:
Load Text File Data (No Variable In Text File )
Hi everyone,
In Flash Mx,
How can i load data from the text file ??
I know its easy using variables but..
There is only text, no varibales like -- Name=bla bla
in the text file
So, how can i load all the data from the text file in a varibale(I am not getting any variable from the text file, getting only data) ??
Thanx in advance,
$hailesh Mewada
View Replies !
View Related
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
View Replies !
View Related
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
View Replies !
View Related
Loading External Text Without Variable Name In Text File
i need to be able to load text from a file and put it in a dynamic text box but i cannot modify the text file to put in a variable name
ie the text file cannot contain variablename=1234
but rather must simply contain 1234
Is it possible to load some text without a variable name indicated in the file using flash mx 2004 and, if so, how would one do this?
View Replies !
View Related
Reading Text From A Text File & Assigning It To A Variable
Plzz tell me how to read text from a text file & assign it to a variable.The actual thing i need to do it is that the text file contains a value & i have to get that value & according to it i have to change the color of the background.for eg if the text file contains a no below 10 then the bg color should be blue & if it is above 10 it shud be some other color( the text file contains only one value).
plz help me in this regard.this is urgent
luv
Andrew
View Replies !
View Related
Text File Variable
Yeah i know its me again. I have an other question, ahh well, how do you think ppl learn.
I'm loading variables from a text file and I my dynamic text field is set to recive html.
In my text file I have the folowing
Code:
gear=<b>::Lucas Jones::</b>
Rolland Amp
Line 6 Pedal
Tortex .66mm Pick
When I play my movie the text doesnt load because of the confusion of =< (i think)
what do i do?
View Replies !
View Related
More Than One Text Variable In A TXT File?
I have a flash file that has several text boxes that contain different information. I would like to be able to draw all of these text box's information from just one TXT file. So I use loadVariable and the dynamic text boxes will recognize the first variable processor=Blahblahblah MHz but will not recognize the 2nd or 3rd lines of the TXT file harddrive=Blahblahblah MB or screen=Blahblahblah inches
View Replies !
View Related
Text File ----> Variable
Hey,
I know how to load text from a .txt file into flash and display it in a text box.
However, I'm trying to take the text from the text file and load it into flash and have it as the value of a variable.
e.g.
Text file:
news=this is the news
Flash code:
_global.newsvar = news
But that doesn't work
I think its to do with how i refer to "news",
do i need:
_global.newsvar = _root.news
or
_global.newsvar = _global.news
?????
I've tried a few things but have had no luck,
Any help would be great,
Thanks,
Matt
View Replies !
View Related
Variable From Text File...
ok i have variables in a text file name prof_name0 prof_name1 prof_name2 and so on....
now, in the flash actionscript i have a variable that determines which number to put, profile_num.... what i want to do is figure out a way to set a text box TO that variable value... for example....
pname.text = prof_name0; works fine... what i want to do is...
pname.text = "prof_name" + profile_num; but when i put "prof_name" it puts that words in the textfield... how do i make it put prof_name + profile_num together as the variable name?
thanks in advance,
dan
View Replies !
View Related
Variable From Text File...
how can i assign a variable declared in flash the value of a variable defined in an external file?
Example:
- text file contains variable called "pics" with a value of "6".(without quotes of course)
- i have another variable declared in flash called "newPics"
- i'm using the "pics" variable in several places, but would also like to assign "newPics" the same value as "pics"
I've tried a few things, but none have worked. Any suggestions?
View Replies !
View Related
Getting The Right Variable From A Text File
Hi,
I have a flash movie which loads a set of variables from a text file. A typical text file might have the content:
&Q1=Question1
&Q2=Question2
&Q3=Question3
So two questions.
1) Is it possible to count how many variables are contained within the text file and more importantly how many begin with the letter 'Q' as I may mix it up a bit with other variables.
2) I generate a random number based on the number of Q variables in the text file. Can I then select that variable's value for manipulation.
For example:
Code:
oData = new LoadVars();
oData.onLoad = function(){
iNumber = 10 //There are ten Q variables in this text file
iSelectedNumber = Math.round(Math.random() * iNumber)
sCurrentQuestion = "Q" + String(iSelectedNumber)
sCurrentQuestion = this.sCurrentQuestion //THIS IS THE LINE I CAN't WORK OUT
txtQ.text = sCurrentQuestion
};
oData.load("start.txt");
So the line with this.CurrentQuestion is obvkously wrong, but is there some way of detecting the value of relevant Q variable once that Q variables name has been derived as a string.
Many thanks for any help,
G
View Replies !
View Related
Text File Variable
I am trying to extract a simple variable from an external text file, set it as a variable and then perform an if else statement based on its value. I think Im pretty close
PHP Code:
loadVariablesNum ("testFile.txt", 0);
// testFile.txt's contents is this exactly: camera=1
// need to set the value "1" from the text file above and set it as a variable that I can pass on to a function
if (camera == 1){
textt.text = "yo cam 1";
} else if(camera == 2){
textt.text = "yo yo cam 2";
}
View Replies !
View Related
Variable From A Text File Into A Text Field?
Hello all,
I am trying to import a variable from a text file into a text field. Does anyone know if this is possible? An example of what I am trying follows.
• I have a dynamic text field in a Flash movie named "entry" (that is the variable name/text FIELD name).
• I have a text FILE named submits.txt stored in the same directory as the SWF, which I am bringing in using loadVariables. This text FILE has a list of variables which are to be randomly placed into the text FIELD in the SWF upon load. They are named as such:
text1=blah blah 1&text2=blah blah 2&text3=blah blah 3 etc.
I also have a variable called maxentry which equals the total #of entries within the text FILE. This will be used for the random function.
• I want to be able to change the value of the text field variable (named "entry") to one of the variables in the text FILE such as text1.
_______________
• As a test, I tried to do this by setting the variable like this:
_root.entry = "text"+1
• What was returned in the text FIELD was the string: text1
• I tried un-checking the expression box and it returned "text" + 1
Is there a way to get it to look at the loaded variables so that it will change the variable/text field from "entry" to blah blah 1, which is the actual value for the variable named text1 in the text FILE submits.txt which I am importing?
Thanks,
Damien
View Replies !
View Related
Reload Variable From Text File
i'm loading a variable from a text file on the server.
that variable in that text file is subject to change.
the problem is that the flash file gets cached by the web browser BUT SEEMINGLY ALSO the variable of the text file on the server.
this means that when i changed the variable in the text file, the variable won't change in my flash file because the old one is cached by the web browser.
how can I ressolve this?
now i'm using:
loadVariablesNum ("welcome.txt", 0);
View Replies !
View Related
Possible To Load MC According To The Variable In A Text File?
i have try to make a navagation menu to load MC to a target MC.
according to the variable i had assigned in a text file. is this possible??
here's the example of my script, unfortunately it didn't work, can anyone please tell me what i had done wrong? or its this possible to do in flash?
<---- variable for the .txt file ---->
001="001.swf"
&002="002.swf"
&003="003.swf"
&done=1
<---- end ---->
<---- action for the main timeline---->
loadVariables ("text.txt", this);
<---- end ---->
<----- actions for the button ---->
on (release) {
loadMovie ( 001, placeHolder);
}
<---- end ---->
any helps would be greatly appreciated..
thanks
View Replies !
View Related
Variable From Text File For Password
Hello,
I'm trying to get a password and userID from a text file so that only in the text file the password is determine.
and in the script i use just the variables
something like this :
in first frame :
fscommand ("showmenu", "false");
loadVariables ("URL/variablelist.txt", "");
on (release) {
if (user2=client-001 and pass2=password-001) {
gotoAndPlay (50);
} else {
gotoAndPlay (27);
}
}
in the txt file :
client-001=naam
&password-001=paswoord
but somehowe it doesn't go
can somebody show me what goes wrong
View Replies !
View Related
Next Variable From Imported Text File
Hey, I have a text file with a random number of variables (generated server side). For example:
var1=Here's my text for this first box that's going to do stuff.
&var2=Here's another text section that will be placed in a box.
I want my script to put var1 in a dynamic text box, do something with it and then move on to the next variable and put that one in and so on...
How do I tell it to move to the next variable?
Thanks!
View Replies !
View Related
Saving A Text Variable As A File
Hi everyone! [Please Help!!!!]
I am working on a little flash program, and everything is working great! (Thanks to tutorials on this site!!) And I am trying to do one last thing.
I have a dynamic text variable called "login" and what I would like to happen is on the click of a button, I would like this file to be saved to a set path. And I am hoping I could use an input text field for the filename.
To make things clear, I will just quickly explain what I am doing with a small example. I have 2 input text fields in my flash program and one dyanmic. The two input text fields are called "username" and "password" and the dynamic is called "login". Now what I would like to happen on the click of a button is. (Forgive me for my psuedocode here... just trying to make it quick!)
on click .... save variable "login" as c:username.txt, the username in the filename being the inputted text variable username.
Please help! I am on a quick deadline for this, any help is appreciated!! I just cant figure it out!
Thanks!
- Lenny
View Replies !
View Related
Loading From A .txt File In A Text Variable....
hi,
I searched the forum for a while and I also read the help (F1) of cause......
My problem: I load a variable with loadVariables("filename.txt",""); The content of filename.txt is myText= a long multiline text with many types like ó or é or ñ
In my .fla I put an dynamic text field and put in the var. field myText
Ok, the text appears but non of ó or á or ñ characters do appear (instead appears something strange...) and the text ends as soon as there is a & (well, of cause I can put an and instead of &, but I would like to use &). How should I do?
thank you for helping.....
View Replies !
View Related
Using Text From Txt File (Load Variable)
I'm loading some text from an external file (page1.txt)and trying to use the variable in it (ba00,ga00,etc) to change some properties of a movie.
Example:
Line 1:loadVariables ("page1.txt", "mysliders", "POST");
My page1.txt reads something like ba00=-35&ga00=-35 etc.
Line2: setProperty ("mymovie", _x, ba00);
Unfortunately, the variables I set in my external file (page1.txt) does not get defined until the very very end of all my action scripts.
I have used the debugger and have verified that the variable BA00 doesn't get defined when I want it to. Is there a way to set the priority of when the variable gets defined or am I doing something wrong. Attached is the actual FLA.
Thanks in advance.
p.s. By the way, I'm still working on the action scripts so I do realize that I need to add a NUM modifier to make the variable a number and not a string. I'm just trying to have it read the variable at the right time first.
Any help would be great,
Walt
View Replies !
View Related
Loading A Text File Off A Variable...
Just as the title says... I'd like to load specific content (other variables) from external text files.
loadVariablesNum("setup.txt",0);
I use this method to load in the text files hardcoded. I was wondering if it was possilbe to change the "setup.txt" to be the value of a variable... obviously I have tried simply substituting it for "myVarialbe" but that doesn't seem to work... is there a way?
Any help would be greatly appreciated.
Thankyou.
View Replies !
View Related
Text From External .txt File Via Variable - Help
i want to load text from an external textfile into a dynamic textfield using variables inside the textfield (&example = text).
i already have the code for that
_root.bgtext.textfeld.htmlText = this.example;
which works.
but instead of "example" i want to use a variable from my flash movie
>> inside .txt file:<<
&text01 = text
>> in action script: <<
myvariable = "text01";
_root.bgtext.textfeld.htmlText = this.myvariable;
... which doesn't work. does anyone know how to send variables (string) to external textfiles?
thx!
eve
View Replies !
View Related
Import Text From File TO A VARIABLE
Hey!
I was looking around, and couldnt find any solution for my question, even in Flashkit or Google, then I decided to post it here...
I was thinking if is possible to import text from an external file (txt straight format), NOT to a textbox, but to a variable.
The explanation is simple: I DONT want to display this imported text, but just check what's there (just like a config file or something like this, got it?).
Someone knows if it's possible and how to do that?
Thank you!
View Replies !
View Related
Checking A Variable From Text File
Hi,
I want to read variables from a text file called "aantal.txt". In this file is the following line:
&aantal=3
The swf is a picture gallery. The number 3 is the number op jpg's that need to be loaded.
On the first frame of my flash file I have this code:
Code:
loadVariablesNum("aantal.txt", 0);
_root.p1.visible = false;
_root.p2.visible = false;
_root.p3.visible = false;
_root.p4.visible = false;
if (aantal > 1) { loadMovie ("images/kl1_01.jpg", _root.p1); }
if (aantal > 2) { loadMovie ("images/kl1_02.jpg", _root.p2); }
if (aantal > 3) { loadMovie ("images/kl1_03.jpg", _root.p3); }
if (aantal > 4) { loadMovie ("images/kl1_04.jpg", _root.p4); }
Sadly, this doesn't work. I think because i am doing something wrong with checking the variable (or loading the txt or.. you tell me..)
Can somebody tell me what i am doing wrong?
-Thanks
View Replies !
View Related
Variable Images From A Text File
hi - i wondered if anyone can help me out.
i need to know how to do a real simple thing (i hope its simple)
I want to my flash file to show an image, but it should be defined from a text file. nothing fancy at all.
can anyone help me?
thanks in advance
View Replies !
View Related
Variable As Instance Name From Text File
I am loading a variable(myVariable) from a text file into my time line. Also on the time is an a mc (shy_mc) that I've set to visible = false. I have a button, also on the same time line that on(Press) calls a function (showShy). the function uses the variable to reset the visible property of shy_mc. shy_mc instance name (shyGuy) is the same as the content of the variable in the text file. I've also set up a trace function to make sure the variable is being passed correctly. The trace function shows "shyGuy" but the visibility doesn't change. Any ideas? See code below:
text.txt = myVariable=shyGuy
actionScript =
loadVariables('text.txt', _root);
this.shyGuy._visible = false;
function showShy () {this[_root.myVariable]._visible = true;
trace(_root.myVariable);}
View Replies !
View Related
Multiple Variable In Text File
Hi. I'm having an issue creating a working file that loads an external text file that contains multiple variables and viewing them using different buttons.
The issue is not with the text file or the loading of the variables, but with the buttons and the variable text not displaying on rollover and I'm not sure why.
Text file:
The text file is named quotes.txt and contains 6 varible quotes in form quote1=blah"e2=blah"e3....
The actionscript for loading:
myData = new LoadVars()
myData.load("quotes.txt")
myData.onLoad = function(succes){
if(succes){
quote1_txt.text = this.quote1;
quote2_txt.text = this.quote2;
quote3_txt.text = this.quote3;
quote4_txt.text = this.quote4;
quote5_txt.text = this.quote5;
quote6_txt.text = this.quote6;
} else trace ("Error loading data")
}
The button setup:
There are 6 buttons with the following code"
on (rollOver) {
this.gotoAndPlay("quote_1");
}
on (rollOut) {
this.gotoAndPlay("start");
}
where quote_1 is a frame label. The frame has a dynamic text box with a name of quote1_txt. Etc, etc. The thing is, when I place and of the dynamic text boxes in the first frame of the movie (in other words not activated by using the buttons to go to specific frames) the variable text displays fine. But when going to the different frames the text won't display at all.
I hope I am not being confusing in how I'm describing this. Any help is appreciated.
Thanks.
View Replies !
View Related
[f8]how To Read A Text File Into A Variable
hi all
how to read a text file into a variable
i dont want to show the variable from text file into a text field i want to use it as new variable
i have a banner that loads a random bnr from 30 swf files start from bnr1 to bnr30.swf
Code:
var randomNumber = Math.floor(Math.random() *30) + 1;
mc.loadMovie("bnr"+randomNumber+".swf");
then i try to make this number ( 30 ) as a variable in a text file so that every time i add a new bnr i just change this text file
the code will be
Code:
var my_content=loadVariablesNum("mytext.txt", 0);
var randomNumber = Math.floor(Math.random() * my_content) + 1;
mc.loadMovie("bnr"+randomNumber+".swf");
i have the mytext.txt with the variable my_content=30
the error message is
Error opening URL "bnrNaN.swf" so it add NAN instead of the random number
and i try to trace the
Code:
trace(my_content);
it add this message in the trace window
Undefind
View Replies !
View Related
Import Text File With No Variable
Normally, when importing a text file through LoadVars you would have to format the txt file like this:
content=This is de line which people should read
So it would have to start with a variable.
Is there a way to do this without the txt file needing to start with a variable? So the txt file would just contain the text?
This is the line which people should read
I guess not with LoadVars (it needs a variable), but perhaps in another way?
View Replies !
View Related
Text File Variable Problems
Okay, so I used the loadVariablesNum command to retrieve information from a text file. This text file contains several variables (i.e. &entries = 7, etc.). The problem is that flash doesn't recognize the variables as numbers. I thought maybe they're being loaded as strings, so I used parseInt() and Number() to try to convert them to numbers, but neither seem to turn the variable into a number. I know this because whenever I try to do a mathematical operation with them it just doesn't work. This also is a problem for my for(i=1, i<=entries, i++) loop. It just doesn't recognize the variables as numbers...any suggestions would be greatly appreciated.
View Replies !
View Related
Passing Text Through A Variable Into A Swf File
Can anyone help?
I am loading a swf into level 0 of my main timeline
here is the code>>>>>>>>>
_root.createEmptyMovieClip("mcImageHolder",0);
mcImageHolder._x=300;
mcImageHolder._y=20;
mcImageHolder._xscale=100;
mcImageHolder._yscale=100;
mcImageHolder.loadMovie("text.swf",0);
line1.onRelease = function() {
mcImageHolder.unloadMovie(0);
mcImageHolder.loadMovie("image01.swf",0);
_global.myStatement = "This sucks";
_global.myPictureTitle = "A26 Editorial:Letters, Mar. 10 2007";
}
THEN IN MY LOADED SWF - I HAVE A TEXT FIELD THAT REFERS TO THE global variables : myStatement and myPictureTitle
myTitle.text = (_global.myPictureTitle);
it worked at first and the loaded swf would display the text set by the global variable in the main timeline
and now after changing the design a little
it doesn't work anymore
i tried it first with local variables and that didn't work either
any suggestions?
View Replies !
View Related
How To Load The Variable Name In Text File?
//in test.txt
n1=images/1.jpg&t1=This+is+first+picture&n2=images/2.jpg&t2=This+is+second+picture
//in flash
rnd = random(2)+1;
myVars.load("test.txt");
myVars.onLoad = function(ok) {
if (ok) {
n = myVars["n"+1];
t = myVars["t"+1];
}
}
mc.loadMovie(n,0);
txt.text = t;
can teach me how to get the variables in text file and it's content?? thanks
View Replies !
View Related
Help With Loading A Variable From A Text File
I've only been coding in flash for a couple of days, so I'm sure this is an easy fix. I've been working on a solution for a flash ad system on my university's current student site. Essentially the file loads a number of movie files into one file so that the people on the backend making the flash ads don't have to make a new swf everytime the ads change. Alright so lets get to my troubles.
This actionscript is located on the first and only frame of the movie:
ActionScript Code:
loadVariables("tads.txt","0");
ads = Number(ads);
i = 1;
holder.loadMovie("movie_1.swf");
As you can see I am attempting to load a variable from the text file tads.txt This text file contains the following text ("ads=5") Alright so that variable is imported as a string and needs to be converted to a number. Line two does this. Then the last two lines have to do with what the current ad is and loading the actual swf's.
Alright this next script is from the forward button (which advances the swf to the next ad):
ActionScript Code:
on (release) {
if (i == ads) {
i = ads;
} else {
i = i+1;
}
}
on (release) {
currentMovie = ["movie_"+i+".swf"];
holder.loadMovie(currentMovie);
}
on (release) {
with (pBar) {
_xscale += (i/ads) * 200;
}
}
So basically the first portion of the script checks the current movie number (the variable i) against the variable that I am loading. If they equal eachother then they simply equal eachother. If not 1 is added to i and the next ad is displayed.
My problem is that once I get to the 5th movie the ads variable should keep the next ad from displaying. Unfortunately it doesn't work. I assume that it must by how I am loading the variable, but it could be something else too.
View Replies !
View Related
Using Imported Text From XML File As Variable
I am using external data from a XML file in flash. it works perfectly as I have to display that info on dinamic text boxes... but the problem appears when I do not want only to display them.. but also to use them as variables... it doesn't work... what is the best practive for this ? I will appreciate your suggestions, thanx in advance ...
View Replies !
View Related
Send Variable To Text File...
I'm looking for a way to send the variable stored in a text field to a textfile on the serevr and save it there.
ie the user enters a name and a number into 2 text fields, this is then sent toa textfile (or xml file, etc) and is storedin there for use later.
Any ideas or links to tutorials?
Sean
View Replies !
View Related
Is It Possible To Use A Number From A Variable In A Text File?
Hey guys I've got a question over something that should be simple but it's doin my head in cause It doesnt work!
I got a "for in" loop loading variables from a textfile, I want to get from it the number of items to display.
in the text file the variable "sectionitems" corresponds to a string, "8".
--> §ionitems=2
but this doesnt work:
for(i=0;i<=sectionitems;i++) {
If I do that doesnt work as well, it makes as infinite loop
Number(sectionitems);
Code:
loadItems = new LoadVars();
loadItems.load("test.txt");
loadItems.onLoad = function() {
nitems = this.sectionitems;
test_tf.text = nitems;
trace("nitems = " + nitems);
for(i=0;i<=nitems;i++) {
trace(i);
}
}
this still makes an infinite loop !
how is it possible to use a number from a variable in a text file ?
View Replies !
View Related
Load Variable From Text File?
Hello someone,
In the movie that will play about 30 times, i display the content of a variable who's content will change each time the movie plays. The varaible comes from a text file "file://c:\nums.txt". I use loadVaraiblesNum, to load the file, but I can't use the second value for my variable.
Could someone help me, I am desperate.
Thanks.
View Replies !
View Related
Using A Variable To Change Name Of Text File Loaded
What I have set up so far works.. but only occasionally so maybe someone could help me out.
I have one layer called "song buttons" which contains 6 buttons. At frame 12 (first keyframe of the layer) each button has script similar to this
on (release) {
lyricfile = "lyrics/escapelyrics.txt";
gotoAndStop (15);
}
each button's action script changes slightly being the name of the text file loaded and the frame to which it goes to and stops.
So in the above example at frame 15 there is an isntance of a movie clip which loads the variables in from the variable _root.lyricfile and displays the text into a scrolling text box.
The problem is it doesn't work right. Some of the buttons don't load anything. Some load the wrong text file and some seem to reset it so that another buttons works.
Do I need to somehow reset the variable between each instance of the movie clip being loaded or what?
I know this doesnt' make much sense but if anyone has an idea or would care to look at my .fla file it would be greatly appreciated.
View Replies !
View Related
Problem With Reading A Variable In A Text File. Please Help.
How can I get a button to read the text inside a variable that is in the _root level. right now it won't read it, it keeps going to the else statement, which in terms its not seeing the variable please help me =P.
Code:
on (release) {
if (U == "Admin") {
tellTarget ("/Update Window") {
gotoAndStop(2);
}
}
else if (_root.level33 eq "News Poster") {
tellTarget ("/Update Window") {
gotoAndStop(2);
}
}
else {
tellTarget ("/Un-authorized") {
gotoAndStop(2);
}
}
gotoAndPlay(11);
}
I'm not sure if thats right if someone can point out where and what I'm doing wrong that would really be apperaitated(sp?). Thanx
Oh yah the U Variable is reading the user33 variable which is for the username in the password window
[Edited by Mdeitz on 11-08-2001 at 04:51 PM]
View Replies !
View Related
Trying To Load Variable From Text File To Use In GetURL
Help!
I'm trying to load a variable from a text file to use in a getURL action.
I am trying to load the file with
loadVariables ("flashcompleted.txt", 0, "GET");
and then doing a
trace("url is" + NextUrl)
which is the variable in the file that I'd like to use.
Nothing appears for the value of the variable in the trace window so I'm assuming that I'm not even accessing the file which is in the same directory as the Flash files.
I'd then like to use the NextUrl variable to
getURL (NextUrl, "_self");
a) Can I do this?
b) What am I doing wrong?
Any help would be gratefully received!
Sas
View Replies !
View Related
Reading _visible Variable From Text File
hi
i have a SWF that reads a variable for the _visible property from a string in a text file that looks like this:
s1visible=false
the 'false' part is whether it is visible or not (it would be 'true' if it is visible of course). but when i have this code in my SWF to read the variable:
MC1._visible = s1visible;
it doesn't work, the object is still visible if the variable is set to false. i have tried a bunch of ways to fix this including using:
MC1._visible = Boolean(s1visible);
OR
MC1._visible = (s1visible == "true") ? true : false;
and those don't work...any ideas? thanks!
View Replies !
View Related
Pulling Multiple Variable From Text File..
What Im doing is trying to make a calendar..
I have a button for each date set up, I want to have a variable pulled from a text file and displayed in a dynamic text field to the right of this button... so in the text file Im going to setup variables for all of the dates in the month, is this the best way to do this?
if so what is the code for the text file and the button press... I appreciate all your guys help, your the best!
peace.
K Hildebrant.
http://www.synergyprod.com
View Replies !
View Related
Spliting And Listing A Text File Variable
I searched the forums for this, but did not find exactly what I was looking for.
What I want to do is:
I have a text file:
---------------------------
list_new=test1,test2,test3
---------------------------
I want to load this into my movie.
Then create an array out of it. So it would end up something like this:
--------------------------
list_new[0]=test1;
list_new[1]=test2;
list_new[2]=test3;
--------------------------
What want to do with this is then load this into a listBox component. But the text file will look as I have given..
Is this possible?
View Replies !
View Related
Print & Output Text File From Variable?
Im using flash to create dynamic graphs etc, the graphs will be generated by variables inputted by the user.
The aim of the project is for job level assesment.
On each page the user has space to type in any comments (things they need to improve on etc). I need to be able to gather the contents from these text boxes and be able to print a sheet which would have them all listed one after the other with a return between each.
I might also need to have the option to save the data as a text file to their computer (the clients not sure about this yet) .
Any comments on the best ways to go about any of these would be greatly appreciated
The final project will be outputed as a projector and run off of a cd, so preferable any scripts that might me used would need to be run off of the cd (if this is possible)
Cheers
Ian
View Replies !
View Related
|