To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-21-2006, 04:55 PM   #1
rzea
Web Designer
 
Join Date: Feb 2001
Location: Bradford, OH
Posts: 101
[F8] loadMovie and javascript seem not to like each other :(

Hello,

I have an animation being called with loadMovie by the "main container", and this animation has a button that should call an external HTML file in a new window with specific propierties.

You can see the development website here: http://gablessquare.com/dev/

Click on 'Our Location' and then you'll see the button 'Click here to see the interactive map'; THIS button has to open this HTML: http://gablessquare.com/dev/map.htm but is not working.

I've tried a variety of codes, like:

1.
Code:
on (release) {
	getURL("JavaScript:popup();");
}
And on the <head> of the HTML I put:

Code:
function popup() {
window.open('map.htm','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=760,height=450,left=100,top=100');
}
****

Another approach was this one:

2.
Code:
on (release) {
getURL('javascript:window.open("map.html","window","width=600,height=450");void(0);')
}
****

Another was this one:

3.
Code:
on (release) {
	getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n");
}
And in the HTML right before the <head> tag I put:

Code:
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('http://www.google.com','toolbar=no,location=no,status=no,menubar=yes,
scrollbars=no,resizable=no,width=100,height=100,left=0,top=0');
}
</script>
And then right after the <body> tag I put:

Code:
<A HREF=JavaScript:popup();></A>

-------

EDIT -
I think I got it working in some way but I need to pop up a customized window size.

EDIT 2 -
Ok, I got it working.

The solution was to use the code:

Code:
on (release) {
	getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n");
}
AAAAAAAAAAAND upload the frigging file to the server , for some reason it doesn't work locally.

Thanks guys anyway.
...
__________________
Ricardo Zea
Web Designer
www.ricardozea.net
(X)HTML+CSS W3schools.com Certified

Last edited by rzea; 09-21-2006 at 05:15 PM.
rzea is offline   Reply With Quote
Old 11-02-2006, 09:57 AM   #2
granvecchio
Junior Member
 
Join Date: Aug 2002
Posts: 21
Hi
I am using something like
on (release) {
getURL("javascript:NewWindow=window.open('page_con taining_.aspx?','newWin','width=657,height=250,lef t=10 0,top=100,screenX=100,screenY=100');NewWindow.focu s();void(0);");
}


But I need to add a variable after the URL example:
page_containing_.aspx?, ,points
Where points is a variable, but it wont take it when appears in the new window´s URL, it shows "points"
__________________
Ale
granvecchio is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:25 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.