Posts Tagged ‘AS2 to AS3’

3 Contact forms, 3 Sizes AS2/AS3

Wednesday, July 8th, 2009

With the Simple flash AS3 contact form recently seeing over 5000 downloads I’ve decided to add a new one.

Bit better looking than the last with help file and all code commented :)

Get Adobe Flash player

Included are:

  • contactForm.fla (Flash 8 )/contactForm.fla (Flash 9 )
  • caurina tweener classes AS2/caurina tweener classes AS3
  • contact.php
  • kharon4a_mini font
  • index.html
  • contactForm.swf
  • AC_RunActiveContent.js

Features:

  • Three different sized forms
  • All fields validation
  • Email validation
  • No reference to root. Simply drag the required form on to your project from the library
  • Courtesy thank you email sent to the form submitter, can be turned off
  • IP address capture and display link to ip look up tools in sent email
  • Nicely formatted html email. Can be set to send html or none html formatted email
  • Only 3 variables to be set in the php script and your good to go

Font(s) used:

  • kharon4a_mini

http://www.orgdot.com/aliasfonts/

How to modify the file:

Instruction 1: Open the contact.php script and go to line 11 and add your email, sitename and your name
php vars to change in php script

Once that is done you can upload the script to your server

Instruction 2: There are 3 other options found between line 16-21. $sendHtml, $sendCourtesy and $fColour

Additional php vars option that can be changed

These option can be left as they are.

Instruction 3: Simply drag ‘n’ drop the required form mc from the library onto your project. Also make sure to copy over the caurina tweener classes to your project folder and the contact.php script.

Movieclips that should be dragged onto your projects

The php script has been tested on a linux based server and windows dedicated server with php support.

Country location flag selector (AS3)

Friday, June 12th, 2009

New Country location flag (AS3) selector added to Activeden files

Country location flag selector (AS3)

flag_selector

All 244 locations/flags/country images follow the ISO 3166 -1 alpha-2 country codes.
All flag data is stored in an xml file. Easily customizable add and remove locations as you like.
No reference to root so can easily be added to existing forms/applications. Single variable (flagStr) is setup for form/application verification if needed.

Included are:
Flash 9 Flash File
flags.xml file
244 png flag images
xmlLoader.as
Click here to purchase the Country location flag selector (AS3)

Flash preloader, from AS2 to AS3

Thursday, February 7th, 2008

Your basic AS2 preloader:

  1. var bytetotal = this.getBytesTotal();
  2. this.onEnterFrame = function() {
  3.      var byteload = this.getBytesLoaded();
  4.      var ready = Math.round((byteload/bytetotal)*100);
  5.      someMc._xscale = ready;
  6.      if (ready == 100) {
  7.           delete this.onEnterFrame;
  8.           gotoAndPlay("2");
  9.      }
  10. };

Now in AS3

  1. this.addEventListener("enterFrame",onEnterFrame);
  2. function onEnterFrame(e:Event) {
  3. someMc.scaleX = (this.loaderInfo.bytesLoaded/this.loaderInfo.bytesTotal)*100;
  4. if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal) {
  5. gotoAndPlay(2);
  6. this.removeEventListener("enterFrame", onEnterFrame);
  7. }
  8. }

The same rules still apply to get your preloader actually starting at 0%-100%