A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] AS2 - problems with frames and goto Mc

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    5

    resolved [RESOLVED] AS2 - problems with frames and goto Mc

    Hi,
    i can not seem to get a button working with simple gotoAndStop frame .

    its setup like _root > EMC_photos > photos_thumbs_ani

    now in photos_thumbs_ani i have several photo pages all setup every 100 frames with labels page 1, page 2 etc

    my button is within photos_thumb_ani as a movieclip

    with code inside

    this.onRelease = function(){
    _root.EMC_photos.photos_thumb_ani.gotoAndStop("pag e2");}


    I have tried different variations to no sucess
    not sure how to point to these frames please help .

    If anyone is willing i will send the .fla so you could see

    Thanks in advance.

  2. #2
    Senior Member hts5000's Avatar
    Join Date
    Oct 2007
    Posts
    160
    I noticed you said you were naming the frames "page 1, page 2". In your code you used "pag e2" where it should be "page 2". As a side note I would stay away from spaces. Name the pages pg1, pg2, pg3 etc....

    Hope this helps.

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    5
    thanks for the reply ,that was a typo on this forum (oops) i had the labels and everything named correctly.
    I did not need to be so O.T.T because it was on the same timeline/mc so i just used

    this.onRelease = function(){
    gotoAndStop("page2");}

    Nevermind learnt my lesson.

    thanks again

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