Category Archives: as3
DataLib
During my last jobs I wrote a queue loader class that stores all loaded files for future requests. DataLib Overview: -Static Since it’s a static class, any loaded file can be used from any parto of the app, even from … Continue reading
PaperPlane Test
Early experiments of nothing that could become something. Use the arrows to control the plane Speed up pressing space Demo Source
Loader issue
Last friday I was checking Flash Bookmarks and I noticed a question about Loader. While ago I needed to load a file using a Loader and then add it to the stage. However it raised an error. ArgumentError: Error #2025 … Continue reading
Google code
I’ve decided to create a google code with my classes, there’s no docs yet but there’s some usage examples So far there’s 4 libs that I use in my works: -DataLib Loader class (example) usign queue -CromelessPlayer Video class with … Continue reading
Soundcard check
To check if the soundcard is available, test if the SoundChannel class is not null var sound:Sound = new Sound(); var channel:SoundChannel = sound.play(); if(channel != null){ trace("Soundcard available"); }else{ trace("Soundcard not available"); }
numberLoop
Here is a method that I use a lot when I need to loop a length of any kind trace(numberLoop(103754, 3)); //2 trace(numberLoop(686.9384, 17.53)); //3.268399999999957 trace(numberLoop(Math.PI*13/6, Math.PI*2)); //0.5235987755982991 rad – radToDegree == 0.5235987755982991*180/Math.PI -> 30.000000000000014º trace(numberLoop(-2187.4, 2)); … Continue reading