Lets say you have 5 images in the library - how can you add a specific one to the stage based on a variable?
Like, if I wanted to add the class “letterA”, how could I do it, without a saying:
if($img == ‘letterA’){
addChild(new LetterA());
}
Lets say you have 5 images in the library - how can you add a specific one to the stage based on a variable?
Like, if I wanted to add the class “letterA”, how could I do it, without a saying:
if($img == ‘letterA’){
addChild(new LetterA());
}
:: Copyright KIRUPA 2024 //--