Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nextScene - top of page? 1

Status
Not open for further replies.

iXPhound

Technical User
Feb 25, 2001
146
US
Hi all,

I am new to flash (MX 2004) and trying my best to work through some problems I'm having and this one has me stumped. I have a flash document with three scenes...all the same size 800x600 to fit one of the scenes. When i use nextScene on the release of a button I have it goes to the next scene but it goes to the bottom of the next scene not the top (on an 800x600 res screen). Any ideas are greatly appreciated.

TIA!!!!
 
Are you saying that at 800x600 that you can't see the whole screen? Or are you saying that you have a form and the focus goes to the last field instead of the first field?

Can you post an example so we can see it?
 
pixl8r

The flash document is 800x600. When the user with an 800x600 screen resolution goes to the first slide, everything is fine. But Because their web browser takes up some of that screen space they have to scroll down a little to hit the button to go to the next scene. When they click and go to the next scene it is scrolled down that same little bit so they have to scroll up slightly to get to the top of the scene. The document isn't really hosted anywhere so I can post a link to it. I really appreciate your help!!
 
Oh I see.

Well you probably won't want to hear that the easiest thing to do is to create your movie at a slightly smaller size so it isn't 800x600 (760x420 should be safe). Unfortunately you always have to account for those pesky buttons and scroll bars.

Short of that you could probably call a javascript to force the scroll back to it's top position. I don't have the exact syntax right now but if you need it (and someone else doesn't post it) I will try to post it for you tomorrow.

Wow JT that almost looked like you knew what you were doing!
 
pixl8r

that would be the best bet for me i think...I can't squeeze the content much more...thanks again so much for the help!!!!!! I really do appreciate it!
 
On the first frame of the "next scene" try adding this: (actions layer)

Code:
getURL("javascript:scroll(0,0)");

That might do it.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
pixl8r

Im going to give this a try when I get home from work tonite. Again, thanks for your help and persistence with me.

 
pixl8r

That worked. Thansk so much for the help and persistence.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top