This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > December 2003 > ! HELP : sizing my pop-up window : HELP !
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
! HELP : sizing my pop-up window : HELP !
|
|
| Dysenterycal182 webforumsuser@macromedia.com 2003-12-21, 11:40 pm |
| Hey,
I am currently making my fourth website, however this is my first all Flash site. I have created my index page as an entry page and the main page opens in a new pop-up window. I want the pop-up window to be the exact size as the Flash document though.
So i want my main page to be 550 x 400 pixels. How do i go about doing this? I have seen it done before and i have read a similar tutorial but it was poorly written.
If anyone at all can help? Muchly appreciated!
If anyone would also like the actual files involved let me know and i'd be more than glad to let you have a go!
Take a look at the site so far....
http://www.soam.tk
Cal.
......I am using Flash MX and also have Dreamweaver MX if i need HTML editing....
| |
|
| try this. i hope it works for you.
Part 1 -- FLASH code
In actions choose the GET URL function and paste in following code:
java script:openNewWindow('somePage.html','thewin','height=100,width=250,tool
bar=no,scrollbars=yes');
Where somePage.html is the filename or URL of the page or site you wish to
pop up.
Note: The above code is spread over two lines for tutorial neatness only.
In Flash it need be on only one line.
Part 2 ---HTML code
Paste this code exactly as it appears below, between the HEAD tags in the
HTML source.
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
Add the following parameter inside the <EMBED> tag in your HTML page which
houses the SWF file:
swLiveConnect=true NAME=yourmovie.swf
"Dysenterycal182" <webforumsuser@macromedia.com> wrote in message
news:bs5e0k$235$1@forums.macromedia.com...quote:
> Hey,
>
> I am currently making my fourth website, however this is my first all
Flash site. I have created my index page as an entry page and the main page
opens in a new pop-up window. I want the pop-up window to be the exact size
as the Flash document though.quote:
>
> So i want my main page to be 550 x 400 pixels. How do i go about doing
this? I have seen it done before and i have read a similar tutorial but it
was poorly written.quote:
>
> If anyone at all can help? Muchly appreciated!
> If anyone would also like the actual files involved let me know and i'd be
more than glad to let you have a go!quote:
>
> Take a look at the site so far....
> http://www.soam.tk
>
> Cal.
>
>
> .....I am using Flash MX and also have Dreamweaver MX if i need HTML
editing....quote:
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|