A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help me with scripting

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    3

    Help me with scripting

    I am working my flash website with 3 pages(home,about,links) ..Can not figure the issue after testing my movie..
    I gave a script/coding to the actions but its not working properly like :

    For the first page: on 1st frame
    stop();

    home.addEventListener(MouseEvent.CLICK, pageSelect);home.addEventListener(MouseEvent.CLICK , pageSelect);
    about.addEventListener(MouseEvent.CLICK, pageSelect);home.addEventListener(MouseEvent.CLICK , pageSelect);
    links.addEventListener(MouseEvent.CLICK, pageSelect);home.addEventListener(MouseEvent.CLICK , pageSelect);

    function pageSelect (evtObj:Mouse) {
    gotoAndStop(evtObj.target.name);
    }

    For the second page: on 11th frame

    stop();

    For the third pagen 21th frame

    stop();

    And the loop goes on and wont stop...kindly help !!

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    276
    Can you upload the source FLA?

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