AS1 / AS2 In the action of your flash button, you have to execute this code: getURL(“javascript:$.nyroModalManual({url:’YOUR URL’});”); AS3 In the action of your flash button, you have to execute this code: ExternalInterface.call(“$.nyroModalManual({url:’YOUR URL’})”); http://nyromodal.nyrodev.com/wiki/index.php/Open_a_modal_window_from_a_Flash_movie
Category Archives: Programming
Javascript Open Flash Object
<script src=”/commons/js/flashobject.js” type=”text/javascript”></script> <script src=”/commons/js/FlashDetect.js” type=”text/javascript”></script> <script type=”text/javascript”>// <![CDATA[ // Globals // Major version of Flash required var requiredMajorVersion = 8; // Minor version of Flash required var requiredMinorVersion = 0; // Minor version of Flash required var requiredRevision = 0; function openVideoPopUp() { document.getElementById(“showflash”).style.display=””; var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); // Check to see …
Flash AS2 XML to Array
var xmlDoc:XML = new XML(); System.useCodepage = true; xmlDoc.ignoreWhite = true; xmlDoc.onLoad = function(ok:Boolean) { if (ok) { doMenu(this); } else { trace(“XML did not load”); } }; xmlDoc.load(“myImages.xml”); function doMenu(xml:XML) { var num:Number = xml.firstChild.childNodes.length; pics = new Array(); for (var i = 0; i < num; i++) { pics[i] = xml.firstChild.childNodes[i].attributes.image; } trace(pics); …
Embed custom fonts
http://jonraasch.com/blog/embedding-custom-fonts
Tweener and “256 levels of recursion were exceeded in one action list”
Tweeners’ great, but I came across one little problem the other day: when I tried to remove an externally loaded swf from the stage while it was mid-animation, Tweener could bring the whole Flash movie to a halt with the error ‘256 levels of recursion were exceeded in one action list’. Obviously that’s bad – …
Continue reading “Tweener and “256 levels of recursion were exceeded in one action list””
Preloading External Images in Flash Using the MovieClipLoader Class
Preloading External Images in Flash Using the MovieClipLoader Class The MovieClipLoader class is an ActionScript tool for loading external content such as images and Flash movies into another Flash movie. Other ways for doing this same thing is the Loader Component and the old .loadMovie() method. The MovieClipLoader class is better than those other two …
Continue reading “Preloading External Images in Flash Using the MovieClipLoader Class”