dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: AS2 button move browser up and down????

  1. #1
    Senior Member
    Join Date
    Mar 2008
    Posts
    168

    AS2 button move browser up and down????

    I have a AS2 animation that is 1200 px tall. It is a basic "Flow Chart" with choices as you move down the chart.
    Most monitors today are too shallow to display the entire SWF page is there a way with a Flash button to force the browser to scroll down as you move down the Flash page?

  2. #2
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    Right now I would be happy to get it to take you to the top on button click once at the bottom.

  3. #3
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    I found this on an old post here:

    getURL("javascript:window.scroll(newXPos,newYPos)" )

    I am going to gie this a try.

  4. #4
    Senior Member
    Join Date
    Mar 2008
    Posts
    168
    not sure if I am implementing this correctly. Here is the conde I have on the button at the bottom of the SWF page;

    Code:
    on (release) {_root.gotoAndPlay(11);
    	getURL("javascript:window.scroll(0,0)" )
    }
    The idea is as you scoll down the SWF page and you get to the bottom and click on a Submit Button it takes you to the top of the page

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