Yup. Default images are set to mode 0, which is a light effect. This MAY mean that it won't be properly transparent unless ALL values(red, green, blue) are lowered along with the alpha. Setting it to mode 1 will not only make it properly transparent, but may also fix the problem you're having. It would also explain why you can't use a black polygon, as black for these light effects = transparency mask.
PHP Code:
function onCreated() {
with (findimg(200)) {
// CREATE A BLACK POLYGON AT 0% TRANSPARENCY
polygon = {0,0,5,0,5,5,0,5};
mode = 1;
red = green = blue = 0;
alpha = 1;
}
// FADE IT OUT
for (temp.i=1;i>0;i-=.1) {
with (findimg(200)) alpha = i;
waitfor("", "noevent", 0.05);
}
// FINALIZE BY SETTING IT TO 0 AFTER LOOP AS FAILSAFE
findimg(200).alpha = 0;
}
Something like that should work, however I'm not familiar with waitfor so that could possible be causing problems, I'm not sure.
Also, I found:
http://wiki.graal.net/index.php/Crea...iControls_List
to have pretty great examples. If you still need help with GUI's though I could post an example.