ActionScript 2.0 :: Create A SendandLoad LoadVars Object?

Apr 17, 2009

I'm using the following code to create a sendandLoad loadVars Object but it suddenly quit returning data and no matter what i do i cannot return a value.i'm useing aspx to return the value the response code looks like this. Response.write("success = success"); Ive also tried Response.write("&success = success"); but neither works and i also don't send data here is my code.

PHP Code:

sv0=new LoadVars();
sv0.filename = str1+cntrl0+".flv";
sv0.identifier=str5;

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loadvars():sendAndLoad()?

Aug 1, 2005

Just wondering if you can use the sendAndLoad method of the Loadvars object to send "POST" data to a server then recieve the response in an XML object.

[Code]...

View 11 Replies

ActionScript 2.0 :: Use LoadVars.sendAndLoad To Get An Image?

May 17, 2007

From what I understand, LoadVars.sendAndLoad( ) is generally used to request variable data form a server. I am trying to download an image (which can be returned to me as a bitmap, jpeg, or png depending on my a variable i pass to the server in the sendAndLoad command.

Is this possible? If so, what object do I specify as the target object in the sndAndLoad( ) command?[code]...

View 7 Replies

Data Integration :: LoadVars - SendAndLoad() Over Https?

Feb 20, 2007

I am having problems with loadVars over https. What I am trying to do is sending credit card information from a flash store to a PHP-script on a server over https, and the PHP-script should return a reply. (So I am using the LoadVars sendAndLoad command). The problem is that the reply I get from the script is empty. If I try the same over http, it works fine.

View 4 Replies

ActionScript 2.0 :: [CS3] LoadVars.sendAndLoad Only Working On Some Computers

Jan 15, 2009

I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain via curl to sign up the user.

So far, so good, and it works on roughly 70% of the computers on which it's been tested (it's being tested live from the website, not locally). However, on some computers, it doesn't appear that the LoadVars.sendAndLoad call is being made, as the email addresses sent from those computers aren't showing up on the subscriber list. I know that the PHP script still works on those computers as I've made a barebones HTML form that acts in exactly the way the Flash app does (POSTs to same PHP script with same variables, etc) and it works on all computers.

Here's the relevant AS:

submit_btn.onRelease = function(){
submitOutAnimation();
this.enabled = false;

[Code]....

View 2 Replies

ActionScript 1/2 :: LoadVars.sendAndLoad() Between Parent And Popup Window?

Jun 8, 2010

Having not used PHP in conjuction with Flash before the last few day, I'm a bit stuck.I have a PHP file which will contain a list of online courses, each with their own link to to launch them.  The link to launch the course will contain data such as:

- A book mark that will be read when the flash movie loads to determine which page to go to.

- The current score of the student

- Wherever or not the student has compelted the course.The links open the course in a new popup window, and I am trying to send the PHP variables from the new window to the parent page, without much success.

If I use LoadVars.send(); then the whole works ok, updating the variables and the PHP page, but opening it in a new window, instead of just refreshing the existing page.I have tried getting my head around sendAndLoad, but it doesn't seem to work?Current the "courselist.php" file looks like this:

courselist.php[code]....

View 1 Replies

IDE :: Specify A Proxyserver (and Port Number) Using Loadvars And SendAndLoad From A Projector EXE?

Jun 1, 2009

I am developing a module that will run on a CD-Rom as a projector. It needs to post small amounts of data to an online URL to facilitate tracking.Consider this:

Code:
var myVars = new LoadVars();
myVars.username = _root.userName;
myVars.email = _root.emailAddress;[code].....This works fine, unless the user's computer is behind a corporate proxy server, which is specified in the Internet settings of the browser. My question.....Is it possible to specify a proxyserver (and port number) using Loadvars and SendAndLoad from a Projector EXE?

View 1 Replies

ActionScript 2.0 :: Setup A SendAndLoad() With The LoadVars() And Return XML From The Proxy.asp?

Sep 10, 2004

I have a flash menu which is currently loading its contents via a ever-changing XML file... well this has always been a good thing and worked just fine... until the release of AOL 9.0, which for some reason causes the XML to stop loading.So I found a workaround for this... rather than calling "menu.xml" I have this sript called "proxy.asp" which loads the "menu.xml" file into it via some sort of crazy .asp tunneling and object creation. Here is the proxy.asp file::

Code:
<%@ LANGUAGE=VBScript%>
<%
Response.Buffer=True
Dim MyConnection, TheURL

[code]....

NOW...since I run in literally hundreds of websites I need it to be dynamic. Is there a way for me to use the sendAndLoad() in Flash to pass the "proxy.asp" file a couple variables that will return the XML as an XML Object back into Flash? I know it can return Strings, but I need to learn how to send 2 variables out - ID and progID - and then based on that I will have the "theURL" variable in the proxy.asp file load the appropriate menu.xml file. how do I setup a sendAndLoad() with the LoadVars() and return XML from the proxy.asp?

View 1 Replies

ActionScript 2.0 :: LoadVars / SendAndLoad - Values Returned To Flash Are Appearing Correctly But Do Not Test Correct

Jan 29, 2009

I'm basically sending some variables to a php script from flash and then returning some values back to flash from the script. The problem is that the values returned to flash are appearing correctly but do not test correct. My actionscript and php scripts are below (just samples displaying the the mechanics of what i'm trying to do):

[Code]...

View 3 Replies

ActionScript 2.0 :: LoadVars To Create Array?

Jan 10, 2004

So far I'm able to load simple data ( like "name", "address" ...) or to create an array of simple items. I wonder how I can load external data to create an array of multiple choice questions, each of which consisting of ["text of question",["choice1", "choice2", ...], correctChoice]. The questions show one at a time. Something like what I did here: [URL]

I'd rather not use XML if possible, as I don't understand it v well yet.

View 6 Replies

ActionScript 1/2 :: Send An Object With Loadvars?

May 5, 2009

I wonder if this is doable. Let say if I have an object:
 
var car:Object = new Object();
car.color = 'red';
car.doors = ' 4';
car.make = 'Honda';
car.model = 'Accord';
 
Can I send this object via Loadvars like this:
 
var send_lv:LoadVars = new LoadVars();send_lv.carobj = car;
send_lv.sendAndLoad("script goes here", result_lv, "POST");

View 1 Replies

ActionScript 2.0 :: [FMX] Deleting A LoadVars Object From Memory?

Mar 26, 2004

Is it possible to delete a LoadVars object from memory, as well as its contents? Say I load 20k of data into a LoadVars, and I delete the LoadVars Object, does it stop loading variables into memory, and does it delete the memory that it importing?

View 1 Replies

ActionScript 2.0 :: Output A LoadVars Object To String?

Sep 2, 2003

I'm trying to output a loadVars object to string, and it works just fine and dandy, except it goes a little something like this:

the variable is: start.ADDR_ORIGIN

the outputted variable name is: ADDR%5FORIGIN

The server-side script I'm sending the string to doesn't like that one bit, and said it would phone my momma if I keep doing it..

View 5 Replies

ActionScript 2.0 :: [FMX] Deleting A LoadVars Object From Memory

Mar 26, 2004

Is it possible to delete a LoadVars object from memory, as well as its contents? Say I load 20k of data into a LoadVars, and I delete the LoadVars Object, does it stop loading variables into memory, and does it delete the memory that it importing?

View 1 Replies

Data Integration :: Adding Variables To LoadVars Object?

Apr 27, 2007

I have an application that reads a PHP script and populates the Flash applets using the following on frame 1:

[Code]...

A combobox (created with the returned data) is created on frame 61. When a selection is chosen in the combobox I need to add the value returned from the combobox to the variable catvar, add this variable to the LoadVars object and run the script again. It seems to set c.catvar initially but when I use the 'sendAndLoad command the second time c.catvar isn't included. Is it possible to add variables to a LoadVars object created
on frame 1 from frame 61?

View 1 Replies

ActionScript 2.0 :: Can't Access Variable From Outside Of The LoadVars Object's Scope

Feb 23, 2004

You will 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 :

[Code]...

View 3 Replies

ActionScript 2.0 :: Preloading Contents Loaded By LoadVars Object

Feb 18, 2005

I was trying to create a preloader that preloads content loaded by the LoadVars() Object. For some reason, the getBytesLoaded and getByetesTotal variables of the LoadVars object kept retuning a null value. Below's how I do it:

PHP Code:

var news_lv = new LoadVars();
var url = "news.aspx"
news_lv.load(url);

[Code]....

View 2 Replies

ActionScript 2.0 :: Getting Values From A Radio Button Into A LoadVars Object?

Oct 17, 2006

I have a survey in Flash with 5 questions. Three questions have input text boxes for the user's answers, and two have sets of radio button options. I want to send the answers to a PHP script and insert them into a MySQL database.The text boxes work fine, but the values for the radio box responses show up as "undefined" in MySQL. I'd like to know how to pass the values from the two radio button groups into the LoadVars object. The code I have is:

Code:
submit.onRelease = function(){
var questionVar:LoadVars = new LoadVars();
questionVar.question1 = question1.text;
questionVar.question2 = radioGroup1.getvalue();

[code]....

View 2 Replies

ActionScript 2.0 :: Preloading Contents Loaded By LoadVars Object?

Feb 18, 2005

I was trying to create a preloader that preloads content loaded by the LoadVars() Object. For some reason, the getBytesLoaded and getByetesTotal variables of the LoadVars object kept retuning a null value. Below's how I do it:

PHP Code:

var news_lv = new LoadVars();
var url = "news.aspx"
news_lv.load(url);

[Code]....

View 2 Replies

ActionScript 2.0 :: TUTORIAL Error - Change LoadVars() Into LoadVars()?

Apr 13, 2004

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

View 2 Replies

ActionScript 2.0 :: Access That Array From A Function Using A LoadVars Object Called LoadDVDsText?

Feb 28, 2004

I'm using an onLoad function (importing variables from a text file) and I'm creating arrays within a for loop in the onLoad function.
I'm using something like this:

Code:
this["dvdAry" + i] = this[indexAry[i]].split("##");
So say the first array is called dvdAry0 .

How can I access that Array from a function? Please note the function, the onLoad function and the arrays are all being created on the same timeline.I've tried tracing the array dvdAry0 from the function after the array is created in the onLoad function, but it comes up as undefined. Is the array created on the object that I'm using onLoad on?I'm using a loadVars Object called loadDVDsText.

View 2 Replies

ActionScript 2.0 :: Using LoadVars.getBytesLoaded And LoadVars.getBytesTotal?

Sep 1, 2003

Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.

View 14 Replies

Actionscript 3 :: Create Event Listener To Execute A Function When Object A Collides With Object B?

Mar 26, 2011

Alright, I've looked online at a bunch of different collision tutorials but they don't explain what I'm looking for. I want object A to hit object B and then execute a function via to a Event listener.

View 1 Replies

Flash :: Using HitTestPoint With Stage Object To Create Object Boundaries

Dec 15, 2011

I'm trying to create a boundary for a player object, controlled with arrow keys, in my game using the main stage's height and width. For example, one test point is at the top edge of the player object's bounding box so that when the player object's head touches the stage's top edge, the player can't move anymore to the north. The player object is manually instantiated to the center of the stage by using the Flash stage editor so it will start at the center before the program starts.The problem is that right at the start of the program, I can no longer move the player object up or down with the arrow keys but I can still move it left or right. The intention is to allow the player to move north until the player object's head touches the top edge of the main stage.[code]

View 1 Replies

ActionScript 2.0 :: Create An Xml Object (or Any Object In Fact) Named After A Variable

Oct 28, 2003

How can I create an xml object (or any object in fact) named after a variable, i.e variable called section with value "names" create object [section value + "XML"] = new xml(); result: empty xml object called namesXML

View 3 Replies

Create An Object Panorama, Emphasis On The Object Version?

Oct 16, 2009

Iv been having some real trouble lately attempting to create an object panorama, emphasis on the object version, iv found plenty of tutorials on how to do regular panoramas (ie, from one spot looking outwards, i want to make one of something looking inwards orbiting it) iv used flash quite loosely before in the past and have come to the conclusion from various articles on the internet it is capable and probably the best way to make a small file size.
 
basically what i wanted was to have it so that when u click and drag side to side it would show around the object, im not too worried about how fast around it goes or if it accelerates the further away from the centre its dragged, just the main control im looking for. at the moment i have 180 odd pictures of my model im looking to orbit, or less or more depending on what people think is better (its a 3d render i made so i can choose how many pictures it has) or iv already got it stitched together into a video.
 
the ideas id already had were that it would load each picture into an empty movie clip based on the frame number, ie it would load model001.jpg on frame 1, model020.jpg on frame 20 etc etc, but that didnt work as i suspected and it seems to flicker which i probably should expect as it has to load each picture each time. my other idea was that if its possible to make a movie scrubber, and load the video of the orbiting object in, then just use a scrubber to control moving it around but i couldnt find anything (that wasnt to buy) on how to do that.

View 1 Replies

Object :: Video - Create An Actionscript Object In Haxe?

Mar 26, 2012

I am creating an actionscript video player in Haxe and to avoid the asyncError I am trying to create a custom Object. How do I do this is Haxe? The client property specifies the object on which callback methods are invoked. The default object is the NetStream object being created. If you set the client property to another object, callback methods will be invoked on that other object. Here is my code.

public function new()
{
super();

[code].....

View 2 Replies

Actionscript 3 :: Create Object When Know Object's Class Name

Dec 23, 2010

I'm tring to create instance of class, when I got name of this class.I think better to explain my problem will be this code:[code]I invoke some Function, and I get error: [Fault] exception, information=ReferenceError: Error #1065: Variable Level0Img was not defined.

View 2 Replies

ActionScript 3.0 :: Copy Object, Or Create Object From Name?

Nov 21, 2010

I've been starting to create my own classes for a project and I've encountered an error that I don't know how to solve. This is for a Game class collection.

How do I create an object with ActionScript if I only know the name of it? I have a class that should add an object as a "grid" and place it accordingly, so if I have a Square box that I want to place by 4x4 on the screen it calculates it automatically. Well, that's the goal anyway.

I have a function in my Grid class, Add_Background that accepts an Object to be added as the grid background. I use a movieclip (don't know if I can use a graphic element).

I call the function myGrid.add_background("name_of_my_movieclip") or myGrid.add_background(new name_of_my_movieclip());

The first one I don't know how to use, I don't know how the syntax for creating an object this way (etc: grid[a][b] = new name_of_my_movieclip() doesn't work...) so there has to be some other kind of way on how to pass this to the function and that it knows what to do with it.

The other thing I've tried is passing the object to the function (new Grid_Background() etc) but I can't clone the object anyway I try it and the ActionScript reference site says there's an mx.utils.ObjectUtil that I can use for this, but I have no access to it that I know of (tried it).

View 1 Replies

ActionScript 3.0 :: Create A New Object Or To Reset The Same Object Over And Over Again?

Dec 26, 2009

Is it better to create a new Object or to reset the same object over and over again?

[Code].....

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved