A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: logo="logo"+n is posible??

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    2

    Unhappy logo="logo"+n is posible??

    what i wanna do is to set a variable's value with the value of another variable, look:
    --------
    n=1

    logo1="clip12.gif"

    logo="logo"+n

    trace(logo)
    ----
    that script traces "logo1", and i want it to trace "clip12.gif"

    i cant just trace variable "logo1" value becouse the variable logo is used in a movie clip that duplicates it self.

    is that posible?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Actionscript Code:
    n=1;

    logo1="clip12.gif";

    logo=this["logo"+n];

    trace(logo);

    gparis

  3. #3
    Junior Member
    Join Date
    Jun 2010
    Posts
    2
    gparis tank you very much!!!!

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