ActionScript 3.0 :: CheckBox Values Passed To TextFields?
Jun 9, 2009
I have 10 text fields set-up (not sure if these should be dynamic or component), below that I have 30 separate CheckBoxes setup. When a user clicks a CheckBox, it places the value of the selected CheckBox into the first TextField. The second CheckBox selected places that value in the second TextField, and so on.
I have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement:i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .[code]...
This PHP contact form works well and is very simple. I have one checkbox in the fla file. However, it keeps displaying 'No' in the email message field, whether the checkbox is selected or not. It should display 'Yes' if the checkbox is selected, and 'No' if the checkbox is unselected.Here is the PHP:
I want to have each text identified as marketLocation1, marketLocation2, etc up to 150 and I wanted to use a 'for loop' to place the value of that XML node into each labeled textfieldHowever, the only issue is... each individual text field is buried inside a button so that the button displays on mouseover an associated XML fields data.Meaning, I mouse over a dot on a map (button) and it pulls up a statistics balloon about that location specific to our companies needs. I'm a total AS3 noob, so I'm not sure if I should be calling to the XMLdata loaded for a specific set of values on entry to that mouseover, or if I can preload the data for that button into it's specific text fields.Specifics are for the xml/flash file
Code: <market MarketID=1> <marketLocation>Raleigh-Durham-Chapel Hill, NC</marketLocation>
I have a few dynamic generated buttons, and I need on their action to change values in some dynamic generated textfields. The part of the code we're interested is this:
Code: nr_rinduri = 20; // number caming from somewhere else this["mc"+j].onRelease = function() { num = Number(this._name.substring(2))+1; nrInceput = (num-1)*nr_rinduri; trace("NR inceput=" + nrInceput); [Code] .....
So... : if I put codice0.text = ..., codice1.text = .... it's working, but when I am trying to do a this["codice"+contor].text = .... it's not working.... Is this because we are inside another this[] ... the one for the button and when I am referring to this["codice"+contor] the flash see that I want to do something at the button and not at the textfield...
I have the values load from a file, however the problem i am having is that it isnt selecting the values loaded from the file when i check on the settings. am i using the correct as2 code for it? i even tried using setValue, that is listed in the flash livedocs.
I have a Flex List which is databound to a Array. My problem is that when I reorder the List using the built in dragMoveEnabled, the values are reset to the original values.I assume I need to somehow do a two-way databinding but I am not sure how.
I'm working on my first real Flex app and i have learned a lot by it. Now I'm trying to understand the basics of working with classes. I have a function that asks information from the LastFm API. This is the base function:
I found the following XML - Flash quiz template on the net and I was wondering how can I adapt the XML doc to pass CDATA instead of "Value". The code is currently sending the "answers" values into Flash as value, instead of values I will like to type the answers inside of CDATA tags. I don't know how and what to change in the XML as well as in the AS file.
I have a few dynamic generated buttons, and I need on their action to change values in some dynamic generated textfields. the part of the code we're interested is this: CODE:
How can I create a for loop so I can use different values of the same node? So I want to count the "<Text>" nodes of the XML and use their different values on different dynamic textfields. Note that I have mutliple Movieclips on the stage with the same amount of textfields and I would like to include them in the loop, so I named them mc1 mc2 etc.
I am using datagrid and added 3 columns to it in flex project. Data is provided to each column by using itemrenderer. Itemrenderer is checkbox for each column. Name of columns are col1,col2,col3. I want to make the checkbox in col1 selected when i selects the checkbox in col2. But i am not able to do this.
I need a datagrid, which contains checkbox (4 no's) without multiple selection. And I also need a text area which should contain the selected checkbox's label/data. I tried using arraycollection but I am not getting.
I've gotten these sliders to work but can't get the output values to add up. For instance, depending on the values for slider 1, 2 and 3, I need the total to show up in a separate text box. I keep getting a NaN message in the text box.Here's the code I have so far:
How can a pass an asp value <%thisvalue%> to a SWF file? I can get the SWF to connect to an XML database but need to be able get a value from the ASP code so I can compare the XML database table and extract the correct information.
I am trying to use the tutorial on this site to create a simple form submission to my database via ASP. I couldn't open the sample - I am on MX. But I followed the steps on the webpage.My variables are not being passed. All of the Response.Write statements in my ASP page are coming up blank.So I have the 3 input text fields. I specified each with the same variable name as used in the tutorial (fname, lname, email, message). I also used those same names as the instance names but that didn't help so I've deleted it. So currently there are no instance names, just variable names.And then there is a submit button with the code from the tutorial:
i'm trying to send out some input form variables top a php script via loadVariables() and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:[code]is there a way to keep this from happening in flash or do i need to start getting fancy with the php?
i have start the timer timer.start();how I can determine how much miliseconds or seconds passed , since the timer passed [code]Returns the number of milliseconds that have elapsed since Adobe Flash Player was initialized.getTimer() display since the FlasPlayer starts, how to get value of timer
I am trying to use the tutorial on this site to create a simple form submission to my database via ASP. I couldn't open the sample - I am on MX. But I followed the steps on the webpage. My variables are not being passed. All of the Response.Write statements in my ASP page are coming up blank.
So I have the 3 input text fields. I specified each with the same variable name as used in the tutorial (fname, lname, email, message). I also used those same names as the instance names but that didn't help so I've deleted it. So currently there are no instance names, just variable names. And then there is a submit button with the code from the tutorial:
Why isn't the "finco" not recognised/passed to php? I'm not getting the text results!! Code: var finco = "motors01"; XMLParser.load("[URL]"+finco, onFinish); function onFinish($success:Boolean, $results:Object, $xml:XML):Void { if ($success) { category.text += $results.category[0].value; namez.text += $results.namez[0].value; [Code] ......
I have a flash file that I am trying to debug. It loads a second flash file which it passes data to, and then that data is sent to a server. Unfortunately the data isnt coming out how it should.
I would like to know if anyone knows of a way to see what data is being passed to the embeded flash file from the original flash file. I need to make sure the data going to it is correct.
I'm trying to catch when a second is passed using getTimer. I don't want to use setInterval, because I'll need to pause, and unpause it. So.. here's my code:
[Code]...
What is wrong with this code? It seems that the time variable reachs 1000 milliseconds too fast.I'm not getting a second interval. How would I fix that?
does anyone know how to encrypt the parameters that are passed to a flash movie? The case is, that the user should not be able to read the parameters in the source code in plaintext.
Basically, I have an XML object which is pulling layout variables, and then those variables are being passed to another XML object which is sourcing some video thumbnails.And its actually working fine, but only after some tinkering. It seems that the passed variables have to be redifined in some fashion within the scope of the new function.It might be easier to explain with the code:
function makeGrid(backwidth, thumbHolderX, thumbHolderY, numCols, tSpacing) { trace(backwidth); trace(tSpacing);both trace just fine but (See spacing variable below)
Like the subject says, I'm passing in a url string through swjobject, and then using that variable to make a url request upon an event. Here is the code. If I remove the loaderInfo and just declare my url in the actionscript itself, it works fine.