freon22
09-16-2009, 11:08 AM
Okay I have a quandry and I'm not sure if I'm doing this correctly.
I have a canvas that upon creationComplete goes through an effect. For instance I have a zoom effect when it comes onto the stage now.
I also have 5 other custom effects I've coded from which I'd like to choose from randomly when the canvas hits creationComplete.
I was thinking if I could bind the functions to array elements and create another function to generate one of them from the array upon creationComplete, but I'm not sure how I would go about this.
I'm not sure if I would be going about this the right way. If anyone has any suggestions I would love to hear them, or any advice on how I should randomize these functions, I would truly appreciate it.
I have a canvas that upon creationComplete goes through an effect. For instance I have a zoom effect when it comes onto the stage now.
I also have 5 other custom effects I've coded from which I'd like to choose from randomly when the canvas hits creationComplete.
I was thinking if I could bind the functions to array elements and create another function to generate one of them from the array upon creationComplete, but I'm not sure how I would go about this.
I'm not sure if I would be going about this the right way. If anyone has any suggestions I would love to hear them, or any advice on how I should randomize these functions, I would truly appreciate it.