Actionscript 3 :: Flash TLFTextField Doesn't Invoke Soft Keyboard On IOS?
Apr 21, 2011
I'm compiling a Flash project to an iPhone IPA file from the command line. I have an editable TLFTextField on the stage, but whatever I do, the softKeyboard on iOS won't pop up. Trying to set "needsSoftKeyboard" on the TLFTextField gives me an error when testing the movie via Flash: "property not found". The movie does load correctly on iOS, but still no keyboard pops up. It also doesn't matter if I put "pan" in the application descriptor file or not.
Basically I just want a keyboard to pop up to fill in text in an input field. What am I missing?
View 3 Replies
Similar Posts:
Oct 7, 2011
I have a TextArea and a Checkbox. I want to disable the SoftKeyboard when the checkbox is checcked, so the TextArea can be scrolled without it popping up. I can get the keyboard to disable when the Checkbox is clicked, but as soon as I click on the TextArea to scroll it pops back up. How do I enable/disable the keyboard with a checkbox? Below is my code:
protected function toggle_keyboard_clickHandler(event:MouseEvent):void
{
checkboxStatus = event.target.selected;
[Code]...
View 1 Replies
Dec 27, 2011
Is it possible to display the Soft Keyboard when debugging using ADL? If I use the existing properties I still don't see it. I want to check if my layout looks well when the Soft Keyboard appears, but for some reason I don't see it coming in ADL (Adobe Debug Launcher). I don't have a tablet to test it on for now so that isn't a solution. I don't see the soft keyboard or doesn't it exist in ADL?
View 1 Replies
May 7, 2011
I have a Pure AS3 mobile project that I'm developing in Flex 4.5, and deploying on both Android and iOS.I have a TLF textfield that is set to editable, and when I touch on it on Android the soft keyboard shows up as expected, without me having to explicitly tell it to show up.
BUT on iOS, when I touch on it, I get the text field's focus event firing, but the soft keyboard doesn't show up. Anyone know how to make this appear, so the user can enter in text? it is possible to enter text in a pure AS3 mobile app on iOS.
View 3 Replies
Jul 1, 2011
I'm using Flex 4.5.1 with AIR 2.7 (and Flash Builder 4.5.1) to build an app for the Blackberry Playbook.
The app has a large textarea that needs to be resized when the soft keyboard shows up. I am able to hook into the soft keyboard events and do things there.
Now, I want to resize the textarea to fit the remaining part of the screen when the keyboard shows up. I know the current and destination size and want to use a smooth animation to show the textarea resizing. (I can't already set the height and can see the textarea being correctly resized in the keyboard_activating event - but I want to do it through an animation). I've tried using the Animate class, the spark.effects.Move class and none of them seem to work in this case. They seem to run the animation but the screen does not get refreshed!
[Code]...
View 1 Replies
Apr 29, 2010
When using a notebook and I have remarked that I cannot enter numerical character with shift + a letter to enter number.Is this a bug in flash ? How to circumvent this ?
View 2 Replies
Dec 15, 2010
I have a component where I expose the property 'questions' with the following code:
private var _questions:ArrayCollection;
private var questionsChanged:Boolean;
[Bindable("questionsChanged")]
[Code]....
In this component, I use commitProperties() to implement my logic.
I use Cairngorm and the 'questions' is in the model and hence it's defined as a source for data binding.
When the 'questions' ArrayCollection's size changes elsewhere in the application, it is not invoking the setter method in the component that is destination for the data binding.
View 1 Replies
Sep 14, 2010
can I set the keyboard focus for a TLFTextField? I tried stage.focus = myTLF but there is no cursor...
View 2 Replies
Apr 24, 2010
I have gone through a nightmare trying to apply a gradient/soft mask. I know I will be dreaming it tonight.. Anyways. This is a link of my attempt: [URL] And the problem is FLASH CS3 is bugged to actually work out a simple piece of code:
[Code]...
View 1 Replies
Sep 24, 2010
Out of the box, Flash CS4/AS3 doesnt seem to support the soft hyphen / discretionary hyphen (­ / U+00AD). Is there some trick to getting it to work, or is it simply not there?
View 1 Replies
May 15, 2006
manage to create softshadow and there is a background on it.URL...the two girl have a white soft shadow on it. From what i know, the only way to do it is in photoshop but the background cannot be remove. Or bring a gif but the shadow won't be solid.
View 2 Replies
Jan 17, 2009
I've been trying to figure out how to use Keyboard events, so I tried out an example I saw online, but I ran into a problem. It's supposed to tell me whenever a key is pressed, and it works for keys such as ctrl and shift, but not for letter keys. For example,when testing in Flash ("test movie"), if I press "v", the Flash player doesn't react, but the Flash editor switches to the selection tool (keyboard shortcut "v"). How do I fix this? Here's the code I used:
function reportKeyDown(event:KeyboardEvent):void
{
trace("Key Pressed") ;[code].........
View 1 Replies
Feb 4, 2009
Im in the very start of trying to make a little game. he problem is when you hold down the up arrow(speed) + left arrow(left turn) + space bar(brake). But the same combination, just changing the left turn with a right turn(right arrow), that works. he code is boat badly written and partly in Norwegian, sorry, but here it is:
Code:
package {
import flash.display.*;
[code].....
View 5 Replies
Jul 5, 2011
The keyBoard event listeners call on the rotate and unrotate functions and based on the key inputs(A and D) will implement either of the functions and rotate the image or return it to the original upright position. However, I haven't been able to get the function to work. When I press the A or D keys on the keyboard nothing happens. I even put trace() in one of the functions to see if the function will even be implemented but I don't get anything. I put in my Scripts below. Why are the functions not working? Do the eventlisteners fire or are there conflicts? I'm not getting any error messages.
ti.border = true
ti.addEventListener(TextEvent.TEXT_INPUT, onInput);
function onInput(event:TextEvent):void {
if(ti.text.search('a')!=-1) load_image("http://i54.tinypic.com/anom5d.png", "ottefct");
[code]....
View 1 Replies
Sep 6, 2009
Is there a reason why a keyboard event listener would not work if the flash is embedded in an HTML? The rest of my game is running fine in the background, but I can't launch the movieClip "nextCar." My code is below, if that makes any difference...
function goNow (event:KeyboardEvent): void { thisOtherKey = event.keyCode; if (thisOtherKey == 32) { nextCar.gotoAndPlay(2); parkingQue.play(); tries++; }}stage.addEventListener(KeyboardEvent.KEY_DOWN, goNow);
View 2 Replies
Jul 5, 2011
I have this keyboard event listener to listen for key_Down of letter A and D but I end up with and error:
1119: Access of possibly undefined property A through a reference with static type Class.
When I use
function rotate(evt:KeyboardEvent):void
{
if (evt.keyCode==68) {
evt.currentTarget.rotation = 90 }
[Code].....
View 2 Replies
Feb 11, 2002
1. Is it possible to call into com/ActiveX object from Flash's code? i.e. if click on something, it calls into a com object or download a ActiveX object and get result back to flash.2. can we set up some sort of event handler in Flash, when other application has something then Falsh's eventhandler get called. Is it possible.
View 2 Replies
Sep 23, 2009
Atm im putting a a game i build into my main flash app.Everything works fine except the keyboard listener.unny.AFTER a mouse click on the 'loaded' swf the keys 'arrow UP' + 'arrow DOWN' start working.I created already a script that loads the listeners IF they are not loaded yet, but i think thats not the problem. Same situation.After clicking on the movie it starts to work, but apparently the listeners are already applied. All other listeners work besides the keyboard listeners.Stand alone(the game swf running by its own) the game works perfectly!btw the game is importing a main document class.
Code:
this.addEventListener(KeyboardEvent.KEY_DOWN
var keybListenerLoadedUp:Boolean = false;
[code].....
View 3 Replies
Jul 9, 2010
I'm having an issue where I don't get a "FOCUS_OUT" event called when I click around the stage. I do get the "FOCUS_IN" event when I click the TLFTextField.Here is some of the code I have:
txt_search.addEventListener(FocusEvent.FOCUS_IN, onFocusIn);
txt_search.addEventListener(FocusEvent.FOCUS_OUT, onFocusOut);
private function onFocusOut(e:FocusEvent):void[code]...
View 1 Replies
May 23, 2011
I'm using Flash CS5. I've got an embedded font loaded from an external SWF. As far as I can tell, it's embedded properly - it used to work before I switched from the classic TextField - but I needed to switch because I need the advanced ligature support. My code is:
//setting up...
var text:TFLTextField = new TLFTextField();
text.width = 530;
text.height = 330;
[Code]....
Edit: Just tried to switch the font to Arial, and it fell back to Times New Roman again. So apparently the problem is not with the embedding, but with the way I assign the font - meaning this may be less complicated than I originally thought. Scratch that, Arial worked after I changed embedFonts to false.
View 2 Replies
Nov 4, 2011
All I want to do is get the formatting properties of a TLFTextField and apply it to another TLFTextField. This was simple using the classic TextField:
var textFormat:TextFormat = text1.getTextFormat();
text2.setTextFormat(textFormat);
TLFTextField has a getTextFormat and setTextFormat function, but they are both very buggy. getTextFormat only works if you change the selectable property to true, otherwise it generates a null object error. setTextFormat generates a NaN error when some of the properties of the TextFormat object are not null.
The TextLayoutFormat object is supposed to be used instead for TLFTextFields. You set the object by doing the following:
var text1:TLFTextField = new TLFTextField();
var textLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
var textFlow:TextFlow = text1.textFlow;
[Code]....
But this just returned null. Does anyone know how to get the TextLayoutFormat so I can apply it to another TLFTextField?
View 1 Replies
Apr 3, 2012
For my project I am using the following:FlashDevelop 3.3.4 RTMFlash Pro CS 5 (libraries only, no code)Some time ago we started using TLFTextfields. One of the things I had to do was include the tlfruntime.swc file from the Adobe Flash CS 5 folder in the FlashDevelop project. Note that I copied this file to the project folder and included it, I didn't just include the file straight from the CS5 path. I have since been given a new computer that has Flash CS 5.5. I recompiled one of my swf libraries in CS 5.5, and now when I run the program, I get:Illegal override of createTextLine in flashx.textLayout.compose.ComposeStateI figure the tlfruntime.swc being included in the FlashDevelop project is out of date and needs to be updated with the one from CS 5.5. So I copied the tlfruntime.swc from the CS 5.5 path, include it in the FlashDevelop project (instead of the older file), but now I get this:
Illegal override of softKeyboardActivatingHandler infl.text.container.TLFContainerController.Can anyone assist with what else I need to do to get TLFTextfields working again in CS 5.5?UPDATE: I have updated FlashDevelop to 4.0.1 RTM, and now I get this error:Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
View 1 Replies
Jul 15, 2010
Can anyone tell me what's the problem with this code ?
PHP Code:
var dataTextField:TLFTextField=new TLFTextField();
addChild(dataTextField);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(e:ProgressEvent):void
[Code]...
it's a preloading code and it's simple, the code used to be with "TextField" and it worked OK, then I changed it to be with "TLFTextField" class but it doesn't work now. Maybe the solution is simple but I'm not familiar with the new "TLFTextField" class
View 7 Replies
Nov 26, 2010
My Flex application is heavily keyboard-oriented. It uses 100% of the browser window and I'd like the user to be able to start using it immediately - as soon as it loads. However, it seems that the application is only first "activated" (i.e. the activate event fires) when the mouse clicks somewhere inside it, which is very inconvenient for my keyboard-heavy app.
Can I force an activation of my app at some point during/after it loads? I hope I don't have to display some silly "click inside to activate" overlay every time the page loads..
In certain browsers ([cough] Chrome [/cough]) the focus is lost whenever the user switches away from the browser (or even touches the address bar) and is not regained when switching back. So the solution has to take in consideration not just the first focus when the page loads but also "re-focusing".
View 2 Replies
Sep 30, 2010
I've a assets swc file that contains several TLFTextField objects, each one with it's style (font, color, size).
I use the following code to set a link:
var text_tf : TLFTextField;
var url : String = "www.stackoverflow.com";
text_tf.htmlText = "<a href='http://" + url + "' target='_blank'>"+url+"</a>";
This works as expected, but it changes the color of the text to blue;
What's the easiest way to configure the color of the text, without having to recreate all the TLF mechanism (ContainerController, Configuration, TextLayoutFormat, TextFlow, ParagraphElement, LinkElement, SpanElement, ...);
I was expecting something like this to work:
text_tf.textFlow.linkNormalFormat = { color:0x00ffFF, textDecoration:TextDecoration.NONE };
text_tf.textFlow.linkHoverFormat = { color:0x00ffFF, textDecoration:TextDecoration.NONE };
View 2 Replies
Nov 7, 2011
We have a library with a bunch of TextFields inside MovieClips. During runtime, we make an instance of one of these, run getTextFormat on it to get the formatting, then create a bunch of TextFields in code and run setTextFormat on them to give them the same formatting.
I'm trying to do the same thing but with TLFTextFields. I have the following:
var text:TLFTextField = new classFromLib();
text.selectable = true; //required for getTextFormat to work, flash bug
textFormat = text.getTextFormat();
[Code]....
If I set textFormat.leading and textFormat.letterSpacing to null before I run setTextFormat, then everything works, but obviously the text fields don't get the leading and letter spacing that the one in the library had.
View 1 Replies
May 23, 2011
I have a question to invoke the responder method defined in a flash client within an asynchronous function defined in a flash media server.[code]
View 1 Replies
Jun 11, 2011
I am trying to use automate a web + flash application. Our dev have provided me ExternInterface APIs, which we are able to invoke using Watire and IE. However same thing is now working on FF 3.6 and watir-webdriver/webdriver/firewatir. I am tending to assume that this is not a problem with either of the automation tool, but FF itself. However other part of our product uses js to invoke other APIs and they are working fine. So I am not able to zero in on browser or automation tool.
View 1 Replies
Nov 10, 2011
I am having a problem with flash and javascript I wish to to invoke a click on the code below when the page unloads
[Code]...
View 1 Replies
Dec 21, 2010
I have a TLFTextField created in Flash Professional and I'm attempting to alter it's appearance via code, in Flash Builder.
I want to retain all formatting rules already applied to the TLFTextField unless I specifically change them, however the following code:
var format:TextFormat = textField.getTextFormat();
format.align = TextFormatAlign.RIGHT;
textField.defaultTextFormat = format;
[Code]....
how to alter individual formatting properties on a TLFTextField without affecting those already set?
View 1 Replies