If you want to set the position of horizontal scroll position inside TextField, you can use TextField.scrollH.
Let’s say I am typing in the input TextField and I typed beyond the width of TextField. You will see the last characters visible you typed. Now due to some other event, say user clicks on other than this [...]
Archive for the ‘ActionScript’ Category
17 Apr
Set TextField horizontal scroll to initial position
8 Apr
Built-In Context Menu Items on Flash TextField
Is there any way to hide default context menu items on Flash TextField? Some one will try to answer with ContextMenu.hideBuiltInItems() function, but this function does not really work with Flash TextField. It does not hide the built in items.
So following code does work but not as expected ::
var myContextMenu:ContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var txt:TextField = [...]
17 Aug
Flash: TextField.htmlText and Automatic Line Breaks
Problem :: When you deal with TextField.htmlText don’t append any html strings directly to htmlText property of TextField. Because the TextField appends “<br>” tag automatically before it appends any html string to htmlText property, it will set your string automatically in next line instead of the current line. This mistake is done to save memory [...]
17 Aug
FlashDevelop and SVN Integration
Though FlashDevelop guys are working on integrating FlashDevelop with SVN, we can go with this handy tool.
To integrate SVN with FlashDevelop, you should have installed one of the SVN clients (say tortoiseSVN) on your machine.
FlashDevelop can be integrated with SVN using following steps ::
Step 1:
Create a file named build.bat in the directory containing your FlashDevelop [...]
Recent Comments