Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




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



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-01-2006, 01:28 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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.

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?

[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

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?

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

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?

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?

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

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

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

Problem With Loadvars And Loadvariables
how cand i get variables from a file, into stage, i mean, not to load them into an object like a movieclip or somethind, just directly into stage, like:


var1=lol&var2=15



if (var2<16) {
yoy=var1
}

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("

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?

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

LoadVars Or LoadVariables Wait To Download?
I am wondering if loadVars or loadVariables wait until the entire file has downloaded before sending the variables.

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!

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

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");

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

[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 !

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

[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 !

LoadVariables From CGI
Why does it work from my HD, and not on the Web.

When I run the SWF in flash it load the vars ok. Then I tested outside Flash, in the Flash PLayer, and in the Browser both from the HD. The file was on my HD but the script still gets the vars from a valid URL.

I load the vars like this:
loadVariablesNum ("http://www.mydomain.com/cgi-bin/flashclock.pl", 1);

In the dubugger window, all the vars are loaded correctly only when the file run from the HD.
Then I run the (SWF) file from the web, and the debugger window only show me the _level0 objects and vars. NOTHING from _level1 (to witch i'm loading them).

I tested the PL right in the browser to, and it outputs everything correct, like:
&name=paul&weight=85&...

Is loadVariablesNum a wrong method to get the vars from a pl file.

H E L P !!!!

LoadVariables + Php
I have this tiny PHP script that I would like to call in order to generate a string to be used as a variable:

Code:
<?php
// filename is 'metar.php' located on server 'your_url_here'
echo "metar=";
$fp = fopen ("http://weather.noaa.gov/pub/data/obs...tions/CYUL.TXT", "r");

// The above URL retrieves the latest weather data for Montreal's Intl. Airport.
// Hack the source at http://www.gimpster.com/php/phpweather/index.php PHP Weather for how to interpret the value.

while (!feof ($fp)){
$metar = fgets($fp, 4096);
echo $metar;
}
fclose ($fp);
?>
In my flash movie, I call that script on fr.1 using

Code:
loadVariables("http://your_url_here/metar.php", "");
and I have a dynamic text field which is linked to the variable metar.

Of course it doesn't work so far. Any pointer why and/or how to make it work?

thanks and cheers

D.

LoadVariables Bug?
Im getting feed back from my users that when they try to login it hangs.

all im doing is a simple task they type userid and pass click next

loadvariables from a CGI script which checks the userid and pass sends back a responce of either wrong or ok

while flash is waiting for this responce i do this.

if (responce eq "ok"){
gotoandplay("ok")
}
elseif(responce eq "wrong"){
gotoandplay("wrong")
}
else{
prevframe
}

#################
the previous frame is just a play() to check the status again.

so why is it hanging? is there any know problems with this method like using it in different browsers or platforms??

or if anyone has a better method i will be happy to listen.

Danny

LoadVariables
Hello,

I have 10 frames in my movie and each frame has 2 loadvariableNum command to load text into 2 different dynamic text boxes in my main movie. 1 loadvariableNum command looks for data from the database and the other from a text file. When I try it out, only 1 LoadVarNum command works, meaning that text var 1 will populate with text but not text var 2. I have both variables loading into level_0. What is the processing order for LoadVarNum command? Is there a certain order that they load in?

Loadvariables Help
I have a simple menu on a page called menu.html with four selections (red, yellow, green and orange). This opens a pop up window (menupop.asp) with the following code:

<%color = request.form("color")%>
<script>
var color = "<%=color%>"
</script>

This page has a flash movie with the code:

stop ();
loadVariables ("menupop.asp", "0", "POST");
gotoAndStop (color);

There are four frames with labels red, yellow, green and orange, but is not going to the right frame.

Any solutions?

I'll try to upload the pages later (my server's being a pain).

-Brandon
[Edited by bugkarma on 10-16-2001 at 02:00 PM]

Help With Loadvariables
I have a simple menu on a page called menu.html with four selections (red, yellow, green and orange). This opens a pop up window (menupop.asp) with the following code:

<%color = request.form("color")%>
<script>
var color = "<%=color%>"
</script>

This page has a flash movie with the code:

stop ();
loadVariables ("menupop.asp", "0", "POST");
gotoAndStop (color);

There are four frames with labels red, yellow, green and orange, but is not going to the right frame.

Any solutions?

You can see the pages at http://www.neweconomydesign.com/test/menu.html

-Brandon

HELP With LoadVariables
I ma trying to load variable values from a text file. Nothing seems to work to make this happen. I have a file in the same folder as the .fla file. It is called "data.txt" and it contains the following-s1Var=4

In the first frame of the movie I have the following code
loadVariables("data.txt",0)
trace(s1Var);

this always returns 0. How do I make this work???

LoadVariables
Please someone help!
Does anyone know where i can get some information or an example of how to use the loadvariables command.
I am very confused on how to use it.
I have a templete that i need to have variables from a data file to load into.
On the first frame of my swf. i have
loadVariables(url.questions)

the url is typed out correctly, this is the data page with various variables with values.

the questions is the name of the text variable in the flash movie where i want the value of the variable from the data file to be placed.

I have many questions, how does the loadvariables know exactly what variable i need and where to place it.

i hope this makes sense. please, if anyone knows what i am trying to describe or knows of a tutorial i can use, please tell me. the stress and pressure from my bosses is horrible.

if you have not figured it out, i am just learning actionscripting.

thanks,
dawn

LoadVariables
How does the loadVariables command work?

I want to create a button that, on release, reads variables from a text file. Then the variables must be put in textboxes.

I have a .swf file and the text file in a folder on my hd.

What has to be in the text file and how does the loadVariables command work?

Say I want to read test="hello" and then have in a text box in the movie "hello" in a text box

Loadvariables
Hello, I am creating windows in flash and I am trying to import data from a text file using loadvariables. i.e.

("aboutUs.txt", "_root.aboutUsWindow.window.text_box");

the text file looks like this:

textField=<blah blah blah>

(textfield is within text_box).
This works fine except that now, I want to load multiple variables into different text fields from the same file.

Please help.

prac2

LoadVariables
Hi,
I have an flash movie and I have a movie clip in that. I change the color of the clip according to the database value which I get using ASP. In the frame actions actionscript, I change the color of movieclip according to the return value from ASP, still the color does not change. I checked the variable value and it is not set too. I gave red color before calling LoadVariables (which passes green), the color is not changed. What can be the reason. I have written the code in any event, just in the frame actions main script place.

Any help is appreciated.

Thanks
-r-

LoadVariables
Hi, I need help with loadVariables. I have a movie clip named "blah" containing a dynamic textbox with the variable set to "text," and I have the line:

loadVariables("blah.txt",_root.blah.text);

loaded into my actions layer. Yes, blah.txt is in the same directory as the flash. I want to load blah.txt into the textbox. What am I doing wrong here? Thanks

LoadVariables()
Hi there,

Would like to ask regarding the movieClip.loadVariables() action. The second parameter is supposed to be "GET" or "POST" right? Is this "GET" or "POST" action the passing of variables into flash, or is flash passing variables into another application?

For that matter, I am aware that by specifying the additional parameters with the URL string, you can simulate a GET request to a server. I'd like to ask then, how can I use Flash to do a POST action?

Thanks.

Regards,
KA

LoadVariables (again)
I want to load a list of (text) variables from a .txt file into a mc, using a split (into an array). There should also be a (invisible) button attached to each variable, in order to enter a url link and the number of variables is not fixed. I tried everything, I have the overall idea, but it still won't work... Can someone explain me step by step what to do ?

Loadvariables
I want my buttoninstances to have a variable name.
I made an MC,
on frame 1 : loadVariables("/fotos/fotos.txt",_root);
on fame 15: event1.eventname.Text= _root.event1;
event2.eventname.Text= _root.event2;
...

in the txt file :&event1=button1
&event2=button2
...

but I don't see the button names when I upload the site, or even when I preview the html file.
this I probably a dumb question, but how comes?

LoadVariables
Hi,

I have a problem with loadVariables.

In the first frame, I try to execute the script counter.php
In the second and third frames I check, if I receive the variable “hits”

The variable “out” is a text box and “loop” is only a counter. “hits” is the variable I want to receive

See my short code description:


Frame1:



loadVariables("http://mitglied.lycos.de/fcneptun/c/counter.php"+"?ran="+random(9), "", "GET");



Frame2:



out = ++loop + ") Waiting .... hits: " + hits;



Frame3:



GotoAndPlay( 2 )




OK, If I try the MC local on my test computer, it works perfect . But if I put the MC on my web space, it don’t works !!!!! My web space is on a different provider “members.aon.at”. My be is this the problem????

Please help!

Thanks
David

LoadVariables() & Php
zipper'll,

will the function loadVariables() send variables to php, have them altered and then recieve them again?

or is something like a getVariebles() needed (if it exists) to get them again

thankthanks

thrill,
lloydmannes

Loadvariables & Asp
when i send a particular variable to an asp page using loadvariables it arrives at the asp page appended with a html formatting tag. do you know why? thanks Shane.

LoadVariables - I Just Don't Get It - Please Help
Okay, I just don't get LoadVariables. Can someone break down exactly what happens with this command?

I have an asp page that returns a simple string in the format indicated in the documentation:
var1=1&var2=2&var3=3

So I call that asp page with loadVariables: loadVariables ("http://www.whatever.com/my.asp/",0)

What happens with that call? I always assumed that this would be equivilant to writing

var1=1;
var2=2;
var3=3;

directly into the code, but it just doesn't seem to work that way.

I'm seriously stumped on this one.

Loadvariables Via ASP
I am trying to grab a variable that is in an ASP file using loadvariables. Do I have to use loadvaribleNum and a get or a post to do this?

Loadvariables
hi....
I have a dynamic txt field in which i want txt to get loaded from a notepad file... Now this text needs to be replaced by a new txt after every few seconds...
Actually the text is nothing but comments of an exhibition that was held in 2001. So i 've to load text from this notepad where all the different comments of different companies and people are stored one at a time and this has to be refreshed after every few seconds in the same dynamic text field.
please attend to this query ASAP coz i'm really despearte to incorporate the same in my working flash file...

Thanx in anticipation of an early response...

Alternate email : muksy2175@rediffmail.com, muksy2175@hotmail.com

LoadVariables Help
I am trying to bring in text from a text file, but I can't seem to get it working. This is what I did:

I created a text file that looks like this:

myText=text text text text

I created a movie clip in my main movie. It contains a dynamic text box called myText.

In the first frame of the main movie I put the following code:

loadVariables("mywebsite.com/myText.txt", "_root.box");

Any ideas? I would really appreciate any help.

-gamist

LoadVariables From Asp
Hi there, I'm using 'loadVariables("xxx.asp", _root); to get text into a dynamic text field. It works fine when I navigate to the .swf directly but not when embedded in the page.

I'm using Mac OS10.1.5 + ie 5.1.

Is this a problem specific to my platform or something else ?

Urls:

Page : http://www.freerideculture.com/eelad/index.html
.SWF : http://www.freerideculture.com/eelad/flash/menu.swf

The culprit is the news headline which should appear in red at the top...

This is just a test version before linking it with a database...

Loadvariables
HElp!! I'm adding a scrollable text loaded externally I always did in Flash5 but now it doesn't work anymore, tried and checked 100 times but no can do. I don't get this. I checked the form already and even convert the textbox and the scrollpane together in a movie and send the variable in to it:
loadVariables(news.txt, _root.mc);
but still nothing!!
I put in my 1st timeline cell the command but it doesn't seems to work anymore, the filetext is there and the variable checked..any help?
thanks

LoadVariables
Hi. I have some problem about loadVariables. Could you please help me? I want to loadVariables to _root from a text file called "data.txt". And "data.txt" contain the following text:

&ok=true

Then, in the first frame of the fla movie I write something like:

ok="false";
_root.loadVariables("data.txt");
trace(ok);

However when I test the movie, it output "false". It should output "true"! Could you please tell me if I have made something wrong? And how to solve this problem?

(I am using Flash MX)

LoadVariables
Hey everybody! I hope I'm not asking the same qerstion a million other people have asked before. (btw, is there some kind of "search board" funtion on this site?)

My problem is as follows:
I am reading (via php) from a database the titles of data sets in a given table. Those titles are given back to flash no problem.
Now i want the titles to be clickable (i.e. to be links), and after the user clicked the title the full entry will appear.

My thought originally was to define a function that will load the appropriate text (via <a href="asfunction:show_details,id"> ) .

Afte many hours I almost got it to work, but now I'm really stuck...

Frame 1 has the following actions:
function show_detail(number)
{
var transfer=0;
loadVariables("details.php?id="+number, "_root.text_field");
while (_root.text_field.ende<>1){}
transfer=_root.text_field.textfield;
_root.text_field.textfield=transfer;

stop();
}
loadVariables("overview.php", "_root.text_field");

where text_field is a MC containing a textfiel namen "textfield".
It shows the overview fine, which basically consists of the titles between <a href="asfunction:show_details, some_number_generaed_by_php"> Tags.
Clicking on the Links doesn't do ****, doubleclicking works fine though.

My questions:
- if I leave away this wild "transfer"-thing, nothing will work at all. why?
- Why do I have to doubleclick?

I just don't know anymore.... pleeeeeease help! Thank you in advance, I'll try not to write that much anymore....

Copyright © 2005-08 www.BigResource.com, All rights reserved