"In Component Definition>Live Preview there's "No live preview", "Live 
Preview in external .swf file", and "Live Preview with .swf file embedded 
in .fla file".  There's nothing for "use this symbol for Live Preview as 
well"."

You don't set that. When you add the AS2 class in the Component Definition 
dialog that's all you need to do. That and make sure your Library clip has 
"something" inside it so it has dimensions when placed on the stage. A 
simple box movieclip will do. Just make sure to hide it in your init code 
so that it's not visible at authortime/runtime.

"Is there an example of this somewhere?"

Check out this tutorial by Joey Lott:
http://www.person13.com/articles/components/creatingcomponents.html

Except for a small section that talks about dispatchEvents, there's 
nothing that requires you to include anything from the V2 framework.

He's even got a sample ZIP file.


Derek Vadneau

----- Original Message ----- 
From: "Mike Lyda" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, December 13, 2006 3:57 PM
Subject: Re: [Flashcoders] flash 8 components from scratch?



k.. what you said jives with other things that I've been reading, but I 
can't
get it to work and it doesn't match up to what I'm finding in the docs or 
the
IDE settings.

In Component Definition>Live Preview there's "No live preview", "Live 
Preview
in external .swf file", and "Live Preview with .swf file embedded in .fla
file".  There's nothing for "use this symbol for Live Preview as well".

I have my FLA with symbol in it (the symbol I want to be my component), I 
point
it to my class that contains my [Inspectable] code and I set the symbol to 
"No
live preview" then convert it to a compiled clip (or a SWC) -- I don't get 
a
live preview when it's dropped on the stage.

If I use an external SWF for live preview and use xch then it all works.. 
I get
live preview and parameters entered into the component inspector are 
updated on
the live preview.  But it's extra code to maintain, etc.

Is there an example of this somewhere?  All I can find are old tutorials
showing how to build components for MX and MX04.. which use separate live
preview SWFs and xch to exchange data with the component inspector.


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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