My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 488: SWF/Flash file
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by todd.pan...@gmail.com, Jun 18, 2010
I am having a problem trying to open an swf file. I have modified the YouTube option to check for a specific file. It works, but now all the windows open up the 720x426 size. It the link is a html/text it will not load but it will load an image???

Here is the code:

$('a.nyroModal').nyroModal({bgColor: '#000000'});                
 $(function() {
  $.nyroModalSettings({
    processHandler: function(settings) {
      var from = settings.from;
      if (from && from.href && from.href.indexOf('http://www.youtube.com/watch?v=') == 0) {
        $.nyroModalSettings({
          type: 'swf',
          height: 385,
          width: 640,
          url: from.href.replace(new RegExp("watch\\?v=", "i"), 'v/')
        });
      }
      if (from && from.href && from.href.indexOf('/video/theFile.swf')) {
        $.nyroModalSettings({
          type: 'swf',
          height: 426,
          width: 720
        });
      }    
    }
  });
});


Versions:
jquery.nyroModal-1.5.5.js
jquery-1.3.2.js
Dec 25, 2010
#1 nook...@gmail.com
A better way to do this is like this:

$(function() {
  $('#logo').nyroModal({
   type: 'swf',
   width: 650,
   height: 500,
 });
});

$(function() {
  $('#image_zoom').nyroModal({
   type: 'swf',
   width: 800,
   height: 300,
  });
});

And the code for your links would be:

<a href="http://yourdomain.com/flash/logo.swf" id="logo">Text or image 1</a>
	
<br />
	
<a href="http://yourdomain.com/flash/Image-Zoom.swf" id="image_zoom">Text or image 2</a>

Powered by Google Project Hosting