|
-
Total Universe Mod
concatenating a class name
I have a library full of clips exported as logo0, logo1, logo2 etc.
In my main class I have a logoID:uint variable tracking the current logo.
I'd like to be able to just use:
logo = new "logo"+logoID();
addChild(logo);
but obviously that wont work.
How do I go about casting that correctly?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|