December 17th, 2007
Author: Michael Krotscheck
Category: News
Tags: blog, introduction, News, welcome
Yes yes, another tech blog. Thousands are out there, some copies, some linkers, some parrots and some few are source of original content. The purpose and vision for this particular one is the latter, and while we are moving from “Content is Key” to “Community is Key”, I feel there remains a niche for the individual. Which begs the question: What is my purpose for this blog?
No Comments | Read More »
December 12th, 2007
Author: Michael Krotscheck
Category: Tutorials
Tags: actionscript, javascript
Every Actionscript Developer will sooner or later have to interface with the webpage in which his .swf is presented, and Adobe has provided the ExternalInterface Class to simplify this process. Even so, communicating with an external javascript API almost inevitably requires some number of bridging functions to properly couple the two runtime environments. In cases where the developer has control over both environments this poses no further problems, as for example in an application where the .swf takes animation and event cue’s from an interface written largely in HTML. Some instances nevertheless remain where we don’t have that luxury, and are writing to an external API that we can neither guarantee nor contribute to; In short, we cannot add a javascript file to the HTML wrapper that will act as our translation bridge.
No Comments | Read More »
December 12th, 2007
Author: Michael Krotscheck
Category: Libraries
Tags: actionscript, flash, flex, javascript, Libraries
The JavascriptController class simplifies many operations that a developer would use to access and interface with the javascript environment. Setting variables on an instance of this class automatically passes through to the javascript environment and back. Similarly, calling methods on an instance of this class calls a method of the same name in the encapsulating HTML. Additionally, you can use this class to write methods into the javascript environment by using the registerMethod() method. Please be aware of the security restrictions imposed by the method in which the flash file is embedded in the HTML page.
No Comments | Read More »