It's because LivePreview variables are different SWF's, but same depth. Gary wrote the original LivePreview.as file (in includes in Flash MX 2004's install directory), and you can take a look at it to see how it works.
I had the same problem with my Flowchart components. Basically, things were getting created correctly in different movieclips, but the actual data was referencing a previous component. I had to hack the LivePreview.as with a few modifications on the 2 main functions that update the component, but I never fully resolved it. My suggestion is to start tweaking that file since it's the one that pretty much runs LivePreviews. ...or, create your own, and do it the MX way where you code the refreshing yourself, export a SWF, and point your component to that vs. using the internal Flash MX 2004 component LivePreview-auto-gen. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <flashcoders@chattyfig.figleaf.com> Sent: Monday, January 30, 2006 11:21 PM Subject: [Flashcoders] Component and Live Preview ~ problems Hello All --- I posted this on FlashNewbie and didn't have much luck getting it resolved. I also found a number of posts on Actionscript.org referencing this same problem, but I couldn't find any solutions, so I thought I would try here. I created a custom button component with live preview enabled for the label. The live preview works great with only one button component on stage. However, if I put another instance of my btn component on stage, both btn components are updated to the most recent component's label. Both buttons have different instance names. Any ideas on how to resolve this issue? Thanks for any and all replies. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders