ActionScript 1/2 :: Check TWO Variables In PHP File?
Aug 9, 2010We have a FLASH website that uses PHP to authenticate users.
We have recently been asked to implement TWO variables as we used to only have one.[code]...
We have a FLASH website that uses PHP to authenticate users.
We have recently been asked to implement TWO variables as we used to only have one.[code]...
I have 2 loadVars - myVars, myPictures
basically i have defined their onLoad functions
so in myVars, i call for
Code:
myPictures.load("http://www.fakedevil.com/lurgee/pictures2.php?id="+this._parent.link2.text+"&time=" add getTimer(), "");
pictures2.php is working cos I just check so by rite the variables loaded should change.. but somehow each time I check those variables in myPictures.onLoad, the variables are always the same.
How can I import some variables from a txt file and treat them like normal variables in fla file? something like in txt file
Code:
&variable1=2&
&variable2=8&
[code]...
I just want to know if there is a way to assign multiple variables, and if there is a way to check multiple variables.
I want to be able to assign variables to false and then check if all the variables are false.
I wanted to check the value of 5 different variables at the same time.
Based on the value each of variable I wanted to make 5 corresponding movie clips do something.
There has gotta be a better way to do this rather than me using a bunch of if else statements.
I have a form that uses PHP to check to see if all variables are filled in. I have a button with
on (release) {
formcheck();
}
that checks the formcheck function and then sends the form or gives a popup that tells what part of the form needs to be filled in.
My problem is that I have a movie that I'd loike to act as a button. I've done this before with any other command (gotoAndPlay, getURL, etc), but the
on (release) {
formcheck();
}
does not work with a mc button, only with a regular button. Does anyone know a way around this, or why it does not work?
First of all sorry im not very familiar with the flash lingo, im still new to all this actionscript stuff
ok so i wrote this on a frame in the timeline[code]...
now i need to check which one from all these has a value of zero. then when it finds it i need it to tell me which one it is (s1x or s2x or s3x) so i can do stuff with it.
it's not working. why not?
[Code]....
Is it possible to check many different variables in many different MC's without a billion if/else statements?
View 2 RepliesI use Flex SDK in command line to develop a flash.But trace() doesn't work with Flex SDK.Is there another good way to check values of variables?
View 2 Repliestrying to make a yahtzee game but cant get it to score the 3 and 4 of a kind. I have dynamic text boxes that convert the dice to a number for scoring called result1, result2, ... How do I test to see if 3 of them match or 4 for the 4 of a kind and add the text boxes if 3 numbers match. I have a button that will start the function called score_3kind.
View 9 RepliesAny best way to script several MCs (acting as buttons) so that on release(), the alphas on the others tween to 20. When you go to click one of the dimmed button, its alpha should tween back to 100 and the previous one that had the full alpha should now fade to 20. Logically, I know I need to somehow implement a variable to check the state of the MC and an if statement to script the actual alpha tweens but I'm confused as how to actually implement it. Where to put it etc.
View 14 RepliesI am trying to build a AS3 only project in Flex....I have tried debug mode, but seems like it takes so long to compile....I can't use trace or check variables...Are there anyway to do debug??
View 1 RepliesIs there a way to check file name case when loading a file? For example:
My URLRequest has this: "filename1.swf", but the actual file on the server is this FILENAME1.swf. Since the file names do not match case, is there a way i can have flash and AS3 catch this?
I define this function
function beatsFilledcheck():void
{
if (a1Shape == "none" || a2Shape == "none"[code].....
whenever I run as
beatsFilledcheck();
it sets beatsFilled = true even if all but one a*Shape variables are still "none".cant understand why?
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()
{
[code]....
I am working with Flash 8 and am wondering if there is some script to add that would have the .fla check the external XML file every few seconds for updates?
View 1 RepliesIm 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 ?
View 3 RepliesI want to know if there is a way to know if a swf file is already loaded, in order to change the behavior of the preloader
View 2 Repliesonce a video file has been encoded into an flv is there a way to confirm the compression settings? Say if I wanted to double check that I had the right setting or duplicate setting of a flv I encoded earlier, is there a way to access this info?Like QT you can choose Movie Inspector.In QT I opened a flv file that was encoded with a Max data rate: 50kbps (I know, I know very low but it's the setting I was given). I then selected Movie Inspector thinking it could do the trick but it listed the data rate as 359.68 kbits/s.is if I encoded at a Max data rate: 50kbps how is 359.68 listed as it's data rate in QT?
View 3 RepliesI installed on my system Adobe flash cs3. but when i opened my Fla file that time getting the following error.So how to check the Fla file version?
View 2 RepliesI have a flash file that sends some request to php file every 5 minutes. How can I check if the request from flash file has been sent from my website or from other place. I want to be shure that someone is not sending requests from other locations. It is very important for security reasons. Will the following PHP code work?
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$user_ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
[code]......
I am using flash cs5 and developing for iOS. I am using the application storage directory as well. But, in my code, a file in the storage directory is trying to be read before it is created, and therefore results in errorst?
View 1 RepliesBefore i overwirte the file i need to check whether the file is open already.If it is open i need to show the alert message colse it in action script.
View 0 RepliesDoes anybody know how I can check if an external file exists?[code]...
View 3 RepliesIs there a way to check if a file path exists within a local directory.[code]...
View 5 RepliesIs the onLoad function the only way to find out if a file exist or not. As for now. I'm looping through a xml file. if image exist i add the filepath to an array if not, i ignore it. But if i check the filepath with onLoad. All the images in the xml file are loaded. I dont want to load the files yet.
var fileFound:Boolean = new Boolean();
var fileExists = new LoadVars();
fileExists.onLoad = function (success)
[code]......
Whats the best way to check if a file is on a server (the same one that the flash file is on). I need to call whatever the function maybe before using LoadMovie.
View 4 RepliesI have basic knowledge of Flash and AS3.0. Suppose i have a flash swf file(main.swf). In this main.swf file, i loaded another swf file(sub.swf) by writing the following code snippet in main.swf file as shown below:
var textLdr:Loader=new Loader();
var noteUrl:String = "AddNote.swf";
var noteUrlReq:URLRequest=new URLRequest(noteUrl); textLdr.load(noteUrlReq);
addChild(textLdr);
Now, how to acess the data present in main.swf into sub.swf.Note: Here data represents values/data stored in variables/objects of main.swf file.
I am trying to read a XML file and check a parameter for duplicates of that parameter in the file. There could be up to 200 entries with this parameter which is a number. How can I check to see if there are any duplicates?
View 2 Replies