Solved

Need to resize new window from Flash

Posted on 2002-06-25
5
141 Views
Last Modified: 2010-04-03
Hola!  How can I resize a new window from a link created in Flash, (Basic Actions, On Press, Release, Get URL).  SO the original page is in a full sized window but I want the new target window to be a smaller size, say 400 x 400 in a brand new window.  I got the new window but need it smaller.  Where and How can I do this in Flash?

Thanks in advance!!
Jennifer
0
Comment
Question by:guyje
5 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 50 total points
Comment Utility
It's all explained here at...

http://www.macromedia.com/support/flash/ts/documents/popup_windows.htm

the method you want which lets you control the window size..(geturl/JavaScript)..is to paste....

geturl("javascript:openNewWindow('http://www.macromedia.com','thewin',
      'height=400,width=400,toolbar=no,scrollbars=yes')")

all in a single string..no spaces..in the geturl panel in Flash..

and then..

in the head of your html document put..

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

look for extra instructions on the Macromedia site if you
are using Flash 4.

Z


0
 
LVL 6

Expert Comment

by:rootdir
Comment Utility
Another method is, to use 'fscommand' to call external launcing program, which will popup your new window in 400X400 scale.

You can find good examples at

http://www.moock.org/webdesign/flash/launchwindow/launchwindow.html

Cheers
RootDir
0
 

Author Comment

by:guyje
Comment Utility
Accepting Zeffer's response with the JavaScript method.  Had to play with it a little and after reading the macromedia link provided, I was able to get it to work correctly.  Thanks so much!  - Jennifer
0
 

Expert Comment

by:technologyservices
Comment Utility
I have a flash .exe on a CD that autoruns to fullscreen- We a link to a zip file - We have target new window-- but on some computers the window opens behind the presentation that continues to run. Is their a way to make sure the window opens in the front or to prompt the user to extract the files from this link?
0
 
LVL 23

Expert Comment

by:Zeffer
Comment Utility
technologyservices .. please post that as a new question .. thanks

Z
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now