List Info

Thread: pixlib - examples




pixlib - examples
user name
2006-12-19 15:30:44
>Maybe Francis will have some notes to add?
 
Yeah!
1st, thanks for this nice explanation.
The main thing I'd like to add is the use of the libstack to automatically register all MovieClipHelpers.
 
Here's a real world example of www.darkmessiahgame.com :
 
var libs:LibStack = new LibStack();
 
  libs.enqueue( new ConfigLoader(), "timeline", "config/timeline.xml" );
  libs.enqueue( new ConfigLoader(), "frames", "config/frames.xml" );
  libs.enqueue( _getGL(5), UIList.LOADERANIMEND, "swf/loader_multiple_end.swf");
  libs.enqueue( _getGL(7), UIList.TUTO, "swf/tuto.swf");
  libs.enqueue( _getGL(8), UIList.ENDSCREEN, "swf/screen_end.swf");
  libs.enqueue( _getGL(10), UIList.VIDEOCONTAINER, "swf/video.swf");
  libs.enqueue( _getGL(11), UIList.DEATHVIDEOCONTAINER, "swf/video.swf");
  libs.enqueue( _getGL(13), UIList.VIDEOLOADER, "swf/sablier.swf");
  libs.enqueue( _getGL(15), UIList.GLOW, "swf/cible.swf");
  libs.enqueue( _getGL(17), UIList.DEATHSCREEN, "swf/screen_mort.swf");
  libs.enqueue( _getGL(20), UIList.CONSOLE, "swf/interface.swf");
  libs.enqueue( _getGL(40), UIList.PREORDER, "swf/preorder.swf");
  libs.enqueue( _getGL(50), UIList.FORUM, "swf/forum.swf");
 
var contentContainerUI : ContentContainerUI = new ContentContainerUI(MovieClipHelper.getMovieClipHelper(UIList.SITE).view.createEmptyMovieClip("__contentcontainer", 70));
  libs.enqueue( _getGL(10, contentContainerUI.view), UIList.ITEMBACKGROUND, "swf/fond_rubriques.swf");
 ; libs.enqueue( _getGL(20, contentContainerUI.view), UIList.CONTENT, "swf/content.swf");
  ;libs.enqueue( _getGL(30, contentContainerUI.view), UIList.WEAPONVIDEOCONTAINER, "swf/video.swf");
  libs.enqueue( _getGL(50, contentContainerUI.view), UIList.CHARACTERSCROLLER, "swf/barre_defilement_persos.swf");
  libs.enqueue( _getGL(70, contentContainerUI.view), UIList.WEAPONSCREEN, "swf/video_screen.swf");
  libs.enqueue( _getGL(75, contentContainerUI.view), UIList.MEDIASCREEN, "swf/videos/crop.swf");
  libs.enqueue( _getGL(80, contentContainerUI.view), UIList.PREVNEXT, "swf/prev_next_bt.swf");

  libs.enqueue( _getGL(80), UIList.NAV, "swf/nav.swf");
  libs.enqueue( _getGL(90), UIList.LIGHTLOADER, "swf/loader_simple.swf");
 ; libs.enqueue( _getGL(110), UIList.LOGO, Config.getInstance().asset.logoDM);
  libs.enqueue( _getGL(120), UIList.SOUND, "swf/sound.swf");
  libs.enqueue( _getGL(130), UIList.MUTE, "swf/bt_audio.swf");
 
Hope that helps,
 
francis
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )