dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Playing MC from Var.

  1. #1
    Has Returned
    Join Date
    Mar 2001
    Posts
    269

    Playing MC from Var.

    Hello, say i was to store the name of a MC that has just played from clicking it.

    on (Press) {
    Clicked = "t1";
    this.gotoAndPlay("Clicked")
    }

    And then i click another MC, i want it to get "t1" to gotoAndPlay("AnotherClicked") to show the effect of an ending transistion how do i do this?

    Cheers,
    Turbs.

  2. #2
    Senior Member corky§urprise's Avatar
    Join Date
    Jun 2005
    Posts
    346
    In theory, you would use
    this.gotoAndPlay(Clicked)

  3. #3
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    Sorry just realised my exapmple is bad, Clicked in those two intances is something different, it is a frame label in one and a Var on the MC

    Let me rephrase:

    on (Press) {
    Clicked = "t1";
    this.gotoAndPlay("ClickedStartAnim")
    }

    And then i click another MC, i want it to get the previously clicked MC "t1" (dictated but the Var, "Clicked") to gotoAndPlay("ClickedNewEndAnim") to show the effect of an ending transistion, how do i do this?

  4. #4
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    Basically how do i control a MC when i only know the name from a Variable Value?

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