I have
found that occasionally the DLL swf will load in but the classes aren’t there.
The solution I am using is in the dll swf having a blank stub movieclip
exported for runtime sharing & importing it into the main swf. Once you
have preloaded the DLL in the main swf the stub movie clip will need to be
placed on the timeline somewhere (like on frame 2). This seems to force the
classes to load as expected. Its not the cleanest solution but I haven’t
been able to figure why they work sometimes & not others.
HTH
Jim
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo de Moraes Serpa
Sent: 08 May 2006 23:35
To: Open Source Flash Mailing List
Subject: Re: [osflash] DLL
Class-loading timing problem?
Hello Zárate, thanks a
lot for the reply,
Well, some classes also load without problem, so, it may be some dependency
problem, maybe a classe that I´m not including in the swf... I will also try to
use the onLoadInit method.
Thanks again,
- Marcelo.
On 5/8/06, Zárate
<[EMAIL PROTECTED]> wrote:
Hi,
I´ve been loading classes as dlls embeded in external loaded swfs without major
problems, always taking care of using the onLoadInit method rather than the
onLoadComplete. Any other variables that might affecting the proccess? Player?
OS? Any weird relation betweeen classes?
Cheers,
Zarate
Hello!
In my RIA, I have a Main.swf which acts a the main preloader. It first
downloads the needed classes through agglibtools librariespreloader and then
preloads the main arpx form. Until here ok, I´ve got a Main.swf with 7KB of
data. I tried to package the agglibtools classes into a swf "dll" so
the Main.swf would have only 3KB and the user would almost instantly load the
preloader graphic assets. So, the loader woul load the agglibtools.swf through
the help of MovieClipLoader, once the agglibtools classes were avaiable to the
flash player, it would then continue to load the other classes, this time using
the Librariesloader class. However, even though all the needed classes are
donwloaded (I double-checked it), the player just can´t run the code that
uses the agglibtools classes, specifically it stops and dies in the part where
a instance of Librariesloader is created, even though - I repeat, the classes
were loaded! It only works if the agglibtools classes are precompiled into the
Main.swf which grows its size to 7KB... maybe its a timing problem (Flash
Player needs some more time to load the classes?) that could be resolved with a
setinterval?
Thanks in advance!
--
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
|
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org