A Flash Developer Resource Site

View Poll Results: -

Voters
0. You may not vote on this poll
  • -

    0 0%
  • -

    0 0%
  • -

    0 0%
  • -

    0 0%
+ Reply to Thread
Results 1 to 3 of 3

Thread: Movie clip link

  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    41

    Movie clip link

    Hello,

    can anybody pls tell me how I can assign a GotoandPlay action to a movieclip item in Flash MX. I want to use a movieclip as a button and when clicked on it, i want it gotoandplay another frame.

    pls help me

  2. #2
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    This is not the right forum for this type of questions.
    You should ask this sort of things in the "Actionscript" forum.

    The "Backend scripting" is dedicated to server-side programming.


    Anyway, you can use a MovieClip as a Button, by adding button-like handlers to it, like this:
    PHP Code:
    myMovieClip.onRelease = function() {
        
    this.gotoAndPlay('myFrameLabel');
    }; 
    The previous code should be placed in the FRAME ACTIONS (if you don't know what this means, please go through the beginner tutorials from the Help menu in the Flash authoring environment), sometime when a movieclip with the INSTANCE NAME "myMovieClip" is present.

    This will automatically give *some* of the button behaviours, still remaining basically a movieclip.

    There are other ways to achieve the same effect, this is the cool thing about Flash.


    Hope this helps
    Altruism does not exist. Sustainability must be made profitable.

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    41
    Thanks keyone.

    THANK YOU VERY MUCH!

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