I do exactly that with scrollpane -- set the contentPath to a movieclip menuBuilder (in the library, linked to class MenuBuilder) and then call its setup method and that works fine:

      menupanel.menupane.contentPath = "menuBuilder";
      menupanel.menupane.content.setup(this, ctopic, cpage);

So it seems what you are doing should work also. Is the contentPath a movieclip? (you show it with a capital as though you're setting it to a a class, and I can't see anything else that looks different)

Helen

--
http://flash-creations.com
http://i-technica.com



David Farrell wrote:

Also,

I can't see how to access my object once it is the content of the Window.

ie.. I create a window with DialogueButtons as the contentPath

This creates the window as hoped - now I want to call a few methods on my class to create the buttons - but how do I access the content (my DialogueButtons class)?

'tracing' from within my class shows that my DialogueBox is at "level0.depthChild0.content" - if I trace my 'win' it is "level0.depthChild0" - so one would natrually assume that I'd be able to do win.depthChild0.content.myMethod()

but that doesn't work - Flash seems to not be able to let me see any of my DialogueButton class' properties.

hmm



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