Re: [flexcoders] Re: getting the total of values of an array collection that is updated manually
I didn’t see any code that actually changes the quantity in the data object. The TextInput gets its initial value from the data via databinding, and the change event calls something, but: 1. you don’t want to update on change, but rather on focusOut or itemEditEnd (otherwise, as you type in “21” it will recompute for “2” and then “21”) 2. You need to actually write to the dataObject. Probably no need to addEventListener again 3. Since you are using plain objects, you will need to call itemUpdated on the orderColl -Alex On 12/10/11 5:42 AM, "ZIONIST" wrote: I have modified the app using Alex Harui's solution and it works when i add a product to the cart and also updates the total when i delete an item from the cart. But when i edit the quantity in the text input, the total does not get updated. Below is the modified version. Anything am missing? http://www.adobe.com/2006/mxml"; layout="horizontal" xmlns:ns1="*" xmlns:ns2="as_logic.*"> -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Issues Building Flex Project with Ant
Hi I'm trying to build an application with ant and I am setting static-link-runtime-shared-libraries>true I want everything to be compiled into one swf. The issue is that when I run my application after setting this value to true I get the following error: TypeError: Error #1006: createUID is not a function. at mx.collections::ArrayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\collections\ArrayList.as:113] at mx.collections::ArrayCollection/set source()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:133] at mx.collections::ArrayCollection()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:92] at DevTools()[/Users/vcutten/workrepos/farmville-main/Client/DevTools/src/DevTools.mxml:22] at _DevTools_mx_managers_SystemManager/create()[_DevTools_mx_managers_SystemManager.as:52] at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:311] at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3063] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2849] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:542] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()