To include assets when compiling a component to swc, you have to make sure the assets are on the stage (inside the movieclip that is linked to the class).

I'm sure this is in the docs somewhere..

Here it is.. read the "Editing the movie clip" part:
http://livedocs.adobe.com/flash/9.0/main/00002489.html

regards,
Muzak

----- Original Message ----- From: "Alexander Farber" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Monday, January 07, 2008 9:43 AM
Subject: [Flashcoders] Graphical resources in a v2 component - not visible


Hello,

I'm programming a small card game, where most of
the objects are packed as custom v2 components:
playing cards, playing table, user avatars.

And I have a very frustrating issue with the graphical
resources. For example the Card component has a
folder in its library, holding the card images (J,Q,K,A).

When I generate the Card.swc and then create a
new AS2 flash document and drag the "Card" from
Components -> Standard Components on to the
stage, then while the live preview is working ok,
the published movie will lack the J, Q, K, A images.

Only after I copy the folder from the library to the
new movie, the images will (sometimes!) appear :-(

Aren't .swc files meant to be self-contained files,
containing the graphical, sound, etc. resources?

Or am I missing something in my component
developing process?

Thank you
Alex

--

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to