YUI SWFObject is embedded in the webpage in flash

I am ready to use YUI SWFObject embedded in the webpage in flash, but after downloading the YUI library found that there is a large library of JS, do not know to realize the function of this part of the use to which the JS file, use did not do master, enumerate!!!! Thanks a million

Started by Horace at November 12, 2016 - 10:00 AM

If no other yui3 application or swfobject.js the library.,

YUI3 official document SWF module

Yui3 themselves can synthesize each demand module, but the tool is very complicated, because it involves different browser, or directly from the official yui.js file, the yui3 server automatically handle these

Posted by Berger at November 26, 2016 - 10:07 AM

SWFObject I know, but now the company is YUI, you mean only import yui.js this file to go

Posted by Horace at December 01, 2016 - 10:59 AM

Just look at the Yui3 documentation, SWF module provided by YUI3 has been abandoned, that you and the company is good.

Posted by Berger at December 13, 2016 - 11:57 AM

First of all thank the man upstairs"
So, the project of the company, to use part of the function, before they bought a program application to the project, and the customer is not satisfied, want to change, so only buy program based on modified, found this program to buy YUI is done, so that even if the SWF module in the yui3 has been dropped, but the application before the library can run normally, but abandoned should also be from which version after the beginning of abandoned, the previous version should have this function.

Posted by Horace at December 16, 2016 - 12:19 PM

Although abandoned, but now the official document or the module, and the document, you put the SWF related code is copied on the line.



In fact, the SWF module is basically did not change any code, if you download the YUI3 does not contain the SWF modules, can go to the official website to replicate these related code added to the reference line.

You need to copy the swf.js and swfdetect.js to need to use the Y.SWF page, you can also put these two files into one (the one added to the end of a line, in random order),

// For reference only, because you do not know is how to load the yui.js file
<head>
<html>
<head>
<script type="text/javascript" src="path/yui.js"></script>
<script type="text/javascript" src="path/swf.js"></script>
<script type="text/javascript" src="path/swfdetect.js"></script>
</head>
<body>
<div id="header"></div>
<div id="content">
<div id="swfdemo"></div>
</div>
<div id="footer"></div>
<script type="text/javascript">
YUI().use('swf',function(Y){
  new Y.SWF("#swfdemo", "path/demo.swf");
  // If you just insert the SWF, do not call the AS. That's enough.
  // And Flash communication need to write AS3 code
}); 
</script>
</body>
</html>

Posted by Berger at December 23, 2016 - 12:30 PM

You may need to modify the swf.js and swfdetect.js code last row version number 3.xx.x, digital

Posted by Berger at January 07, 2017 - 12:41 PM