apache-flex

Facebook Graph API and friend's email

我是研究僧i 提交于 2019-12-18 04:42:09
问题 There are some question on the StackOverflow about facebook & email, but after reading them I still have a problem with retrieving users emails. Our app implemented on Flex and uses REST API. And previously it used notifications.sendEmail. App has publish_stream and email permissions (checked with users.hasAppPermission). I tried users.getInfo for get proxied_email address. But this function does not return email address of the friend.. Then I performed the following test using Graph API and

Flex equivalent of ProcessMessages and unresponsive UI during long loops

删除回忆录丶 提交于 2019-12-18 04:40:32
问题 I find that my Flex application's UI becomes unresponsive during very long processing loops (tens of seconds). For example, while processing very large XML files and doing something per-element... Is there an equivalent of "ProcessMessages"? That is, a call that would tell Flex to continue responding to UI events, even in the middle of some long loop, so that the UI doesn't become unresponsive? I'm aware Flex is single threaded by design . That's exactly why I'm looking for something like

Spark lifecycle changes between Flex 4.5 and 4.6

久未见 提交于 2019-12-18 04:08:49
问题 I have recently migrated some of my projects to the shiny new Flex 4.6 SDK. I wasn't expecting much trouble since it was only a minor release. But as a matter of fact I got hundreds of errors all over the place. These errors would mostly come from Spark SkinnableComponent s; for example: override protected function getCurrentSkinState():String { return mySkinPart.someProperty ? "normal" : "someOtherState"; } would work just fine under 4.5, but would throw me a nullpointer error in 4.6. The

USB Scanner with Flex / Java applet?

痴心易碎 提交于 2019-12-18 03:43:56
问题 Is there a way to get an image from a usb scanner (on Windows primarily, cross-platform solution would be best) and post the image together to a form in browser with Flex or Java applet? thx! 回答1: The standardized TWAIN scanning interface is definitely the place for you to look at, rather than low-level USB, except if you are targeting only one specific device and know how to talk to it. Java based There is another Stack Overflow question pointing out a link to a open Applet talking to a

Is it possible to create a 'command line' swf?

China☆狼群 提交于 2019-12-18 03:23:30
问题 I'd like to be able to write a .swf file that is runnable as a command line app. In other words, I would be able to create actionscript classes which can interact with stdin and stdout, and could then execute that .swf directly in the command line. I suspect that this isn't really possible. Can anyone confirm that? EDIT: A couple of the answers pointed out that using Flash for command line work probably isn't the best choice. I wholeheartedly agree in most situations. The reason I am asking

Fastest way to delete one entry from the middle of Array()

谁说我不能喝 提交于 2019-12-18 03:04:17
问题 What is the fastest way to delete one specific entry from the middle of Array() Array is large one having Strings. I dont want just to set Array[5] = null, but instead array size should be reduced by one and array[5] should have content of array[6] etc. 回答1: Don't have any benchmarks to support this, but one would assume that the native Array.splice method would be the fastest... So, to remove the entry at index 5: array.splice(5, 1); 回答2: If you don't care about the order of the items in the

Flex: Render an unrealized UIComponent to BitmapData?

点点圈 提交于 2019-12-18 02:55:07
问题 What is the best way to render to a UIComponent which hasn't been added to the stage? (I'm using UIComponents as renderers for objects, and want to render new copies for image export, filtering, etc.) Two strategies I've seen/used so far include realizing the component to ensure it calls all the lifecycle methods: Add the component to Application.application , render with BitmapData.draw(), remove component. This is similar to what I've seen done for printing unrealized components as well.

Help with Cross-Domain file for ActionScript 3 Socket

天大地大妈咪最大 提交于 2019-12-17 20:25:44
问题 Here is My ActionScript Code: var S:Socket=new Socket("127.0.0.1",2222); Here is My CrossDomain.XML File (Located at http://127.0.0.1/crossdomain.xml) <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" to-ports="2222"/> </cross-domain-policy> Here is The Error I Am Getting Ignoring policy file at xmlsocket://127.0.0.1:2222 due to incorrect syntax. Having never used one

Event Bubbling, and Stop Propagation

你离开我真会死。 提交于 2019-12-17 20:08:32
问题 What is the difference between event.bubbles to false for any event, and setting event.stopPropagation() or stopImmediatePropagation() while handling event? I'm using Flex4 with AS3. 回答1: Setting bubbles to false means the event does not bubble up the display list at all. stopPropagation() and stopImmediatePropagation() make the current event listener the last to process an event. The difference between stopPropagation() and stopImmediatePropagation() is that stopImmediatePropagation() will

What are the downsides to using Spark over Halo in Flex?

依然范特西╮ 提交于 2019-12-17 19:50:16
问题 Is there more work, or source code files required to customize your look and feel (skins)? How maintainable and readable is Spark relative to Halo? Is it more productive and easier to customize overall than Halo, about the same, less? If you're an SDK user who was 99% happy with Halo's appearance (maybe just a few CSS tweaks), is switching to Spark creating more work for you? Do we now need to employ designers to get a reasonably complete look and feel? 回答1: IMHO you have more possibilities