Marcelo, I have a MVC framework for the application, but I am not sure how to add a listener if I can't resolve the scope. I need to find a good tutorial about combining stuff from the IDE with stuff written entirely in mtasc. I have been writing pure actionscript, but I am just getting started with the IDE. Do you know of anything like that?
Thanks, Kjel On Friday 29 September 2006 11:12 am, Marcelo de Moraes Serpa wrote: > I don't usually call methods directly on loaded SWF's. Try decoupling it > more by creating some kind of interface or by dispatching events. Maybe you > could make use of a MVC framework such as pixlib (the best for flash at the > moment), this would make your app much more maintanable, flexible and > scalable. > > On 9/29/06, Kjel Anderson <[EMAIL PROTECTED]> wrote: > > This discussion seems pretty informative, but unfortunately, much of it > > is over my head. I'm having trouble resolving scope. I can iterate > > through the > > movieclips in my loaded swf, but I don't seem to be able to call > > properties > > or methods. Can someone point me in the right direction on this? > > > > Thanks, > > > > Kjel > > > > On Friday 29 September 2006 7:47 am, Glen Pike wrote: > > > Aha, > > > > > > No, I had misinterpreted this as being called when the MovieClip > > > loader initialised and was removing the MCL Listener when the > > > onLoadComplete function was called so I never saw any debug trace. > > > (...Reads documentation...) :-[ > > > > > > That makes it a lot simpler - Doh! (It is alright to say Doh! isn't > > > it?) > > > > > > Cheers > > > > > > Glen > > > > > > Muzak wrote: > > > > Are you using MovieClipLoader.onLoadInit()? > > > > > > > > Muzak > > > > > > > > ----- Original Message ----- > > > > From: "Glen Pike" <[EMAIL PROTECTED]> > > > > To: "Flashcoders mailing list" <[email protected]> > > > > Sent: Thursday, September 28, 2006 11:40 PM > > > > Subject: Re: [Flashcoders] Controlling a swf loaded into a movieclip > > > > > > > >> Hi, > > > >> I have been doing something similar with a site that I am > > > >> building. There is a "shell" application that loads up various swfs > > > >> into a > > > > holder > > > > > >> clip. The application needs to be able to talk to these loaded > > > >> clips and do stuff to them. The way I have worked it is to load up > > > >> a SWF which has a movieclip on stage linked to a "Page" class. When > > > >> the > > > > page > > > > > >> class is ready (see the setInterval call) it will call a function on > > > > the > > > > > >> parent movie clip called "registerPage" at that point the parent > > > > movie > > > > > >> clip ("ApplicationForm") can start calling methods on the class. I > > > > am > > > > > >> not sure if there is a better way of doing this, but I have found > > > > that > > > > > >> loaded clips seem to take a few milliseconds to actually initialise > > > >> properly so that I can actually call my own methods on them - hence > > > >> putting in the waitOnLoad function. If anyone knows how to do this > > > > in > > > > > >> an easier way, please tell me. > > > >> > > > >> Thanks > > > >> > > > >> Glen > > > > > > > > _______________________________________________ > > > > [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 > > > > > > _______________________________________________ > > > [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 > > > > _______________________________________________ > > [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 > > _______________________________________________ > [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 _______________________________________________ [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

