A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: 'Grandchild' Button activivating instance on parent

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    10

    'Grandchild' Button activivating instance on parent

    Hi there

    Just wondering how I reference A button that I have within a movie clip, within a movieclip to and instance on the parent timeline.

    At the moment I am using, but not getting the correct result:

    MovieClip(parent).NavBar.gotoAndPlay("About");

    Any help will be much appreciated, many thanks (attached is the Flash file)!
    Attached Files Attached Files

  2. #2
    Flactionscrish Baby Minion's Avatar
    Join Date
    Nov 2005
    Location
    Planet Earth
    Posts
    312
    it would be better if the parent created an eventlistener for the button and the have the parent handle the action rather than the button itself.
    ktu[k-two]
    he who hesitates is lost; so i guess i'll wander intently

    Are you sure this is real?
    Life is Love, Love is Blind, Blind we go through Life.
    Life isn't hard, dealing with your self is.

    The concept of life in a human brain is weakening day after day. Live every day like its your last. Take the chances, and opportunities, and never let authority push you around for fun.


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