Explore native MM livePreview code to see in details how it works.
Also, I think you should check items in "contents", which is the clip
you really see in LivePreview, rather then "xch", which manages
Preperties/Component inspector.

Here's a code I used in similar situation (just to see what you have
on the screen in IDE):

if(_global.isLivePreview){
   for (var i in _root.xch) {
         trace("_root.xch["+i+"] = "+_root.xch[i]);
         }
   for (var i in _root.contents){
     trace("_root.contents[ "+i+" ] = "+_root.contents[i);
     }
}

  

-- 
Best regards,
 GregoryN                        
================================
http://GOusable.com
Flash components development.
Usability services.


> ------------ <[EMAIL PROTECTED]> wrote:
> 
> Thanks for the reply. I am using UIComponent. The code that is in the live 
> preview fla
> is:
> 
> [code]
> 
> function onUpdate() {
>     
> pushBtn.buttonText_txt.text = xch.btnLabel;
> 
> 
> }
> 
> 
> [/code]
> 
> 
> The strange thing is that in the component's FLA I can drag as many instances 
> from the
> library on the stage and it works fine. Once I convert it to SWC, the 
> problems start. I
> did trace out the the xch properties, but I couldn't seem to find the 
> component's name.
> 
> I did read the other replies to my post and looks like it is somewhat of a 
> flawed design
> and it has to be hacked to get it to work properly.
> 
> 
> Thanks for the assistance.


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

Reply via email to