Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-01-2004, 04:21 AM   #1
gnative
Registered User
 
Join Date: Sep 2004
Posts: 21
Default Controlling browser scrollbars from flash.

hello ..

Does anyone know how i could go about setting the size of the browser scrollbars.


I have a centered flash movie in an html doc 800x590 ( www.gnative.com ). The problem is this..
it the flash movie i am useing this peice of code to center my main content

stageEvent = new Object();
function stageInit() {
stageEvent.onResize = function() {
// set navigtion center
nav_mc._y = Math.floor((Stage.height -(nav_mc.nBg_mc._height))/2);
nav_mc._x = Math.floor((Stage.width - (nav_mc.nBg_mc._width))/2);
// set leaf image bottom corner
l_mc._y = Stage.height - l_mc._height;
l_mc._x = Stage.width - l_mc._width;

};
Stage.addListener(stageEvent);
this.stageEvent.onResize();
}
Stage.align = "LT";
Stage.scaleMode = "noScale";
stageInit();
stop();


What i want to be able to do is then the broswer window is smaller than 800x490 i want the browsers scroll bars to appear and set acording to the window/flash overflow size.. Woudl useing Div overflow work and how does this work?

Thanks you
Shane
gnative is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.