A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamic Execution Instructions

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    72

    Dynamic Execution Instructions

    I Know I'm doing this wrong, and will probably have to use the tellTarget function but i need to execute an instruction that changes depending on the selection made by a user. Therefore

    can i do this?

    nav_full.subMenu2.gotoAndPlay('in');

    with This

    eval("nav_full.subMenu" + varName + ".gotoAndPlay('in');");

    Cheers in Advance

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    you probably want something like
    nav_full.subMenu[varName].gotoAndPlay('in');

    Musicman

  3. #3
    Member
    Join Date
    Nov 2000
    Posts
    72
    Cheers

    Thanks alot

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