ActionScript 3.0 :: Checking Data With Database Using ASP?
Apr 22, 2011
I am a beginner using AS3. I'm trying to set up a simple Flash SWF validation of 2 text input boxes' data. In one box the user enters a username and in the second box they enter a password. This is sent to an ASP page which checks the name and password with a SQL Server database on my site. If their name and password are in the database, then the ASP send back to the SWF, "YES" and if not, "NO". The AS3 could then use an if/else: if "YES" then gotoAndPlay(2), or else display a message.The ASP script/page is completed. I've tested it with another program, and it works to check the DB and get back data.My AS3 is not working.e AS3 script to get it working.Here's the script so far. It get a trace of: [object URLRequest]. So I do not get any data back.
I know that all of the data contained inside openList is a type of Node object, but Flash returns an error. I don't know how to typecast such as placing (in another language)...
Code: (Node) openList.shift(); ...to tell Flash that the data returned will be a Node object.
Better yet, is there a way to specify, while declaring the array, the type of the data that will be placed in it?
I could just take the :Node tag out from my variable declaration, but this might be in a tutorial, so I should at least act like I believe half the stuff about proper coding I write about
I have a function and it accepts an argument, it can be a MovieClip or an Array. How can I determine what the type is of the argument? I did an attempt, but it didn't work, my code currently looks like so:
Code: var peopleArray:Array = new Array("Alfred", "Bob", "Casper", "David"); function myFunction (givenArray:Object) { if (givenArray.dataType == Array) { trace ("This is an array"); // do stuff where an array is needed [Code] .....
I'm developing a diet checker that users enter their recipe into an input field and compares it to an external text file with a list variables of ingredients and then underlines or highlights certain ingredients that would not be good to eat.
I need to check this input box for certain words and see if there are specific words before or after those words.The word "egg" WOULD BE highlighted/underlined as a bad ingredient but "egg white" would NOT have the "egg" part highlighted The word "fried chicken" WOULD BE highlighted/underlined but "baked chicken" or "broiled chicken" would NOT be highlighted The external variable text file lists the words I'm searching for and the words to replace them with but, the code I have cannot yet determine if the word "white" is after the word "egg" and then not have the "egg" part of the phrase underlined.
my flash application requests an xml information in a php site.... How would I monitor if my flash application is still requesting a data or not? because sometimes my application stops requesting
how to send data from a flash to a database and how the receive it aswell. Im presuming you pass the data from the flash to a php file to the database when sending and call the data using a php file to the database aswell. What im trying to do is just have a button that will increment a number in a database by 1 and then display that information on a different Frame within the flash later.
Basically what i want to do if have a button pressed to increment a number in a database.
how to send some data from as3 to a database. I did a little (in fact a lot) of research, and found something useful. But it doesn' t work ... Here's my code:
Actionscript Code: private function confirmPayment():void { [code]............
I was wondering how to send some data from as3 to a database. I did a little (in fact a lot) of research, and found something useful. But it doesn' t work.[code]
I have a flash project that connect with a server. I get all data from the server as raw tables as XML. So I have to do the server logics client side. (Don't ask why!)
I have looked for a framework or some code base that have solved this. A framework that can do mapping of keys asf. Basically a frame work that stores the data and handles retrieving of the data like SQL.
Ie. I can get user with the userid without iterating through all the instances. This gets more complex when you have more id in the same table.
So is there a data framework for flash out there?
(the HTML 5 sqlLight would be great if more browsers supported it)
initially when i want to load data from database, it will output all the elements from a tablenow i create a timer to make sure it will query from the database every interval to keep track of the updated content, however, the problem comes in...when i delete a data from there, the data was somehow 'cached' into flash, meaning, it wasn't updated at all.weird thing is, if i port the data over to xml and update the file, the flash would show the updated data correctly
i am trying to build a web application wherein i have two display data in two text fields. one text will display the Resort name and the other one will display the URL related to the resort.There are only two fields.
I'm making a login script and adding the data to my local mysql database using php.it works as long as I browse in my browser to localhost/ flash/ movie.swf but if I just open the folder and run the .swf file it doesnt work
I am running CS3. I want to access and update a MS SQL database through ASP but I could not find data components to download for CS3. I found Phil Heinz's tutorial[URL] but it is for MX Pro 2004. Should I be using Flex to do this or will the Flash 8 data components work on CS3?
I would like to build a dynamic webdatabase.(One form that updates text and bit-maps.)I must use Microsoft ACCESS or mySQL.Is it possible and is there any video tutorials out there?I heard a lot of "tissling and tassling" that flash is not well suited to work with databases.
I am creating e-learning material that will be accessedonline by students. Is there anyway that Flash can write to adatabase to tell us how long the student was logged in for and how long there were on a page?
where you can load an image from a SQL database ? I would like to show this image in Flash, but i don't know how to load in from a SQL database using ASP.
I have made a .swf file that scrolls boxes- these boxes willin the end contain products contained in a ASP database. Here isthe problem, I don't know how to get the Flash movie I have made toSince I don't know flash that well, I have made transparentbuttons to go over the scrolling boxes to open a URL with theaction scripting -----on (release) {getURL("http://www.myurl"); } This works finebut I would like the content in the scrolling boxes to changedepending upon items in an ASP database. In the database, there isan area to specify "featured" items, which are dynamically put onthe site in specified areas where tags(anchors) for the "featured"items are placed. What I think I should do is code the tag(anchor) for the"featured" item into my flash movie but I don't know how to dothis.
I am trying to create a 'Password' database with flash to push both to and from an external database, the only problem is that I do not want to have to run IIS or Apache or any other web server. Is there any way to read a non localhost/web based type database within flash? If so can someone point me to a tutorial or at least in the right direction?
Is it possible for flash to accept value from a database?There is a database storing values "postions" and "descriptions" (there are 2 coloumns named so to store the values).In flash I want to accept the values entered in these 2 coloumns. How to go about it? If I create 2 dynamic text boxes with variable names "p" and "d" respectively and an "accept" button on the scene, what script should I add to the button so that these text boxes accept the values?
so my 2 queries are:
1) how do I send the value from the database to flash?
im trying to figure out if there is a way to use flash as a front end for a database. i need flash to be able to search the database for part numbers and match the part number with an excel file and be able to open the excel file from flash.