Yeah I've started to kinda enjoy the challenge to programming, its seems kinda like doing a soduku using hebrew numbers or something... beyond the language barrier theres a really addictive logic puzzle!
Im still having trouble getting my head round preloading... I've got the cards simulation to the stage where Ive got a pack of 63 cards, each with a different image and info on them. It works ok, besides the big problem that it takes ages to load, and at the moment theres no way of telling that it IS loading. If you take a look you'll see what I mean
http://www.pigstylearts.co.uk/cards/Testing.html (p.s. the very last logo, for the fried chicken chain, is mine :D).
The current structure is pretty similar to how I planned it back when I started thinking of this card project... Theres a main Deck class, which runs through the XML data and puts it into an array, then creates individual instances of the Card class for however many <Card> nodes there are in the XML, passing through the appropriate information. It also handles my interface, like what happens when you click on a card, where it should go and how etc.
The Card class basically just draws the card shape, adds a shadow, and draws onto its faces the appropriate information which is passed to it from the Deck class. This includes the project image, which I create as an instance of my ImageLoader class (I got fed up writing out URLLoader things for every image) which basically takes the url the card passes to it and loads the image into a Sprite container.
Still with me? :D
My problem is that at the moment its just doing things i whatever order they load, so the deck draws 63 cards, then the cards go about loading in the images, which takes an age. I need the ImageLoader to say 'Im done' to the Card class, then have the Card class say 'Im done' to the Deck class, then have the Deck wait until all 63 or so cards are done before adding them to the stage, and preferably showing some kind of percentage loader while its at it.... Does that make sense? I know I can do things add an event listener a URLLoader to see if its complete, but can I do something similar to just any class, i.e. add an event listener to a class that listens for the class doing all it needs to do, before calling the appropriate event function?
Oh and Lassie as a product doesnt sound like a bad idea at all, even besides hard-core adventure games it could have a use for creating some interesting websites...