Google Answers Logo
View Question
 
Q: Flash MX Pop up Window ( No Answer,   3 Comments )
Question  
Subject: Flash MX Pop up Window
Category: Computers
Asked by: sinianjoro-ga
List Price: $4.00
Posted: 15 Sep 2004 16:25 PDT
Expires: 15 Oct 2004 16:25 PDT
Question ID: 401758
I am desinging my online portfolio in Flash (MX). There are 3
categories, Print, Web, and Resume. Under the "Web" section, for a
client I created a
.swf movie, size 375x315.

So, to show this in motion, versus, a static storyboard, I have a
button that says, "click to view in flash".  So I want a separate
window to come up that show this movie in the exact size of 375x315.

I've done a quick research last night and it seems like this is the
most common question about Flash but too many different solutions out
there for me to narrow it down.

Thanks for you help.
-Alex
Answer  
There is no answer at this time.

Comments  
Subject: Re: Flash MX Pop up Window
From: sethandcheese-ga on 17 Sep 2004 15:36 PDT
 
In the Button Actions menu in Flash:
on (release) {
getURL("javascript:spawnWindow('http://myurl.com','mywindownamehere','width=375,height=315,screenX=100,screenY=100,top=100,left=100');");
}

Change the height and width to suit.

In your HTML document's header:
<script language="JavaScript" type="text/javascript">                
<!-- 
function spawnWindow(url,name,features) { 
    window.open(url,name,features);
} 
//--> 
</script>

And you're good to go!

--Seth
Subject: Re: Flash MX Pop up Window
From: sinianjoro-ga on 12 Oct 2004 17:37 PDT
 
HiSeth,

Sorry I didn't get a chance to do this until now.

I'm a bit lost with your instructions, perhaps you can clarify.

Where do I add,(see below) I mean which document and where is Button
Action? In the Actions window, there are Actions, Operator, Functions,
Constants, etc what action do I add?

**************

In the Button Actions menu in Flash:
on (release) {
getURL("javascript:spawnWindow('http://myurl.com','mywindownamehere','width=375,height=315,screenX=100,screenY=100,top=100,left=100');");
}

*********************
 
Thanks.
Subject: Re: Flash MX Pop up Window
From: sinianjoro-ga on 13 Oct 2004 16:03 PDT
 
Seth,

Ignore the previous comment. I know what you mean. So I did add the
action to the button. In the aciton where you say
"'...mywindownamehere',..." Is this where I put in the file name that
will open in the pop up window, for example "filename.swf"?

Also, I added (below) in the button's html doc. It doesn't open an pop
up window with my swf movie playing. So my question is, where do I add
the name of my swf file that is opening in the pop up window. Do I
replace any of these names "...(url,name,features)..."

In your HTML document's header:
<script language="JavaScript" type="text/javascript">                
<!-- 
function spawnWindow(url,name,features) { 
    window.open(url,name,features);
} 
//--> 
</script>

thanks.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy