flex4

Flex Webservice and Android

爷,独闯天下 提交于 2020-01-07 04:35:17
问题 I have a problem when I try to access to a webservice from a mobile application. When I try the address of the webservice on my browser, it works, when I try in my application on the emulator of Flash Builder, it works. But when I try it on my phone, it doesn't work! I have access to the web in my application. I just create the webservice in a view in MXML. <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title

Adobe Flex 4 text height

被刻印的时光 ゝ 提交于 2020-01-07 02:39:08
问题 I remember in Flex 3 text width/height could be calculated (not the text UI component but the text itself): new Text().textHeight; or new Text().getTextField().measuredHeight; Does anyone know how can that be done in Flex 4 with its Text Layout Framework now? Thanks. 回答1: I've found an answer myself. If someone has any better ideas - you're welcome. I use to assume that width of text content is not so important cause each time the size changes the value used below are updated. So I check the

Advantages of Migrating Flex3 App to Flex4

寵の児 提交于 2020-01-06 21:05:15
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

Advantages of Migrating Flex3 App to Flex4

半城伤御伤魂 提交于 2020-01-06 21:03:21
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

Flex 4.5 How do you check for JSON child node key existence (using hasOwnProperty or other methods)

筅森魡賤 提交于 2020-01-06 19:50:28
问题 How do you check for JSON child node key existence using hasOwnProperty (or other methods) in Flex 4.5? The hasOwnProperty method can check for JSON key existence but this seems to only work with top level nodes in a JSON, and not the child nodes. For example, if you have JSON structure like this (in a readable form, sans the JSON syntax), you can check for the existence of callresponder.lastResponse.hasOwnKey("Location") , but there seems no way to check for Location.VenueName for example or

How can I create a custom MXAdvancedDataGridItemRenderer in Flex4?

旧巷老猫 提交于 2020-01-06 19:35:07
问题 Well, I created one but it has a bunch of issues: if I click in the rendered column I get an error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Test/clickHandler()[C:\Documents and Settings\NDEGRAEV\workspace-dummy\Test\src\Test.mxml:27] at Test/___Test_AdvancedDataGrid1_click()[C:\Documents and Settings\NDEGRAEV\workspace-dummy\Test\src\Test.mxml:31] the text is stuck to the top left corner of the cell; the cell's background doesn't change to the

Is there a way to get https requests to work when calling from a localhost for testing

不羁的心 提交于 2020-01-06 15:44:06
问题 I'm getting the errors when testing my application locally since I switched to https: Warning: Domain www.example.com does not specify a meta-policy. Applying default meta-policy 'master-only'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem. Error: Request for resource at https://www.example.com/?json=user/get_logged_in_user by requestor from http://localhost:8888/Test-debug/Test.swf is denied due to lack of policy file permissions. I

How do I make sure that there is always something selected in a Spark List?

佐手、 提交于 2020-01-06 08:33:10
问题 I have a spark list, which is based on a dataProvider. As the application runs, the data in the dataprovider can change, and also the dataProvider can be swapped for a different one What I need to do is make sure that something is always selected in the list (unless it is empty) 回答1: You simply have to set the property requireSelection of your list instance to true . In MXML, it would be: <s:List id="myList" requireSelection="true"> 回答2: After setting its data provider ( or whenever is

Passing Parameters from flex to database using java

寵の児 提交于 2020-01-06 05:15:07
问题 I am facing one problem when am trying to insert values from flex(frontend) to database(backend).No problem in blazeds connection.I think problem is with java code.Anyway am pasting both java and flex code.Please let me know how to insert values into database.I am not well in java.So i tried a lot to solve this issue. My Flex code is: <fx:Script> <![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; private function

How should I smooth the transition between these two states in flex/flashbuilder

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 03:11:09
问题 I have an item in which has two states, best described as open and closed, and they look like this: and And what I'd like to do is is smooth the transition between one state and the other, effectively by interpolating between the two points in a smooth manner (sine) to move the footer/button-block and then fade in the pie chart. However this is apparently beyond me and after wrestling with my inability to do so for an hour+ I'm posting it here :D So my transition block looks as follows <s