| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2001
Location: London
Posts: 38
|
is it possible to resize the browser window hlafway thru a movie clip in flash?
please say yes!!!! oh...and how to do it : ) |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2001
Location: eastcoast
Posts: 42
|
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] |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |