actionscript

Flex best practices? [closed]

末鹿安然 提交于 2019-12-03 12:47:48
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. I have the feeling that is easy to find samples, tutorials and simple examples on Flex. It seems harder to find tips and good practices based on real-life projects. Any tips on how to : How to write maintainable actionscript code How to ensure a clean

Event-driven CMS - advantages and disadvantages

▼魔方 西西 提交于 2019-12-03 11:39:52
I'm trying to identify some of the pros and cons of having a CMS that is event driven. Event driven is not uncommon. You see it in many scripting languages like Actionscript, javascript, jquery that involve a client. How about in a CMS where the events and their responses happen on the server. What advantages or disadvantages might this approach have, and what other approaches are there that people may prefer more. P.S. Please note that I use Actionscript, JQ, and JS as an example only. You realize that when talking about a CMS this way, the events an their responses are all server side stuff.

Handle VerifyError: Error #1014 when loading swfs using AS3

大城市里の小女人 提交于 2019-12-03 10:13:37
We are making a system that has a main swf for the application, and loads separate tools from separate swfs -- there will be versioning issues in the future since the separate swfs are coming from a cms (especially now since we're still developing, but also in the future when other developers might create an incompatible tool). I'm trying hard to prevent them as much as possible but I'd really like to be able to display a message to the user of the system when an incompatible swf is loaded. This would mean that we need to catch that VerifyError or at least determine the loading failed for some

Best Practices for Internationalizing a Flex Application?

∥☆過路亽.° 提交于 2019-12-03 10:07:45
问题 I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so. Googling for such information results in a handful of small articles and blog posts, each about doing it differently, and the advantages and disadvantages are not exactly clear. Edited to narrow scope: Need to support only two languages (en_CA and fr_CA) Need to be able to switch at runtime 回答1: Of course, after googling a bit more I come

Recommendations for an HTML-Friendly RichTextEditor for Flex & AIR? [closed]

﹥>﹥吖頭↗ 提交于 2019-12-03 08:56:30
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. As a side project, for "fun," I'm rewriting my blog and CMS in Flex and AIR respectively, and while I'm pretty well satisfied with the design thus far, the one major pain point remains working with (which is to say performing CRUD operations on) legacy HTML

ActionScript event handler execution order

天涯浪子 提交于 2019-12-03 08:44:44
I have been trying to understand the way ActionScript's events are implemented, but I'm stuck. I know that AS is single threaded, which means that only one event handler will be executing at a time, and also means that handlers will be executed in a deterministic order*. For example, consider the following code: 1: var x = {executed: false}; 2: foo.addEventListener("execute", function(){ x.executed = true; }); 3: foo.dispatchEvent(new Event("execute")); 4: assert(x.executed); If ActionScript was multi-threaded, it would be possible that the assertion on line 4 could fail sometimes and succeed

existing swf mp4 player? [closed]

南楼画角 提交于 2019-12-03 08:02:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a mp4 file put in my website, say http://example.com/a.mp4, I want a swf player that can be embedded into my html, and play the mp4 file. I don't know how to write actionscript so I just want to have an existing swf file. Requirement: small, fancy, full function, ad free. Thanks. 回答1: There are plenty of

AS3 - How can I get an array of constants of a class?

纵然是瞬间 提交于 2019-12-03 07:48:00
static public const CONST_1 :String = "CONST_1"; static public const CONST_A :String = "CONST_A"; public var constantsArr :Array; Is it possible to get an array of the class constant values without adding them manually like this: constantsArr = [ CONST_1, CONST_A ]; Using describeType it should be possible : public class Constants { static public const CONST_1 :String = "CONST_1"; static public const CONST_A :String = "CONST_A"; } var xmlList:XMLList = describeType(Constants).child("constant"); var constantsArray:Array = []; for each(var key:XML in xmlList) { constantsArray.push(key.attribute(

Flash designer/coder collaboration best practices

爱⌒轻易说出口 提交于 2019-12-03 06:57:38
I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript coding and flash design. Most of the information available seems to focus on one or the other. I didn't find any information about building flash projects in a way that lets the coder do their thing AND gives the designer freedom as well. Hopefully more experienced people can share, these are some of the things i discovered after a few projects Version control is a must (as always) but can be difficult

Can somebody explain in a few sentences how these technologies relate: Flex, Flash, Air, ActionScript, SWF, FLV

☆樱花仙子☆ 提交于 2019-12-03 06:56:12
I've read about each of these but I still don't understand how they all inter-operate, which are competing technologies, or even really what each of them is distinctly. Flash, Air, Flex... Are these all "containers"/JVM-like runtime environments, in which ActionScript code runs? SWF,FLV,AIR... Are these competing file formats which a Flash, Air or Flex runtime environment executes? ActionScript is a C-like language which compiles to SWF, FLV or AIR files? Sorry, with all the marketing around these terms, some of which are used interchangeably, I am quite lost. Suppose I wanted to write an AIR