Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Open a new window in firefox by clicling on a link inside a flash pop up


Open a new window in firefox by clicling on a link inside a flash pop up

Reply
  #1 (permalink)  
Old 11-13-07, 01:08 AM
oursvince oursvince is offline
Newbie Coder
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Open a new window in firefox by clicling on a link inside a flash pop up

Hello,
I've programmed some radio stations in flash (wimpy) at:
http://www.free-samples-n-loops.com/...-stations.html
The radio players show an image related to the artist, for example a CD cover or photo, which will link the viewer directly to the artist's store or website, without interrupting the stream.
WIth Explorer, the link opens in a new window, but not in firefox where it opens in a new thumbnail. So my question is, do you know a way to open these links in a new window in firefox?
Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-13-07, 01:28 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
what's the code you're using atm?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-13-07, 04:15 PM
oursvince oursvince is offline
Newbie Coder
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for helping.

This is the code to open the pop-up:
javascript Code:
  1. <script language="JavaScript" type="text/JavaScript">
  2.     <!--
  3.     function MM_openBrWindow(theURL,winName,features) { //v2.0
  4.       window.open(theURL,winName,features);
  5.     }
  6.     //-->
  7.     </script>
  8.     <a href="#" onClick="MM_openBrWindow('http://www.100musicradio.com/rock-radio-station.html','popWimpyStretch','resizable=yes,width=618,height=140')"><img src="launch-free-radio-station.jpg" border="0" align="top" alt="free radio stations">
  9.     </a>
And this is the code of the wimpy flash radio player:
HTML Code:
<!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="485" height="140" id="wimpy" align="center">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.100musicradio.com/wimpy/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="000000" />
<param name="flashvars" value="wimpyApp=http://www.100musicradio.com/free-radio-stations/playlists/rock-playlist.xml&wimpySkin=http://www.100musicradio.com/wimpy/skins/skin_100_music_radio.xml&startPlayingOnload=yes&shuffleOnLoad=yes&randomOnLoad=yes&popUpHelp=no&startupLogo=http://www.100musicradio.com/free-radio-stations/playlists/myLogo.jpg&ecomWindow=_blank" />
<embed src="http://www.100musicradio.com/wimpy/wimpy.swf" flashvars="wimpyApp=http://www.100musicradio.com/free-radio-stations/playlists/rock-playlist.xml&wimpySkin=http://www.100musicradio.com/wimpy/skins/skin_100_music_radio.xml&startPlayingOnload=yes&shuffleOnLoad=yes&randomOnLoad=yes&popUpHelp=no&startupLogo=http://www.100musicradio.com/free-radio-stations/playlists/myLogo.jpg&ecomWindow=_blank" loop="false" menu="false" quality="high" width="485" height="140" scale="noscale" salign="lt" name="wimpy" align="center"
bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
<!-- END WIMPY PLAYER CODE -->

Last edited by Nico; 11-13-07 at 05:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-15-07, 04:22 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
what code does the flash application use to open the new window? the code you posted looks alright, can't see any problem there.
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-15-07, 07:19 AM
oursvince oursvince is offline
Newbie Coder
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Not sure as I've done it automaticaly with the 'Customize Wimpy' tool, but I guess it's this line:

flash player Code:
    <param name="flashvars" value="wimpyApp=http://www.100musicradio.com/free-radio-stations/playlists/rock-playlist.xml&wimpySkin=http://www.100musicradio.com/wimpy/skins/skin_100_music_radio.xml&startPlayingOnload=yes&shuffleOnLoad=yes&randomOnLoad=yes&popUpHelp=no&startupLogo=http://www.100musicradio.com/free-radio-stations/playlists/myLogo.jpg&ecomWindow=_blank" />
In fact, the codes work well, both in Firefox and Explorer, I'd just like, when the people click on the image of the radio stations, that it opens a new page, not in an other thumbnail as it does in firefox but in an other window (as it does in explorer)

You can see it at: http://www.free-samples-n-loops.com/...-stations.html

By clicking on the launch player button of one of the radio stations available, it displays an image, then if you click on the image under firefox, you may see that it does not open an other page (what I'd rather like) but an other thumbnail.

Last edited by oursvince; 11-15-07 at 07:27 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 11-16-07, 07:13 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
well, to open a new window instead of a resized one, you just have to set the second parameter of the getURL function in Flash to "blank". I don't know if this is possible via a flashvar cause i've never used Wimpy before (don't even know what it is )
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS script not working properly on IE but working on Firefox!!! sujata_ghosh JavaScript 4 05-21-07 06:46 AM
Opening a link in a window in another window, which is already open. andr345 JavaScript 1 06-15-06 04:25 AM
Xml / Dom / Css Mark_SC.SE JavaScript 0 06-29-05 09:05 AM


All times are GMT -5. The time now is 11:09 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.