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,This is the old loadVariables code:
I have read a little bit about loadVars and loadVariables, so I am trying to read and write to a .txt on my server. This is my functions: (only Read works, but Send doesn't)
ActionScript Code: function Load(F, VAR) { var DATA:LoadVars = new LoadVars();[code]...........
There are no errors or something; but the file is the same after Send();
One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work
Ok, not sure where my other thread is, unless it needs to be manually approved by the moderators? If so, then my bad for making a 2nd thread.It doesn't exactly work... well when I use preview in CS4, it doesn't give any errors about not finding the file on the URL, I tested a fake URL to see if it would give an error and it did. So it is accessing the file perfectly. The chmod is set to 0777 on the settings.txt file.I don't understand why it's not "working" - all I need to do is view the flash file on site1.com - where the actual flash file is hosted on site2.com - I figured that it wasn't working before was because it was loading the settings.txt file from telltarget("..") - so viewing it on site1.com was searching for settings.txt on site1.com (I think???)That's why I need to get the loadVariables() working with a url so that when I view site1.com with the embedded flash file, that it will show it correctly.
ok. i would like to load a .txt file into a dynamic text box on which i have on the stage.when i did it i went from the C drive, but does it have to be in the library? i honestly have no clue as to what i am doing. unless, should i upload the .txt to my server and use a http:// for the URL? then for target is that the instanse or Variable name for my dynam. text box? and what does the method mean
I am trying to load a variable from a text file named "variable_file.txt"he variable in the file is "var" and I am trying to assign the word "value" hen I run the following code:
I have the following line, which is just a loadVariables:loadVariables("data.txt", _root.fa);This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:&faFile=player1.mp3.And then later I have this line which loads the sound from the .mp3:[code]
i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.
[code] loadVariables("http://localhost/file.php",this,"POST");[/AS] but when i do it this way. [code] loadVariables("http://localhost/file.php",NONE,"POST");[/AS]
the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.
so everytime i have to first use "this" and then "none".
what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.
I have a problem with loadVariables from different movieclips, I don't know how to do. I wannt to load loadVariables from 2 mc in to one php script(email.php). My mc's are "send_mc" and "answer_now" Her is only one mc loaded, but I wannt two mc to be loaded.. This is my script, so far...
i'm trying to send out some input form variables top a php script via loadVariables() and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:[code]is there a way to keep this from happening in flash or do i need to start getting fancy with the php?
have a little flash plugin, which is a form to submit the user's mail address to a database for receiving a newsletter.The flash contains a dynamic textbox where the user enters his mail address, which has the variable-name "u". The code must also send the newslettername (variable "l") and the command (variable "cmd").The code for the submit-button looks like this:[code].....
i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]but when i do it this way.[code]loadVariables("http://localhost/file.php",NONE,"POST");[/AS]the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.so everytime i have to first use "this" and then "none".what am i doing wrong? what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.
I'm newbie in AS Flash (and new in this foro) and I have 3 swf.Principal is the first one that loads pliego and this one load textos.I have 3 files txt's and 3 files jpg's by now (_global.tope=2) and All is OK while I'm testing on my pc.When I'm testing on my site, the Dynamic Text doesn't load txt files!The size of biggest file txt are 5 KB
I'm doing my portfolio in FlashMX using Actionscript. Everything in that sites has a preloader.
Anyway, in the actual portfolio section I use variables form a .txt to load each work (that way I can add in a more easy way new content). The .txt contains location of images, text shown, titel, and some other variables. Each .txt is aprox. 350bytes.
The problem is that if the variables aren't loaded fast enough the content of each work is shown wrong.
Is there a way to calculate getBytesTotal() for variables ?
when i load a swf file within another swf file my loadVariables do not show.so basicly i have loadVariables in my as2 movie clip which works fine but hten when i load it within as3 movie clip these loadVariables within the as2 movieclip do not work is there any way of makign this work this is what i used for loading hte variables.[code]
someone knows if a directory can be opened using loadVariables and then placed into an array or loop. I know files can be loaded individually, but I want to be able to see all the files using PHP and my .swf file.
I'm trying to send email from Flash. The email form is in a movie loaded with loadMovie. When I call the email.php page, it seems to take forever to do its thing and then nothing happens.
I based my script on the flash email form here in the Kirupa Tutorials and I've tried every way of giving the path to my variables - that is, the path to the text fields in the form via _root and _parent. I've tried appending variables the the loadVariables url and just tried posting them. I can't even get any results when I use the print function in the php script. Here is my php script:
It seems like my variables aren't reaching the form, but I'm also concerned hat is is taking forever for any data to be returned to the flash movie (I've got an on(data) event on the form).
im using loadVariables to get variables from an asp page
the return string is fine but i cant access variables
so my array is call module and my return string is module[1]=blah&module[2]=blah
in my debugger it shows module and the shows module[1] and module[2] as 2 seperate objects from the array and i cant access the values from module[1] and module[2] even if i rename the to module1 and module2
I've got a windows that I can move with the startDrag script. This works just perfectly fine. When I load some text into a textbox inside the mc (window mc) the drag-script isn't working, neither is the close window script. But the text loads just fine. Why is this happening? I haven't changed anything in any of the scripts. If I just delete the loadVariablesNum("info.txt",0); line I can move the windows again.
it has many different sections(15 or so). Now i have made the movie and created all the checkboxes needed in the form.
I have given each one an instance name - e.g. chk_individualtax1
Made a global variable for each checkbox to get the .selected value - e.g. _global.individualtax1 = chk_individualtax1.selected;
At the end of the movie I have put a trace command to check that the variables are working( because they are on different timeline levels)- e.g. trace(individualtax1);
Now my problem comes here because now I am trying to send these variables off to the server using the getURL command. - e.g. getURL("send.php", "_blank", "POST");
This works and the email is sent off to me via php. however only the variables on the main timeline are sent? is there a difference in fetching global variables off different levels of the timeline Now should I rather be using the loadVariables command and if so how?
I have an email form in a flash file. Currently I am using the send variables coding as for whatever reason, it doesn't function if I use loadvariables:Here's what I have set up on my submit button:
I have a PHP-site/script called webshop.php with a $_SESSION variable where I store id's of products. I've tested the script via the browser with functions ?add_item=11 etc... Everything works at that side.
Now, I want to call this script from a flash-movie and thought this little code could do the job: loadVariables("/webshop.php?add_item=" + id, this);
But it doesn't work. (I've also tried with a hardcoded id just to test, webshop.php?add_item=11).
I use loadvariables to get data from mySQL using PHP and up to Flash. Flash gets the data flawlessly. Now one of the data I load into Flash is a path to an image.
My problem is, when I check the imgVar variable, it telles me, its value is: images/news/001.jpg
Now When I use the AS: loadMovie(imgVar, blanker);
it does nothing (blanker is the movie clip I load the picture to).
When I use the AS: loadMovie("images/news/001.jpg", blanker); it shows the picture...
My other question: If I solve this problem, how Can I resize the externally loaded image by just setting either the height or width and doing the resize so that it won't deform my image.
I'm trying to send email from Flash. The email form is in a movie loaded with loadMovie. When I call the email.php page, it seems to take forever to do its thing and then nothing happens.
I based my script on the flash email form here in the Kirupa Tutorials and I've tried every way of giving the path to my variables - that is, the path to the text fields in the form via _root and _parent. I've tried appending variables the the loadVariables url and just tried posting them. I can't even get any results when I use the print function in the php script. Here is my php script:
It seems like my variables aren't reaching the form, but I'm also concerned hat is is taking forever for any data to be returned to the flash movie (I've got an on(data) event on the form).
I would like to know if it's possible todo something like this:loadVariables("script.php?id=<? echo "id"; ?>",0,"POST"); // the echo thing is nonsense I know, but is it possible to paste the $id, that I'm trying to pass to the external script, from my adressbar (browser)?