DIY fix for Broken gamepads analog stick

Continue reading “DIY fix for Broken gamepads analog stick”

DIY fix for Broken gamepads analog stick

Finally fixed the Gamepad.. Had discovered it was working with my android tablet, so decided to resurrect it.
Basically the right analog stick had broken and was just sliding around doing nothing..

so i flipped it over and found a bunch of screws.. philips head.. scrounged around a and found an old screwdriver that fit.. and opened it up..

found that the circuit board was also screwed onto the top of the gamepad.. and to get to the analog sticks i'd have to remove it. After removing it and gently extracting the two sticks i found the problem

one of the shafts had broken 😦 and could no longer fit on the controller's peg/pin

Now i could use some super glue.. but i didn't want to take the chance that it would come apart again.. it was a pain taking out all those screws!
so decided to go with good ol M-Seal

Most people use this for plumbing or art projects and don't think its good for anything else..
I beg to differ. Its a good adhesive, and once hardened is pretty sturdy.

and so…
i used it to not just stick the broken pieces together, but also reinforced the shafts on both the joysticks.. just in case(i really don't want to have to unscrew all those tiny screws again).

the Epoxy compound starts to harden immediately, but will only be rock solid in 30min at room temp.

so while i waited i kicked back and watched a bit of tv.

after 30 min i put it all back together and started playing 😆

only to realise a few seconds later that the right stick.. though it works fine mechanically..
is not translating correctly to the tablet.. :ko:

it was giving me
left and right = up and down
up and down = left and right

don't think theres anyway i can fix that.. without desoldering, rotating and then resoldering the damn thing.. not to mention all those screws again :faint:

Input Textbox with default text in flash forms

Continue reading “Input Textbox with default text in flash forms”

Input Textbox with default text in flash forms

Figured this out today(with help from Anoop and Bala),
Documenting it for future reference(coz i never remember this stuff).

How to make an Input Textbox with default text(in flash forms)
Simply creating an input text field in flash allows the user to type in stuff.. however if you wan't to add "default text" that will be visible until the visitor starts typing.. thats a different story..

here's how to do it:

1) Create your form artwork

2) Create a text field. Type in the text you want as the "default text".

make it an "input text" field in the properties panel
also remember to embed whatever non system font you plan on using.

3) Give the text field an instance name

4) Copy this code to an empty frame

txt_email.onSetFocus = function ()
if(this.text == "Type Your Name Here")
this.text = "";
txt_email.onKillFocus = function ()
if (this.text == "")
this.text = "Type Your Name Here";
} // end if

make sure your default text is exactly the same in the code(two locations) as well as in the text field

thats it.. should work now.
for more advanced tutorials(about the rest of the form, try this awesome site. this was just for my own reference in future projects.

ShadowGun Exansion Pack

Continue reading “ShadowGun Exansion Pack”

Gamepad with Android Tab

Just found out that my old off-brand gamepad works with my acer tab..

Problem is while wiping it clean(hadn’t used it in years) i broke one of the analog sticks 😦
will have to DIY a fix later