A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: control timeline from button within moveclip ?

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    4

    control timeline from button within moveclip ?

    So im creating a site for a friend and I have placed the menu inside a movieclip so the buttons are inside the movieclip and want them to control the main timeline. This the script i have tried :
    Code:
    stop();
    natural1.onRelease = function () {
    gotoAndplay(15);
    }
    and
    Code:
    stop();
    natural1.onRelease = function () {
    _root.gotoAndplay(15);
    now I thought the root would work but maybe im placing the script in the wrong place I created a frame and then placed it in there as its how I usually do my script.

    Also off topic of main question what is better to use action script 3 or 2 if i want a site to be used by as many people as possible and is action script 3 easier ?

    Thanks
    ukrides.

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Need an uppercase "P".
    Code:
    stop();
    
    natural1.onRelease = function() {
    	_root.gotoAndPlay(15);
    };

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    4
    Quote Originally Posted by dawsonk View Post
    Need an uppercase "P".
    Code:
    stop();
    
    natural1.onRelease = function() {
    	_root.gotoAndPlay(15);
    };
    Thanks, Il remember to check the smallest things next time

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