A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: concatenating a class name

  1. #1
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429

    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?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801

  3. #3
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    out fking standing!
    thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center