Avoid manic button press

July 1st, 2009

I had to create a function where by I could avoid the button being pressed to quickly as some clicks where not being registered.


Some people will click a button as quickly as they can to see if they can break it lol.

  1. var reEnable:Number;
  2. button_mc.onPress = function() {
  3.  trace("the button was pressed");
  4.  disableButton(this);
  5. };
  6. function disableButton(b:MovieClip):Void {
  7.  b.enabled = false;
  8.  clearInterval(reEnable);
  9.  reEnable = setInterval(this, "reEnableButton", 1000, b);
  10. }
  11. function reEnableButton(b:MovieClip):Void {
  12.  b.enabled = true;
  13.  clearInterval(reEnable);
  14. }
Download Disable button press Version 1
Bookmark and Share

Google flash maps api guestbook

June 18th, 2009

When I get the time I am trying to learn what I can of AS3. Over the past couple of months I’ve been messing around with the google flash maps api.

Initially I was a bit overwhelmed with it but I have stuck with it and built a simple guestbook system that use’s mysql+php on the back end.

Features include:

  • Custom controls
  • Custom icons
  • Custom markers
  • Custom infoWindow
  • Email notification of someone signing the guestbook
  • Bad word filter
  • http check on submitted url’s
  • Custom right click menu
  • Fullscreen toggle

Newly added features :22/05/09

  • Quick zoom //  Zoom in on point
  • Map Settings panel
  • Enable/Disable mouseWheel scroll
  • Enabled/Disable map mouse click zoom
  • Hide/Show map types panel
  • Hide/Show map zoom panel

And to tie it off I have also added a simple admin feature that allows use to edit/delete submissions to the guestbook.
You can login to the admin system by pressing CTRL+SHIFT this will bring up the login window. username:admin, password:admin

I just have a couple of things I want to get done before I move onto my next map experiment. Please feel free to let me know your comments.

View/sign the simple guestbook system

Bookmark and Share

Missing ALT tooltips in Firefox

June 12th, 2009

Forgive me if this is old news. So here i am working on html version of dopeawards.com So most of it is done and we’re just run through everything is set to make the most of Search engine optimization (SEO) and noticed that all alt tags on out images are not working in firefox but are in IE.
Not sure if this was common knowledge in the html circle with me being a flash developer ;) .
It turns out IE should not be displaying alt messages in tooltips, that’s what the title attribute is for.
Don’t stop using the alt attribute, that’s required for accessibility. So your best bet is to include both an alt attribute, and a title attribute in your img tags if you want a tooltip.

An easy quick fix :)

Bookmark and Share

Country location flag selector (AS3)

June 12th, 2009

New Country location flag (AS3) selector added to flashden 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)

Bookmark and Share

Country location flag selector (AS2)

May 28th, 2009

New Country location flag selector added to flashden files

Country location flag selector (AS2)

flag_selector

I am currently putting this into a project i am working on and thought others might find it useful.
All 244 locations/flags 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 8 Flash File
flags.xml file
244 png flag images
Click here to purchase the Country location flag selector (AS2)

Bookmark and Share