actionscript

C# and Flash communication

对着背影说爱祢 提交于 2019-12-04 13:32:47
Is there any way for C# to get a list of the methods the swf exposes through ExternaInterface? Steffen Opel Update: Just realized that I've misread your question as you are looking for methods defined via the Flex ExternalInterface class rather than those of the Shockwave ActiveX control itself; I'm gonna keep my original answer below as it might still be helpful regarding SWF usage via C# in general. Concerning ExternalInterface I don't have an answer right now, but you might look into Fun with C# and the Flash Player 8 External API to get an idea on how to use this API via C# in the first

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

萝らか妹 提交于 2019-12-04 13:04:04
问题 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. Closed 8 years ago . 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

Removing all event listeners in Flex

独自空忆成欢 提交于 2019-12-04 11:53:16
How can I remove all event listeners on all components at once, especially when it is not known what listeners are attached to each component? You can override mx.core.FlexSprite, which UIComponent inherets from, and generate an array of listeners created. Doug Mc Cune put up source code here . His blog says: removeAllEventListeners() – removes all event listeners of all types. This completely wipes out all event listeners for the component all at once. Let us know if this does the job! No! You might be able to mock something up with hasEventListener and willTrigger . But, there doesn't appear

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

不羁的心 提交于 2019-12-04 11:06:40
问题 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

Zipping and Unzipping tool for Flash ActionScript 2

a 夏天 提交于 2019-12-04 10:06:54
Are you aware of any zip/unzip component or script for flash / actionscript 2 ? I'm aware of this library for flex / AS3, but is there one for AS2 that will save me a long conversion attempt? Is there such a library that supports creating/parsing password protected zip files? back2dos basically it can be done ... but will be slow ... http://code.google.com/p/hxformat/ actually you would load the string and then it'll be decoded into an Array of bytes (using Bytes.ofString) ... this will take a lot of time ... and you will not be able to do a lot with the results, i guess, since AS2 api is very

What does [Bindable] mean in actionscript?

烈酒焚心 提交于 2019-12-04 09:59:01
问题 [Bindable] /** * Display output of video device. */ public var videoLocal : Video; Anyone knows? 回答1: [Bindable] is a one of several meta tags that you can use in flex ActionScript code. It can be applied to properties, or methods that are marked in any scope. It cannot be used with static class members. The key to using the [Bindable] meta tag is understanding what is going on under the hood when you use it. Essentially using data binding is a type of shorthand for adding event listeners and

How are methods found in AVM2 bytecode?

天涯浪子 提交于 2019-12-04 09:19:25
I've been playing around with ABC bytecode and was hoping someone could clear up a point of confusion for me. I have a simple flash file that places a clip on the stage and has a tiny script to update its position on each frame. The code looks something like: package { import flash.display.MovieClip; import flash.events.Event; public class RedCircle extends MovieClip { public function RedCircle() { this.addEventListener(Event.ENTER_FRAME, moveit); } function moveit(e:Event) { this.x -=1; } } } Which compiles to something like: protected package protected RedCircle { class RedCircle extends

Pass JSON to a Flash movie

匆匆过客 提交于 2019-12-04 08:26:24
What is the best way to pass JSON to and from a Flash movie? Currently to communicate between javascript and Flash : I'm using 'flashvars' to pass data to the flash movie when it initially loads I'm using 'ExternalInterface' at runtime to transfer single values, such as booleans at runtime I want to move to the next level and do this with JSON now. Initially I just want the ability to send JSON to the flash movie on instantiation, but later i will need to send data back and forth. I just want to do it right first time and avoid any compatibility or 'gotcha' issues if there are any. i dont even

Interview Questions for ActionScript 3 / Flex Programmer [closed]

跟風遠走 提交于 2019-12-04 08:10:34
问题 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. Closed 7 years ago . What could be good question to decide if candidate has strong or atleast fair knowledge working with Flex and ActionScript. 回答1: What

Best Practice for Transitioning From Nested State to Nested State (see diagram)

别等时光非礼了梦想. 提交于 2019-12-04 08:01:05
问题 I am trying to wrap my mind around the best way to implement nested state transitions in a single threaded programming language (Actionscript). Say I have a structure like this behavior tree: Now imagine that each leaf node is a destination point on a website, like an image in a gallery, or a comment nested in a post view nested in a page view... And the goal is to be able to run animated transitions from leaf node to leaf node, by animating out the previous tree (from bottom to top), and