module startup failure
  • HughCHughC March 2012

    Hi,

    I spent the day yesterday getting set up, reading docs, and following examples. Love the selectors, iterators. Can see a pile of great functionality for assisting a mate who's an animator but not a coder.

    I've got an idea for a module to help him and I duplicated the 'Sample' module as a start. But neither the Sample, nor my module, work correctly. On opening the window for each, I get an anonymous JS error

    > Sample: Initializing
    > xjsfl: copying classes to [Sample]
    > xjsfl: loading "{Sample}jsfl/bootstrap.jsfl"
    The following JavaScript error(s) occurred:
    
    

    It works to some extent, in that the [get config] and [get assets] buttons both function correctly. But the [call test()] function results in the following error:

    	ReferenceError: Sample is not defined
    	----------------------------------------------------------------------------------------------------
    
    		0 > 
    		
    			path: 
    			file: 
    			line: 
    			
    

    In the module swf, it prints"This module was instantiated on: undefined" where , from my reading of the code, undefined is supposed to be the result of the getDate() function. Snippets, which is a considerably more complex module, functions correctly, so I'm a bit unsure why such a simple example doesn't work correctly.

    For my custom module, I'm writing my UI in Flex, and initially I just ported the Sample code over, subbing an applicationComplete event handler for the constructor, and it suffers the same issues on startup, and at runtime it can load the config, can't call the test() function (returning a similar ReferenceError). But before I wonder what's a potential Flex issue, I'd like to understand why the sample doesn't work for me either. 

    All up though, I've just got to say, having come across xJSFL for the first time yesterday, it is a world of potential - Dave I have no idea how you have managed to create such a comprehensive (and for the most part, well documented) framewortk singlehandedly. Hats off. Given how much googling I was doing to find answers to the (many) issues I was coming across in dipping my toe in the water of JSFL, I'm surprised it took me as long as it did to get here, and even then a link to xJSFL was about 10 down a list of results.  

     

  • DaveDave March 2012

    Hello Hugh,

    Well, thanks for the compliments! It's been a labour of love over the last year or so. There's nothing like building a framework to finesse your ninja skills in just about every area you could think of!

    Hmm... well, I would help you out here right now, but actually the modules have undergone a bit of a hack and slash tonight. There's been some subtle but significant changes which will be uploaded in the next few days. I'll need to update the docs as well, as in the last month there have been some MAJOR changes to the framework. Its heart and soul is still there, but there's been some significant restructuring and changes.

    If you can hang on till early next week I'll be making a Beta 2 announcement (I've been saying that for about 2 weeks, but it's literally nearly there now).

    Yup - xJSFL solves just about every horrid thing there is in JSFL. I love it :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

Tagged