Running Multiple Script Files

I'm running into a problem when I start to use more than one script file. From the little documentation I could find on this, the player should start with the first script file in the manifest, complile it, and move on to the next and store all the variables and functions for use when they are called. When I try this, the player runs none of the scripts and just plays the audio and video. The scripts were checked and are valid. Does the first script have to initialize the other scripts or am I missing something real obvious here

Answer this question

Running Multiple Script Files

  • BRCEWANE

    That's exactly what I have. I'll have to go over it again on Monday.

    Great news on VS 2005 Express Edition. I'll have to give it a try.


  • Teo Lachev

    Got it all working. I was defining too much in the manifest. Now it consists of one script, one markup, and one ACA resource. Guess sometimes simplicity is a better way to go.
  • MJWhiteman

    There is no difference; you just create a PlaylistApplication with PlaylistApplicationResouces inside the TitleSet element (but not inside any Title element). Any of the samples from my blog will use this approach.

    The problem might be that you are not referencing the files correctly from within the ACA; basically you treat the ACA as a directory so it would be file://dvddisc/ADV_OBJ/foo.aca/myscript.js

    Yes, you can use the free download of VS 2005 Web Express Edition for debugging :-)



  • mwoehlke

    As long as they are all listed in the manifest as both <Script> elements and <Resource> elements, and they're listed in the Playlist as <ApplicationResource> or <PlaylistApplicationResource> elements, they should load in the order defined in the manifest.

    If you run iHDSim with the -debug and -jit parameters, do you see the script files loading into your debugger (eg, Visual Studio)



  • MuscleHead

    They are listed in the manifest as both script and resource elements. They are not listed in the Application Resource or the Playlist Application Resource because they are in an ACA file. Unfortunately, I do not think have access to any programs that can do the debugging. Will Microsoft Visual Web Developer 2005 Express Edition handle that

    It's a little off the original topic, but you mentioned Playlist Application Resource and it reminded me of another problem I have. I am trying to move from a Title Application to a Playlist Application because I am encountering stuttering at the beginning of the title as it is loading the application and trying to play the video at the same time. I have tried moving the manifest and resources from a title application to a playlist application, but it is not working. I know the code is working fine, so I am assuming the manifest file must have to be different. Is there a difference in the manifest files for title and playlist applications


  • Running Multiple Script Files