A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: making a simple button

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Posts
    14

    making a simple button

    i am really new to flash and i want to make a button tht when clicked makes the show jump to another slide and play a few slides there. when i tried to script it the button would not work. i tried to follow the tutorial on this site but ti was to old and i couldnt follow. can you post some script or point to a newer tutorial?

  2. #2
    Senior Member
    Join Date
    Jan 2005
    Posts
    110
    create any kind of button symbol and put code on it like this

    on(release) {
    _parent.target_mc.gotoAndPlay(frame);
    }

    Note: suppose the button and target mc is in the same mc

    Check my site for more tutorials
    http://www.elearnage.com/elearn

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    14
    i got most of that right i did just not know what to put onto that spot that says
    _parent. target_mc . Could you explain this to me or link to somewhere thta does?

  4. #4
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    _parent means the parent movieclip, also known as the movieclip that is holding the the one that has these actions on it, and target_mc is the instance name of your mc that you are targeting in the same level of the timeline as the button.
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  5. #5
    Junior Member
    Join Date
    Jan 2005
    Posts
    14
    just one more question. (btw thanks a lot so far) when i have my button clicked on it says "no instance name assigned" or somehting like that. what does that mean and how would i go about naming my instnace.

  6. #6
    Junior Member
    Join Date
    Dec 2004
    Location
    Atlantis, Pegusas Galaxy
    Posts
    27
    click on the mc u need to give an instance then go to the properties window then type the instance where it says instance name

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