I don’t know what I am doing wrong;
I have created a class, named “Item.as” that is a holder for
- some info: item name, item description, etc
- image container: a container for the image
- image container: a container for the thumbnail
the images containers are defined in a class named “Container.as”
Now, the container works by creating a “Loader”, that loads the image
Once the image is loaded, the container dispatches an event event.complete
When the Item has received “complete” from both the image container, the thumbnail container and the variables loader, it displays both the image and the thumbnail by calling a function call displayImage(); this function actually calls a function in the “Container” class, also called displayImage(), which basically is:
addChild(currLoader)
currLoader being of course the Loader object which loads the image.
I also do an addChild(image) (image being the Container object)
and an addChild(currItem) on the stage.
Aaannnnnnd…
Nothing happens.
If I place trace() events here and there, everything works; the events and functions are called in the right order, I get no error, but…Nothing appears on my screen!
I’ve been stuck on this since yesterday morning. I am going crazy. A little help would be warmly welcomed.
Thanks.
P.S: I have attached the classes in the crazy hope that someone will have enough free time to actually check them out. The code on my stage is:
import orient.*
var currItem:Item = new Item()
Item.url = "http://localhost/orient499/input.php";
currItem.load(4);
addChild(currItem);
stop();
Orient499 being the name of the website.