Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

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 ASP Free Forums Sponsor:
  #1  
Old August 16th, 2005, 01:11 PM
gymanual gymanual is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 34 gymanual User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 55 m 56 sec
Reputation Power: 5
Open a swf file in new window

Hello, could somebody tell me how to open a swf file in new window. I want to click in a link and open in a new window a flash movie (.swf) but the window to keep the size acording to the sizes of the .swf file

Thanks a lot.

Reply With Quote
  #2  
Old August 17th, 2005, 08:49 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 9
I've set my browser to prevent web-pages from opening things in new windows. IMO, the user should always be in control. So why do you want an SWF to appear in a new window?

Anyway, you'll want to do this:

Code:
<a href="path/to/your.swf" title="View the SWF, this link opens in a new window" target="_blank">View SWF</a>(opens in a new window) 


Note that this code is NOT valid XHTML.

Reply With Quote
  #3  
Old August 17th, 2005, 08:50 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 9
Quote:
Originally Posted by gymanual
But the window to keep the size acording to the sizes of the .swf file


Ohhhh, that requires the use of a bit of Javascript then

Look up the use of the Open method for the Window object. There's a number of string, comma-delimited parameters you can specify to set the dimensions of the new window.

...but as of before, it won't work on my browser, because I'm in control.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > Open a swf file in new window


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 1 hosted by Hostway
Stay green...Green IT