You get live preview for free when you set your Library item as a 
component and point it to the AS2 class for that component.

However, you won't actually see the live preview in your FLA until you 
compile the SWF (right-click option in the Library panel), or you create 
the SWC and add it to an FLA.

You also get _global.isLivePreview, which is a variable you can use in 
your layout methods to determine if you're running in LivePreview mode or 
not.

The only problem I've had with this method is when I've used arrays or 
objects for parameters that should appear in the Properties panel. The 
value would not be set as an array or object.


Derek Vadneau

----- Original Message ----- 
From: "Mike Lyda" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 13, 2006 2:10 PM
Subject: [Flashcoders] flash 8 components from scratch?


I'm relearning components and came across a somewhat recent thread
http://www.mail-archive.com/[email protected]/msg21869.html
that lead me to this statement regarding xch from Eric D..
     "What do I need to put in my component class to allow updates on the 
Stage
of the component instance to update? I've tried a couple things,even using 
the
old xch. stuff"
see in context here:
http://www.mail-archive.com/[email protected]/msg21877.html

and I've seen a couple of places that Flash 8 was supposed to streamline 
the
live preview of components but I'm not finding much that shows how this 
takes
place.

I would rather not use all the pre-built "v2" component architecture and 
it
seems that all of the documentation assumes that you're going to extend
UIObject, extend Button, etc..    I used to make simple components with 
live
preview using xch and it looks like I still can, but if there's a newer 
and
better alternative out there then I'd like to hear about it.


_______________________________________________
[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