ActionScript 3.0 :: Detecting If Data Are In Correct Form?
Mar 5, 2010Name, phone, birth date, email.is there a way of detecting if the email is a valid real address?avoiding the user to fill
View 3 RepliesName, phone, birth date, email.is there a way of detecting if the email is a valid real address?avoiding the user to fill
View 3 RepliesI am tring to create a "find and destroy" game..I have 20 ball shaped movie clips..they move around randomly..I want to click(destroy) only the ones having certain names (enemy1,enemy2...enemy8)or having certain color....how can I write a function so that I can explode them clicking with my mouse .
onClipEvent(enterFrame)//on(Press)
{
if(this==enemy1)
[code]....
I am tring to create a "find and destroy" game. I have 20 ball shaped movie clips..they move around randomly..I want to click(destroy) only the ones having certain names (enemy1,enemy2...enemy8)or having certain color. how can I write a function so that I can explode them clicking with my mouse .
[Code]...
I am trying to create a simple form using Actionscript 3 that will collect data from a form, then pass that data to an asp file. I have attached the following code to the submit button,but this is not working.I'm not sure if I have to add anything else and I don't understand why this is not working. I'm trying to load all the variable info into one variable called email form.
submit_btn.onRelease = function() {
var emailform:text;
emailform.email_txt = email_txt.text;[code]......
I've got a Gridcolumn in a Datagrid (Spark). The Column's dataprovider is a Number value that gets updated via Binding.Now, without an item renderer the cell displays the correct values.If I set an item renderer, I can't access the values in this renderer.My renderer looks like this, so nothing really do here (for now) but to trace the value, but the value is always NaN.
<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%" >[code].......
without the renderer, the column displays the correct values, so apparently the DefaultGridItemRenderer works fine.As requested, here is my Datagrid;
<s:DataGrid id="dataGrid" dataProvider="{_listItems}">
<s:columns>
<s:ArrayList>[code]..........
_listItems is an ArrayList with instances of a model class, which has (amongst others) a property called change of type Number.
var nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
{
[code]....
The type count is correct but the information for the project is wrong.
How to store the data text in Access databases using flash form and to search into the database. It is possible to work without server because I don't want to put this flash file on the net. how to make databases and to connect with flash and to have possibility to search the database, but to work database in the local computer.
View 1 RepliesI have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 RepliesI currently have a Flash app that gets populated by parsing data from an external XML file. However, I need to get the XML data into a (JSP) session and can't neccesarily have an external XML file--any suggestions? Can I put the XML string into a hidden input field in a form on the HTML? Can Flash communicate with that HTML? Or are one of the below methods recommended:
* FlashVars
* Flash Remoting
* Web services
* JavaScript - call JS function
* fscommand
* ExternalInterface
make a Flash contact form and send the data in an email without using a PHP script? My server does not support PHP... How would I go about sending an email from flash using a different language?
View 5 RepliesI want to create a flash form and be able to collect the dataoffline. The company I work for has a e-newsletter, and we wouldlike to set a lab top up (outdoors w/ no interenet connection) atan event and have the people sign up for the newsletter on thisflash form and collect the data in some kind of database (excel orwhatever). We had used paper in the past, but taking the names andemail addresses from the paper is time consuming and sometimes very
View 1 Repliessome feedback onthe following. I'm stuck. I have a form that I can get to workusing text input fields, but I need to get it to work using thecomponents.I have a flash form with the following:
prmZip instance: text input box
prmMilage instance: combo box
prmUnita instance: data= Mi, label= Mi
[code]......
Thus far I've learned how to create a contact form withfields for name, e-mail, phone number, and comments to include abutton for send and a button for clear. My question is what do I donext to capture and send the data to me via e-mail? I'm told Icould do it with PHP in my SQL I haven't a clue as to where to
View 2 RepliesI'm making a game and I need to load variables into my flash movie from a database. I'm using asp and I know it works fine because it outputs what I want. My problem is that when I try to load the data into flash, it won't let me use the variables. If I put a dynamic textfield on the stage with fname (one of my variables), the text field displays the correct data, but when I say trace (fname) with having the text field, "undefined" pops up.
View 5 RepliesI have a list that accepts drops. When an item is dropped (DragEvent.DRAG_DROP) I need to collect the data that is dropped, however I have found nothing in the event thatdo so, event.dragInitiator.selectedItems would work but gives me an error.
View 1 RepliesI have two mx:TileList controls that I'm using to allow editing of objects in batch. The first contains a collection of all available data, and the 2nd contains the current batch. Both are bound to ArrayCollections, and using the native drag-n-drop functionality of the TileList control the data is moved from one ArrayCollection to the other when an object is dragged between them.
I need to change the currentState to show & reset the batch manipulation controls when the batch count goes from 0 to n or n to 0 items. Based on the documentation, I would have thought that I should listen to the dragComplete event, but my testing shows that instead of firing after the data has been removed from the source ArrayCollection and added to the destination ArrayCollection, it fires (consistently) between these two actions.
[Code]...
I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?
View 4 RepliesI need to make an Odometer and the user can adjust the numbers and once they select their klm reading it needs to be sent to a PHP to sent it to a database. I am having trouble finding a way to send the data. Is it possible to make a "field box" and what ever number is in the box when you push submit sends to the php?
View 1 RepliesThe problem is that I have an input form (with an instance name of 'form'). Its for a newsletter sign up to [URL] All I need is for when you click on the sign up button, it sends the data in the form to a webpage (which is [URL] <- that is actually an example, but the link is pretty much like that.
View 1 RepliesI have a simple form in my flash cs4...I am unable to get it to post to the php script here is the code I have:
Code:
var req:URLRequest=new URLRequest("mailer.php");
var vars:URLVariables = new URLVariables();
[code].....
My contact form is not giving out any data to my e-mail.I'm using two input feilds with instance names as theEmail and theMessage on my action script from which data for the sender's email & the message will be retrieved.Here is the action action script code i'm using -
snd_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
{[code]......
I have a flash form that sends a monthly report that users fill out to a php file, which sends it to a MS SQL database. This issue I am having is that anything larger then 1300 characters entered into the flash form will not work at all. If I reduce the amount of text to 1300 characters or less, it will send it to the php and database just fine. My research shows that a flash variable should be able to handle 65,000 characters, and when I trace my output from flash to php, all of the data is being traced. however, it is not being send to php. I am using LoadVars to send the data with _GET. So is this a php issue, or a flash issue? I ran a php info page and my max_post is set to 10M that should be enough to handle this load. I am not sure why it is not working with anything larger then 1300 characters. Below is my code for my php and flash files.
The variables that are affected by this are the testEvlauation, projects, support, and programManagement variables. I need them to send at least 8000 characters a peice to the php file.
Flash Code:
on (release) {
sendData = new LoadVars();
sendData.contractor = contractor.text;
sendData.name = name.text;
[Code]....
I'm trying to pass a string of text out to a html web form. Something I've never done before.
Tadster suggested I use something like this:
ActionScript Code:
var outDataToJavaScript:XML =
<script>
<![CDATA[
[Code].....
The movie runs fine and shows no errors, but when my browser opens forms.html the data is not there. I assume this is because I'm using navigateToURL(new URLRequest("form.html) and therefore opening a new instance of form.html rather than the one I've already loaded into flash. Am I right? and if so how do I open the pre-loaded version? Or....am I way off and have failed to understand something quite basic?
I have form in Flash that is processed by PHP.
I get the text from the form I use:
Code:
LV_out.firstname = t1.text;
and to get the info from a combo box, I use:
Code:
LV_out.reasonsforevent = reasonsforevent.selectedItem.data;
But I don't know how to get the info from a check box. how to get the info (i.e. whether the box is selected or not) from a check box?
I have a page on my website that allows users to download some files using filereference. When the user clicks on the button to start the download, I want to pass the name of the button (the name of the file they are downloading) to a php script to put in my database, so I have a record of who download what.
I have no problems passing normal form data to php using the loadvariables, but since I want to send info that is not an input text box, I have no idea how to go about doing this.
I have a form that allows users to submit an event.(So the form has text fields for name, event and date of event). The form works by sending its data to a php file, and then e-mailing that data to me. It works perfectly for me and many others, although it does not work when certain users submit their event - I just get a blank email. (So the form never works for 3 out of the 15 people using it). This is the script I am using to send the form's data to the php file:
Code:
eventForm.loadVariables("email.php", "POST");
Why this would not work for certain users only???
I have a flash form (widget) on a website that the user can enter details (or select them from drop down menus).
There is then a submit button at the bottom.
This is quite primitive, and as far as my flash allows me. The bit I am stuck with is that I need to send the data then to a .PHP file that will then forward this to the correct people (this bit is already done for me).
sending this information (e.g. Phone Number, Country, Language etc) to the .PHP file.
I had someone who had compiled my flash site as I have three forms integrated into my flash website [URL] on the left side you see a "Refinance", "Purchase", and "Loss Mitigation" but I had to do some edits on it and someone else had to work on it and the original person I can't get in contact with and I didn't have the original FLA file so something happens when someone fills out any of the forms to the left....no data is sent! I receive the email but it is blank! I have several flash forms I downloaded to see how I would get the script to go but I can't seem to figure it out!
The current script on my flash is super super long...(i'm sure a lot of nonsense coding in it)
I am trying to convert data entered into a form into an xml file which needs to be uploaded.how you go about converting Strings to Files and circumventing the browsing process?
View 1 RepliesI need to get a contact us form in a flash site to send an email to me when someone submits it. I bought a template ([URL}..and it has an area for contact us, but the form doesnt actually work. The template seemed easy enough to be able to get to that page, took some searching in there, so i just need to somehow add some action script that can send me the info.
View 1 Replies