General http://xjsfl.com/forum/categories/general/feed.rss Thu, 14 Dec 17 20:31:42 +0000 General en-CA Latest version of xJSFL not works after install on Mac http://xjsfl.com/forum/discussion/55/latest-version-of-xjsfl-not-works-after-install-on-mac Wed, 08 May 2013 01:52:54 +0100 andy_one 55@/forum/discussions Hi Dave,

I'm try use xJSFL on my Mac, but after install when I'm restart Flash xJSFL doesn't start initialization. Maybe problem with Creative Cloud version of Flash?

This is screenshot what I captured after install. And this is install log.

Very strange what installed commands is doesn't appears in command menu after restart.

 

]]>
Flash CC working (fl.outputPanel.save() ... not) http://xjsfl.com/forum/discussion/58/flash-cc-working-fl.outputpanel.save-...-not Wed, 19 Jun 2013 04:35:25 +0100 madmatt 58@/forum/discussions Hi, just wanted to confirm (not that Dave would need it since he partecipated in the Flash CC beta) that xJSFL installs and works in Adobe Flash CC (OSX).

Unfortunately, I can't say the same is true for some of the standard jsfl functions I used to use (like, fl.outputPanel.save()) :( 

That is, they work, but they either execute before the output panel is filled with text, or they execute with an old instance of it ... the result is that if I have a jsfl file that does stuff (compile a fla, for example) and outputs stuff to the output panel, when the save method is called I get an empty file. If at that point I run a execute a separate jsfl file that saves the output panel I get the text in the file ... weird and really annoying

]]>
Passing a JSON or XML object from JSFL to an AS3 panel... http://xjsfl.com/forum/discussion/57/passing-a-json-or-xml-object-from-jsfl-to-an-as3-panel... Thu, 30 May 2013 18:53:26 +0100 Lucas_ludia 57@/forum/discussions Hi, 

i've build a custom panel using the xjSFL modules, everything work fine. I'm calling functions from my AS3 panel to the JSFL fine. Today i had to implement a method call from the JSFL to the AS3. After struggling a bit, i made it work with a simple callback, just passing a String to my as3 function. But now i need to pass a real object, and after trying to encode my object as both a JSON string or an XML, it always crash when the object is received by the AS3, and i got a very "explicit" ;) error popup saying that there's been an error somewhere...

After doing many tests, i can tell that the problem is coming from the nested quotes in the JSON (or XML) object, here is the JSON string i'm trying to pass to the AS code:

'{"nbBalls":10,"nbGems":2}'

If i pass '{this_is_some_random_text}' , no problem...

I've seen a lot of post where people are saying that you just need to use JSON or XML to pass object from JSFL to AS3, so i must be missing something quite obvious here...

 

Thanks!

]]>
xJSFL is free software or not? http://xjsfl.com/forum/discussion/56/xjsfl-is-free-software-or-nots Mon, 13 May 2013 09:56:19 +0100 andy_one 56@/forum/discussions Hi Dave,

I'm can't found any information about license. What license used for xJSFL? It's proprietary or free software?

]]>
Mouse Click http://xjsfl.com/forum/discussion/16/mouse-click Mon, 31 Oct 2011 10:31:55 +0000 JeromeErasmus 16@/forum/discussions Hi, excellent work on the xJSFL code guys!. loving it...

Just a thought.  I have noticed that a mouse down and mouse up event would be the best tool you could have for WindowSWF's many JSFL programmers have to use nasty enterframe loops and other things to get feedback into the WindowSWF.

This does not have to include the elment that was clicked etc... Just an Event dispached so that the WindowSWF can call JSFL to get what element is selected.

When do you think you would add this feature to the event classes you already have.

 

keep it up. well done

]]>
Can't really install on CS6 http://xjsfl.com/forum/discussion/54/cant-really-install-on-cs6 Mon, 25 Feb 2013 08:54:29 +0000 jaimedominguez 54@/forum/discussions I place my xJSFL folder in the harddrive, execute the install.jsfl file and i get this output:

=================================================================

           ██  █████ ██████ ██
           ██ ██     ██     ██
  ██ ██    ██  ████  █████  ██
   ███     ██     ██ ██     ██
  ██ ██ ████  █████  ██     █████

=================================================================

  The Rapid-Development Framework for Extending Adobe Flash

> xjsfl: INSTALLING xJSFL... > xjsfl: loading proxy classes... > xjsfl: loading xjsfl... The following JavaScript error(s) occurred: > xjsfl: LOADING CORE CLASSES... The following JavaScript error(s) occurred:

Thats it, nothing else. I look for the panel in CS6 after restarting, but. as expected, is not working...

Can you help?

I have version CS6 (12.0.2)

Many thanks!

 

 

]]>
Install error http://xjsfl.com/forum/discussion/34/install-error Fri, 20 Apr 2012 03:52:22 +0100 Rytis 34@/forum/discussions Hi Dave,

I was trying to install xJSFL framework from commit (872de94c70) on Flash CS5.5 on Windows 7 x64 but it failed with empty error in output panel.

I have tried running Flash as Administrator but it gave no results either. 

Is there anything I can do with that (taking earlear version or something)?

]]>
Feature is not available at this time http://xjsfl.com/forum/discussion/53/feature-is-not-available-at-this-time Sun, 13 Jan 2013 23:15:05 +0000 rahulkamra 53@/forum/discussions When i try to execute MMExecute("fl;"); from action script ,  then the above mentioned error occurs. Any idea why it happens ?Its a blank project with one line on creation complete of Flex. I am using CS6 Trail.

 

]]>
User libraries initialization bug http://xjsfl.com/forum/discussion/52/user-libraries-initialization-bug Tue, 08 Jan 2013 16:34:58 +0000 andy_one 52@/forum/discussions Hi Dave!

I found bug with user libraries initialization. After Flash IDE start in output panel shows what all my libraries is loaded. But is not true. For solving this problem I must manualy execute reloading in commands panel.

I check on Win7 and Win8 with Flash CS6, in both cases this bug apears.

Video with bug reproduction. Test snippet code:

(function() {
function testIt() {
trace(xjsfl);
trace(XULER);
}

xjsfl.init(this);

testIt();
})(); 
]]>
Is there a reason to use CONST? http://xjsfl.com/forum/discussion/51/is-there-a-reason-to-use-consts Wed, 02 Jan 2013 15:52:43 +0000 Saveremreve 51@/forum/discussions I'm working alongside a gameplay programmer that did some moonlighting on export scripts.  Their code makes extensive use of CONST for various URI and filename elements.  The problem I'm encountering is that every 4 - 5 save/load loops to test Flash will throw an error about redeclaring a CONST and I have to restart flash to get the script to run again.  Error Text:

TypeError: redeclaration of const IFL_FILE_EXT 

This same script also will throw errors running through the snippets panel (with flash gobbling the error message) but when I run it through commands>run it usually will run without errors.  Right now it's just a hunch that CONST is causing trouble - since I don't use it and it runs fine.  Searches elsewhere on the web say that CONST implementation in Javascript is spotty so if there's reasons not to do it I'd just as well pull it out.

edit: added error text

]]>
XUL custom layout http://xjsfl.com/forum/discussion/50/xul-custom-layout Fri, 21 Dec 2012 16:19:51 +0000 andy_one 50@/forum/discussions Hi Dave! Many many thanks for this awesome project. 

I have question about XUL interface layouts. At this moment default layout have 2 columns. One for labels and second for elements like textarea and dropdown. How I can customize layout using basic API methods (addButton, addDropdown and etc).

And small second question. How I can select some element in Listbox?

]]>
expandFolder not working http://xjsfl.com/forum/discussion/39/expandfolder-not-working Wed, 20 Jun 2012 08:57:41 +0100 Rytis 39@/forum/discussions Hi,

I tried to use #reveal() method in ItemsCollection but it didn't work (function #exapandFolder() executes and returns "true" but folder is still collapsed). I have found in forums that library.expandFolder doesn't work at all on CS versions >3. Does it work for you?

Thanks!
Rytis 

]]>
New Module http://xjsfl.com/forum/discussion/45/new-module Wed, 22 Aug 2012 16:30:16 +0100 heyben 45@/forum/discussions What's the minimum I need to do to get a module showing in Window->Other Panels? I copied Modules/Sample Module and changed the name and the panel values in manifest.xml. The log showed it initialising but nothing appeared in the menu to enable to panel.

Thanks!

]]>
library fonts selector http://xjsfl.com/forum/discussion/46/library-fonts-selector Mon, 24 Sep 2012 13:40:27 +0100 sstark 46@/forum/discussions Hello,

I couldn't get the selector $$ to work with library fonts, I had to instead iterate through the entire library and look for all instances that are fonts.

I feel like I am doing this the hard way, or I am missing something?

Tries:

$$("fonts");

but instead, need to use:

var libraryItems = dom.library.items;
var i = libraryItems.length;
while (i--) {
var item = libraryItems[i];
if (item.itemType == "font") {
processFont(item);
}
}

 

]]>
appending as3 http://xjsfl.com/forum/discussion/47/appending-as3 Mon, 24 Sep 2012 18:25:17 +0100 sstark 47@/forum/discussions Hello,

I am looking for a user-friendly way to append as3 code into a timeline. I have it working ( see below ), but it's not elegant.

In english:

  • select first layer on stage root timeline.
  • test if the name is "ACTIONS", if not make it.
  • clear all as code in the clip
  • write new code into the clip
timeline.setSelectedLayers(0);
if( timeline.getLayerProperty("name") != "ACTIONS" ){
timeline.addNewLayer('ACTIONS');
timeline.setSelectedLayers(0);
}
var trgt = timeline.layers[0].frames[0];
trgt.actionScript = "";
trgt.actionScript +='\n // ADD as3 Code line by line';

 

 

]]>
how to set the language in the String Panel http://xjsfl.com/forum/discussion/48/how-to-set-the-language-in-the-string-panel- Tue, 25 Sep 2012 13:55:53 +0100 sstark 48@/forum/discussions Does anyone know how to use JSFL to set the language in the Strings Panel? I have it working with ActionScript, but it would be nice to set this property for the artists so that the design is reflected also.

]]>
Module paths http://xjsfl.com/forum/discussion/44/module-paths Tue, 31 Jul 2012 12:25:37 +0100 Aranda 44@/forum/discussions Hi Dave,

I'm just starting out converting our exporter to a xJSFL module and I'm not sure whether the custom module needs to be in the xJSFL/modules folder? If they do, it seems a little messy, although I suppose I could make it a git submodule (even though they suck :)).

Also, assuming it's OK to do so, you should update your docs to remove the absolute paths from your Sample Module code here: http://www.xjsfl.com/support/guides/extensibility/modules#swf-panel.

-Aranda

 

 

]]>
No file loaded after installation http://xjsfl.com/forum/discussion/23/no-file-loaded-after-installation Tue, 21 Feb 2012 04:35:49 +0000 jayatubi 23@/forum/discussions
=================================================================

           ██  █████ ██████ ██
           ██ ██     ██     ██
  ██ ██    ██  ████  █████  ██
   ███     ██     ██ ██     ██
  ██ ██ ████  █████  ██     █████

=================================================================

  The Rapid-Development Framework for Extending Adobe Flash

  @see licence at http://www.xjsfl.com/license

> xjsfl: install path: "C:/xJSFL/"
> xjsfl: ready!

=================================================================


I got this output just after I run the "install.jsfl". It seems no xjsfl script has been loaded and when I try to execute code such as "xjsfl.init()" I got an error: xjsfl.init is not a function.

I'm using Flash CS5 with Simplified Chinese environment. How can I fix this?

]]>
AS3 JSFL Serialization http://xjsfl.com/forum/discussion/43/as3-jsfl-serialization Mon, 09 Jul 2012 09:49:05 +0100 ThaNarie 43@/forum/discussions Hi,

At the moment, you can't pass native DataTypes from AS3 to JSFL:

throw new Error('Objects of type ' + type + ' cannot be passed to JSFL');

Is there a reason for not using the JSON encoder/decoder to pass values around, so you could encode any object (to native object).
And you could also pass the type as an extra field (like amfphp does) so you can reconstruct the same object on the other side.

]]>
Reloading Flash while developing a panel http://xjsfl.com/forum/discussion/42/reloading-flash-while-developing-a-panel Mon, 09 Jul 2012 07:43:17 +0100 ThaNarie 42@/forum/discussions Hi,

I'm developing a panel, and while there is a nice snippet for uploading the swf to the WindowSWF folder, it seems I have to restart Flash every time I have changed my JSFL module code. The 'Reload xJSFL' doesn't work either.

I've tested it with altering traces, and the changes only show up after I've restarted Flash.

Is this normal behavior? Can there be done anything to make this process easier?

]]>
Install/Uninstall problem with version 1.0 http://xjsfl.com/forum/discussion/40/installuninstall-problem-with-version-1.0 Sun, 24 Jun 2012 10:09:41 +0100 Max 40@/forum/discussions

I ran into a specific problem while trying to update xJSFL to version 1.0, I thought you might want to know about it. Context: Flash CS5.5 *and* CS6, OSX 10.7.4 - with existing installation of the previous xJSFL release in /Developer/xJSFL

First thing that happened is the installer complained about needing a document open before proceeding - not sure where that call was from exactly (see log at the bottom). My (frustrating) experience with jsfl would point to something along the lines of a document check (dom != null) in a context where it's not necessary. Searching for "REMOVING OLD COMMANDS..." brought me to install.jsfl, which I modified to trace values. I found it seems to go belly-up here (line 148)

var uris = Utils.getURIs(fl.configURI + 'Commands/xJSFL/');

What I think happened is the "xJSFL" folder was successfully deleted the first time around, before I was asked to open a document. Then when trying to find the same folder to clean up an existing installation which was already cleaned up (at least in part), an error is returned. I added an empty xJSFL folder in Configuration/Commands, and the next time I ran the installer, it successfully completed (without having a document open -- although the installer creates an empty one and leaves it there)

A note: my first update on a separate computer (same OS and Flash version) was successful on the first try. I can't remember if I had a document open or not, but I'm assuming I did. 

Here's how I was able to reproduce the bug at least three times:

- run /Developer/xJSFL/core/jsfl/install/uninstall.jsfl

- restart Flash CS5.5/CS6

- run /Developer/xJSFL/install.jsfl (without a FLA open)

Additional info: I noticed that uninstall.jsfl sometimes leaves the Commands/xJSFL folder and its contents in the file system.

 Congrats on the tremendous amount of work you put into this project. I'm very impressed, especially by the efforts that went into the Komodo integration/plugins.

Max

 

CS5.5:

> xjsfl: INSTALLING xJSFL...

> xjsfl: loading proxy classes...

> xjsfl: loading xjsfl...

 

> xjsfl: LOADING CORE CLASSES...

> xjsfl: loading library: Globals

> xjsfl: loading library: Utils

> xjsfl: loading library: URI

> xjsfl: loading library: URIList

 

> xjsfl: LOADING SUPPORTING CLASSES...

> xjsfl: added 25 search paths for "{core}jsfl/libraries/Macintosh HD/Developer/xJSFL/core/"

> xjsfl: loading library: JSFLInterface

> xjsfl: loading library: XUL

> xjsfl: loading library: File

> xjsfl: loading library: Class

> xjsfl: loading library: FileSystemObject

> xjsfl: loading library: Folder

> xjsfl: loading library: XML

> xjsfl: loading library: String

> xjsfl: loading library: SimpleTemplate

> xjsfl: loading library: XULControl

> xjsfl: loading library: XULEvent

> xjsfl: loading library: Output

> xjsfl: loading library: Table

> xjsfl: loading library: PropertyResolver

 

> xjsfl: REMOVING OLD COMMANDS...

The following JavaScript error(s) occurred:

 

Open a Flash document (FLA) before running this script.

 

CS6:

> xjsfl: INSTALLING xJSFL...

> xjsfl: loading proxy classes...

> xjsfl: loading xjsfl...

The following JavaScript error(s) occurred:

 

> xjsfl: LOADING CORE CLASSES...

The following JavaScript error(s) occurred:

 

]]>
How do I uninstall? http://xjsfl.com/forum/discussion/35/how-do-i-uninstalls Fri, 20 Apr 2012 15:47:28 +0100 alexanvl 35@/forum/discussions I have installed the JSON library and my for .. in loops are broken!  How do I uninstall or revert these changes?

]]>
Installation problems with Flash CS5 http://xjsfl.com/forum/discussion/37/installation-problems-with-flash-cs5 Tue, 08 May 2012 21:19:48 +0100 jokigenki 37@/forum/discussions Hi,

I've been trying to install with CS5 and I get an error (helpfully no output). I did some tracing and tracked the error down to for each loops, which don't seem to work. The first error I get is in xsfl.load around line 679 (I can't be sure because I've been adding traces everywhere) which is "for each(var uri in uris)". If I replace this with a normal for loop, it works.

I wrote a simple test case:

var arr = [1,2,3,4];

for each (var n in arr)

{

fl.trace(n);

}

which outputs:

1

2

3

4

function (keya, keyb) {

 var comparisonFunction = (function (a, b) {var ta = a[keya];var tb = b[keya];if (ta < tb) {return -1;}if (ta > tb) {return 1;}var tc = a[keyb];var td = b[keyb];if (tc < td) {return -1;}if (tc > td) {return 1;}return 0;});

 this.sort(comparisonFunction);

}

 

pretty sure this last entry is not right! Not sure what can be done about this other than to replace all the for eachs, will try a test on CS5.5 and see if it's any different.

 

 

]]>
xJSFL (or jsfl) write to the errors panel http://xjsfl.com/forum/discussion/33/xjsfl-or-jsfl-write-to-the-errors-panel Thu, 05 Apr 2012 04:44:39 +0100 madmatt 33@/forum/discussions Hi, I guess this is more a jsfl question than xJSFL but ... is there any way of outputting text to the errors panel instead of the Output panel ?

Looking at the docs it doesn't look like it, but for build automation purposes it would be really great ;)

 

]]>
reinstalling http://xjsfl.com/forum/discussion/32/reinstalling Tue, 03 Apr 2012 04:23:42 +0100 melslenoble 32@/forum/discussions hi

I installed xJSFL. All worked fine (in Flash),  but i want to remove it and reinstall it in from a different location (folder). Removing it with the xJSFL command gave me an error (without any text). So i removed it manualy and tried to reinstall it. Somehow the snippets window has the wrong (old) links in it. So i removed and reinstalled it again. Didn't work. 

 

How do i remove all ? Or how do i reinstall ? I use windows 7 & Flash CS4.  

 

Thanks for any tips

]]>
xjsfl Utils class http://xjsfl.com/forum/discussion/31/xjsfl-utils-class Sun, 01 Apr 2012 22:12:14 +0100 HughC 31@/forum/discussions

xjsfl.utils appears to have been refactored at some point, and not all functions moved over?

The core/utils.jsfl implementation has some string functions that the one in libraries/utils.Utils.jsfl does not.

This breaks snippets like 'Propogate element names across frames" as they are looking for these functions in the latter implementation of the class. ( toCamelCase() and toUndederscore() ). Copy / pasting the relevant functions over  gets the snippet working again, but you'd be a better judge of what exactly is going on here (and what else might need to be refactored?).

cheers,

Hugh

]]>
project paths? http://xjsfl.com/forum/discussion/30/project-pathss Sat, 31 Mar 2012 09:15:02 +0100 HughC 30@/forum/discussions This is not so much a xJSFL thing as a JSFL one. I've written a snippet, and I want to hand it over to an animator friend, so that he can run it. The script uses the Template class and generates XML and class files from templates, which are tucked away in a /src/templates/ dir within our project. They in turn write out files to /src/classes and /bin/xml directories.

The Template docs ( http://www.xjsfl.com/support/api/text/template ) cite this example for saving a template:

template.save(projectURI + 'src/' + package + '.as', true);

There's a ref above to 'projectURI ' but I can't find any reference to it (or indeed projects, as objects at all) in the Extending CS5 docs. Then I turned up an Adobe note, that says they were dumped under CS4. Handy.

Currently I'm using a path relative to the current open file, but I want the snippet to work regardless of which fla within our project he and I are in. Can anyone suggest a simple way to set / get a path to a 'project folder' under which all paths are then relative? 

]]>
dll? http://xjsfl.com/forum/discussion/29/dlls Thu, 29 Mar 2012 22:31:18 +0100 HughC 29@/forum/discussions Hi,

just wondering what the dll file in  the core install is used for? Couldn't see it documented, but note that it's copied to:

\AppData\Local\Adobe\Flash CS5\en_US\Configuration\External Libraries

on install.

Seems like  my flex panel <> jsfl comms are working correctly now in Beta 2 - nice one!

cheers,

Hugh

]]>
HEAD revision is not installing http://xjsfl.com/forum/discussion/25/head-revision-is-not-installing Thu, 22 Mar 2012 14:07:02 +0000 sstark 25@/forum/discussions Hello,

 

I know the current beta is nearing completion, and everything's being moved around on a daily basis.

 

I'm wanting to start this thread so that when xJSFL is cleanly installing again, we can all know about it.

 

Today, I tried the newest head revision ( ff1fda3 ), and it does install... however the snippets panel is completely blank, does not even have the 'refresh' buttons at the bottom.

 

To get my code working with snippets, I have to do the following:

 

Checkout revision 1085786, install from this point, restart flash, see a working snippets panel, then checkout master, reload xJSFL in the snipets and it works.... up until I need to restart flash, then it all breaks again. Rinse and repeat.

 

Just thought I'd end this post by saying how much I appreciate this framework, it is a real time saver.

]]>