Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitya777/FWLog
Actionscript library for easier logging in your Custom Fireworks Panels
https://github.com/mitya777/FWLog
Last synced: about 2 months ago
JSON representation
Actionscript library for easier logging in your Custom Fireworks Panels
- Host: GitHub
- URL: https://github.com/mitya777/FWLog
- Owner: mitya777
- Created: 2012-03-11T19:38:58.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-11T23:59:48.000Z (almost 13 years ago)
- Last Synced: 2024-08-04T05:03:01.734Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
- awesome-actionscript-sorted - FWLog - Actionscript library for easier logging in your Custom Fireworks Panels (Frameworks / Logger Framework)
README
FWLog - Fireworks Logging
This library is intended to make developing custom panels for Adobe Fireworks a little bit easier.
It provides a library of actionscript functions to do logging for the custom panels you develop while they execute inside the Fireworks javascript execution environment.
This is a library of actionscript loggin functions which wrap javascript logging functions.Get Started
Reference the FWLog.swc contained in the bin folder from your Flash Builder project.
Instantiate the FireworksFileIO project like so:var message = "hello Fireworks";
var fw:FireworksLog = new FireworksLog("console.log");
fw.log("message: ", message); //at the moment, the log function can take a maximum of two arguments
The API is below:public function log(message:String, value:String = ""):void
The ProblemFireworks has a 2-tiered development workflow.
Panels must be written in actionscript. At the same time the Fireworks API provided by Adobe to manipulate and extend Fireworks is javascript.
To execute that javascript, panels must pass it as a string argument to the MMExecute function, eg. MMExecute('alert("hi");');Besides the development workflow challenges this creates, there are also problems when passing strings as arguments to the javascript functions you will be executing.
This is because those javascript functions are also being passed as a string, so you get into a nested string situation and all the annoyances that this entails like having to escape characters, and writing things like this:actionscript...
var greeting = "hello";
MMExecute('alert("greeting: ' + greeting + '");');the string being passed to MMExecute is javascript.
This nested string situation is a little bit nightmarish, especially when you have to start dealing with multiple variables, and newlines, which have to be encoded and escaped on their journey through this string maze.
This library takes care of all that for you and lets you just call a log function with the variables and strings you want output.Released under the BSD License.