LoadVars "Loading"
Just curious if anyone can tell me how to add a listener to a loadVars? Right now I am loading my content in through loadVars, but there is a lag sometimes on the feed and I'd like the text field to read "Data Loading..." while the data is being loaded. Can anyone help me out?
To load the variable my code looks like this:
code: var myLV = new LoadVars(); function loadSiteVariables() { myLV.load("/backend.php"); myLV.onLoad = function(success) { if (success) { _root.strNews = fixText(this.strNews); _root.strTour = fixText(this.strTour); } else { // the vars couldn't be loaded. } }; } loadSiteVariables();
Thanks in advance.
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-05-2006, 03:47 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
New LoadVars Remote Loading Just Not LOaDInG
Ok heres the deal. this script works great locally but remotely it chokes.... I havent been able to figure out what the issue is yet but would greatly appreciate the pointers.
Ok I have a movie clip that does all the work with the instance name of "SmartText" inside this I have five frames "Start,Loading,return,checkit and Loading" all in that order.
in Start(the first frame) I have the following frame functions:
container = new LoadVars();
//need only change the names and maybe levels
container.load(_global.textname);
function percentages() {
percentloaded = Math.round((quant/total)*100);
if (_global.vat ==4){
_level2.txtinfo.MyText.wintext.window_text.htmlTex t= "<i>loading"+percentloaded+"%</i>";
}
else {
_level2.txtinfo.MyText.window_text.htmlText = "<i>loading"+percentloaded+"%</i>";
}
}
function finload() {
//which means if on services page
if (_global.vat == 4) {
_level2.txtinfo.MyText.wintext.window_text.htmlTex t =container.window_text;
_level2.title.htmlText =container.title;
}else if (_global.vat == 2){
//which means if on home page
_level2.txtinfo.window_text.htmlText = container.window_text;
_level2.txtinfo.title.htmlText = container.title;
}
//if on aboutus
else if (_global.vat == 1){
_level2.txtinfo.window_text.htmlText = container.window_text;
}
//if on contact
else if (_global.vat == 7){
_level2.txtinfo.window_text.htmlText = container.window_text;
}}
basically I have started the new LoadVars and created two functions
percentages(), which should generate percentage loaded and finload()which should load the info in the correct location.
Loading (second frame) I have the following AS:
quant = Math.round(container.getBytesLoaded());
total = Math.round(container.getBytesTotal());
percentages();
if (quant>=total) {
gotoAndPlay("checkit");
}
return (third Frame) I have:
gotoAndPlay("loading");
checkit (fourth Frame) I got:
quant = Math.round(container.getBytesLoaded());
total = Math.round(container.getBytesTotal());
percentages();
if (quant>=total) {
gotoAndPlay("loaded");
} else {
gotoAndPlay("loading");
}
Loaded I simply have:
finload();
stop();
thanx again to all who attempt to unravel my mistery.
cheers
LoadVars Not Loading On WEB HELP
I just put my site up on a server and I discovered that LoadVars wasn't reading in data. This is done in the first 6 frames of the movie. The site is ecommerce sorta thing so I am reading in the data for the products from text files (one file for each item)
Please, please check this out. (yes I have resorted to begging now)
Here is the loading function, the call to load the items,and using the variables
Frame 1:
Code:
function loadProdVars(product) {
var loadedFlag = false;
prodVars = new LoadVars();
prodVars.load(product); <********
loadedFlag = prodVars.onLoad=function () {
loadedFlag = true;
return loadedFlag;
};
for (i=0; !loadedFlag; i++) {
trace("Not yet loaded");
}
return prodVars;
}
// Also the object that needs to use the text is defined on Frame one
// _global.Product = function (name,id...........
// and the associated Product.prototype functions
//Frame 2:
item1Vars = new LoadVars();
item1Vars = loadProdVars("item1Data.txt");
//Frame 3:
item1Object = new Product(item1Vars.title, item1Vars.prodID........
Frame 6:
The site contents load
In Movie:
Call on a button press to view the product
item1Object.showProduct(blank_mc_to_load_the_swf)
It does not display the product on the web because I think that the product object was not created (properly) and doesn't know the link to the item's swf location (its read in from the text files)
I have also tried changing the line denoted with the ****'s to include the full url of the text file location such as
xxxVars.load("http://www.mydomain.com/"+product);
No avail.
Works fine on my PC and also locally with IE on http://localhost using the version posted (not the load(....mydomain.com/...) version obviously)
ANY help would be great!
John
LoadVars Not Loading :(
http://www.perseeve.com/test2/textTest.html
http://www.perseeve.com/test2/textTest.fla
The problem:
This is a stripped-down version of my external file loader which I'm having problems with. I'm testing two different LoadVars styles of loading, onLoad() and onData(). I'm applying the onLoad() to the left paragraph, onData() to the right paragraph. Here's the code:
Frame 1:
PHP Code:
//'fileDir+_global.textNane[i].name <-- reference to external .txt file
//i.e., '/txt/about0.txt'.
function popTxtLoad(i) {
var fileDir = "txt/";
var fileExt = ".txt";
myData_popTxt = new LoadVars();
myData_popTxt.load(fileDir+_global.textName[i].name);
myData_popTxt.onLoad = function(success) {
if(success) {
rawString = unescape(this);
_global.cleanTxtLoad[i] = rawString.substr(0, rawString.indexOf("=&onLoad=[type Function]"));
}
};
};
function popTxtData(i) {
var fileDir = "txt/";
var fileExt = ".txt";
myData_popTxt = new LoadVars();
myData_popTxt.load(fileDir+_global.textName[i].name);
myData_popTxt.onData = function(raw) {
if(raw != "" && myData_popTxt.getBytesLoaded() == myData_popTxt.getBytesTotal()) {
_global.cleanTxtData[0] = raw;
}
};
};
I then apply those functions like so:
Frame 2:
PHP Code:
popTxtLoad(0);
popTxtData(0);
Frame 3:
PHP Code:
stop();
//proxy variables so I can define all externally loaded variables
//in the first frame of my movie(s).
sec0Text = _global.cleanTxtLoad[0];
sec1Text = _global.cleanTxtData[0];
myText1.text = sec0Text;
myText2.text = sec1Text;
When I test the FLA from the 'Test Movie' function in Flash, it works fine. When I test it locally (localhost) and uploaded to my server, that's when there's problems.
When You visit the .html file above, depending on the browser you use (IE 5.2 for Mac, Safari 1.0.2 for Mac, and Netscape 7.01 for Mac are what I tested with) the two paragraphs that *should* be displaying, don't.
In Safari it's successful with the left paragraph 95% of the time, the right paragraph only with refresh (which is bad, it should show up right away).
In Netscape the results are similar to Safari.
In IE is where I'm super-stumped up the wazoo. Neither paragraph shows up, even with multiple refreshes.
I've tried embedding my font, not embedding my font, not compressing the FLA, compressing the FLA, nothing works. The font is just Arial, set to color 0x000000, 11-pt.
So now I come to you, my esteemed ActionScript associates, humbled and confused. Help?
Not Loading LoadVars
tell me what im doing wrong please.....
ActionScript Code:
var loadConf:LoadVars = new LoadVars();
load('widgets.conf', loadConf);
loadConf.onLoad = function() {
wd = loadConf.Widgetsdir;
bd = loadConf.Backgrounddir;
active = loadConf.ActiveWidgets;
trace(wd+","+bd+","+active);
};
stop();
1 frame with that code in it.
saved to same folder were 'widgets.conf' resides.
and the output box (were traces goes) stays empty, not even an error message
Ideas?
//VoS
LoadVars Not Loading
I am working on a project which is supposed to load external data via php using loadVars. My code is as follows:
ActionScript Code:
lista.onLoad=function(success){
if (success){
_root.loadbkg.visible=false;
_root.finestra._alpha=100;
function carica(){
if(i==lista.vanth){
i = 0;
}
url="http://www.gaetanocastelli.com/setdesign.php?id=";
_root.finestra.dati.htmlText = '<a href='+ url + lista["id"+i] + '>' + lista["titolo"+i] + ' ' + lista["anno"+i] + '</a><br />';
}
}
carica();
}
I am sure, through several tests, that the program reaches the line
ActionScript Code:
function carica(){
But then is seems it just does not execute the function. Where am I going wrong?
Loading Jpgs Using LoadVars
Yes I know this has been probably asked before, but here we go.
I have three empty movie clips (on the main stage) that are going to have jpgs dynamically put into them. Now, I can get them to load with the paths hard coded in the loadMovie() object, but soon as I put those paths as variables in an external text file and use the loadVars() object I recieve an error message showing the right path.
Is this possible to do?
-pmwyss-
Loading Variables With LoadVars
OK...I have a flash movie that starts with a login page. You enter name and password...flash sends those variables to an ASP script that checks them in a database and responds by sending a variable 'isValid' back to the movie. 'True' if they were correct and 'False' if not. So it works fine there...
ONCE you enter the correct name and password, flash loads a movie (interface.swf) into an empty movie clip called holder_mc.
This is the movie clip I'm having problems with. It loads fine, except for one thing. I am using LoadVars within that movie also, to call a script that pulls a list of names from a database and returns them to flash. (into the LoadVars object the same way it did with the username/password validation) But it doesnt seen to get any values! I KNOW the script works cause I tested it. it returns var1=project1&var2=project2 like it should. I'm using the onLoad action listener, and the code inside that executes fine. Its just I cant get any values out of my loadvars object. any ideas why?? will loadVars only work in the first frame of the entire movie? seems like it should work anywhere.
I tried referencing the LoavVars object two ways...
1) myLoadVars["var1"]
2) _root.holder_mc.myLoadVars["var1"]
I assume if I am referencing it from within the movie...wait...does a movie you load dynamically have its own _root level? man I'm so lost...
Loading Array With Loadvars
Can u load an array with loadvars... if so what format does the array have to be in.
Im using asp and when i check to see the length of the array it comes up as 50 when it should only be 5 and all the values are undefined.
[F5] Where Is LoadVars In Loading Sequence?
I've (finally) gotten loadVariables to work on a text file, but am now wondering if and how to incorporate with a preloader. Can anyone confirm if the loadVariables code (in frame 1) is executed after any implicit loading? Do I just apply a normal preloader, regardless of the explicit loadvariables("textfile.txt"), or attempt to incorporate them both?
Loading Variables - LoadVars
Hi,
This is the situation.
I got a text files with some variables.
- test.txt
logged=true
&uname=some_name
&ustat=some_status
I loaded the variables to flash using the following script
var my_lv:LoadVars = new LoadVars();
my_lv.load("test.txt", my_lv, "GET");
my_lv.onData = function(islog:String) {
trace(islog);
};
The output.
logged=true
&uname=some_name
&ustat=some_status
(The spaces between the lines are also ther in the output)Now I want to separate these into 3 variables. And use the conditional statement as follows
if(logged==true){
gotoAndPlay(1);
}else{
gotoAndPlay(2);
}
How Can I do this?
Please help...
regards
Haree
Problem Loading With Loadvars
hey,
ive got a project where i have to load 2 variables into a php script, ive tried a few ways but none seem to work.
what i need to do is basically call this address:
http://www.mysite.com/script.php?db=100&at=q76
but the 'db' and 'at' variables are what i need to load.
i have tried this:
Code:
var siteUrl = "http://www.mysite.com/";
var db = db.text;
var at = "q76";
submit.onPress = function() {
myData = new LoadVars();
myData.load(siteUrl+"script.php?db="+db.text+"&at="+at, "POST");
myData.onLoad = function(success) {
if (success) {
smessage.text = "Ok";
} else {
smessage.text = "Nope";
}
}
}
so i need it to load the 2 variables and execute the script.
i have probably done this wrong, i hate loadvars, and im sure it hates me.
any help would be great.
thanks.
LoadVars() / SendAndLoad() -> PHP Not Loading?
ok, so I'm having this problem. I'm (now) using LoadVars() and sendAndLoad() to post a highscore to a MySQL database using a PHP script and then retrieve the list of the top ten highscores from the database to display in the flash (after submitting).
It posts (sends) the highscore fine to the database, however, it does not/will not retrieve the variables.
Here is the code:
Actionscript (Within the "submit Highscore" Button -- NOT on _root.):
Code:
on (press) {
HS_Sender = new LoadVars();
HS_Catcher = new LoadVars();
HS_Catcher.onLoad = declareHS();
HS_Sender.score = _root.points;
HS_Sender.sendAndLoad("./scripts/nmbh13th_submiths.php", HS_Catcher, "POST");
function declareHS(){
for(i=1; i < 11; i++){
this["name" + i] = HS_Catcher["php_name" + i];
this["score" + i] = HS_Catcher["php_score" + i];
}
this.play();
}
}
Here is the PHP (since the insertion works fine, I only included this piece of code to save space.)
This takes the High Score table and retrieves the top ten scores and assigns them to $echo_string through a while loop. It also deletes any scores at the bottom of the list beyond $max_scores (which is 30, for now):
PHP Code:
$num = 1;
while($r = mysql_fetch_object($result2))
{
$result = mysql_db_query($db_name,"SELECT * from $db_table WHERE id='{$r->id}'", $newscore_link_id);
$resultArray = mysql_fetch_array($result);
$did = $resultArray["id"];
$username = $resultArray["username"];
$score = $resultArray["score"];
if($num < 11){
if($num == 1){
$echo_string = "&";
}
$echo_string .= "php_name" . $num . "=$username&php_score" . $num . "=$score&";
}
if ($num > $max_scores) {
$sql = mysql_query("DELETE FROM $db_table WHERE id='$did'", $newscore_link_id);
}
$num++;
}
echo $echo_string;
Ok, here is the output that the above PHP file outputs:
Code:
&php_name1=Rege&php_score1=5300&php_name2=Rege&php_score2=2000&php_name3=Rege&php_score3=2000&php_name4=empty&php_score4=1900&php_name5=Rege&php_score5=1900&php_name6=Rege&php_score6=0&php_name7=Rege&php_score7=0&php_name8=empty&php_score8=0&php_name9=empty&php_score9=0&php_name10=empty&php_score10=0&
So, as for the output, it (as far as I can see) is perfect. So there must be something I'm doing wrong.
Some more notes that might be helpful.
- The highscore variables in flash are being defined, just there's no value being assigned; they remain "undefined". So, it is running through the script correctly.
- In flash, if I manually assign the variable (ie. this.name1 = "Poop"; ), it assigns correctly.
- In flash if I manually assign a loaded variable (ie. this.name1 = HS_Catcher.php_score1 it DOES NOT work and returns "undefined." This means that it's not the loop that's causing the problem.
It must be something with how I'm passing the variable, ro trying to retrieve the variable.
Any help appreciated. Every tutorial and article I've found for this matter gives me nothing, and makes it appear I'm doing everything perfectly.. but I obviously cannot be...
Thanks in advance,
-Rege
LoadVars Loading Question
Hopefully this is quite self-explanatory. Basically, I am looking for reasons as to why the output of this is undefined, when the variable is traced...
PHP Code:
quoteVars = new LoadVars();
quoteVars.onLoad = function(success) {
if (success) {
quoteVarsTotal = quoteVars.getBytesTotal();
_root.quote.quote_txt = "{ "+quoteVars.quote_txt+" }";
_root.quote.quoteAuthor_txt = quoteVars.quoteAuthor_txt;
}
};
quoteVars.load("php/quote.php");
trace(quoteVarsTotal);
stop();
Thanks very much.
Loading Data--but Not LoadVars Or XML
Hi all. Does anyone know if there's a class or object that allows you to read in "raw" data, so you could write your own parser?
LoadVars seems too restrictive, but XML has more structure than is necessary--I'd love to be able to just read in lines from a txt file.
If I used LoadVars, how could I separate lines into an array by parsing linebreaks?
Thanks in advance!
Loading Sound With LoadVars
Hi,
I figured out how to use ASP in Flash and it's no problem to load and send textfield data from and to the asp page.
But now I need to know how to get a variable from that asp page into my loadSound object.
the asp page (audio_loader.asp) is giving this as result
audio1=sounds/sound1.mp3
Now I want to assign it to the soundLoad
loadVariablesNum("audio_loader.asp", 0, "POST");
stop();
function MoveNext() {
nextFrame();
}
coolTune = new Sound (soundLoader);
coolTune.loadSound( here needs to be the var audio1 ,true);
coolTune.onSoundComplete = MoveNext;
I dont know how I need to code this. must be simple :p
Problem Loading .txt With LoadVars
Hi everyone
I m trying to load in a .txt file using lthe loadVars object but I can only add one text in my textfield. (my .txt contains different news, i,e: &news1,&news2, &news3, etc
I have several of these news in my .txt file but something must be wrong in the script as I can only see news1 ( probably I do not know how to add a new variable that calls the following news in my .txt)
Can anyone help me add the variable ( news2, news3, etc in the script ? here s the code:
System.useCodepage = true;
//
var news:LoadVars = new LoadVars();
news.onLoad = function(ok:Boolean):Void {
complete();
};
news.load("news1.txt");
//
function complete():Void {
headline.text = news.headline;
text.html = true;
text.htmlText = news.news1;
createTextField("tip", getNextHighestDepth(), 10, 10, 0, 0);
with (tip) {
autoSize = true;
border = true;
borderColor = 0x009900;
background = true;
backgroundColor = 0xffff00;
}
var format:TextFormat = new TextFormat();
with (formato) {
font = "Arial";
size = 10;
}
//
up.onRollOver = function():Void {
tip._visible = true;
tip.text = "UP";
tip.setTextFormat(format);
onEnterFrame = function ():Void {
text.scroll--;
tip._x = _xmouse+10;
tip._y = _ymouse-20;
};
};
up.onRollOut = function():Void {
tip._visible = false;
onEnterFrame = null;
};
down.onRollOver = function():Void {
tip._visible = true;
tip.text = "down";
tip.setTextFormat(format);
onEnterFrame = function ():Void {
text.scroll++;
tip._x = _xmouse+10;
tip._y = _ymouse-20;
};
};
down.onRollOut = function():Void {
tip._visible = false;
onEnterFrame = null;
};
}
Loading Data--but Not LoadVars Or XML
Hi all. Does anyone know if there's a class or object that allows you to read in "raw" data, so you could write your own parser?
LoadVars seems too restrictive, but XML has more structure than is necessary--I'd love to be able to just read in lines from a txt file.
If I used LoadVars, how could I separate lines into an array by parsing linebreaks?
Thanks in advance!
Loadvars Not Loading In A Nested Swf
I am working on a mail reply form
pretty simple, 4 vars in a loadvars object passed to a php script
the form.swf works fine when I test it on its own from the server
it sends the email with all variables going through
but when I load the same swf in to another movie
none of the vars make it and the script returns an error
http://www.themack.ca/formtest3.html (this work fine)
but here http://www.themack.ca (click on "get more info" which loads the very same swf doesn't work)
here is the script :
myButtonListener = new Object();
myButtonListener.click = function ()
{
Container.send("http://www.themack.ca/mailer/", "POST");
}
myButton.addEventListener("click", myButtonListener);
Container = new LoadVars();
Container.RT_TO = "webmaster@themack.ca";
Container.FROM_NAME = "";
Container.RT_FROM = "";
Container.RT_SUBJECT = "Info Request From The Mack";
Container.RT_MESSAGE = "";
Container.Phone ="";
could this be a flash player 7 issue?
Loading An Array From LoadVars
It is strange, since it is something I have already achieved in my code in another point, hence the coding is something that I just copied and pasted, but in this case it doesn't work.
I have a LoadVars object called photo that I use to receive data from a PHP query.
I want to use this to populate an array called picnames: I use a function called carica as follows:
ActionScript Code:
photo.onLoad=function(success){
function carica(){
i = 0;
var picnames:Array=new Array();
for (i=0; i<(photo.t); i++){
picnames.push({
image:photo["image"+i]
});
}
}
carica();
}
The same code gives good results in other parts of the app, but not here: tracing photo gives the expected results, but tracing picnames returns [object Object], [object Object], [object Object], etc time the expected number of records. Does anyone have a clue as to what might make this happen?
Two Problems (with Loadvars?) - SSL And Mozilla Loading
My flash file that utilizes loadVars to load a dynamically generated PHP file has two issues:
1) In Mozilla/Firebird, even after the file is done loading, the bottom continues to say "Transferring data from www.mydomain.ext..."; in IE it says "Done".
2) In IE, trying to view the Flash file over an SSL connection (https), the file simply sits there, and takes up all of the CPU until the Flash player is able to say "A script in this movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?" In Mozilla/Firebird, the SSL works fine.
Any clues?
Loading Variables For Website With LoadVars
I load varibles from one file e.g myvars.as to one SWF.
In this file i store all text for the website. I have about 50 varibles with text.
I load variables every time on the certain frame or with button action when needed in movie.
Is it good way? O can i somehow load all variables only one time and than only call this loaded variables?
I ask because if i use
Code:
LoadVars.Load
and i load only one or two variables i see in debugger all variables of my exteranal file myvars.as
Thank you for all ideas
Loading Data Into LoadVars() Continuously
i am just making this app that it requires to pull data out of php file, but i need this data to be pulled in every one second. So what i did was made a movieclip, i am working at 12fps so at frame 12 i put the code:
Code:
stop();
gts = new LoadVars();
gts.onLoad = someFunction;
gts.load("gts.php");
function someFunction(){
_root.doData(gts.sectionA);
play();
}
the stop is used to make sure that there is no loop untill all data is loaded after its laoded, there is a loop so that another second this should execute, however, this only works once when the movie starts and fater that that when sectionA in my php chnages,k i should chnage in my LoadVars();, but it doesn't, anyone know how to solve this or better way of getting new data every one second or so?
[F8] Loading Different Text In Different Textfields With Same LoadVars
Hi everyone! I've been stuck with this for a couple of days now and I give up! I'm either blind or stupid...
I load different external text files into different moviclips with a dynamic textfield in them. I apply the same css to them and then load the text. Since I'm doing this through out my project I thought I make a nifty little function to use over and over again. This is how faar I got:
Code:
// function defining mcName
function init(){
var mcName:MovieClip = useThis;
}
// function to load external text in a specific textbox and applying css styles
function getMyStyles(txtURL:String, useThis:MovieClip) {
// get the var mvName into this function
init();
// set the value of mcName
set ("mcName",useThis);
// load stylesheet
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function(success:Boolean) {
// if it works applt css to the text box
if (success) {
_root.mcName.ort.styleSheet = cssStyles;
//load text content into textbox - see function below
getContent(txtURL);
} else {
// error message
_root.mcName.ort.text = "There has been an error loading the required information.";
}
};
// load the StyleSheet
cssStyles.load("styles/styles.css");
}
// load external text to the textbox. A variabel tells whichtextto get
function getContent(txtURL:String) {
// create LoadVariables
var nameLV:LoadVars = new LoadVars();
nameLV.onLoad = function(success){
if(success){
_root.mcName.ort.htmlText = nameLV.info;
} else {
_root.mcName.ort.htmlText = "There has been an error loading the text.";
}
}
nameLV.load(txtURL);
trace("it works!");
}
// load first text into first movieclip with textbox named "ort"
getMyStyles("vars/datum/test01.txt", mc_ort01);
// load second text into second movieclip with textbox named "ort".
getMyStyles("vars/datum/test02.txt", mc_datum01);
As I have assigned the same instance name for the text fileds in the different movieclips only one text will show. But at least something shows. So - I changed the instance names in the movieclips and declared a variable to specify the instance name ofthe text field. see Code below. Now nothing shows... And I can't figure out why! Please anyone??!!!!
Snowgirl with melting brain...
Code:
// function defining mcName and text field
function init(){
var mcName:MovieClip = useThis;
var mcNameIt = useThat;
}
// function to load external text in a specific textbox and applying css styles
function getMyStyles(txtURL:String, useThis:MovieClip, useThat) {
// get the var mvName into this function
init();
// set the value of mcName and text field
set ("mcName",useThis);
set ("mcNameIt",useThat);
// load stylesheet
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function(success:Boolean) {
// if it works apply css to the text box
if (success) {
_root.mcName.useThat.styleSheet = cssStyles;
//load text content into textbox - see function below
getContent(txtURL);
} else {
// error message
_root.mcName.useThat.text = "There has been an error loading the required information.";
}
};
// load the StyleSheet
cssStyles.load("styles/styles.css");
}
// load external text to the textbox. A variabel tells which text to get
function getContent(txtURL:String) {
// create LoadVariables
var nameLV:LoadVars = new LoadVars();
nameLV.onLoad = function(success){
if(success){
_root.mcName.useThat.htmlText = nameLV.info;
} else {
_root.mcName.useThat.htmlText = "There has been an error loading the text.";
}
}
nameLV.load(txtURL);
trace("it works!");
}
// load first text into first movieclip with textbox named with value of "useThat"
getMyStyles("vars/datum/test01.txt", mc_ort01, ort);
// load second text into second movieclip with textbox named with value of "useThat"
getMyStyles("vars/datum/test02.txt", mc_datum01,datum);
Loading A LoadVars Multiple Times
So i'm making a calender thingy. i have a php file get_events.php that gives me the events for that date
i have two loadVars objects. when dataVars loads, i just trace what's in it.
Code:
var sendVars = new LoadVars();
var dataVars = new LoadVars();
dataVars.onLoad = function(){
for(i in dataVars){
trace(dataVars[i]);
}
}
so for the sendVars, i have the user put in a date, and then i send the send vars.
Code:
sendVars.date = *user inputed date*;
sendVars.sendAndLoad("get_events.php", dataVars, "POST");
so the problem i'm having is that if the previous call to sendAndLoad received more events than the current one, dataVars still has those events at the end of the array. do i need to clear dataVars or something each time?
Loading Variables For Website With LoadVars
I load varibles from one file e.g myvars.as to one SWF.
In this file i store all text for the website. I have about 50 varibles with text.
I load variables every time on the certain frame or with button action when needed in movie.
Is it good way? O can i somehow load all variables only one time and than only call this loaded variables?
I ask because if i use
Code:
LoadVars.Load
and i load only one or two variables i see in debugger all variables of my exteranal file myvars.as
Thank you for all ideas
Loading Multiable Var's From A Txt File Using Loadvars();
Okay the problem is i have 2 dynamic text box's reading from the same txt file
but if i put 2 in the same text file i get undefined in the second box
Frame 1 Layer Action's
Code:
myData = new LoadVars();
myData.onLoad = function() {
myDeck1_list.html=true;
myDeck1_list.htmlText = this.deck1List;
};
myData.load("myDeck1.txt");
myData = new LoadVars();
myData.onLoad = function() {
myDeck1_name.html=true;
myDeck1_name.htmlText = this.deck1name;
};
myData.load("myDeck1.txt");
From TXT File
Code:
deck1name=Test
deck1List=1Test
Dynamic boxe's
Box 1 instance: myDeck1_name
Box 2 instance: myDeck1_list
So can anyone plz tell me whats going on here?
(im sure i got everything named and labeled right
since if i delete 1 of the codes for the box's it works
but if i leave alone the botom box is always undefined
And i know this is my first post and it shouldent be one asking for something
But plz help
P.S. It's gonna be a deck keeper for MTG (im sure alot of people here dont like it but making stuff ill want to use is how i learn )
<b> Edit: </b> <u>Im a 99% complete AS newb and read that script from a tutorial and tutorial didnt explain on how to do what im trying to do or if it's posiable</u>
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
Loading Variables For Website With LoadVars
I load varibles from one file e.g myvars.as to one SWF.
In this file i store all text for the website. I have about 50 varibles with text.
I load variables every time on the certain frame or with button action when needed in movie.
Is it good way? O can i somehow load all variables only one time and than only call this loaded variables?
I ask because if i use
Code:
LoadVars.Load
and i load only one or two variables i see in debugger all variables of my exteranal file myvars.as
Thank you for all ideas
LoadVars Loading Something Realy Strange From PHP...
Ok... I need help.. I've created this phpfile Code:
<?php
$x = "test";
print ("&vari=$x")
?>
and in frame one in flash i've added Code:
var laster:LoadVars = new LoadVars;
laste.onLoad = function(){
trace(this.vari)
}
laste.load("test.php")
In the output pannel i just getCode:
$x")
?>
Problem Loading Text Into Level Using Loadvars
I'm trying to accomplish somthing that in theory is very simple. I have a master.swf that contian a loadvars like so:
Code:
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if(success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading the requested text message. Please contact the webmaster to report your error.";
}
}
Then I have a content.swf with a dynamic text field with the instance name of "loadedInfo" and this simple piece of code:
Code:
stop();
_level0.myLV.load("vars/mainTxt.txt");
Then I simply load that back into the master.swf using this:
Code:
//frame 01
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListner:Object = new Object();
myMCL.addListener(myListener);
//fram 03
stop();
myMCL.loadClip("contentMain.swf", 5)
And that should be about all the code involved. Thing is I can see the graphics from the contentMain.swf file on the stage so I know it gets loaded. Also if I change the myLV var to level 0 and place a text field in the master.swf it works just fine loading the same text file into that. I've probably missed something minor here and I would very much appriciate some help. thx.
Return Value From Function After Loading Data W/ Loadvars?
ActionScript Code:
function getSqlDate():String
{
var lvDate:LoadVars = new LoadVars();
var strDate:String;
lvDate.onLoad = function(bSuccess:Boolean)
{
if (bSuccess)
{
strDate = lvDate.date;
return strDate; //obviously this can't go here
}
}
lvDate.load(strURLPrefix + "getDate.aspx");
}
I am trying to load data from LoadVars inside a function, then return that data thru the function. Obviously I can't keep my return statement where it is. How can I build this function so I can return lvDate.date all the time?
Loading HTML True Text With PHP And LoadVars
I've got a small custom "blog" set up.
An input field sends text to the db w/ PHP and a dynamic text field is SUPPOSED to pull all the text from that column of my db Table.
It works when I run the PHP file in the browser, but Flash can't seem to see it. I've tried sending it back to Flash as a name=value pair, and as a straight echo, but neither seems to work.
I have a feeling the problem is my code is too simple to deal with multiple values for one loadVar.
Here's the PHP code that calls the db and pulls all the entries from the column 'blogBody' in the table 'blogText'
PHP Code:
<?$user = 'simplec_admin';$password = 'eugene';$database = 'simplec_blog';mysql_connect('mysql12.ixwebhosting.com', $user, $password);mysql_select_db($database);$query = 'SELECT * FROM blogText';$blogQuery = mysql_query($query) or die('error');//$display = mysql_fetch_array($blogBody) or die('error2');while($blogDisplay = mysql_fetch_array($blogQuery)){echo $blogDisplay['blogBody'];echo "<br>";}?>
Here's my Actionscript that pulls the text from the PHP file and puts it in a dynamic text field:
Code:
var blogIn:LoadVars = new LoadVars();
var blogOut:LoadVars = new LoadVars();
blogIn.load("blogIn.php",_blank);
blogIn.onLoad = function (success) {
if(success){
blogField.text = blogIn.blogDisplay;
}else{
blogField.text = 'Error loading from Database';
}
};
Thanks a ton! x-posted in ACTIONSCRIPT 2.0
Loading HTML True Text With PHP And LoadVars
I've got a small custom "blog" set up.
An input field sends text to the db w/ PHP and a dynamic text field is SUPPOSED to pull all the text from that column of my db Table.
It works when I run the PHP file in the browser, but Flash can't seem to see it. I've tried sending it back to Flash as a name=value pair, and as a straight echo, but neither seems to work.
I have a feeling the problem is my code is too simple to deal with multiple values for one loadVar.
Here's the PHP code that calls the db and pulls all the entries from the column 'blogBody' in the table 'blogText'
PHP Code:
<?$user = 'simplec_admin';$password = 'eugene';$database = 'simplec_blog';mysql_connect('mysql12.ixwebhosting.com', $user, $password);mysql_select_db($database);$query = 'SELECT * FROM blogText';$blogQuery = mysql_query($query) or die('error');//$display = mysql_fetch_array($blogBody) or die('error2');while($blogDisplay = mysql_fetch_array($blogQuery)){echo $blogDisplay['blogBody'];echo "<br>";}?>
Here's my Actionscript that pulls the text from the PHP file and puts it in a dynamic text field:
Code:
var blogIn:LoadVars = new LoadVars();
var blogOut:LoadVars = new LoadVars();
blogIn.load("blogIn.php",_blank);
blogIn.onLoad = function (success) {
if(success){
blogField.text = blogIn.blogDisplay;
}else{
blogField.text = 'Error loading from Database';
}
};
Thanks a ton! x-posted in GENERAL QUESTIONS
Loading Multiple Txt Files W/ One LoadVars Object?
Basically, my question is: is it possible to load multiple files using only one loadVars object? Here's what i've got
Code:
_root.data_list = new LoadVars();
_root.data_list.load("city_usa.txt");
_root.data_list.load("state_usa.txt");
_root.data_list.onLoad = function(success) {
data_string = _root.data_list.toString();
//split the string into an array
_root.data_array = data_string.split("%0D%0A");
type = _root.data_array.shift();
//get the subdivisions of the list
_root.data_subsets = _root.find_subdivisions(data_array, n_divisions);
listString = _root.data_subsets.join("
");
if(type == "city") {
_root.cityListMC.textBox.text = listString;
}
else if(type == "street") {
_root.streetListMC.streetListBox.text = listString;
}
};
what ends up happening is that my cities display correctly, but when it goes through and does states, the cities are appended to the end of the string data_list. is there any way to clear the loadVars object between loads or do i need to make a different loadVars for each txt file? i've also got to do streets, countries, etc, so i'd prefer to have only one object and one onLoad method.
thanks
em
LoadVars Works But Status Bar Says Data Loading
I am using LoadVars to pass form data to a php page that sends an email. Everything seems to work, and the php page successfully returns sent=ok, but the status bar at the bottom continues to say "transferring data from..."
Could someone please help me figure out how to fix that?
I'll put a link below to my example, as well as example code.
Thankyou
http://bigfins.com/php/form01.html
stop();
var message:LoadVars = new LoadVars();
var messageSent:LoadVars = new LoadVars();
function checkForm():Boolean {
var missing:Boolean=false;
error_firstname_txt.text = error_lastname_txt.text = error_email_txt.text = "";
if (firstname_txt.text == ""){
error_firstname_txt.text = "first name required";
missing = true;
}
if (lastname_txt.text == ""){
error_lastname_txt.text = "last name required";
missing = true;
}
if (email_txt.text.indexOf("@") == -1){
error_email_txt.text = "valid email required";
missing = true;
}
// if missing is true, return false - else return true
return missing ? false : true;
};
function sendMessage():Void {
var formOK:Boolean = checkForm();
if (formOK) {
message.firstname = firstname_txt.text;
message.lastname = lastname_txt.text;
message.email = email_txt.text;
message.sendAndLoad("form01email.php?cachekiller="+ new Date().getTime(), messageSent);
gotoAndStop("send");
};
};
submit_btn.onRelease = sendMessage;
function backToForm():Void {
gotoAndStop("theForm");
};
messageSent.onLoad = function() {
if (this.sent == "OK") {
gotoAndStop("thankyou");
} else {
gotoAndStop("fail");
failure_txt.text = this.reason;
}
};
Loading LoadVars Data As Array Elements
Hello AS experts.
I am trying to create an array where each element is a different text string that is loaded from separate external text files. What I have below almost works -- I can load in and trace each of the different strings at each step of the loop, but I cannot get them to be plugged into each element of an array. See below for the output when running this script. I know the problem lies at the line where I wrote: Doesn't work!. Does anybody know what I need to have here to make this work?
ActionScript Code:
function createTitleArray() {var i:Number = 0;var n:Number = Number(slideTotalLV.slideTotal); <b>//from another LoadVars and is equal to "7" (an integer)</b>var slideTitleLV:LoadVars = new LoadVars();var imgTitle:Array = new Array(n);while (i < n) {slideTitleLV.load("../var/info_" + i + ".txt"); <b>//opens files named "info_0.txt", "info_1.txt", ... , "info_6.txt"</b>slideTitleLV.onLoad = function(success:Boolean) {if (success) {trace(slideTitleLV.title + " [from loop]"); <b>//in each of the *.txt files there is a variable "title" that is equal to some text. These are traced correctly in the Output panel</b>}}imgTitle[i]<i> = String(slideTitleLV.title); <b>//<u><font color="red">Doesn't work!</font></u> Here is where I am trying to place contents of each "title" variable in an element of an array.</b></i><i>i += 1;</i><i>}</i><i>trace("titleArray = " + imgTitle + " [end]"); <b>//"undefined" gets traced as each of the seven elements in the array.</b></i><i>}</i>
OUTPUT
titleArray = undefined,undefined,undefined,undefined,undefined, undefined,undefined [end]
First Test Title [from loop] // these seven rows were retrieved from the "title" variable from the "info_0.txt", "info_1.txt", ... , "info_6.txt" external file sequences.
Second Test Title [from loop]
Third Test Title [from loop]
Fourth Test Title [from loop]
Fifth Test Title [from loop]
Sixth Test Title [from loop]
Seventh Test Title [from loop]
What I want is for these last seven lines to be the elements in the array that has only "undefined" elements.
Please help...losing my mind
Regards,
-john
edited by digitalosophy: I wrapped your code in as tags, your post was very hard to read.
Loading LoadVars Data As Array Elements
Hello AS experts.
I am trying to create an array where each element is a different text string that is loaded from separate external text files. What I have below almost works -- I can load in and trace each of the different strings at each step of the loop, but I cannot get them to be plugged into each element of an array. See below for the output when running this script. I know the problem lies at the line where I wrote: Doesn't work!. Does anybody know what I need to have here to make this work?
ActionScript Code:
function createTitleArray() {var i:Number = 0;var n:Number = Number(slideTotalLV.slideTotal); <b>//from another LoadVars and is equal to "7" (an integer)</b>var slideTitleLV:LoadVars = new LoadVars();var imgTitle:Array = new Array(n);while (i < n) {slideTitleLV.load("../var/info_" + i + ".txt"); <b>//opens files named "info_0.txt", "info_1.txt", ... , "info_6.txt"</b>slideTitleLV.onLoad = function(success:Boolean) {if (success) {trace(slideTitleLV.title + " [from loop]"); <b>//in each of the *.txt files there is a variable "title" that is equal to some text. These are traced correctly in the Output panel</b>}}imgTitle[i]<i> = String(slideTitleLV.title); <b>//<u><font color="red">Doesn't work!</font></u> Here is where I am trying to place contents of each "title" variable in an element of an array.</b></i><i>i += 1;</i><i>}</i><i>trace("titleArray = " + imgTitle + " [end]"); <b>//"undefined" gets traced as each of the seven elements in the array.</b></i><i>}</i>
OUTPUT
titleArray = undefined,undefined,undefined,undefined,undefined, undefined,undefined [end]
First Test Title [from loop] // these seven rows were retrieved from the "title" variable from the "info_0.txt", "info_1.txt", ... , "info_6.txt" external file sequences.
Second Test Title [from loop]
Third Test Title [from loop]
Fourth Test Title [from loop]
Fifth Test Title [from loop]
Sixth Test Title [from loop]
Seventh Test Title [from loop]
What I want is for these last seven lines to be the elements in the array that has only "undefined" elements.
Please help...losing my mind
Regards,
-john
edited by digitalosophy: I wrapped your code in as tags, your post was very hard to read.
LoadVars() - Loading Multiple Items Within One Movie.
What would be considered the best way to load multiple text fields in a flash movie?
For example, I have 5 input text fields with variable names in flash of text1, text2, text3, text4, text5. The instance names for each field is txt1, txt2, txt3, txt4, txt5.
I'm using the LoadVars() class to do this. I know how to load one of these variables into the input text field I just don't know how to do all 5 of them at the same time? Am I going to have to make 5 seperate LoadVars() Objects and load them like that?
Thanks for any help!
Change Font, Color Etc When Loading Text Using Loadvars?
Hello
How do I change the font, color, bold etc, when I loaded my text from a textfile using the loadvars:
code:
text1 = new LoadVars();
text1.onLoad = onText;
text1.load("sometext.txt");
function onText() {
_root.b1.k1.text = text1.sometext;
}
Normally I would use this:
code:
_root.b1.k1.mytext = new TextFormat();
_root.b1.k1.mytext.color = 0xECB700;
_root.b1.k1.mytext.font = "Futura";
_root.b1.k1.mytext.size = 30;
etc
Any ideas?
Regards
Michael
LoadVars - Text File Loading Multiple Entries
Hi there,
I've been looking for a solution to my prob on the forums but none are quite right. i'm trying to load multiple entries from a text file one after the other into a text box using the LoadVars() command.
This script below currently loads the last entry from the text file - i'm falling down with the looping script. My text file structure is this:
content=start&
id=1&title=Entry one&body=Body Text Updated Test test&date=8/14/06 12:00 AM&
id=2&title=test of new story&body=This is a bit of a new story&date=9/1/06 4:38 PM&
content=end&
i'm unsure if i need to make an array and use the 'id' parameter to identify the entry. I'd really appreciate some help. Thanks
Heres my script:
myData = new LoadVars();
// define callback for onLoad event
myData.onLoad = function(success) {
if (success) {
date = this.date;
title = this.title;
body = this.body;
id = this.id;
//populate text field
myBody_txt.htmlText = date+"<br>"+title+"<br>"+body+"<br>"+id;
} else {
// what to do in case of data error
myBody_txt.htmlText = "<b>Error loading Data</b>";
}
};
// now load the text file
myData.load("myText.txt");
stop();
LoadVars - Text File Loading Multiple Entries
Hi there,
I've been looking for a solution to my prob on the forums but none are quite right. i'm trying to load multiple entries from a text file one after the other into a text box using the LoadVars() command.
This script below currently loads the last entry from the text file - i'm falling down with the looping script. My text file structure is this:
content=start&
id=1&title=Entry one&body=Body Text Updated Test test&date=8/14/06 12:00 AM&
id=2&title=test of new story&body=This is a bit of a new story&date=9/1/06 4:38 PM&
content=end&
i'm unsure if i need to make an array and use the 'id' parameter to identify the entry. I'd really appreciate some help. Thanks
Heres my script:
myData = new LoadVars();
// define callback for onLoad event
myData.onLoad = function(success) {
if (success) {
date = this.date;
title = this.title;
body = this.body;
id = this.id;
//populate text field
myBody_txt.htmlText = date+"<br>"+title+"<br>"+body+"<br>"+id;
} else {
// what to do in case of data error
myBody_txt.htmlText = "<b>Error loading Data</b>";
}
};
// now load the text file
myData.load("myText.txt");
stop();
LoadVars Probling With Loading Data From External Server
Hello guys
I have a problem with loadvars situated on one server, that reads data from files on another server. Everything runs well while testing on local machine, but when put it on a server, it crashes, e.g there are no requests from swf. I just see a call to som file called crossdomain.xml situated on a server that Im trying to read from. loadvars reads data through sendAndLoad().
Thanky ou for your help.
cheers
MAC IE 5 Problem Loading Nested Movies That Use Loadvars Objects
OK I"ve been working on this one for a while. The problem seems to occur only with IE on MAC.
1.I have a main movie with a menu...
2.When a menu button is released, a movie loads onto a level using loadmovienum
3.Again this problem has only been noticed in IE5 for mac; For some reason everything works fine with movies that have static content. BUT it does not work well at all with movies that have loadvars object in them. These objects access a MYSql database through a PHP script. What happens is that when you press the menu button , the corresponding movie almost never loads properly. Sometimes it doesn't load at all... Eventually after clicking two or three times it finally loads...
So far I have tried to use a preloader, but it doesn't seem completly resolve the issue.
I have also thought of calling loadmovienum a number of times when the button is pressed.. didn't work.
Any ideas?!?
I'm going crazy over this thing!
Thanks to all!
[MX04] Dynamic Text Not Loading. LoadVars() Or Pathing Issue?
Hello FK community,
Congrats to the one who can figure out my problem, because I bet a few others out there are designing pages in the same format that I am (in levels). I'll visually explain below my Heirarchy:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
- StartHere2_RScom.fla (MASTER - calls "layout_2.swf" to level 500)
- layout_2.fla (template w/ active buttons NEEDED in the foreground)
- bg_resume.fla (an .swf called from "layout_2.swf" into level 20 - loadVars() Dynamic Text being called HERE)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
So here's my issue (please feel free to throw somethin' at me if my format is improperly laid out). Because I need "layout_2.fla" in the highest level with all other pages active behind it for animation and design purposes, I decided to build all my separate pages into levels via loadMovieNum and unloadMovieNum to clear the page when a viewer clicks on other buttons from "layout_2.swf".
I have dynamic text contained in bg_resume.fla that isn't showing, even though the scroller and other items are. I'm calling a .txt file within my loadVars() code. When I run the bg_resume.swf file itself I see my text. However (pathing issue?), When I open my project from the top how a viewer would on my page, StartHere2_RScom.swf, I see no text. Being that I have other pages called from "layout_2.swf" using dynamic text, I need to make sure that a solution is for the overall formatting of my site.
NOTES: Linkage on text is correct. I tried also copying the loadVars() code to the first frame of StartHere2_RScom.fla, but that didn't work either. Text files are also in the same directory as all of my .fla & .swf files.
If anyone out there could please help me out with this, I'd be forever in debt to you. Being that this is my first ever post, I tried not to post by putting in many hours of research on the boards here to see if this was posted elsewhere so that I wouldn't inconvenience anyone. I have files here if anyone needs to see my code.
Again, thank you so very much in advance. ...lookin' forward to contributing to FK in the future. Take Care.
Help With Loading Text File (loadvars). Works In Pc But No In Internet [NOT SOLVED]
Hey guys
I have this script in my flash
Code:
on (release) {
loadText = new LoadVars();
loadText.load("http://www.djgdevelop.com/cgl/templates/cgl/images/map/LAX.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_parent.newsBox.html = true;
_parent.newsBox.htmlText = this.myNews;
}
};
}
It loads a small text with this info:
[HTML]myNews=<font size="16px" color="#FFFFFF"><b>Tampa, FL</b></font>
<b>(ATL)</b>
402 East Oak Avenue Suite 204 Tampa, FL 33602-2704
T. 813.221.5060 F. 813.221.[/HTML]
Everything works fine in my pc, I change the URL and stuff and nothing, the server is just "reading'. Both files are together in the same folder.
What should I do? Thank you in advance
Tweening Textfield With Embed Fonts And Loading Text Through LoadVars
Hi guys,
I am gonna ask the same question again regarding tweening in text fields.
I already read some Adobe documentation and I understood that text field has its property _alpha available just when it HAS embed FONTS,
So I supose if I want apply a tween class on a text field, I HAVE to have a embed font aplied in this text field... well, for now it is ok, because I did some experiments and everything worked good, but I need to use LoadVars to load my text from external file, and that is my deal.
Does anydoby know something regarding this issue, because I already tried a text fiels with TextFormat class aplied, and embed Fonts, but when I try to load my text from an external file, nothing happen !
You guys can check this site below and notice that thet ext field has a tween class aplied in "About Us", "Testimonials", "Pricing" and "Contact US"...
Do you guys think that they did not use a external text file for this option ?
Just writing all text directly in TextField.text propriety instead a external file ?
http://www.pictureperfectphotoonline.com/index2.php
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
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
|