SoftKeyboardType in pure as3 app - actionscript-3

I'm not using flex, just pure as3. In flex input text component i have softKeyboardType property for mobile devices but in as3 TextField i can't find replacement.

you can use stagetext in as3
http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/text/StageText.html

Related

What is the advantage of mxml based project over pure actionscript based project?

What are the advantages of mxml based project over a pure actionscript based project in Flash Builder. Especially, when after Flash Builder 4.6, the design mode has been removed off.
If you are after smallest filesize: go for pure AS3.
If you are after ease-of-use (dev & user): go for Flex.
There is no "I'm using MXML, so I'm not using AS3", rather Flex is an extension to AS3 which will increase your filesize and RAM usage a bit but for that you can do a lot of UI related things way quicker (not just because of MXML).
So, even without design mode, using Flex for the UI design will be much more comfortable than AS3. Think about nested relative sizes ("box in a box in a box is 25% percent the width of the parent"), with Flex that is easily managed (it does it for you), with pure AS3 you will wind up in a nightmare of possible relations to calculate.
Or colors: how to transform the actual hue of a color? Modifying the RGB channels will turn out to be tricky, Flex has an HSB class, so you can convert a color to HSB (hue, saturation, brightness), manipulate it and then return it as RGB.
Eventually, especially with larger projects, you will end up with a mixture of pure-ActionScript and Flex.
MXML is just a declaritive markup language for Flex. Reasons for using MXML instead of AS3 in a Flex project are the same as any markup language, such as HTML in the browser.
A "pure AS3 project" typically refers to not using Flex, so it's more than not using MXML, it's also not having access to the Flex library of components.

Overlay flash displayobject on Starling Stage3D

I'm using Starling to build a space shooter game in ActionScript, and I'd like to draw simple lasers using the normal graphics primitives that Flash provides.
How can I set the translation matrix for Flash to be the same as for any given Starling DisplayObject?
transform.matrix = starlingDO.getTransformationMatrix(starlingDO.root);
comes close, but it seems it does not take into account viewport scaling of Starling.
Have you tried using the Starling Graphics Extension here https://github.com/StarlingGraphics/Starling-Extension-Graphics ?
It's easy to use and you don't have to use native Flash display objects.

How to use starling with Flex, mixed MXML and Stage 3D AS3 code

I need to build a mobile application using starling by creating a FlexMobileApplication project and not an ActionScriptMobileApplication project.
Can i have both MXML controls and Stage 3D (strarling content) at the same time in my app.
Yes you can mix them, but take note of the following:
Starling is a framework for stage3D which runs on a lower layer than the normal Flex (non stage3D) content.
You need to set your Application backgroundAlpha to 0 in order to be able to see the starling content.
You will only be able to display Flex controls over Starling (and not mix them or have the reverse layering)
there may be other points to disuss, as performance and so on but since you picked already Starling you should know the basics by now.
Update
If you need flex like controls on the Stage3D leyer, use Feathers Framework for Starling.
Here are some samples: http://feathersui.com/examples/components-explorer/
Here is the framework wiki: http://wiki.starling-framework.org/feathers/start

Is it possible to use Flex UI components with Starling?

I am using Flex to build a web based viewer, although I can build it in a pure actionscript 3.0 project, but I thought using Flex will save us time building complex UI components ..
So, as the question implies, can we use those Flex UI components with starling?
Is it as easy as adding the UI component to the Starling ex .. starling.display.Sprite rather than to the conventional display list? is that all?
I hope I can find a clear answer here, otherwise Flex as an option will be questionable or canceled ..
Well?
Flex components inherit Flash sprites which are not the same as Starling's sprites. So the answer is no, Starling won't let you add a Flex component.
Flex component are coded using the native Flash display list, you would have to recode them entirely using Starling.

ActionScript 3 popup

How can I make a DisplayObject popup like Flex PopUpManager in AS3?
You might use the PopUpManager of AS3Commons UI Layers. A pure and slim AS3 implementation that I am developing - meant to be an alternative to the Flex thing.