ActionScript 2.0 :: LoadVar.send Same Window?
Dec 11, 2007I want to use loadvars.send but I would rather it didn't open the target page in a new tab, but to act like a normal page would...
View 1 RepliesI want to use loadvars.send but I would rather it didn't open the target page in a new tab, but to act like a normal page would...
View 1 RepliesI searched around and found some helpful things, but I am still missing something I think...
LoadVariables() won't work across domains, right, so, is it porrible to send data to a CGI script via getURL and not have a popup window on send?
I would like to know, which would be the better way to open a new window from an AS3 application, and send some information to the new window. By the moment I have a PHP that generates an xml, but I don't think that is the better way, I would like to know the opinion of a master?
View 7 RepliesYesterday phtrivier showed me how to send an array to a new/sub-window.Now I have replaced this static source of data with an XML file that loads into an ArrayCollection.Unfortunately I found an ArrayCollection behaves differently than an Array when you try to send a part of it to a new/sub-window.How can I do this with the ArrayCollection?Or should I take the easy road with sending an Array and instead look for a way to make the XML load into an Array instead of an ArrayCollection? I don't think I will require the extra features an AC offers.
MyMain.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication ...stuff... creationComplete="settingService.send()">
[code]........
Any example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: [URL] but so far, computer says no. All the implementations I've seen use a combination of TextInput and TextArea.
The challenge is that we'll be using this app to telnet into some old routers and we'll need to do a fair amount of copy/pasting. Based on what I've seen, it seems that I would need to point the mouse into the TextInput in order to be able to right click and paste, which is not very sleak.....
After searching for posting values from flash to php without opening new window.I found the answer in document. using sendToURL() method.Here is tutorial to pass data from flash as3 to php
ActionScript Code:
import flash.net.URLVariables;
import flash.net.URLRequest;
[code]......
I'm using very successfully the "loadVars.send()", using the POST method. BUT I did not expect to see a popup browser window!? I can shut it down using another javascript, but get a confirmation message (because I didn't open up that unwanted browser window using js)... Is there any way I can call a loadVars send without the popup browser window? I am using: myVars.send ("Aurora.php", "POST"); Using: myVars.send("Aurora.php", "_blank", "POST"); or myVars.send ("Aurora.php", "", "POST"); gets me the same pop up window.
View 9 RepliesI have a aspx login page with C# to let member login with username and password. After login, it gets memberId and a sessionID.How does the aspx page or C# code pass those 2 variables to flash client? In AS3, how does it get those 2 variables?
View 2 Replieswhen i try to loadVar from a php file, it works on my flash program loading off from my site not locally.. but when i upload it and test it fails in loading..
View 4 RepliesI want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars.
View 12 RepliesMaybe this is simple but I have troubles trying to do it. I want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars. How?
View 12 RepliesI add this actionscript code on the first frame. Variables are loaded but . The question is below the code.
var myArray1=new Array()
var myArray2=new Array()
var myArray3=new Array()
function showContent() {
[Code]...
how to get loadVar to read special characters like � and � when using it to read from a textfile??
View 5 Repliesi have a swf that is a email form. it works great if you just load this swf on to the server. but i have another swf that loads the email form swf into it. all of it shows up and seems to function except that it doesnt actually send the email. im guessing the problem is that the code on the send button isnt working with the new pathway. I cant figure out the path. heres the code that works in the email form
[Code]...
I am reading a file with certain user defined variables like &x=30&y=50&z=100
Lets the variable is caught in a function as argument myVar
now depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x. how the user has named his/her variables.
What i need to do it get the value of that variable by using loadVar.
this.myVar; As such it gives me undefined. There is text present in 'this' myVar represents 'x' I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
I'm building an array of JPEG files from an XML file. I need a way to verify that the file exists on the server as it build the array. If it's not there I want to substitute another file name in it's place: default.jpg. Using loadVars I came up with this code.... which won't work:
[Code]...
I posted this on the FLASH forum but the only answer I got was that it can't be done and I should use a server-side script. Flash should be able to tell if a load failed or not..yes.
I am reading a file with certain user defined variables like &x=30&y=50&z=100Lets the variable is caught in a function as argument myVarnow depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x.lso keep in mind i dont havehow the user has named his/her variables.What i need to do it get the value of that variable by using loadVar.this.myVar;As such it gives me undefined. There is text present in 'this' myVar represents 'x'I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
View 5 Repliesim just wondering for the best way to read variables of a .php page into flash
[Code]...
but that dident work either the real problem is, i guess that i need it to read in the variable array[0,0]=1 just like that and not use sumthingrather=(myVars.varname) because there will be a hell of alot of variables, and the variable ammounts will switch and i cant do a sumthingrather=(myVars.varname)
I'm trying to load som external text width loadVars. everything's working just fine with the example below, but i want to loop out da ****...
var loadText:LoadVars = new LoadVars();
loadText.onLoad = function(success) {
if (success) {[code].....
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
View 6 RepliesI add this actionscript code on the first frame. Variables are loaded but. The question is below the code.
[Code]...
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 6 RepliesI have a problem with shareobject. the Send method does not work. I work with AS3 My code
[Code]....
I am actually discovering Classes.I try to make a class that reads out an XML file and than converts it into arrays.the array is well created in the class file, but I can't send it back to the swf correctly: it only duplicates the first item of the array in an infinite loop, but when I trace it into the class the output displays it right..
with this code I call the class:
Code:
var myProduct:Product = new Product("gallery.xml");
this.onEnterFrame = function() {
trace(myProduct.getArray());
[code]....
a week ago I bought the following monster template template:[URL]..my last changes to it were to the popup boxes that appear on the SERVICII page when you click those titles there. Right after those changes it compiled and published, everything ok, i did several other tasks in Photoshop then back to my flash and at the next recompile, Error - Send don't send Flash has to close. I reopened it and it keeps closing forced. I tried undoing my steps but nothing worked. I am desperate, the project is due completion on saturday and my source is messed up.
Can anyone tell me why I get that? Has anyone been in a similar situation.I am a flash newbie, I saw no errors in "Compiler Errors" or in "Output", just force closing the Flash CS3.
i would like that my window opens and closes (opens: scale out; closes: scale in) not by clicking on the button but on the window itself.here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
Grtz,Jan the man
here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
schuifwindow www.truevision.be/other/btn_home.flascroll www.truevision.be/other/scroll.flafotoalbum www.truevision.be/other/foto_album.fla only picture one (left up corner) has a X button (i dont want to use this button)
I am preparing a presentation DVD... DVD will contain wmv video, user manual and another flash exe file... So DVD interface will contain three elements; user manual, a flash exe file and video.. Flash video window will be short-time video, playing like 5-10 seconds then repeats itself... My question is, how could I accomplish to put video window playing certain amount of time then repeats itself, in main window? I need as3 fla example, which could be so useful for me..
View 1 RepliesI'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y.
View 3 RepliesSo I have this AIR app coded in flex where I have several floating native windows and what I want is to detect when a user clicks outside of a window so that I can close it. (I don't want to use the PopupManager Class and would want to use the native windows).
My question is, is there a way to detect a click outside of a spark window, or alternativley is there some root container/object which is a parent to all the native windows so that a click inside any native window would bubble up to it? (Apparently the stage object of the root windowed application is not that object since each window is not a child of the stage for the root application).