I am trying to get an xml to load from an external site using a PHP proxy. I have been able to achieve this with the url of the xml hard coded in the PHP though I now wish to get the flash to send the url as a variable to the PHP though I am unsure how to do this.
As silly as it sounds, i need the trace to see the error. I am using cs4 for this and have not found anything so far to explain why it is not working. You can test it out without needing anything on stage.
This is the error i get and do not know why. undefined is the varSend trace
TypeError: Error #1010: A term is undefined and has no properties. at Untitled_fla::MainTimeline/frame1() is the varLoader trace
I am using the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly, including the PHP script returning the following variables:
&mySubscriberID=36&firstName=Bill
But the variables are not making it back into the swf file. Here is the code for the first frame of my flash file:
[Code]....
I also have dynamic text fields with the above variables assigned to them.
the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly,including the PHP script returning the followingvariables:&mySubscriberID=36&firstName=BillBut the variables are not making it back into the swf file. Here is the code for the first frame of my flash file:
stop(); var sendLV = new LoadVars();var recLV = new LoadVars(); recLV.onLoad = function(success:Boolean){trace("recLV back from php");} sendLV.onLoad = function(success:Boolean){ nextFrame(); trace("sendLV back
Currently I have a simple setup which sends some data to PHP and then PHP returns a variable to flash. I have no problem tracing out the returned variable in Flash, however i'm strugling to send back more than one variable.[code]If I remove the trace and echo for fromPHP2, it's all good, however with with my second echo for fromPHP2 it just gives me back undefined:[code]It seems that fromPHP1 is basically returning both echo's.
I am using the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly, including the PHP script returning the following variables:
&mySubscriberID=36&firstName=Bill
But the variables are not making it back into the swf file in a usable fashion. The variables sent back look like this:
I'm developing a web application with Flash CS5 and AS3.0. The problem I'm having is this:At a certain state, the application goes to a frame with a "loading..." animation that loops continuously until the next state is reached. The animation is inside a MovieClip that lives on this frame on the stage (I'm not creating or animating it dynamically). While in this state, the app is waiting to receive a large xml file from an XmlSocket connection. The file takes a few seconds (literally - not milliseconds) to be received fully by the Flash player, and during this time the loading animation stops. I believe the socket is blocking the animation thread until it's done receiving the entire file.Does anyone know of a workaround that would allow the animation to keep playing while the socket is receiving? I've seen pseudo-threading hacks, but those always deal with computations or other activities that can be accomplished by calling a call-back function multiple times. Since I'm just listening on an open socket, there's no callback I could pass to a pseudo-thread.
I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :
Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.
I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?
I am trying to load an external text file but keep receiving the following error message:
Code: Select allTypeError: Error #2007: Parameter url must be non-null. at flash.net::URLStream/load() at flash.net::URLLoader/load() at lee.dataload::TextLoader()
this is the code i'm using, i'm very new to actionscript so it's probably loaded with errors:
how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code: public class robotMC extends MovieClip { public function robotMC() {
Im pretty new with the flash -> php -> mysql thing .. And I have made a script that sends some variables (that a user inserts in some input forms) with some var names, and then php handles it and insert it into my MySQL database its kinda ugly that a page pops up and opens the php page.So I was wonderin' if there is some way to send the variables to the php file and process them inside the flash file. without openin' some fancy browser window ?
I have a very simple php script that I'm using to check and set a cookie. I'm running this script from a Flash file, but it's not working properly. If I enter the direct URL to the php file in my browser, it works perfectly. However, if I access it through Flash it doesn't seem to recognise that the cookie has been set.
Here is my php code: <? $expiry = date("U", mktime(0, 0, 0, date("m"), date("d") + 1, date("y")));
I'm building an action that basically handles receiving post data from a flash app,I have no problem receiving the data. after that, it should redirect to another controller/action.I tried Redirect, RedirectToRoute, none of them worked.[code]
I know this is frequently asked, but I have looked all over the internet to find the mistake I'm making with the code I've used to send and receive data from AS3 to PHP and viceversa.Can you find the mistake? Here is my code:
I'm trying to make a barebones, simple flash client communicate ANYTHING to a server over a regular socket. I setup the listeners:
socket = new Socket(); socket.addEventListener(Event.CLOSE, closed); socket.addEventListener (DataEvent.DATA, onSocketData);
[code]...
And then I connect. On the server side I have a simple policy server on port 843.And then the real socket server that the flash client is connecting to.The flash client connects to the policy server and gets the policy. The flash client then connects to the actual socket server. I know this because I can both see it when snooping the network traffic and the fact that the Event.CONNECT fires off. From snooping the network traffic I can see the flash client send data TO the server when it:
socket.writeUTFBytes( "TEST CLIENT ");
From the server app I can see the data the client sent. The server then returns a little data. I can see this data going from the server to the client in the network traffic snooper. However, the client NEVER sees the data. It never fires off DataEvent.DATA or ProgressEvent.PROGRESS or ProgressEvent.SOCKET_DATA. There are no errors and the connection remains open for as long as I want it... but the flash client never seems to see the data... no matter how much I send.
Over and over I read online that the data sent to the flash socket needs to be terminated with a � zero byte. I can verify it is in the network traffic snoop.if I try to read any data from the flash app via something like readUTFBytes it always returns nothing found.
I am using flash vars to pass variables into my swf file.but i want to refetence a Mc by using a flash var. [code]how Can i call a Mc from the flash vars and have it do something
Just wondering how do i integrate a php file with flash to get and recieve variables through the php file from as3?
I would like to start off by putting as3 variables into php database. Then i would like to connect with an as3 variable from php to change the variable to something from the database.
I'm trying to build a workaround for embedding my (downloaded) flash videoplayer. (it's the JWplayer...)
At the moment, when somebody wants to embed the videoplayer they have to include the swf with all the added flashvars (url...). That's messy, and it feels a bit risky... people who know what they are doing can also just remove the plugin and other added data, resolving in me not being able to track pageviews etc.[code]...
Turns out that, when I use file_get_contents on a regular test file, info.php, that responds through a $_GET['var'], the above stated code works, but when I use it on the flashplayer, it doesn't...
As in: the flash file does not seem to be accepting (or responding to) the added header variables...
pass variables from one flash file to another? Basically there's a flash navigator that has multiple links in it. Once clicked it needs to pass a variable to go to another keyframe in another flash file. I'm guessing the receiving flash needs to be able to receive a variable and if variable == a certain variable it goes to and plays a specific keyframe.
Can i put ACTIONSCRIPT inside a xml file and make it work inside a swf?Since is not basic, where can i learn more about xml processing instructions?Other thing....Can a php file that send variables to flash WITHOUT the swf ask for it?
I am trying to pass a variable into my flash from my html code. In my html flash code I have a variable "id" with a value:hotels. HTML Code:hotel_carousel.swf?id=hotelsIn my flash movie I want to use the value "hotels" in my xml.load() funtion. But I am having some trouble and I think it has to do with strings. But I am not sure.
I have a Flash .swf that is attempting to POST some variables to a .php file in the same location as my .swf. My facebook app is in FBML Canvas. Here is the function I am calling. The .php file is never receiving anything. HELP!
public function sendData():void{ var request:URLRequest = new URLRequest("http://apps.facebook.com/MYAPPNAME/api/update.php"); request.method = URLRequestMethod.POST;
I have used the kirupa tutorial for passing variables to a flash file, which in theory all makes sense, however my code only appears to partially work.. this if from frame 1 of the movie:
if (movie=="" or movie==1) { _root.section = "image1.swf"; }if (movie==2) {
[code]....
It'll load image3.swf if i use myfile.swf?movie=3 but any other variables will result in the else running (even no value).
Code: I have a very simple flash video, with a strange problem that I understand how to resolve normally, but not when it pops up on the second run. Basically I have a scrolling banner with 4 panels that all link to different site. The panels scroll across the stage, then move out, and the next banner comes across and so on. Not complicated at all. But all of the sudden I'm getting: