Refer to an object on the Captivate stage

using widgetfactory, you can access captivate items on the stage - and if you can do that, you can do ANYTHING with ANYTHING - very exciting! override protected function enterRuntime():void { var mc:MovieClip = getSlideObjectByName("item"); mc.addEventListener(Event.ENTER_FRAME, function() {mc.rotation++}); } src:http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/

Captivate 6/7 recording size for 1024×768

For a popup window, with resizing enabled but no scrolling etc., popping up in a windows XP resolution of 1024x768, maximum recording size is: 1012x636. ------------ NEWSFLASH! 28.11.2014 with updated browsers forcing an address bar and the rest, new size: 1009x632 you can pop up the simulations with this js: window.open('try it.htm','simulation','scrollbars=0,width=1005,height=658,toolbar=0,menubar=0,location=0,status=0,resizeable=1'); The size is... Continue Reading →

Preloader in AS2

This was suprisingly annoying, AS2 is out of control. As usual Kirupa came through in the end. Here's a snippet: this.createEmptyMovieClip("container", "100"); my_mc = new MovieClipLoader(); preload = new Object(); my_mc.addListener(preload); preload.onLoadStart = function(targetMC) { trace("started loading "+targetMC); container._visible = false; bar._visible = true; border._visible = true; pText._visible = true; }; preload.onLoadProgress = function(targetMC, lBytes,... Continue Reading →

Adding data to divs with jQuery

I am only beginning to experiment with JS with more depth, and have discovered jQuery has a data function which lets you store data against individual divs. Really useful for some bits and peices! $("#box0").data("uniqueID", 0); $("#box1").data("uniqueID", 1); Then to call it, $("#box0").click(function() { alert($(this).data("uniqueID")); I'll find out how to loop that through a set... Continue Reading →

Value from previous sheet in Excel

I changed this to not give an error if it finds nothing, but to produce 0. Used for accumulating overtime, so very important you see. Function PrevSheet(Range As Range) Application.Volatile PrevSheet = Application.Caller.Parent.Index If PrevSheet = 1 Then PrevSheet = 0 ElseIf Sheets(PrevSheet - 1).Type <> -4167 Then PrevSheet = CVErr(xlErrNA) Else PrevSheet = Sheets(PrevSheet... Continue Reading →

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑