A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Buttons effecting parent level states

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

    Buttons effecting parent level states

    Hi there

    As I am finally dipping my toe's into AS3 from years of AS2, I am having an issue for my menu buttons (which are within a movie clip) effecting the activation of movie clips that are featured on the main timeline.

    I can get this to run how i want it when each menu button is on the main timeline (by using the 'the click to go to Frame and Play' code snippet)...but when these button are within a movie clip, I can't figure out where in the code i have to add the _parent. command ?

    I have attached the .fla to see what I have done. I am keen to keep using the code snippets scripts.

    Your help will be appreciated, thanks Matt
    Attached Files Attached Files

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    You can use MovieClip(parent)

    Actionscript Code:
    MovieClip(parent).gotoAndPlay("Clip1");
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    10
    Legend, it works perfectly....thank-you so much. Time to get my head into AS3 !

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