Flex :: Check When Key Is Available In It?
Nov 17, 2010I have a dictionary with objects as keys. How can I check if specific object is available in the dictionary?
View 3 RepliesI have a dictionary with objects as keys. How can I check if specific object is available in the dictionary?
View 3 RepliesThe following is my codes. This is still work in progress; so, you will see some functions with empty contents. Plus, this is my first Flex application; please bear with me. This is a quiz application that gets the questions and answers to each questions from a ColdFusion web service. There are three types of questions, True or False, Multiple Choice with single selection, and Multiple Choice with multiple selections. So, based upon the question type, the application would dynamically generate the appropriate amount of radio buttons or check boxes for the users to select. I got these working. The problem that I am having is, I am not sure how to check what the users have actually selected. In some other forums and posts on other web site, it said that I can use event.currentTarget.selectedValue to get the user selection. But when I actually do it, I got a run-time error saying, "Property selectedValue not found on mx.controls.FormItem and there is no default value." My question is, what do I need to do to capture the user selections?
[Code]...
See [URL] Now there is a button called Answera, which when clicked should have a symbol (movie clip) called Check appear at the cordinated specified. Check exists in the libary (but does not have an instance name) and no where else on the stage. when I run this code I get: 1180: Call to a possibly undefined method Check. -> var rightCheck = new Check(); How is it undefinded if it exists in the libary?
View 7 RepliesHow we add check box in advance data grid header
View 1 Replies$output .="<keyword>".$_POST['keyword']."</keyword><name>".$row['url']."</name><occur>".$row['occurrences']."</occur><queryTime>".(substr($end_time-$start_time,0,5))."</queryTime>";
}
I want to check in Flex, if the value of name is null or not. I tried for these, but i am not getting any alert when the node value is empty.
[Code]...
I'm using Flash Builder 4.6. As a simple example, say I have the following application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:sdk="services.sdk.*">
[code].....
Why does the trace in the loop below return false for every iteration, even though there ARE nodes named with 6 of the 8 possible values??? This only happens when I have a namespace. Is there some other way to check for the node values???
[Code]...
I want to check in my function if a passed argument of type object is empty or not. Sometimes it is empty but still not null thus I can not rely on null condition. Is there some property like 'length'/'size' for flex objects which I can use here.
View 6 RepliesIf I have an XMLList object in Flex, what is the proper way to check to see if the list is empty? Should I just compare the result of myList.length() > 0, myList.toString() != "" or try another method altogether?
View 1 RepliesHow do I check if a control/DisplayObject is on screen? This means it is displayed on screen so no scrolling needs to be done.Example: I have several controls on a form. The size of the form exceeds the screen length/width. As a result I need scrollbars. How do I check if a control is on screen?
View 1 RepliesIn flex, How can I check if a component exists?
View 1 RepliesI create a menu with this:
menu = Menu.createMenu(parent, get_entries());
menu.labelField = "@label";
...
menu.show(position.x, position.y);
How can to check if the menu is still displayed?
How can I check what the parent of a displayObject is? What is the parent of myObject for example.
View 1 RepliesFor example I've got string /wiki/File:test.JPG I should check if it has one of extention "jpeg","jpg","png","gif"
Currently I've written that link.search(/.[j,p,g][p,i,n][e,g,f][g]?/gi) and it is works, but I'd like better regular expression.
how ( if it is ) to check the device type with flex ?
with device type i mean : PC, laptop, tablet, phone ..
Should I do it like this:
if (DeviceDisplay.IsSpeedAvailable == false){
DeviceDisplay.IsSpeedAvailable = true;
}
or
DeviceDisplay.IsSpeedAvailable = true;
I thought I saw that flex/as3 does an internal check on booleans before they are assigned to make sure you are re-assigning stuff but I can't find it to confirm.
I need to merge 2 arrayCollection and avoid duplicates. They contain objects with their own attributes. I would like to avoid duplicates.
View 2 RepliesRelated to:Flex SDK 3.5 - Check file mimetypeIs there a way to get a file's magic number in Flex SDK 3.5 in order to get the file type?
View 1 RepliesI'm trying to make a script that listens to a variable (int or Number) and then does certain functions whether the variable is going higher or lower. So for example if the number gets higher, it runs one function. If it gets lower, it runs another.
View 3 RepliesSay I start at a leaf node, and I traverse up the tree by using .parent(). I need an exit condition once it hits root. At the moment, I'm using parent.@name != "root", where name is just an attribute, but shouldn't I be able to check the type of element as well? How? Also, is there another way to end the traversal in as3?
View 1 RepliesI was wondering if there's a remote file availability check using Flex-AIR. Not a local file.
Example: For displaying a image place holder instead of a broken image icon.
When working with Date() objects in Flex/Actionscript, I'm using to following function to check for null dates. Is this the proper way to check for a null date or is there a better alternative out there?[code]...
View 1 RepliesIn flex, how to check if a variable exists? I have tried using
if (this['some_variable'] != undefined) {
//do something
}
There is a run time error saying the property some_variable does not exists. I have checked with null instead of undefined, still the same error.
Based on the replies I have used this.hasOwnProperty('variable_name'). I found that its returning true if variable_name is a public but false if its private/protected. How to check for a private variable?
i want to check in Adobe AIR if given regex is valid. I'm looking for somtehing similar like here: How to check if a given Regex is valid?
I dont want to compare regex and text-value - i jus want to check if this regex is valid. If someone type invalid regex - for example: "x{5,-3}" or "(((^^$$$)//)" or something like this i just need to communicate to him that this regular expression is not valid - its not proper regular expression.
In Java it can be done by:
[code]
try {
Pattern.compile(userInputPattern);
} catch (PatternSyntaxException exception) {
[Code]...
I know I could use "BrowserManager.getInstance()" to find out which from URL is my app running, but it doesn't work as I would expect (you can't read url in one line - you have to wait for an event).
View 2 RepliesI have some effects which I use in my Flex app... They are all declared within mxml tags...
For example:
<mx:Fade id="fadeIn" alphaTo="1" duration="500"/>
<mx:Fade id="fadeOut" alphaTo="0" duration="500"/>
<mx:Move id="moveEffect" duration="500"/>
[code]....
I need to access information in my XML. The information I need is not stored on every object in my XML, only on the parent. But how can I check if there is a parent or not, so it wont throw an error when selecting the first object in the tree (having no parents)?
[Code]...
how to know the folder as write permission in air application..in my application i am saving txt file in folder,so that i need to test that folder as write permission...
var file:File = File.desktopDirectory.resolvePath("TxtFolder/DataFile.txt"); i need to check "TxtFolder" has write permission...? before saving the file(DataFile.txt)..how can i do it in flex Air as3
I have a typical web application that communicates in the following way: SWF file makes service calls to Java services (Remote object, over BlazeDS on Tomcat), which in turn communicates to database.
How do I implement a status check service (hosted on another domain) that will check if the ENTIRE app is up and running? Ideally, I'd make checker SWF that would load App SWF and called its function that would return something from the database (a naive service would count rows in table and hash it with MD5), but security constrains won't let me call loaded SWF's function.
Checking the java services only is not enough, as I am not checking the status of the SWF.
I want to analyse if the XML I send from my client Flex to my Java using remoteObject is compressed or not. for this, I'm using Wireshark, but it can't get packets in the localhost (windows vista)
View 2 Replies