Tag Archives: tip
Dynamic Sound – Part 1
I spent the last couple weeks working on a project involving sound. Unfortunatly I can’t show it yet, but my goal was to play a bunch of musical notes at the same time in a especific interval. The first thing … Continue reading
CustomCursor advanced
OK, let’s begin talking about Design Patterns. The best thing of OOP, is the capability to create something in way to reuse it in another situation by defining some patterns to follow. Basicly this is Design Patterns. There are several … Continue reading
Stage.quality vs performance
One of the worst problem that any developer have to face is the performance of his applications. There are many factor contributing to a bad performance, one of them is graphic rendering. Depending of what you’re doing, there’s a single … Continue reading
Dynamic Custom Event
Custom Events has become very useful when you’re building more complex applications. You create them for especific cases and usualy they came with especific parameters. Let’s say you create a custom event for a video player class and you use … Continue reading
Papervision3D – Max3DS Parser bug
Since papervision added the Max3DS parser I’ve been working with it instead of DAE. Although there’s a bug that I noticed when I imported an asymmetric model to my scene. It appear to be mirrored at the X axis. I … Continue reading
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
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