Have a look at the fl.livepreview package:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/livepreview/package-detail.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/livepreview/LivePreviewParent.html


----- Original Message ----- From: "Samuel Adu" <[email protected]>
To: <[email protected]>
Sent: Friday, January 02, 2009 1:01 PM
Subject: [Flashcoders] Making a CS3 SWC code library look "pretty"


Hey guys - Quick one here.
So I've created a swc code library which I will distribute in an MXP
(targeted for CS3/CS4 users only for now). With all other "normal" SWC
components, you can add a custom Icon easily + a live preview. It seems that
you cannot do these things easily when it comes to creating a code library.

The icon issue is not so difficult to get around - You simply un-archive the
SWC, add the icon png and edit catalog.xml then re-zip it all up. My problem
is that when a user drags the library from the components panel onto the
stage they see just a bounding box. Once that loses focus, they see nothing.
I've added graphical elements to the FLA which I created that code lib SWC
from and it ends up a fraction of the size that it should be, so you can
hardly see it. I've even tried modifying catalog.xml to add a live preview
swf, and it's the same thing.

Has anybody managed to do this successfully?

Thanks in advance

Sam

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to