Hello Fred, I've answered the similar issues a number of times in February. See in archive of this list: - "Component and Live Preview problems" - "Creating Components - What am I over looking?" - "Component instantiation- How does dragging affect the constructor"
1) read the mm_livepreview.as file very carefully. Read Gary Grossman's comments in it and try to understand what each string of code does. 2) Read Components Dictionary chapter of Using Components in Flash docs. you'll see the differencies of behaviour (in Live Preview) of MM "native" components. 3) look into source files/code of MM components to see how exactly differencies of p.2 are implemented. 4) make sure you have your own onUpdate and setSize methods defined. Matter is that 2 instances are created for Live Preview, and the 1st one then becomes invisible. Comments for your lines. > I have read posts saying that live preview mode does not support depths (only > one depth), which can't be right (more > prayerful), because most custom components are going to dynamically add > MovieClips and graphics. I haven't seen such posts (at least in this list :-). > in Live Preview. Why can't I load graphics or bitmaps from the library? > Obviously MovieClip symbols show up. A movie in LivePreview (on the stage in IDE) is compiled clip. BTW, are you talking about components (like I do)? As a compiled clip, it can't use any symbols from the _host_ library. It uses it's own library. You may want to clarify what you mean by "load graphics or bitmaps from the library". Feel free to ask more questions if you'll have them. -- Best regards, GregoryN ================================ http://GOusable.com Flash components development. Usability services. >___________ Frederick N. Brier wrote: > > I have been mucking with this for several days and would love if someone > could point me at an up-to-date explanation of how > live preview is supposed to be done. > > I have read about the old style of doing it using onUpdate() and an external > .swf. > > I have watched trace() statements execute my init(), createChildren(), > constructors and property setters. > > I have read posts saying that live preview mode does not support depths (only > one depth), which can't be right (more > prayerful), because most custom components are going to dynamically add > MovieClips and graphics. > > I have looked at mm_livepreview.as and read through the comments, but am > unsure as to how it fits in the scheme of things. > > Code using attachMovie and loadBitmap to load graphics or bitmaps from the > library work in test mode, but return undefined > in Live Preview. Why can't I load graphics or bitmaps from the library? > Obviously MovieClip symbols show up. > > Other than the simple triangle sample on the Macromedia web site which uses > the old onUpdate/external .swf approach, there > seems to be very little on this topic. Please, just point me in the right > direction!! Thank you. > > Fred. _______________________________________________ [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

