Binding - Flex ChangeWatcher Doesn't Work?

Jul 9, 2010

I'm trying to implement a binding between some custom-built models and just beginning to dabble with the whole mx.binding.* collection. I tried this simple, stripped down example, but can't get the binding working correctly. Can somebody tell me where I'm going wrong?

[Code]...

View 3 Replies


Similar Posts:


Flex :: Binding ChangeWatcher Bind To A Negative Condition

Jan 7, 2011

I have a bindable getter in a component which informs me when a [hidden] timer is running. I also have a context menu which, if this timer is running, should disable one of the menu items.Is it possible to create a ChangeWatcher which watches for the negative condition of a bindable property/getter and changes the enabled property of the menu item?Class B:[code]In the code above, I have the inverse case: when isPlaying() is true, the menu item is enabled; I want it to only be enabled when the condition is false.[code]

View 1 Replies

ActionScript 3.0 :: ChangeWatcher - Handler Function Doesn't Fire?

Jun 19, 2007

I am having problems with a ChangeWatcher.Everything seems to be set up correctly.The canWatch method returns true, the isWatching method returns true and if I query the return value of the getValue method I get the correct information, including changes. But for some reason the handler function just doesn't fire.

View 1 Replies

Flex :: Binding To Arraycollection Does Not Work?

May 23, 2010

I am using flex SDK 3.5. I have model.as and in it i have an ArrayCollection (name it arr_mod) which is Bindable.

From my mxml i link to this arr_mod in three places:
1) in DataGrid i set dataprovider={arr_mode} ...

2) in Button i add new item to the arr_mod this way: mx:Button .. click = "{arr_mod.addItem(new Item)}"

3) in textBox i want to add mx:TextBox text="{mySpecialCounterFunc(arr_mod)}"
note that in the Script of mxml arr_mod is Bindable as well as in the class definition in model.as

The problem is, that when clicking on button, mySpecialCounterFunc is not called! it should be called, since i use {} and this should listen to changes in arr_mod (a change that was made in the button should cause a new item to be added.. and than the listener to respond). While The DataGrid is updated correctly! By the way, if i change arr_mod to simple String or Int it works.. i.e. mySpecialCounterFunc is called Why??

View 1 Replies

Flex :: Does Data Binding Work With The UITextField

Oct 1, 2010

Does data binding work with the UITextField? Unfortunately, I'm getting the variable instead of the bound data.

[Bindable]
public var myString:String;

in a function, where tf is a UITextField:

myString = "blah blah blah";
blah blah...
tf.text="{myString}";

It's giving me {myString} instead of its data.

View 1 Replies

Flex :: Compiler Warns Me That Binding Will Not Work?

Apr 11, 2007

The Flex application below generates the compiler warning: Data binding will not be able to detect assignments to 'dp'. This seems correct since the variable 'dp' is not a bindable property (there is no [Bindable] metadata tag). I have added a button which appends items to the back of 'dp' when it is clicked. Although the compiler warns me that I will not see changes to 'dp', the list shows the new item every time the button is clicked! I do not understand why I can see new items appear in the list. Can someone explain why this still works although 'dp' is not bindable?

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" minWidth="955" minHeight="600">
<mx:Script>

[code].....

View 1 Replies

Flex :: Get ChangeWatcher To Fire When XML Is Appended To?

Feb 25, 2010

So I had a requirement to add an undo function to my app and I discovered this nifty ChangeWatcher class, but it's not doing exactly what I want and I'm hoping someone knows how.ChangeWatcher seems to monitor assignments to the variable reference. So when I say:

myXML = <xml/>

it fires off it's function just fine and dandy, but when I say: myXML.appendChild(thisOtherXMLVar)

I get nothing, even though the variable changes the reference doesn't so ChangeWatcher doesn't fire off the function.how to get ChangeWatcher to pick up on all changes to a variable?

View 1 Replies

Flex :: ChangeWatcher On A [Bindable] Variable Not Working?

May 26, 2011

I have a Number variable, named isConflict, whose value is passed in from a parent. I would like to put a ChangeWatcher on this item so that a function named changeBGColor will run whenever the value is changed. Within my creationComplete function of init, i have the following:

var isConflictWatch:ChangeWatcher = BindingUtils.bindSetter(changeBGColor, this, "isConflictChain");

View 1 Replies

Flex :: ChangeWatcher Not Firing On Bound Property Change?

Sep 30, 2010

On creation complete my parent component executes an "init" function which simply sets public bindable variables in child components. I'd like the child components to watch these variables and upon being set use them. However, for some reason the ChangeWatcher is not firing with the change of the variable. Below is my code;

Parent Component
private function init():void
{
userInfo.user = new User("Tom");

[Code]....

View 1 Replies

Flex :: Binding To An MXML-esque "binding String"?

Oct 13, 2009

Is it possible to specify MXML-esque "binding strings" in ActionScript?For example, I want to be able to do something like:

MXMLBinding(this, "first_item",
this, "{myArrayCollection.getItemAt(0)");
MXMLBinding(this, ["nameLbl", "text"],

[code].....

View 6 Replies

ActionScript 3.0 :: Flex Doesn't Work The Way It Should?

Jan 28, 2010

I have 3 files. 2 actionscript files and a html file.I want the image to show up at the 0 X coordinate.It shows up at a non-zero position in the browser (firefox 3.*) after I compile everything with flex SDK and run the html file. BUG with flex? The embedded png image is 1019 pixels wide.

package
{
// first file.
import flash.display.Sprite;[code].....

View 2 Replies

Flex :: Flex S:datagrid Sorting Doesn't Seem To Work?

Feb 18, 2012

I'm using Flashbuilder 4.6 and can't get sorting of columns in my s:DataGrid to work, clicking on the columns does nothing. Can anyone suggest what is wrong?

[Code]...

View 1 Replies

Flex :: DropDownList Doesn't Work In New Window

Oct 29, 2010

In this code I'm creating a new window when I click the button. In the new window are TextInput and DropDownList components. When the new window opens, clicking the DropDownList does nothing - you have to click it a second time round to get it to open. However, click into the TextInput field first and then try opening the DropDownList works no problem.

Below is the code, or download the FXP file here.

// DropDownTest.mxml (application)
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

Flex - Httpservice Doesn't Work On Localhost?

Nov 7, 2010

I am making a very simple httpservice request w/ a php file that is on my remote server:

<?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:mx="library://ns.adobe.com/flex/mx"
xmlns:halo="library://ns.adobe.com/flex/halo"
>

[Code]...

When I run the resultant flash file on my remote server, it works 100% and test.text gets populated to "successful". However, when I run it on localhost test.text is still blank. If I check my network monitor in Flex, the httpservice was successful, so crossdomain.xml seems to be set right ...what am I doing wrong? I've been spinning my wheels for some time w/out a clue.

View 1 Replies

Flex :: Why Flash Firebug Doesn't Work

Nov 12, 2010

Why Flash Firebug doesn't work with flex 4.5?

UPDATE:

I have Flex 4.5 and in the main application, in the script tag I write:

import ominds.Firebug;

I use flash player WIN 10,1,85,3 Debug enabled. I export swf as 10.1.85 version.

And when I open the flashFirebug I get this: "No SWF files with the O-Minds package found, you should import the O-Minds package into your flash files. For more information visit: o-minds.com/products/flashfirebug"

View 3 Replies

Flex :: Image SmoothBitmapContent Doesn't Work?

May 10, 2011

recently I got a jagged image problem when scaling. I set my image components smoothBitmapContent true, and it works properly the first time, but if I reset the source, the images return jagged. It seems like the smoothBitmapContent property has been changed to false, but it doesn't work even if I set it to true in run time.Here's is my code:

<custom1:SmoothImage id="MJCard_3_36" x="286.5" y="56.65" scaleX="0.66" scaleY="0.83" smoothBitmapContent="true"/>
MJCard_3_36.source = seabedPicArr[index1-1][index2-1][index3-1];

I simply use a custom Image-extended class and switch smoothBitmapContent on, and I set the image's source in run time.

View 1 Replies

Flex :: RichText Doesn't Work With Bullets?

Jul 25, 2011

See the simple application created below. I have a RichTextEditor and a RichText component.The idea is to display whatever typed in the RichTextEditor in the RichText component. Everything else (I think) works except for Bullets! The conversion works as if bullets doesn't exists!

<?xml version="1.0" encoding="utf-8"?>
<s:Application width="100%"
height="100%"

[code]......

View 1 Replies

Flex :: TextArea Scroll Down Doesn't Work

Sep 1, 2011

I have a TextArea that shows the conversation from selected chat room. For valueCommit event I use: verticalScrollPosition = maxVerticalScrollPosition; And it works fine scrolling text to the bottom. However in one case it doesn't work as expected. There's verylittle text, so TextArea has no scrollbar and then I put a lot of text and a scrollbar is necessary. The text is scrolled almost to the bottom (still a few lines need to be scrolled down). I am pretty sure it gets maxVerticalScrollPosition as if there was no scrollbar. So the question is how can I wait with updating verticalScrollPosition with respect to TextArea's new size (that is now with a scrollbar). I tried calling validateSize and other methods that start with 'validate' but unfortunately with no luck. I also tried the old trick of putting caret at the end of text. So the TextArea's scrollbar makes a difference when getting maxVerticalScrollPosition and I need to update verticalScrollPosition once all measurements are done. I forgot to mention. I use htmlText.

View 2 Replies

Asp.net - C# WebServices And Flex RPC Session Doesn't Work?

Oct 10, 2011

look im facing a problem. I have .NET + Flex application. I have a component in Flex who uploads a .XLS file to the server. This component has a Progress Barand it updates its bar and the Label with the

[Code]...

View 1 Replies

Flex :: 4 - Component Move Event Doesn't Work

Apr 6, 2010

I have a CustomTextInput component based on TextInput (Spark) component. The instance of this class is placed on a popup window (TitleWindow). How can I capture the popup move (dragging the title) event inside CustomTextInput implementation?

MoveEvent.MOVE event of the CustomTextInput itself doesn't work. Of course, I can't access the parent popup window inside the component implementation, because it's a common component that can be used not only on the popup windows.

View 1 Replies

Flex :: Method Doesn't Work When Being Called On ParentDocument?

May 8, 2010

I wonder is anyone can look at this code and tell me why calling the removeSelectedChild works when called from the same document, but returns the following error when called from the child document/component.

"ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller."

<?xml version="1.0" encoding="utf-8"?>

[Code]...

View 3 Replies

Flex :: Chrome: Flash Video Player Doesn't Work?

May 9, 2010

why my flash video player doesn't work in Chrome while it perfectly works in other browsers ? (Firefox and IE)

View 1 Replies

Actionscript 3 :: Flex Tree Itemclick Event Doesn't Work

Oct 19, 2010

i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands.My problem is that i don't know how i can get the listener function to fire.What i would like to do is create the tree completely in as3. (no mxml). Normaly i set the itemClick on tree in the mxml. but i want to do this in as3. My component has alot more functions in it but i have deleted them so that it becomes easier to read. I Thought if i override the createChilderen function and add the eventlistener in there, that i would work. But no luck.

this is my code;

package
{
import mx.controls.Tree;
import mx.controls.listClasses.IListItemRenderer;

[code]...

View 1 Replies

Flex :: ButtonMode And UseHandCursor Property In DataGrid Doesn't Work?

Oct 28, 2010

If I set the properties of "buttonMode" and "useHandCursor" to true in DataGrid, it does not work as I expect. Only if I move the cursor to the edge between two rows, the hand cursor displayes.

What I expect is that no matter where the cursor is moved, it should always show hand cursor.

The following the itemRenderer:

<?xml version="1.0" encoding="utf-8"?>
<mx:Label
xmlns:mx="http://www.adobe.com/2006/mxml"

[Code]....

View 3 Replies

Flex :: Autocompletion In FlashDevelop Doesn't Work In Included Files

Jan 18, 2011

Why doesn't autocompletion work for function's local variables in included *.as files? For example:

[Code]....

View 1 Replies

Flash :: Flex 4.5 IOS Mobile Project: SharedObject Doesn't Seem To Work

Oct 27, 2011

I'm trying to use a SharedObject in a Flex 4.5 mobile project. The SDK I'm using is 4.5.1, and the AIR version is 2.6.0. I'm trying to locally store user credentials for my application using this piece of code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Flex Removing Duplicates From An Array Doesn't Work?

Sep 11, 2010

I've been trying to remove duplicates from an array for a while, or even preventing them, and I'm having nothing but trouble.There's a lot of code to go through.I'm creating an array with objects inside it like so...

Code:
private function getJsonResult(event:Event):void {
//ta.text+=http.lastResult;

[code].....

View 2 Replies

Flex :: Air - Adobe Export Release Build Doesn't Work - Mac OSX - Builder 3

Jun 4, 2010

I have an AIR application i'm trying to release with flexbuilder. Launching application has no problem ... bin-debug dir is correctly filled with my files. But when i want to create the AIR file (export release fuild), AIR files content view is empty and bin-debug directory is never filled.

View 4 Replies

Flex :: CommitProperties In A Custom Component Doesn't Work With Percent Width

Apr 1, 2011

I'm creating a custom component (based on ComboBox) and overriding some base methods. Recently I've found it acts weird when I set it's width in percents, rather than a fixed width. It tends to continuously call the commitProperties method and fail in the end. When I set it's width to fixed value - all works like a charm. What am I missing to implement? Here's some code ..

override protected function commitProperties():void {
super.commitProperties();
//some stuff ...

[Code]....

View 2 Replies

Flex :: File Upload - FileReference Doesn't Work With NTLM Authentication?

Jul 15, 2011

We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will be popup asking the user to input credentials.I've queried some resource from internet and it seems this is a bug of FileReference component.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved