Combining Papervision3D and AS3DMod library, I was experimenting if it is possible to create a curvy display like what Top Sites in Safari was doing. Performance wise was mediocre, as I pump up the segments in Plane, the framerate drops like crazy. I will release the code source when I clean it up. Inside’s a bit messy now.
Archive for the ‘actionscript’ Category
[Tips] AS3 User location/country detector based on IP
I have wrote a script that automates the process of your project in detecting the user location based on their current IP address via maxmind’s Javascript API. What you will need to do is to
- See the demo below
- Get the source code
- Read the comment inside the FLA and start using it
What is this?
A simplified script that detects the visitor’s country and other details such as latitude/longtitude based on their current IP address.
Why is this necessary?
I felt that there is a need sometimes for us to automate the language selection or region selection process in some major big site that helps in cutting down user frustration through multiple clicks before going into the site. I figured this could be useful.
How to use it?
What you will need to do is to wait until the loading listener is completed before using it. Sample usage :
var userCountry:String = getCountryName();
Where to get the files?
View the demo (SWF)
[Flash] Chopping 3D Meshes in Papervision
So actually it’s kind of possible to chop it like watermelon. Did some experimentation @ wonderfl.net. The codes are shared under MIT license. Enjoy using it. Explore possibilities.
[Tips] How to dynamically create tilt shift effect with Flash (AS3)

If you have no idea what is Tilt-Shift. Probably you can have a short read on it at wikipedia. But perhaps to some, when done right, can produce really unexpected and sweet result (look at UNIQLO CALENDER). While to other, it’s being done to death. Of course, this is merely a quick tidbits on how you can “almost” achieve the effect without even touching Photoshop or other image editing tool, but with just few line of Actionscript. And yes, designers can do it too!
Demo : See it in action!
Download : The Source file. (Flash CS3, AS3)
[Tips] How to convert Degress to Radians :)
function radians(i:int):Number
{
return Math.PI/180*i;
}
Pretty neat formula that you can reuse in absolutely everywhere. Anyway, this is applicable in Actionscript 3.0.
