Invariably the else statement is deployed and a new record is inserted into the database even when the username and passwords (md5 encrypted) are identical. I've been on PHP forums and nobody has a solution, so I'm wondering if this is a Flash issue. Perhaps even though the username and password in MySQL 'appear' identical to what's submitted by Flash and md5 encrypted they're really not for some reason. I tried trim() and stripslashes() to no avail.
I've surfed for days to find a solution to this. There are a jillion out there, but I haven't found one that works. Suppose I have the following
<?php header('location:http://www.sleepydad.com?firstName=s...ame=dad'); // the above URL will house my Flash movie ?>
I need to get the values of firstName and lastName into my Flash movie to save as variables (ultimately LoadVars()) and pass as an ID for some MySQL tasks performed in my Flash movie. NOTE the value of the names are not constant (ie sleepy dad). They will change with login - each user having a unique name. I've tried modifying the javascript in my HTML - some.swf?firstName=firstName (in both Object & Embed Tags)
I have to pass some variables to the flash movie (movie.swf?var1=aaa&var2=bbb). never had a problem with using them before.I've read around a lot an tried different coding, but when I export the swf I got the error, that root is unknown...doesn't matter, if I use one of this
var flashvars:Object = root.loaderInfo.parameters; var flashvars:Object = stage.loaderInfo.parameters; // stage is unknown here.. var flashvars:Object = MovieClip(root).loaderInfo.parameters; var flashvars:Object = MovieClip(root.loaderInfo).parameters;
I want to pass flasvars to my app usng php. I can get the php var from the url string fine and write it but i cant pass it through flash vars for some reason.The code im having issues with is in red.
having an unusual problem sending vars to php. it is sending the var but my flash game is being unloaded off the site once the var is sent. if there is another way to send VARS please let me know, OR maybe my code is wrong.
Code:
function sender() { varsToSend = new LoadVars(); varsToSend.var1 = beatTimer;
I would like to pass over 50 items of variables from php to flash. Actually I want to pass array with foreach statement, looping through the array and assigning loop index to the variables and flash again accept the php values through looping. Is this possible? If passing values through foreach or loop statement is impossible, I would like to break a new line in tag. how can I break a new line in FlashVars tag?
So I have HTML page. with flash app on it. I vant to send an array to flash. How to do such thing using flashVars (I have something like uid=12&sid=12&sid=32&sid=12&sid=32) so i need to get dinamic andomeegunnown number of Sid's not losind UID how to du such thing?
btw I want to pass in an array of values and have it recognized by Flash as an Array object; For example, with POST and GET requests an array is formed as "field[]=value&field[]=value" etc.
I am php developer, my html integrator has given me a swf file. When integrated, I saw there are some parameters defined. I would like to edit them. They are in an object tag like:
ok so i have set up a register user page in my flash document and i'm trying to send the variables to a php document on my server which then puts the vars in a database. trouble is the variables dont ever get to the php. every time i add a user a row of blank variables are stored in my database and seen as i have had the php working with html forms passing the vars i am pretty sure this isnt the problem. here is my as3 code:
it gave me error like this: ReferenceError: Error #1069: Property jumCust not found on String and there is no default value. at loadPHP2_fla::MainTimeline/loadedData() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
I have tried repeatedly to sendAndLoad variables from/to flash and php. The problem actually comes when passing the variables from php to flash, here is the flash code:
var dataOut:LoadVars = new LoadVars(); var dataIn:LoadVars = new LoadVars(); dataOut.username = _level0.usuario.ss.s1; //passing the value of textbox dataOut.pass = _level0.contrasena.ss10.s10; //passing the value of textbox [Code] .....
I have omitted some mysql code, but it would still work this way. Which is most odd is that when I test the movie in my computer it works perfectly, but when I upload it to the server it doesn't work anymore.
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero)This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent).I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
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
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero). This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent). I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
I have an AIR app that is uploading a txt file to a server, and I have a progress bar set up in AIR for the user.
The php file that handles the upload then opens the txt file, parses and sanitizes the contents, and inserts them into mysql.
I was wondering if there is any way to have php tell Flash what's going on at each stage of the operation?
At the moment, my progress bar gets up to 100% once the txt file stops uploading, but then hangs around until php has finished the backend stuff. This is fine - I like that the progress bar movieclip stays there until the mysql insert is complete, but I was wondering if it would be possible to reset the progress back and have it move as the php continues through the parsing and mysql insert, or send back a series of text vars saying 'Parsing text file' then 'updating database'?
I understand that you can only echo back to Flash once, and I've also come across that Flash bug that doesn't accept variables back when you are uploading a file as opposed to just uploading variables.
I have made a flash game for facebook. All happened right expect when I am saving score in my Db. I had sended vars from flash to php , which I think is not working://Here is how i am sending vars from flash
I had check it on my localhost its working perfectly. But when I upload same on facebook it doesnot work out.I had used Php SDK 3 and havenot used fbml. embeded flash with Object and Embed tags
I have developed a facebook application in which I am sending data from Flash to Php.Its actually a game based on Flash 8 and at the end I send data by using
loadVarsNum()
using POST method to flash but the problem is this data can be easily tampered so I want know that how can I secure my data from theft or any hack
I'm currently doing a project that has to be multi-lingual. I need to be able to use Flash Var's to locate the XML file.why the below code does not work?ere is my AS3 code:
var xmlPath:String; xmlPath = root.loaderInfo.parameters(encodeURIComponent["xmlPath"]); Here is my HTML code:
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero). This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent).
I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
I've tried to attach the HTML generated by the Flash IDE to this topic but both HTML and zip format were rejected for some reason.
I'm trying to give a friend a hand with his project and could use a bit of direction. We are trying to pass a string of variables and values from an html page to a flash project. We're using javascript to put the variables and values into a string named queryvar. We are able to view the string using a javascript alert box at the time that it should be passed to flash. Now here's where I can't figure out where the problem lies...I'm not sure if we're passing the string to the flash movie properly. The html embed tags are as follows: