I’m an Instructional Designer by trade. I specialise in eLearning. I care about the quality of what I do and what people think of the profession, and I want to help others improve. So here’s my first professional blog post, focussing on the learner experience. Don’t make them think. My first boss said this a... Continue Reading →
Adding custom taxonomy title to archive/search pages in WordPress
Needed this for my custom taxonomy for code snippets, when navigating via the tags of my non-regular taxonomy/category terms. <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?> I stuck this in to my 'archive.php' file in my theme (after line 30) <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {... Continue Reading →
Set a SCORM completion in Storyline using javascript
Run this as a 'run JavaScript' in Storyline and you're done-burgers. Storyline 360 (20.03.2018) function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent); } var lmsAPI = findLMSAPI(this); //set score; the first number is the score lmsAPI.SetScore(100, 100, 0); //set status; possible values: "completed","incomplete", "failed", "passed" lmsAPI.SetReachedEnd();... Continue Reading →
Bind smartlook vocalisation in L4D2
Bind "Key" "Vocalize smartlook"
SUMPRODUCT – filtering and totaling data from columns
Pretty handy. I used this for calculating remaining capacity for more work with forecasting project plans. I remember thinking Excel was sooo boring when I was little, and now I'm all, Exhell yea! Each of these spans (arrays) with an '=' or >= etc. is just another filter - so you can cram as many... Continue Reading →
Find duplicates across columns in Excel
=ISNUMBER(MATCH(A1,B$1:B$20,FALSE)) will return TRUE if the name in A1 is in the range B1:B20. Enter it in say C1 and copy down as far as necessary. If you AutoFilter the data for column C = TRUE you will see which rows to delete. src: http://www.mrexcel.com/forum/excel-questions/55208-identify-duplicates-between-2-columns.html
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 →
Line breaks in Captivate
Captivate uses \r instead of \n for line breaks.
adding commas to big number counts in AS3
Just a handy snippet I pinched: function addCommaInNumber (number : Number) : String { var integer : String = "" ; var fraction : String = "" ; var string : String = number.toString(); var array : Array = string.split("."); var regex : RegExp = /(\d+)(\d{3})/; integer = array[0]; while( regex.test(integer) ) { integer =... Continue Reading →
Getting TextField to show latest additions / last lines
Pretty straightforward: debugField.scrollV = debugField.maxScrollV;