ActionScript 3 popup - actionscript-3

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.

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.

StageWebView - hide just for JS

I want to use StageWebView just for communicating with a JS page, without actually showing it at all
Is this possible, and if so, what is the best recommended way of doing it?
Seems that not setting the viewport might accomplish this, as well as positioning the viewport offscreen
First you need the interaction, then you need to put the view off the stage. Take a look at RichWebView which is an alternative to StageWebView https://github.com/myflashlab/webView-ANE
As the documentation says, you can't do this with StageWebView.
The StageWebView class provides a simple means to display HTML content
on devices where the HTMLLoader class is not supported. The class
provides no interaction between ActionScript and the HTML content
except through the methods and properties of the StageWebView class
itself. There is, for example, no way to pass values or call
functions between ActionScript and JavaScript.
Using HTMLLoader you could do this.

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.

SoftKeyboardType in pure as3 app

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