Hi,

Notice that you're using dynapi.library.path before
you call the dynapi.library.setPath() function.

This should be the correct way:

dynapi.library.setPath('../src/');

// add your packages after 
// you've set the library path
dynapi.library.addPackage('bystrom',dynapi.library,path);
dynapi.library.add('bystrom.Button','bystrom/gui/button.js');

The above should now work but personally I would write
it like this:

dynapi.library.addPackage('bystrom',dynapi.library,path+'bystrom/');
dynapi.library.add('bystrom.Button','gui/button.js','DynLayer');
// where the Button is Dependent on the DynLayer
object


--
Raymond Irving


--- Michael Bystrom <[EMAIL PROTECTED]>
wrote:
> 
> 
> Ok it's sorta working then hehe :) I started to look
> into this but there are
> soooo much new code, need to get that feeling you
> know...
> 
> 
> 
> Problem 2)
> 
> There would be to much typing for this so I took 2
> screen shoots to show
> In sort; the packages are not loaded if added inside
> main html document.
> I'm under the impression that this should work?
> 
> Here is a working test
>
http://www.michaelbystrom.com/download/dev/ok-lib.gif
> 
> Not working
>
http://www.michaelbystrom.com/download/dev/no-lib.gif
> 
> am I doing something wrong?
> 
> For developers that only what to add their own litte
> widget this should be
> the way don't you think
> 
> Michael
> 
> 
> > I see the problem. The library system is not
> > respecting the object's namespace.
> > 
> > The attached file is a quick fix. But library.js
> will
> > still register dynapi.gui.Button as being loaded
> even
> > though it's not loaded.
> > Remember that if you use
> > dynapi.library.include('Button') it will load the
> last
> > Button object that was added to the library. If
> you
> > need to load specific libraries then you will have
> to
> > use their full names:
> > dynapi.library.include('bystrom.Button')
> > or
> > dynapi.library.include(dynapi.gui.Button')
> > 
> > PS. This temp fix has not been tested with
> > dependencies. Dan will have to look more into this
> > problem.
> > --
> > Raymond Irving
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to