Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-05-2001, 03:49 PM   #1
mosquito
Registered User
 
Join Date: Mar 2001
Location: London
Posts: 38
Default

is it possible to resize the browser window hlafway thru a movie clip in flash?

please say yes!!!!
oh...and how to do it : )
mosquito is offline   Reply With Quote
Old 03-05-2001, 06:16 PM   #2
edeveloper
New Member
 
Join Date: Mar 2001
Location: eastcoast
Posts: 42
Default

put this between the <head></head> tags:
<script language="javascript">
function shrink(){
//2 pixel movement
var i = 2;
//moving the window to give a shrinking effect while the
//window is going through the resize loop
if (self.moveBy) {
for (k =8; k > 0; k--) {
for (j = 3; j > 0; j--) {

self.moveBy(0,i);

self.moveBy(i,0);

self.moveBy(0,-i);

self.moveBy(-i,0);
window.resizeBy(-2, - 2)
window.moveBy(1,0)

}
}
}
}
</script>

this goes on the frame you want to trigger the event:
getURL ("javascript:shrink()");

oh, and it won't work if the window is maximize.
and, if you just want to resize the window without the cool effect:

function shrink(){
self.resizeTo(width,height)
}

[Edited by edeveloper on 03-05-2001 at 12:22 PM]
edeveloper 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resizing movie clip to browser size BluegillMedia ActionScript 2.0 8 08-15-2006 11:14 PM
Fit Flash movie into any size browser window, without scaling??? AirbORn ActionScript 1.0 (and below) 3 06-22-2005 04:20 AM
Skinning components with embedded components epeace Components 5 06-16-2005 09:35 PM
Possible to limit the automatic resizing of a flash movie? mgomez03 Simple Stuff (Newbies) 2 06-15-2005 06:39 AM
Php, Javascript, and Flash 5 browser detect and more! Redline01 Server-Side Scripting 2 08-11-2001 02:09 AM


All times are GMT. The time now is 07:07 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.