LoadVars(), LoadVariables(), LoadVariablesNum()
I am studying the handling of external data (particularly PHP) with Flash. I have read some books and tutorials. Some use a LoadVars() object, some use loadVariables() and some use loadVariablesNum().
I wonder what are the differences among these 3 commands?
Are they used in different situations?
DevShed > Flash Help
Posted on: May 30th, 2004, 09:42 AM
View Complete Forum Thread with Replies
Sponsored Links:
Loadvariables() & Loadvariablesnum()
1. where can i get information about those two functions?
2. how can i load variables from a txt file to array?
i tried :
in the text file i wrote
a[1]=abc&a[2]=ddd
and in flash
loadvariablesnum("text.txt",0);
trace(a[1]);
and the result...
no result!
View Replies !
View Related
LoadVariables Vs LoadVariablesNum?
I've seen seen several references to loadVariablesNum in these forums and the FlashKit tutorials. Yet, I can't find any reference to it in the Flash help files. I only find loadVariables.
What, if any, is the difference? And, why isn't ..Num in the reference?
TIA
-Keith
View Replies !
View Related
LoadVariables Vs. LoadVariablesNum?
What's the difference between loadVariables and loadVariablesNum?
I tried using loadVariables to load info from a text file, and it didn't work, even though this was the command found in the ActionScript dictionary on my version of Flash (Flash 5). When I tried loadVariablesNum, it worked, even though this command wasn't found in the AS reference.
What's going on?
View Replies !
View Related
LoadVariables OR LoadVariablesNum
Hi all, i'm working on "asp and flash", and i have a simple question:
what's the difference between "loadVariables" and "loadVariablesNum"?
i tries them and only the "loadVariablesNum" worked when tried to load vars from an asp page.
2 b more precise i'm using Flash MX
thanks
View Replies !
View Related
Sending Variables To Php Using LoadVariables & LoadVariablesNum
Hi There,
have a problem
i'm trying to send variables to php from my movie
problem is, if i'm try to send it with
loadVariables("log.php?kategorie=" add _global.currentcategory add "&bilderstrecke=" add _global.currentstreckennum add "&bildnr=0","this","POST");
it only send bildnr to php the others (_global.currentcategory add "&bilderstrecke=" add _global.currentstreckennum ) is not send
if i use
loadVariablesNum("log.php?kategorie=" add _global.currentcategory add "&bilderstrecke=" add _global.currentstreckennum add "&bildnr=0","this","POST"); it works but it opens a new browser (those codes above is use in on release)
well i don't want it to open in a new browser ..
so plz if anybody knows how to solve
thanks
View Replies !
View Related
LoadVariables() Or LoadVariablesNum() Problem In Movie Clip
I want a movie clip to constintly keep loading from a php file.. It works if i just put two looping frames in the main timeline, but i need a movieclip to load variable from my php and send the variables to the main timeline... Why am i having so much trouble? Can't you do _root.loadVariables()? Is there a different way? The _root.loadVariables doesn't work..
View Replies !
View Related
LoadVariablesNum Equivalent Of LoadVars
Hey there,
I've been searching for days to find an answer so now it's time to post and I'm hoping someone is gonna know this...
I know how to use an onLoad command while using a "new LoadVars", but is there a way to do the same thing while using "loadVariablesNum" ?
View Replies !
View Related
LoadVariablesNum()works, LoadVars Doesn't
I have a form communicating with a cgi script - well if I use loadVariablesNum() it works. And only partially. The declared variables present on frame 1 work (email address and a subject header, the 'Hidden fileds' one associates with formmail). I get a blank return mail, with no variables attached to the fields.
Isn't loadVariablesNum() old AS? And why is it the only AS command that actually excites the cgi script on the other hand. And why isn't the cgi getting my variables?
I could do this in 10 minutes in dreamweaver. (Which I'm about to do so I can get paid.)
View Replies !
View Related
LoadVariables Vs New LoadVars() [Help]
HI dear,
consider two method of loading an external text file called "english.txt" which is in the same domain of the .swf file.
and assume there is a text file var "mytext" in the main timeline.
//method 1
loadVariables("english.txt",_root);
trace(_root.mytext);
// why the result in the trace window is "underfined" ???
but the textbox in the main timeline correctly show the content of the datafile.
//method 2
MyVars = new LoadVars();
MyVars.load("english.txt");
_root.mytext = MyVars.mytext;
trace(MyVars.mytext);
//why the trace is also again "underfined"
//also this time the textbook is empty in the main timeline.??
============================
data content of english.txt
mytext=hello.
==========================
thx for any help.
View Replies !
View Related
LoadVars And LoadVariables
Because I have so much information to send to my php script, I need to break it down into groups. Here is what I tried...
Code:
group1 = new LoadVars();
group1.info1 = whatever;
group1.info2 = whatever;
loadVariables("myscript.php", group1, "GET");
// I also tried the below line.
// group1.loadVariables("myscript.php", "GET");
trace(group1);
For some reason the data isn't being sent. Flash isn't even giving me any errors.
the trace ends up looking something like info2=whatever&info2=whatever so that seems fine. I guess my problem is with the loadVariables command.
Anyone have any ideas?
View Replies !
View Related
[F8] LoadVars Or LoadVariables?
Hey guys
Which is faster in terms of returning results?
(ie: which offers a faster download)
My other question is, the LoadVars object can retieve bytes loaded... but how can this be possible with a php script + mySql? Can someone explain a practical use for bytes loaded in the LoadVars object?
Thanks
~TheWaste
View Replies !
View Related
LoadVariables(); Or LoadVars();
Howdie Peep Peeps!
Basically, I have made a flash movie that was designed to be a news panel. It uses an external text document and dynamic text fields to get news titles, stories and a link to the whole story. The flash is working perfectly, I love it!
The news story stays on the stage for a period of time, I set this time by making a variable in the first frame. _global.wait. The variable is used along side a timer MC which counts up and changes to the next story when it reaches the value of wait.
Basically I want the user to be able to set the wait variable. I am going to make some php or whatever that writes to the text document but for now I just want to manually write &wait=(waiting time) in the text document.
I have had so much trouble doing this, it seems so simple but I don't seem to be able to use the external variables in the actual actionscript, the only way I can use them is by putting the variable names into dynamic text fields.
I have uploaded the flash and text document. http://www.pureenergymultimedia.havnet.net/flash.rar
Thanks in advanced, It would be much appreciated if you could add my msn also if you know hwo to solve this! Thanks very much! I am trying to learn actionscript and this problem has poppe dup a few times. cheezybell@hotmail.com
View Replies !
View Related
LoadVariables To LoadVars
Okay, so ive loaded some data from PHP into a textbox in Flash with loadVariables, but then found out, that loadVariables, havent got a way of checking if everythings loaded. So im gonna use LoadVars instead, i just need some help with the code. This is the old loadVariables code:
ActionScript Code:
on(rollOver){ loadVariables("document.php", _parent, "POST"); bgheight = _root.textbox._height+((_root.textbox._y-_root.tester._y)*2); maskheight = _root.textbox._height+((_root.textbox._y-_root.tester._y)*2); _root.tester.scale(bgheight); _root.tester2.scale(maskheight);}
This way it works fine, except that it does the height setting, before content is actually loaded into the textbox. How should this code look with LoadVars to work?
View Replies !
View Related
LoadVariables To LoadVars
Have a rather complicated timer/countdown clock that was working fine with
[as]loadVariables("days_left.asp", get);[as]
Now my programmer has asked to change the loadVariables to LoadVars, never used the LoadVars class before, first attempt...
[as]myLoadVar = new LoadVars();
myLoadVar.load("days_left_test.asp", "GET");[as]
...is not working. Any advice as usual greatly appreciated.
Cheers
Munki
View Replies !
View Related
LoadVariables To LoadVars
Okay, so ive loaded some data from PHP into a textbox in Flash with loadVariables, but then found out, that loadVariables, havent got a way of checking if everythings loaded. So im gonna use LoadVars instead, i just need some help with the code. This is the old loadVariables code:
ActionScript Code:
on(rollOver){ loadVariables("document.php", _parent, "POST"); bgheight = _root.textbox._height+((_root.textbox._y-_root.tester._y)*2); maskheight = _root.textbox._height+((_root.textbox._y-_root.tester._y)*2); _root.tester.scale(bgheight); _root.tester2.scale(maskheight);}
This way it works fine, except that it does the height setting, before content is actually loaded into the textbox. How should this code look with LoadVars to work?
View Replies !
View Related
LoadVars Vs LoadVariables
I have already read the documentation about it within flash, I know the benefits LoadVars gives me and stuff. But I just don’t see how to load the vars to a specific object, I know using my_lv.load loads the vars to my_lv so I can give them the appropriate treatment, but then how do I send the vars to a particular movie clip? _root.something.something?
View Replies !
View Related
LoadVars Object Vs. LoadVariables()
has anybody worked with the LoadVars Object?
I'm wondering if it is worth using it, rather than the easy and simple loadVariables (which I am familiar with)?
Also i would appreciate if you could include a short sample of code (an extensive sample is ok too, but it's your time) since the AS-Dictionary doesn't include that and because it is easier to understand than a description.
thanks a lot and greets from zurich
View Replies !
View Related
LoadVariables Does Not Work In MX - Do I Use LoadVars?
Hi all,
i have a real big aplication that i contructed in Flash 5, but now am using some MX drawing features, so have moved to MX. My problem is that i was using
loadVariables("files/save.asp", self, "POST");
to load variables to an asp page and then a database, when the asp page had run then the page sent back a flag "myResult=ok". I looked for the flag in Flash and when i found it i knew that the database had the details i sent.
This worked fine in Flash 5, but now in Flash MX the thing wont work and i dont know how to send variables using loadVars
can someone help?
thanks in advance
gilesb
View Replies !
View Related
LoadVariables(); Or LoadVars(); HELP NEEDED
Howdie Peep Peeps!
Basically, I have made a flash movie that was designed to be a news panel. It uses an external text document and dynamic text fields to get news titles, stories and a link to the whole story. The flash is working perfectly, I love it!
The news story stays on the stage for a period of time, I set this time by making a variable in the first frame. _global.wait. The variable is used along side a timer MC which counts up and changes to the next story when it reaches the value of wait.
Basically I want the user to be able to set the wait variable. I am going to make some php or whatever that writes to the text document but for now I just want to manually write &wait=(waiting time) in the text document.
I have had so much trouble doing this, it seems so simple but I don't seem to be able to use the external variables in the actual actionscript, the only way I can use them is by putting the variable names into dynamic text fields.
I have uploaded the flash and text document. http://www.pureenergymultimedia.havnet.net/flash.rar
Thanks in advanced, It would be much appreciated if you could add my msn also if you know hwo to solve this! Thanks very much! I am trying to learn actionscript and this problem has poppe dup a few times. cheezybell@hotmail.com
View Replies !
View Related
LoadVars And LoadVariables Problem
I'm having a little trouble with these two methods and can't find any information about this anywhere.
Basically, I have a flash movie which I need to communicate with a web server. I want to do this by passing values back and forth between the movie and a PHP script. Both will be hosted in the same place. On my development machine I have a php enabled web server running, and I test my stuff by changing the appropriate IPs/hostnames in flash and publishing the swf to the web folder and then testing it in firefox. Here's what my code looks like:
quote:var testLoader = new LoadVars();
testLoader['testing123'] = "this is a test";
testLoader.sendAndLoad("
View Replies !
View Related
Simple Loadvariables / Loadvars Question
Hello, I am having some problems and am unable to locate any help for it.
running : flash version 6.0
i have a movie and the only script is:
_______________
loadVariablesNum("thefile.txt", 0);
thevar = data;
trace(data);
_______________
thefile.txt contains only
____
data=This is a test. A test
_____
in the debugger i get a variable called data that appears to have the value in level 0. However, when i trace it or put the value in a different value, it comes back as undefined. I have tryed everything to get it to work and i cant find any info on it either. In some of my experiments trace resulted in [type function] . any help would be greatly appreciated becuase i have no idea what i am doing wrong. I get the same result if i use loadvars instead of loadvariables.
thanks in advance,
gillian
View Replies !
View Related
Guestbook, Change From LoadVariables To LoadVars
Hello, having created a very simple guestbook modified from a tutorial i found.
The format and idea of the thing is simple (as im a beginner to php)
but it uses LoadVariablesNum instead of the LoadVars() method which i would prefer and is obviously the better way. The thing is i am not entirely sure how to convert the code to use loadVars and to validate the "post message" form without stopping the php sort of thing. It uses a text file to write to, after changing the permissions on the server.
There is a .zip of the files from the tutorial, i have only modified the .fla myself. It's from flash-db.com i think.
If anyone can tell convert it for me, or tell me a better way to do the same thing as i'm doing i would be extremely grateful.
Hope someone can help me or point me in a better direction.
Thanks!
View Replies !
View Related
Which Is Faster In Loading LoadVars Or LoadVariables?
Hi,
I'm just wondering which is faster in loading data from a database loadVars or loadVariables. I made a shout box and used loadVars to load shout entries from database but I think it took twice the time to load data than using loadVariables which I used on my news blogger. (Shoutbox: www.keldesigned.com/test/main.html)
Did anybody else experienced this phenomenon?
:-
Thanks,
comicGeek
View Replies !
View Related
LoadVariables: Can Two LoadVariables In The Same Script Cause A Problem?
Hi,
It seems that for some reason, my attempt to send vaiables is not working. I'm not certain if its my syntax or the fact that I have a second loadVariables later in my script(with a different name of course). help?
heres a sample of the script that I'm using:
ClickedSendVar = new loadVariables();
ClickedSend = "bob="+bob+"&fred="+fred+"&jim"+jim;
ClickedSend.send(_root.on_card, ClickedSend, "POST");
View Replies !
View Related
Preloading Loadvars + Code That Uses The Loadvars
Hey everyone
I can't find out how to do this.
I have a main file with a menu. When a menu button is pressed, and external SWF with the corresponding page is loaded into a container in the main movie. I use the MovieCliploader for this
In all my external files, I have a loadVars that gets XML-output from a PHP-file. In the onLoad handler, I have a buildPage() function that takes the variables and e.g. builds a news page and so on.
My question is how I make a preloader that preloads the loadVars + all the code inside my buildPage function? I mean - on big preloader for it all?
I guess it cannot be done with my moviecliploader inside my main movie?
thanx - Rune
View Replies !
View Related
Help LoadVars.send Vs. LoadVars.sendAndLoad
OK, my understanding is that if example 1 works so too should example 2:
Example 1:var my_lv:LoadVars = new LoadVars();
my_lv.overall_score = _root.overall_score;
my_lv.send("score.php", _blank, "GET");
Example 2:var my_lv:LoadVars = new LoadVars();
my_lv.overall_score = _root.overall_score;
my_lv.sendAndLoad("score.php", result_lv, "GET");
My understanding is however clearly wrong as example 1 will pass the variable quite happily to my php script which will update appropriately. In example 2, nothing. Nada. Variables aren't availabe to php and (therefore unsurprisingly) my_lv.onload isn't picking up any return.
Where am I going wrong this time?!
Cheers,
Andrew
View Replies !
View Related
[AS1][loadVars] Scope Trouble With LoadVars
Hi everybody,
I'm new on this server !
Is there a way to attach a file to my thread ?
You would find enclosed a ".zip" file in wich there's a ".fla" file, a ".txt" file and 6 ".jpg" images.
Frame 1 of the FLA only has a "Preload" class/constructor found on another site and works well.
Frame 2 launches the graphic interface construction.
The file "externalVar.txt" has one variable "maxVin" with a value of 6.
I would like to know WHY i can't acces this variable from outside of the loadVars object's scope (i would better say from outside of its ".onLoad" methode scope).
In fact, when i trace my variable "maxVinNum" from outside of this function, flash player return "undefined". Even if i declare "maxVinNum" on the _root (_root.maxVinNum).
For information, at the start of frame 2, i have let an instruction in comment :
//var maxVinNum = 6;
When we activate this instruction, then the variable is directely declared and everything works well. This test allow us to verify that scripts are not bugged.
Here is the script of frame 2, some of you may understand quickly what's wrong :
//var maxVinNum = 6;
var vignetteVars = new LoadVars();
vignetteVars.onLoad = function(ok) {
if (ok) {
trace(this.loaded);
maxVinNum = this.maxVin;
trace("maxVinNum = " + maxVinNum);
}
};
vignetteVars.load("externalVar.txt");
//
function buildArray (arrayLength) {
FileArray = new Array();
for (var i=0; i<maxVinNum; i++){
FileArray.push ("v_"+(i+1)+".jpg");
}
trace("FileArray : " + FileArray);
};
//
function buildSlide(){
vinKern = 1;
preloadSlide = new Preloader(load_indicator);
for (var i=0;i<FileArray.length;i++){
//Construction du slide
slide.vignette.duplicateMovieClip("vignette"+i,i);
slide["vignette"+i]._x += i*(slide.vignette._width + vinKern);
// ajoute à la file du preloader
preloadSlide.insert(FileArray[i], this.slide["vignette"+i].conteneur, i,"","","okload");
}
slide.vignette._visible=0;
};
buildArray(maxVinNum);
buildSlide()
stop();
I hope my english is not too bad, and my explaination not too long and understable.
thanks a lot for your help !
View Replies !
View Related
LoadVars.send VS LoadVars.sendAndLoad
Last edited by gkcohen : 2004-04-23 at 09:19.
can someone tell me what the difference is with these two. here is my problem. i am trying to submit some info to php script. i have my variables in text file.
if if loadVars.load("textFile.txt");
and then say loadVars.send(url, "_blank", "post") then it will work. but i dont want to load the resulting php page outside of flash. if instead i do loadVards.sendAndLoad(url, dataReceiver, "post") then it will not work. my dataReceiver will return blank, or i will get an error that the variables were not sent.
i guess that you cant loadVar from a text file and then use it with sendAndLoad, is that right?
the reason for using the text file is the real problem. the php script requires a variable 'group_ids[]' with an integer for a value. apparently, flash cant read the variable with the '[]' in it. i have tried different ways to get it formatted, but it wont work. i tried do something like loadVars.group_ids + "[]" = 1 but i get message stating the the object to the left of the operand must be a variable.
my only fix was to use a text file to load this variable. it works, but only when using the send and having a php srcipt popup.
i am not too familiar with php to modify the scipt, and i think that variable needs to be an array.
i dont know what else to do. HELP
gkc
View Replies !
View Related
[AS1][loadVars] Scope Trouble With LoadVars
Hi everybody,
I'm new on this server !
Is there a way to attach a file to my thread ?
You would find enclosed a ".zip" file in wich there's a ".fla" file, a ".txt" file and 6 ".jpg" images.
Frame 1 of the FLA only has a "Preload" class/constructor found on another site and works well.
Frame 2 launches the graphic interface construction.
The file "externalVar.txt" has one variable "maxVin" with a value of 6.
I would like to know WHY i can't acces this variable from outside of the loadVars object's scope (i would better say from outside of its ".onLoad" methode scope).
In fact, when i trace my variable "maxVinNum" from outside of this function, flash player return "undefined". Even if i declare "maxVinNum" on the _root (_root.maxVinNum).
For information, at the start of frame 2, i have let an instruction in comment :
//var maxVinNum = 6;
When we activate this instruction, then the variable is directely declared and everything works well. This test allow us to verify that scripts are not bugged.
Here is the script of frame 2, some of you may understand quickly what's wrong :
//var maxVinNum = 6;
var vignetteVars = new LoadVars();
vignetteVars.onLoad = function(ok) {
if (ok) {
trace(this.loaded);
maxVinNum = this.maxVin;
trace("maxVinNum = " + maxVinNum);
}
};
vignetteVars.load("externalVar.txt");
//
function buildArray (arrayLength) {
FileArray = new Array();
for (var i=0; i<maxVinNum; i++){
FileArray.push ("v_"+(i+1)+".jpg");
}
trace("FileArray : " + FileArray);
};
//
function buildSlide(){
vinKern = 1;
preloadSlide = new Preloader(load_indicator);
for (var i=0;i<FileArray.length;i++){
//Construction du slide
slide.vignette.duplicateMovieClip("vignette"+i,i);
slide["vignette"+i]._x += i*(slide.vignette._width + vinKern);
// ajoute à la file du preloader
preloadSlide.insert(FileArray[i], this.slide["vignette"+i].conteneur, i,"","","okload");
}
slide.vignette._visible=0;
};
buildArray(maxVinNum);
buildSlide()
stop();
I hope my english is not too bad, and my explaination not too long and understandable.
thanks a lot for your help !
View Replies !
View Related
LoadvariablesNum?
need help!
Im loading variables from a .txt in me first frame.
the variables are easily traced in the second frame, but not in the first. What is this?? I loaded them in the first!!
Thank you for helping!
/marcus
View Replies !
View Related
LoadvariablesNum To Thanks
Hi! I've got the form working, and I'm in love with PHP! But, and there' s always one of those, while the submit button sends the form variables to the right place, the next command is to take the user to a thank you page, which it is failing to do. here's the actionscripting:
on (release) {
loadVariablesNum ("benzMailPHP.php", "0", "GET");
gotoAndStop ("thank you", 1);
}
here's the site:
http://www.ernstbenz.com/benzsite.html
thanks
View Replies !
View Related
LoadVariablesNum
Hi, i am having problems with the if statment.
on (release) {
if (whatgoes here?) {
loadVariablesNum ("http://www.blahblah.com", 0);
gotoAndStop ("home");
} else {
info = "please check your details and try again";
}
}
I have this problem where by i am trying to send variables, however if one of the variables is blank, i have a variable saying " please check your details and try again " how do i make this active? at the moment the variables are being sent even if some of them are not filled in? please help
[Edited by tupac4eva on 09-26-2001 at 07:17 AM]
View Replies !
View Related
LoadVariablesNum....
Hello!
I can't load a *.txt - File, with this expression:
LoadVariablesNum("../cgi-bin/etc.", 0);
But the path is 100% right, and the file is on the same server as my *.swf - File, what's wrong?
If I copy the .txt - File in the same directory as the swf -File and if I change the filepath, everything is allright.
Thank You
Mfg
FlashNiete
View Replies !
View Related
LoadVariablesNum
Hi,
I have a “load variables” question.
Is it possible, to load variables from the local disk?
What I mean is: I am testing my MC. And I have on frame2 the action
loadVariablesNum ("text.txt", 0);
Do this action (loadVariablesNum) work also LOCAL (for testing) or must I put the “swf” and the txt file to the web????
Thanks
David
View Replies !
View Related
LoadVariablesNum
Hi,
I have a “load variables” question.
Is it possible, to load variables from the local disk?
What I mean is: I am testing my MC. And I have on frame2 the action
loadVariablesNum ("text.txt", 0);
Do this action (loadVariablesNum) work also LOCAL (for testing) or must I put the “swf” and the txt file to the web????
Thanks
David
View Replies !
View Related
LoadVariablesNum
I am trying to load a number from a textfile into a movieclip and I've put the following actionscript in frame 1 of my movieclip
var count = loadVariablesNum("puppycount.txt", 0);
the textfile is in the same directory as the movie
why won't this work???
thanks
View Replies !
View Related
LoadVariablesNum HELP
Why don't I ever make it to frame 3? It always stops on 2.
Please someone help!
Frame 1:
loadVariablesNum("test.asp", 0, "GET");
Frame 2:
if (tmpUserName == "test"){
tmpUserName = "fubar";
gotoAndStop(3);
} else {
tmpUserName = "Did Not Get It";
stop();
}
Frame 3:
stop();
test.asp:
<%
Response.Write "tmpUserName=" & Server.URLEncode("test")
%>
View Replies !
View Related
LoadVariablesNum
What am i doing wrong
tekst.txt : variab1=hello+world
loadVariablesNum("tekst.txt", 0);
variab2 = variab1;
Now variab2 is empty !!!! what am i doing wrong ! i also can't use variab anywhere in my flashmovie except the textbox on the root movie!
View Replies !
View Related
LoadVariablesNum?
Will I run into problems using the loadVariablesNum Action in the fashion below.
loadVariablesNum("http://www.newstoday.com/v1/text/homeIntroduction.txt", 0);
loadVariablesNum("http://www.newstoday.com/v1/text/homeIntroduction_Headline.txt",0);
What I think could be a problem is that I’m loading the text variables into the same level.
It seems to work in my current tests but I’m not positive as to why. Shouldn’t the second text files replace the first in the same level. Perhaps it works because the in dynamic text box has its variable already declared and in the text file the variable is assigned as well. So the info gets put away before the second text file comes in to replace it on the level. Or can the two variables coexist on the same level?
Thanks
View Replies !
View Related
LoadVariablesNum
hello-
I'm just now upgrading to actionscript in MX and have been using a great book called From the Source, Actionscripting advanced by Derek Franklin,
But as I read, he mentions the book was written with the beta version so I'm wondering if something has changed with using the LoadVariablesNum
Offline, my test works but online at two different servers I can get an external text file which contains a variable to load.
I've used both absolute and relative urls as below:
loadVariablesNum("http://www.johnsoncreativegroup.com/mxtest/recipe.txt", 0);
a few frames later, I use:
recipeBox.text = recipe;
The instance of the textbox object is named properly and again, everything works offline, but I can't figure why it doesn't online.
I have a jpeg photo that get's loaded into a placeholder movieclip right next to the dynamic text box and that always works, so I know it isn't a Flash 6 plug-in issue.
Is there some new parameters or syntax I'm missing?
The text files are simple text files and use:
&recipe=peanuts and eggs... etc
I'm vexed!
View Replies !
View Related
LoadVariablesNum Into Swf
hi !
So, I'm using adapting a php mailer form in a contact_area.swf which loads in from the main.swf my problem is this:
the form works fine and sends the message from the form to the "webmaster" but on the users end the confimation message
never arrives it pauses a "wait" label although the message has been sent.
I think it could be a loadVariablesNum problem the script goes like
this:
//on keyframe
loadVariablesNum(mailform, 0);
answer = confirm;
//on next keyframe
if (answer != confirm) {
gotoAndPlay ("done");
}
does this make a differnce if the swf. containing the form is loaded into the mainmovie?
thankyou
View Replies !
View Related
|