Results 1 to 3 of 3

Thread: MC problem plz reply

  1. #1
    Join Date
    Jan 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy MC problem plz reply

    hai to all i had one poblem in my project can any one slove it and tell plzzzzzzzzz

    i had two buttons bio_mc and art_mc
    the bio_mc r movieclips which have upstate,downstate,hitstate same as with art movieclip also.

    the bio is on enterframe it is highlighted i.e. upstate.

    what i want is on press of art the bio shuld be down state .

    i tried many times but due to on enterframe it is highlighted as the movie plays

    i want on art is presses bio should be down state.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    First, they need to be Movie Clips, NOT buttons. MCs can have button properties, but buttons can not have MC properties. So change the bio_mc and art_mc to movie clips.

    Next, add a layer to each MC and put a stop(); in each frame.

    You have to give both MCs an instance name (click once on MC from the stage, open "properties" panel type name in box "instance name")

    Then use action script to tell the buttons what to do.

    for example if you give instance names of "bio" and "art" then on the artMC you would put something like:

    Code:
    on(press){
       _root.bio.gotoAndStop("2");
    }
    
    on(release){
       _root.bio.gotoAndStop("3");
    }
    You may have to adjust slightly based on how your MCs are layers on the stage (nested, depths, etc.)

    For an example see the attached zip file
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    First, they need to be Movie Clips, NOT buttons. MCs can have button properties, but buttons can not have MC properties. So change the bio_mc and art_mc to movie clips.

    Next, add a layer to each MC and put a stop(); in each frame.

    You have to give both MCs an instance name (click once on MC from the stage, open "properties" panel type name in box "instance name")

    Then use action script to tell the buttons what to do.

    for example if you give instance names of "bio" and "art" then on the artMC you would put something like:

    Code:
    on(press){
       _root.bio.gotoAndStop("2");
    }
    
    on(release){
       _root.bio.gotoAndStop("3");
    }
    You may have to adjust slightly based on how your MCs are layers on the stage (nested, depths, etc.)

    For an example see the attached zip file
    Much appreciated blizzard had a similiar problem to OP. Found both of my MC's didnt have the instance name. Took me so long to work this out, thanks mate!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •