Meaningless Drivel is fun!
The moose likes Game Development and the fly likes MediaTracker Practices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "MediaTracker Practices" Watch "MediaTracker Practices" New topic

MediaTracker Practices

R Johnson

Joined: Jan 05, 2010
Posts: 28

Hello all,
First let me take a second and explain that I'm not providing real code (code will not compile) at the moment because the actual code is very very long and I have no issues other than I'm just trying to make a splash screen because it is taking a little while to load the images in the beginning. I am happy to offer real code and I realize that I may not be very efficient in my code and am very interested in how I can be more efficient once I figure out how to complete the task I need. Currently I have an applet

The only thing that happens though is I don't get the splash page until the images have loaded because the images load one by one as evidence by my System.out.println("getting image : "+path); in the ImageHandler class's addImage method and I never get the StoryPage run method System.out.println("story page running"); . I would like the images to load with a splash screen and I had thought mediatracker was the way to go with this. Any suggestions or help would be greatly appreciated. Again the code above is not real and I hand coded it in the forum text box so there is probably a lot wrong with it I was just attempting to provide the architecture of the program so I could be given the best place to test the images.

Thanks again for any help this community can provide I have had better luck here then most other forums.
I agree. Here's the link:
subject: MediaTracker Practices
jQuery in Action, 3rd edition