Compare 2 arrays with AS 3

The following function compares the values ​​of two arrays and returns another array with different values​​.

private function checkArrays(array1:Array,array2:Array):Array {
    var array3:Array=new Array();
    var length1:int=array1.length;
    var none:Boolean=false;

    for(var i:int=0;i < length1;i++) {
        var length2:int=array2.length;

        for(var j:int=0;j < length2;j++) {
            if(String(array1[i])==String(array2[j])) {
                none=false;
                break;
            }
            else {
                none=true;
            }
        }
        if(none) {
            array3.push(array1[i])
            none=false;
        }
    }
    return array3;
}


Getting Flash Working on Android, Jelly Bean

images

Some popular video providers have not transitioned to HTML5, so if you still want Flash on your phone/tablet, there are ways around it — just keep in mind that this is not recommended by Adobe and that the experience with the plugin. Also note that downloading the Flash Player apk file from unofficial sources could open the gates to malware on your phone or tablet, so it’s not recommended to get the file from third-party sources.

The best source to download a working official version of Flash player is from Adobe’s own site. Download the latest version (Flash Player 11.1.for Android 4.0 (11.1.115.36)) Once you downloaded the apk file, you need to transfer it to you device.  A great free application that will help is “App Installer” you can get this from the Google Play store. Make sure you download this app!

Using “App Installer” find the flash player apk file, open the player  It will most likely say unknown sources.  Click on settings and check the unknown sources box, click on the flash player again and install it.

Now that Flash Player is installed, go to your browser (Not Chrome), and change some settings. Go to advanced, and make sure “enable plugin is always on!”

I did this myself on my galaxy S III and my Galaxy Note 10.1 Tablet.

Have Fun!

41hR2NAaK2L

AS3 Drawing Pad Awesomeness

This is another project that I’ve been putting off. It really should have some kind of bitmap merging/drawing going on to allow for a greater number of shapes, but I think it would work just fine for anything a guest would want to spend time on. Just don’t try to recreate the Sistine Chapel ceiling and you’ll be fine 🙂

[kml_flashembed publishmethod=”static” fversion=”8.0.0″ movie=”http://johnbarrett.net/wp-content/uploads/2013/01/DrawingPad.swf” width=”400″ height=”300″ targetclass=”flashmovie”]

Get Adobe Flash player

[/kml_flashembed]