> I presume my removeEventListener works. 
You should be sure. So check it: 
 
trace(e.currentTarget.hasEventListener(Event.COMPLETE)); //true
e.currentTarget.removeEventListener(Event.COMPLETE, loaded); 
trace(e.currentTarget.hasEventListener(Event.COMPLETE)); //false

> So, how do I pass new values to fn loaded?
Just increment the vars. 
// Cascade layout 
displayObject.x = myX + 31; 
displayObject.y = myY + 31; 
myX += 20; 
myY += 20; 
 
Have you considered putting your url strings into an array instead of using
that awkward switch statement? 

I would also recommend writing a function that creates and returns
BevelFilter. Set 'myBevel' once (rather than running through the code
repeatedly) then apply it where appropriate. 
var myBevel:BevelFilter = createBevel(); 
function createBevel():BevelFilter{ 
        var bf:BevelFilter = new BevelFilter(); 
        bf.type = BitmapFilterType.OUTER; 
        bf.distance = 10; 
        bf.highlightColor = 0xFF0000; 
        bf.shadowColor = 0xFFFF00; 
        bf.blurX = 20; 
        bf.blurY = 20; 
        return bf; 
} 
 
// apply Bevel filter 
displayObject.filters = [myBevel]; 
 
Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to