A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: using variables to target movie clip instances

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Location
    Auckland, NZ
    Posts
    2

    using variables to target movie clip instances

    i'm trying to work out how to use a variable within a path to target movie clips but can't seem to find an answer anywhere..

    this is the line of code..

    Code:
    _root.deptmenu.variableName.gotoAndPlay("highlight");
    any suggestions?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    try -

    _root.deptmenu[variableName].gotoAndPlay("highlight");

  3. #3
    Junior Member
    Join Date
    Feb 2008
    Location
    Auckland, NZ
    Posts
    2

    resolved

    that's brilliant.. just what i needed, 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