Archive for the ‘Experiment’ Category

[Experiment] Simulation of Apple Safari’s Top Sites in Flash!

topsites
Top Sites Simulation in Flash

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.

[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  :D

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?

Download the source file

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.

[Random] Climb Climb Climb

dsc_09651
This little friend was found when I was shopping with Canny on one fine day along the Pasar Malam for some fresh vegetable. Nom nom nom.

[Tips] Using PHPlist with Flash Actionscript 3.0

Will add more description on this post soon, enjoy for now. PHPlist is a powerful mailing list management tool, however the downturn came when there’s very little support in porting this to other type of output i.e. Flash. Thanks to the guys from phplist forums.

function submitRegister():void {
	var fieldName:String					= inputName.text; // your text field on the stage
	var fieldEmail:String					= inputEmail.text;// your text field on the stage	

	var formVariables:URLVariables			= new URLVariables();
	formVariables.attribute1				= fieldName; // the attributes are according to the form's input field

	// anything below is a must to have, do not remove it, but you can modify it //
	formVariables.name 						= "subscribeform";
	formVariables.subscribe 				= "Subscribe";
	formVariables.email 					= fieldEmail;
	formVariables.emailconfirm 				= fieldEmail;
	formVariables.htmlemail					= 1;
	formVariables["list[1]"]				= "signup";
	formVariables["listname[1]"]			= "Your MailingList Name";

	var formRequest:URLRequest				= new URLRequest();
	formRequest.url 						= "http://www.yourwebsite.com/lists/?p=subscribe&id=1"; // url of where your form/subscribe page resides
	formRequest.method						= URLRequestMethod.POST;
	formRequest.data 						= formVariables;

	var formLoader:URLLoader				= new URLLoader();
	formLoader.addEventListener(Event.COMPLETE, registerComplete);
	formLoader.addEventListener(IOErrorEvent.IO_ERROR, registerError);
	formLoader.load(formRequest);
}
function registerComplete(e:Event):void {
}
function registerError(e:IOErrorEvent):void {
}

Comments

  • EMBEDDED82

    Hi, really interesting experiment. I'm searching something ([Experiment] Simulation of Apple Safari’s Top Sites in Flash!)

  • manmeng

    @firdaus : you’re most welcome bro, share your pics yeah, ([Travel] Broga Hill)

  • Alpha Ace

    very helpful info you got here, especially the map. i wil ([Travel] Broga Hill)

  • nash

    hey..thanx so much 4 da info...especially da map..i'm going ([Travel] Broga Hill)

  • firdaus harry

    wow...that place is really amazing.i'm planning to go there ([Travel] Broga Hill)

  • manmeng

    Hey there, Enjoy your trip there and do take extra precaut ([Travel] Broga Hill)

  • Timo K

    Hi all..I m going to Broga Hill tomorrow, to catch the 1st s ([Travel] Broga Hill)

Category

Archives

Links

Admin