Flex :: Returning The Value Of A New CheckBox In Air?
Oct 31, 2009
I am trying to save settings to an XML File and setting the relevant data if the check box is checked or not.
private static function createXMLData():void
{
prefsXML = <preferences/>;
prefsXML.application.@windowsstart =
[Code]....
well i assume that is what the error means, it cannot get details of something that is not set yet.. so how would i get it to check and if nothing then it is obviously a "false".
View 5 Replies
Similar Posts:
Mar 19, 2012
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.
View 2 Replies
Feb 12, 2009
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:
PHP Code:/DESTINATION--------------------------
$destination="***@***.com";
//-------------------------[code]....
View 4 Replies
May 4, 2009
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.
View 1 Replies
Dec 21, 2009
Say I have four sub-classes of 'Car'. One for each color. I want to have one function that can build and return a 'color-car' sub-class based on the passed value. This is a dumb example, I know, but it is precisely what I am trying to do only on a smaller scale.
public class Car
{
}
public class BlueCar extends Car
[code]....
Ok. You get it. This doesn't work for a reason unknown to me. I get 1118 errors which complain about conversion of BlueCar into Car, etc...
View 4 Replies
Sep 3, 2010
I think this is just a matter of fine tuning some different elements, but I'd like to know your take. I've got a Flex app, using the Flex 4 data services, communicating with Zend AMF services. One of the services returns all the results in a database using SELECT * FROM table there are ~1200 rows (140KB package size).
My problem is the response time, it's rage inducing. Total duration is always between 7-8 seconds. All but about 150ms of that is latency. I broke up the PHP to figure out exactly where the latency was and turns out return $rows is eating up ~6.8sec latency. I can deal with 1-2sec, but when I start waiting around for 8sec I feel kinda dumb. I cross checked the query response speed directly from the database, and just like I was expecting the total query time is 45-60ms.
PHP, this is basically just the generated Flex data service code, although in production it isn't the same:
public function getAllProject_entries() {
$stmt = mysqli_prepare($this->connection, "SELECT u.*
FROM $this->tablename u");
[code]....
View 1 Replies
Sep 4, 2010
in AS3 I'm trying to load a URL (a Yahoo address) into the application so I can process the source code and pull things out of it.However, when I load it, or any other page, I get 0 bytes back.Here's my current code.
private function doSearch():void {
var req:URLRequest = new URLRequest("http://yahoo.com");
var loader:URLLoader = new URLLoader();
[code].....
View 1 Replies
Mar 3, 2010
How could you add a checkbox to a tab in a tabnavigator or a tabbar in Flex? Or would you have to create your own tabbar?
View 1 Replies
Jun 30, 2010
I use an item renderer to display a checkbox in my datagrid like;
<mx:DataGridColumn headerText="Visible" dataField="visibleInd" width="48"
itemRenderer="mx.controls.CheckBox"
rendererIsEditor="true"
[Code]....
But in this case my code does align the checkbox in the middle, but does not save data in my dataprovider.
View 4 Replies
Oct 28, 2009
I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray. Do I have to iterate through the array and explicitly call AS3_Set on each element or is there a way to just return the entire C array at once?
View 2 Replies
Oct 12, 2010
I have a function that's called when a file download has reported progress:
private function progressHandler(event:ProgressEvent):void
{
var percent:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100.0);
Alert.show(event.bytesLoaded.toString());
//pb.setProgress(percent, 100);
}
Now, this should work fine but unfortunately, event.bytesLoaded is returning much larger values than it should. For a test file (8555 bytes), bytesLoaded goes all the way up to 8973384.
View 1 Replies
Oct 31, 2011
I'm able to return django models that have only CharFields/Dates/Integers, but now I'm trying to return models that have ForeignKey properties and I'm getting this error in Flex in my NetStatusEvent.NET_STATUS onError event handler:
m_info Object (@16491fe9)
code "NetConnection.Call.Failed"
description "HTTP: Status 500"
details "[URL]"
level "error"
Here are the models that matter in models.py:
class RewardActBase(models.Model):
user = models.ForeignKey(User)
start_date = models.DateTimeField(blank=True, null=True)
progress_value = models.IntegerField(default=0)
[Code] .....
Then when I want to get retrieve these object via pyamf, this is the method I'm using, which is giving me the error I listed above.:
@login_required
def get_challenge_act(http_request, location_id):
user = http_request.user
c = ChallengeAct();
[Code] .....
The interesting thing is that if I change my get_challenge_act method to return a property of the ChallengeAct object, I don't get the error. So I can return properties or objects that belong to the ChallengeAct, but not the ChallengeAct itself. For example, the following code returns a Challenge object with no errors:
return c.challenge
So it appears that there is some problem returning a Django model with foreginkey models as properties?
View 1 Replies
Jul 9, 2009
<mx:CheckBox id="userlevel" x="118" fontSize="12" fontWeight="bold" y="127" label="Administrator"/>
What should be the Alert.show(userlevel.selected) returns whether its true or not... but i need the label value.
View 1 Replies
Aug 4, 2009
I've had a good rummage around the interweb and can't seem to find any examples of a tri-state checkbox. It doesn't look to be supported in the SDK and I can't find any examples online. I would imagine this is a common problem, before I embark on writing my own does anyone know of a good flex tri-state checkbox component somewhere I can use :)
View 2 Replies
Jun 17, 2011
I want to create sample application which display tree view.
How to Add Check box in flex's tree view control?
View 1 Replies
May 26, 2010
Is the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great.
I am hoping that this is possible in Coldfusion. Does anyone know whether you can set the type of the returned object in a similar way. This is especially helpful with large collections as the flash player will convert them to a local object of the same name thus saving interating over the collection to convert the objects to a particular custom object.
[Code]...
View 2 Replies
Apr 12, 2010
In C you can pass a reference to a data item as a parameter to a function. then within the function you can write to that address thus passing back a value to the caller. Can you do anything similar in AS3?
I know you can use the return statement but I want to return a status by that mechanism plus a value in a parameter.
View 10 Replies
Jul 15, 2009
i used iteamreander in datagrid . if i select checkbox in grid automatically select another checkbox why? plz explain My xml data is more then 50 records.
<mx:DataGrid change="calculate()" id="calamount" x="0" y="3" width="327"
height="337" variableRowHeight="true"
dataProvider="{xml_coupon.lastResult.Teamcoupon.match_details}" >
[code]....
View 1 Replies
Oct 20, 2009
[URL]I have a checkbox renderer i am placing into my Datagrid. The checkbox needs to do a sql query on the sqllite database and see if the show is marked as watched, if it is then make the checkbox as checked and if not mark the checkbox and not checked.
What i would like to do further to this is add the watched items to one XMLList and add the not watched episodes to a different XMLList and have the checkbox on click= move from one to the other list as per watched or not.
[URL]
View 2 Replies
Oct 21, 2009
I want to fill color based on condition so I used conditional operator for the checkbox. But it's shows the error Implicit coercion of a value of type String to an unrelated type Array. What did I do wrong ? How can I dynamically change the color of a checkbox ?[code]...
View 2 Replies
Apr 15, 2012
Context: I have a data grid where the following has been implemented. tabbing through each column in a single row and creating a new row when tabbing from the last column. The last column in my datagrid is now a checkbox. I set the 'editable' to false as shown below (since we don't want editable text to be shown when user clicks on/tabs to checkbox.
Problem: When I tab through the columns of a given row, I cannot tab to the checkbox column and therefore cannot use the space bar to toggle between checked/unchecked. The user is forced to use the mouse to toggle the check box. Question: How do I let user tab to the checkbox column, and press spacebar to toggle between checked and unchecked?
View 1 Replies
Dec 9, 2009
In Flex, is there an easy way to change the size of a Checkbox? I want to make the checkbox bigger, but the label beside it the same font size
View 2 Replies
Dec 18, 2009
[Code]...
How to get all checked items into one more new array?
View 2 Replies
Jan 12, 2010
I have a scenario like, Advanced DataGrid have a checkBox and if i select the header checkBox all the field checkBoxes has to be selected that means multi-select checkBox.
View 1 Replies
Jan 15, 2010
I want to use an image in my checkbox as label, anybody know how ?
View 2 Replies
Feb 9, 2010
I am trying to set the selected value of a checkbox from a dataprovider (an xml file).
<mx:DataGridColumn width="75" headerText="show/hide" dataField="@hidden">
<mx:itemRenderer>
<mx:Component>
[Code].....
The problem I am having is, I think, that it's not recognizing the attribute in the html as boolean "hidden="false" or hidden="true". I can get the value, but how to I make it recognize the value as something other than a string?
View 2 Replies
Apr 1, 2010
In Flex, how do I create a CheckBox that can't be un-checked? I run a function when the checkbox is clicked. If that function encounters an error, I want the state of the checkbox to remain the same. How do I do that?
View 1 Replies
May 20, 2010
I have a string which is ultimately the id of a CheckBox.
What I need to be able to do is to access the CheckBox's properties from the string
var myCheckBox:Object;
var myString:String;
myString = "checkbox_1"
myCheckBox = Object(myString); ?!?!
... and then I'd need to get to myCheckBox.selected, and myCheckBox.label etc
View 2 Replies
May 26, 2010
There's a ActionScript class which dynamically creates basic UI element.So I create RadioButton as
var rBtn:RadioButton = new RadioButton();
and then put it in a Panel Container.The problem is that it appears to be a Button. However it behaves like RadioButton.I have found this problem with one more guy who has posted it here.CheckBoxes and RadioButton looks like Push Buttons.
View 1 Replies
Jun 1, 2010
It seems like it should be a simple concept. I need a vertical list. This list has an image with a checkbox and pathname of that image underneath it. The user should be able to check the checkboxes of the images they want to appear in their "shopping cart". The images, checkbox label, and list are populated by an XmlList. How can I do this in Flex 3.5 and Actionscript and have a button that when clicked, display a list of the checked items??
View 1 Replies