Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 23rd, 2004, 12:16 AM
w2kask w2kask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 114 w2kask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 30 m 17 sec
Reputation Power: 5
open a smaller windows on flash hyperlink button

Hi.. Dear all, I know how to open a HTML page from a flash hyperlink button by assigning the action script to be

on (release) {
getURL("new.html", "_blank");
}

But as my new.html only contain the new.swf which is about 290X620 size, so I want to open a smaller window with no toolbar. In HTML it is done in the following way in the main site, how about in flash??

<a href="#" onClick="window.open('new.html','_blank','height=290,width=620');return false">new html</a>

Reply With Quote
  #2  
Old February 23rd, 2004, 12:30 AM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
I like to call javascript with my actionscript to manipulte windows:

Code:
getURL("javascript:newWindow()");

(delete the _ above, this forum is adding them for some reason!)

then in the head of your html use this script:
<SCRIPT LANGUAGE="JavaScript">
function newWindow() {
day = new Date();
id = day.getTime();
URL = "http://new.html";
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=290,left = 162,top = 134');");
}
</script>

this is an example you may want to change the code and for specifics please post at the javascript, html forum
__________________
No problem is so complex that it cannot be resolved with the proper use of explosives.

Last edited by rynoe : February 23rd, 2004 at 12:34 AM.

Reply With Quote
  #3  
Old February 23rd, 2004, 01:09 AM
w2kask w2kask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 114 w2kask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 30 m 17 sec
Reputation Power: 5
thank you very much.. it works!!!!!!!! :P

Reply With Quote
  #4  
Old February 23rd, 2004, 01:20 AM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
Of course it works! Post the site let us see it! Plus it will drive hits to your site and it will help others with the same issue.

Last edited by rynoe : February 23rd, 2004 at 01:24 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > open a smaller windows on flash hyperlink button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT