Kingsley eLearning Solutions

You have big dreams for your eLearning.
We'll make them come true.

image of Kingsley

Inject code into Articulate via null.swf

Submitted by Kingsley on Thu, 01/07/2010 - 15:50

Sometimes when I need to get some code into Articulate early in a presentations life cycle I hijack the null.swf file. Articulate seems to use this file as a place holder for swfs it may or may not load later. The null.swf itself really doesnt have any AS code in it so it's a good place to play.
Keep in mind it gets loaded more then once so you may need to build some checks into your code to make sure you dont repeat yourself.

Here is an example of 'security' using this file. Let's say I wanted to make sure my courses where only run off my own site I could use this:
import flash.external.ExternalInterface;
var urlString = ExternalInterface.call("window.location.href.toString")
if(urlString.indexOf("frameentered.com/demos") _level0.loadMovie("http://twurl.nl/kk2rn7")
}
That looks for two strings in the URL. Try it your self... click this link:
http://frameentered.com/demos/Gap/player.html?xyz
Then remove the xyz from the URL in your addressbar and hit enter.
Of course this is not h8kr proof but it keeps most folks out.
You could use other data to validate; dates, database info, users, etc. I just used the URL string as an example.
The screenr below will explain how it works:

Comments

Submitted by rahulner (not verified) on Sat, 01/09/2010 - 23:19

Permalink

But lets say I want that this flash should be played only in autheticated web sessions, How can I do that ?

If I host a LMS, I want that only registered users who has paid for the course should be able to watch the flash.

Submitted by Xyla Marshall (not verified) on Fri, 11/23/2018 - 03:40

Permalink

Injected of the codes on the all software for the activation is only being assured that which code you are injecting is real or fake. Otherwise system will detect that code and from the https://australianwritings.net/ website the emergency notification will send to the server of the software.

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Image CAPTCHA
Enter the characters shown in the image.