1 Reply Latest reply on Mar 11, 2008 8:27 AM by jylaxx

    loading multiple resources

    VPenades Level 1
      Hi, I am starting to do things with AS3, and I found that all the resource loads through urlRequest, urlLoader and others like that are asynchronous, that is, the flow of the applications continues after a resource load request.

      I have a case in which I have to load a group of resources before entering into a different section of the application, and I don't want to hardcode the load complete events for every single resource I load.

      Is there a way in AS3 to do something like this?

      .LoadResource("hello.gif");
      .LoadResource("table.xml");
      .LoadResource("howareyou.gif");
      .LoadResource("bye.gif");
      .LoadResource("story.txt");
      .WaitForMultipleObjects();