This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Set the Frame of the Context object | |
* @param value {Context} A Context object with a valid frame property | |
* @param value {Boolean} Pass true to grab the current frame | |
* @param value {String} The name of the frame | |
* @param value {Number} The 0-based index of the frame | |
* @param value {Frame} A Frame | |
* @param [allLayers] {Boolean} Optionally search all layers, when specifying a named frame | |
* @returns | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------------------------------- | |
// core | |
/core | |
/assets | |
/swf | |
/config | |
/templates | |
/errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// initialize framework | |
xjsfl.init(this); | |
// file / folder callback | |
function callback(element, index, level, indent) | |
{ | |
var str = ' ' + indent + '/' + element.name; | |
if(element instanceof File) | |
{ | |
if(/^jsfl|xml|as$/.test(element.extension)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dependancy loader test | |
*/ | |
// -------------------------------------------------------------------------------- | |
// functions | |
trace = fl.trace; | |
clear = fl.outputPanel.clear; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> LOADING "A" (requires "B", "E") | |
=> LOADING "B" (requires "A") | |
"A" is already loaded! | |
:) "B" COMPLETE! | |
=> LOADING "E" (requires "F") | |
=> LOADING "F" (requires "B", "E") | |
"B" is already loaded! | |
"E" is already loaded! | |
:) "F" COMPLETE! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modify Object.prototype | |
Object.prototype.property = 'NEW PROPERTY'; | |
// decalre datatypes | |
var datatypes = | |
[ | |
'hello', | |
1, | |
new Date(), | |
{a:1, b:2, c:3}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Make Animation | |
* Imports a sequence of png files and exports an SWF | |
* @author Dave Stewart | |
* @see www.xjsfl.com | |
*/ | |
function makeAnimation() | |
{ | |
var folder = fl.browseForFolderURL(); | |
if(folder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From line 829... | |
// -------------------------------------------------------------------------------- | |
// add a root node to the xml so we can add two nodes | |
oXml = "<export>\n" + oXml; | |
if ( oButtonGroupId != null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
{ | |
import flash.display.Bitmap; | |
import flash.display.DisplayObject; | |
import flash.display.Loader; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.geom.Rectangle; | |
import flash.net.URLRequest; | |
import flash.printing.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Enter trigger for PHPdoc (code based on TAB trigger for Abbreviations by Stan Angeloff) | |
* @author Nathan Rijksen (http://naatan.com/) | |
* @contributor Todd Whiteman | |
* @contributor Michal Kocarek (http://brainbox.cz/) | |
* @contributor Alexander Kavoun (http://takkmoil.com/) | |
* @contributor Dave Stewart (http://davestewart.co.uk/) | |
* @version 0.3 | |
*/ | |
xjsfl.autocomment = |
OlderNewer