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 489: 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
Jul 9, 2010
#1 todd.pan...@gmail.com
Anyone??????

Powered by Google Project Hosting