A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: button 2 work

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    50

    button 2 work

    using flash mx ....... i have made a button .... wanna make it work like .... on clicked it should play a movieclip [mc] ...... what ascript should i attach 2 it ?

  2. #2
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292
    Instanceofbutton.onRelease=function(){
    gotoAndPlay("frame");
    }

    Im not quite sure what you mean though.
    Can you explain more please
    Ryan :]

  3. #3
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    code:
    // code placed on "your_button" button
    your_button.onPress = function()
    {
    // plays "your_mc" movie clip
    your_mc.play();
    }


    That should work.



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


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