Hello,

In Flash 8 and earlier I found it easy to keep assets in a common swf and
use them as a shared library item.  Now in Flash CS3 I can use this
technique to share common fonts, but I am having trouble with movieclips.

Suppose I have a simple library symbol (a movieclip) that is imported for
runtime sharing.  I drag it to the stage in say frame 10 and run the file.
It works fine.  However if I name the instance then I get a compiler error
"1046: Type was not found or was not a compile-time constant:.".  This
occurs even without strict compiling, and regardless if stage instances are
declared automatically or not.  It means that I can't subsequently apply
actionscript to the item.

Likewise, if I try to instantiate this library symbol with ActionScript I
get a runtime error "#1065: Variable MyLibrarySymbol is not defined.". 

These are set up exactly as described in the Flash Help file (and I am well
familiar with getting them to work in AS2/Flash 8) so I am thinking that
this is a "feature" in Flash CS3.

I know I can use runtime assets by loading the library swf and declaring
it's classes (like the example "runtimeassets Explorer" in the Flash CS3
documentation.  However method means that I have to instantiate everything
in code.  I can't drag it directly from the library to the stage as I like. 

Any comments would be much appreciated.

Cheers,

Laurie Jensen

 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to