apache-flex

How to create and manage a nested TabbedViewNavigator?

纵然是瞬间 提交于 2020-01-05 15:06:37
问题 I'm trying to implement a nested TabbedViewNavigator (inside a View). I did this by following method 3 described in this post: Flex - how to make a tabbed panel Code here: <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"> <s:TabbedViewNavigator width="100%" height="100%"> <s:ViewNavigator label="1st Tab" width="100%" height="100%" firstView="views.FirstTabView"/> <s:ViewNavigator label="2nd Tab" width="100%" height="100%" firstView=

Bookmarks in Flex

本秂侑毒 提交于 2020-01-05 14:12:26
问题 Is not it possible to add a flex url to bookmarks. If not,Please let me know if any alternatives are there. Thank you. 回答1: There is a concept in Flex called deep linking. You can read all about it in the docs. You basically just need one class: the BrowserManager. This class allows you to: control the navigation history of your browser set window titles for different states of your application set specific URL's in your browser's URL bar for different states of your application listen for

AS3 try/catch out of memory

落花浮王杯 提交于 2020-01-05 13:24:19
问题 I'm loading a few huge images on my flex/as3 app, but I can't manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont know what to catch): try{ images = new Array(frames); for (var i:uint = 0; i < frames; i++){ imagesBA[i] = new BitmapData(width, height, false, 0x000000FF); } } catch(error:????){ Alert.show("Out of memory!"); } Any idea what ???? can be? Or does anyone knows how to catch when there is no memory

AIR Application written using Singletons needs to spawn multiple instances of app

自作多情 提交于 2020-01-05 12:13:20
问题 I have an AIR application that uses Singletons to manage global state throughout the application. Works great for what it does (manages a network appliance). But now the client wants to spawn multiple application instances from the first instance so they can manage multiple hardware devices at the same time ... kind of like a dashboard but lots bigger. As you can guess, I coded myself into a corner with the singletons so if I refactor the application to have a bootstrap class that launches

AIR Application written using Singletons needs to spawn multiple instances of app

青春壹個敷衍的年華 提交于 2020-01-05 12:13:13
问题 I have an AIR application that uses Singletons to manage global state throughout the application. Works great for what it does (manages a network appliance). But now the client wants to spawn multiple application instances from the first instance so they can manage multiple hardware devices at the same time ... kind of like a dashboard but lots bigger. As you can guess, I coded myself into a corner with the singletons so if I refactor the application to have a bootstrap class that launches

Internationalization for Flex/Flash Apps

北城以北 提交于 2020-01-05 11:22:48
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .

Internationalization for Flex/Flash Apps

╄→гoц情女王★ 提交于 2020-01-05 11:22:00
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .

Embedding a Flash UI in a Java application

女生的网名这么多〃 提交于 2020-01-05 11:06:11
问题 What's out there that lets you do this? Are there any OSS projects or maybe something a little more popular than this: http://www.jpackages.com/jflashplayer/ ? This does exactly what I'm suggesting (i.e. cuts out the need for Swing UI for the most part) but for a number of reasons I'd be interested in any better alternatives. Are there any? Any alternatives would need to support the Flex SDK. 回答1: Use the SWT GUI toolkit, which has an embedded browser. You can even deploy you own webkit with

Accessing a class from an externally loaded Flex SWF

為{幸葍}努か 提交于 2020-01-05 08:59:29
问题 Using Flex 4, I have created an SWF that has the following code: <fx:Script> <![CDATA[ import mx.events.FlexEvent; import com.Index ; protected function start(event:FlexEvent):void { this.addElement (new Index()); } ]]> What I am trying to do is load the SWF into another SWF and access this class. The problem is the Flex class Main is what is recognized by the loading SWF. I have tried accessing its children(elements), but the added item is not there. My ultimate goal is to load an SWF that

Can I use oauth 2.0 with flex?

こ雲淡風輕ζ 提交于 2020-01-05 08:31:10
问题 I want my flex mobile app to connect to the Google services, specifically the new Google Drive, to upload and download files. Is this possible using AS3 and Flash Builder? I believe oauth 2.0 is required for authenication. Can this be done with Action Script? I've looked around and only found oauth v1 libraries. Also, are there any APIs working with Google Drive that works with Flash Builder? Thanks 回答1: I don't know if you are still interested with the Google Drive API, but i've just