From: Vish V. <vis...@gm...> - 2007-04-30 23:08:31
|
I am creating a new application made up of several movies, which take up various areas on-screen. They are all subclasses of LocalController, and I am trying to figure out a way of using the MovieManager class to handle loading these four or five movies and initializing them. MovieManager does not have a start method, and I am assuming that all the movies load one after the other, except I cannot figure out how to add different listeners to each movie, so as it loads, it runs a specific method. Any help available on dealing with multiple movies? Best regards Vish |
From: Adam R. <old...@gm...> - 2007-05-01 13:37:15
|
Vish, You don't listen to each movie, you listen to the MovieManager, it sends events when each of the movies it's loading is done. The SimpleApplicationDemo shows the general concept... http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo Adam On 5/1/07, Vish Vishvanath <vis...@gm...> wrote: > > I am creating a new application made up of several movies, which take > up various areas on-screen. They are all subclasses of > LocalController, and I am trying to figure out a way of using the > MovieManager class to handle loading these four or five movies and > initializing them. > > MovieManager does not have a start method, and I am assuming that all > the movies load one after the other, except I cannot figure out how to > add different listeners to each movie, so as it loads, it runs a > specific method. > > Any help available on dealing with multiple movies? > > Best regards > > Vish > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > |
From: Vish V. <vis...@gm...> - 2007-05-01 14:00:37
|
Hi Adam - thanks, I got that, but what I really need is to fire off specific handlers for specific movies and setting the handler when I call the MovieManager loadMovie method, so that instead of simply listening for an ON_MOVIE_READY I essentially can load a Navigation Movie, Search Movie, List Movie etc, all the different controllers and sections on a screen and run different handlers when each one is loaded. Also, I need to be able to queue up the loading for all these movies, with full stop and start, but I'm pretty sure the Loading queue in ASAP is broken for me since I could not use start and stop. I want to add a sequence of loads with very specific handlers. Is that possible? Many thanks vv On 01/05/07, Adam Robertson <old...@gm...> wrote: > Vish, > > You don't listen to each movie, you listen to the MovieManager, it sends > events when each of the movies it's loading is done. The > SimpleApplicationDemo shows the general concept... > > http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo > > Adam > > On 5/1/07, Vish Vishvanath < vis...@gm...> wrote: > > > > I am creating a new application made up of several movies, which take > > up various areas on-screen. They are all subclasses of > > LocalController, and I am trying to figure out a way of using the > > MovieManager class to handle loading these four or five movies and > > initializing them. > > > > MovieManager does not have a start method, and I am assuming that all > > the movies load one after the other, except I cannot figure out how to > > add different listeners to each movie, so as it loads, it runs a > > specific method. > > > > Any help available on dealing with multiple movies? > > > > Best regards > > > > Vish > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Asapframework-support mailing list > > Asa...@li... > > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > |
From: Adam R. <old...@gm...> - 2007-05-01 15:07:10
|
Vish, I normally take the simple route, all the pages I'm loading's names are defined as static consants in an AppData class, these names are given to the MM in loadMovie() and also passed through to the LC in the MovieManagerEvent, so I just have a big switch statement there and check what's just loaded against the page names. I normally then call methods directly on the sub movies from the top LC as they load, but you could fire new page specific events instead. A cleaner approach may be to extend MM and check for your app specific pages in onLoadDone etc, then fire your own events there instead? I guess this approach doesn't scale well if your loading many LC's, but it's all I've needed so far. If you are trying to get things to load in a predictable queue you may try creating a new Loader with only one thread (the default is 4) for your MM, so the items only get loaded one at a time in the order you queue them. A On 5/1/07, Vish Vishvanath <vis...@gm...> wrote: > > Hi Adam - thanks, I got that, but what I really need is to fire off > specific handlers for specific movies and setting the handler when I > call the MovieManager loadMovie method, so that instead of simply > listening for an ON_MOVIE_READY I essentially can load a Navigation > Movie, Search Movie, List Movie etc, all the different controllers and > sections on a screen and run different handlers when each one is > loaded. > > Also, I need to be able to queue up the loading for all these movies, > with full stop and start, but I'm pretty sure the Loading queue in > ASAP is broken for me since I could not use start and stop. I want to > add a sequence of loads with very specific handlers. Is that possible? > > Many thanks > > vv > > > On 01/05/07, Adam Robertson <old...@gm...> wrote: > > Vish, > > > > You don't listen to each movie, you listen to the MovieManager, it sends > > events when each of the movies it's loading is done. The > > SimpleApplicationDemo shows the general concept... > > > > http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo > > > > Adam > > > > On 5/1/07, Vish Vishvanath < vis...@gm...> wrote: > > > > > > I am creating a new application made up of several movies, which take > > > up various areas on-screen. They are all subclasses of > > > LocalController, and I am trying to figure out a way of using the > > > MovieManager class to handle loading these four or five movies and > > > initializing them. > > > > > > MovieManager does not have a start method, and I am assuming that all > > > the movies load one after the other, except I cannot figure out how to > > > add different listeners to each movie, so as it loads, it runs a > > > specific method. > > > > > > Any help available on dealing with multiple movies? > > > > > > Best regards > > > > > > Vish > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Asapframework-support mailing list > > > Asa...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Asapframework-support mailing list > > Asa...@li... > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > |