PDA

View Full Version : Dynamically loading libraries using 'import'


ranzhang
04-27-2006, 09:26 AM
I read the Developer's Documentation, i know this can be done, but just dont have a clue where to start, can anyone give my a few lines of code to demostrate how to use 'import' to dynamically load a library ?

What I want to do is, reduce the application initial loading time. When a user clicks on a tab for instance, to initiate loading of that component, and hopefully I can easily show a status bar of the loading progress.

Thanks,
Ran

geoffs
05-01-2006, 02:14 AM
I haven't tried import. i use initstage="defer" and then use completeInstantiation when the object is required.

pixel
08-23-2006, 08:34 PM
where do u put initstage="defer" ?
at the <class name="xxx" ../>
or at the include statement?

ranzhang
08-24-2006, 04:53 PM
can you even put it in include ?

I think initstage is an attribute of Node if you look into lps reference.

correct me if i m wrong.
ran