You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by xenia1234 <mw...@healthpi.com.au> on 2016/07/26 00:42:03 UTC
FlexJS Popup
Hey Guys,
I am working on converting an existing flex project to flexjs. I am using
the latest sdk0.6.0. The problem I am facing right now is how to create
custom component popup through the popupmanager. it seems like there were no
equivalent in the sdk. any suggestion?
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Popup-tp13068.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: FlexJS Popup
Posted by xenia1234 <mw...@healthpi.com.au>.
Thank you Alex.
It all worked out perfectly.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Popup-tp13068p13080.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: FlexJS setup
Posted by Alex Harui <ah...@adobe.com>.
Hopefully Josh Tynjala will see this and help you out.
-Alex
On 8/26/16, 4:08 AM, "Lane" <la...@hotmail.com> wrote:
>I'm setting up FlexJS on IntelliJ according to excellent detailed
>instructions at
>
>http://nextgenactionscript.com/tutorials/intellij-idea-apache-flexjs-trans
>pile-actionscript-setup/
>
>On Run Debug, I'm getting the error:
>
>Error:[HelloIDEA]: command line: unknown configuration variable
>'js-output-type'
>
>Scanning the Web suggests that I need to fix the bat file in
>js/bin/mxmlc.bat. However, the suggested changes already appear to be
>made.
>What am I missing?
>
>---current mxmlc.bat file
>
>if "x%FALCON_HOME%"=="x" (set "FALCON_HOME=%~dp0..\..") else echo Using
>Falcon codebase: %FALCON_HOME%
>
>if "x%FLEX_HOME%"=="x" (set "FLEX_HOME=%~dp0..\..") else echo Using Flex
>SDK: %FLEX_HOME%
>
>"C:\ProgramData\Oracle\Java\javapath\java.exe"
>-Dsun.io.useCanonCaches=false
> -Xms32m -Xmx512m -Dflexcompiler="%FALCON_HOME%"
>-Dflexlib="%FLEX_HOME%\frameworks"
> -jar
>"%FALCON_HOME%\js\lib\mxmlc.jar" -js-output-type=FLEXJS
>-sdk-js-lib="%FLEX_HOME%\frameworks\js\FlexJS\src"
>%*
>
>Thanks,
>
>Lane.
>
>
>---
>This email has been checked for viruses by Avast antivirus software.
>https://www.avast.com/antivirus
>
FlexJS setup
Posted by Lane <la...@hotmail.com>.
I'm setting up FlexJS on IntelliJ according to excellent detailed
instructions at
http://nextgenactionscript.com/tutorials/intellij-idea-apache-flexjs-transpile-actionscript-setup/
On Run Debug, I'm getting the error:
Error:[HelloIDEA]: command line: unknown configuration variable
'js-output-type'
Scanning the Web suggests that I need to fix the bat file in
js/bin/mxmlc.bat. However, the suggested changes already appear to be made.
What am I missing?
---current mxmlc.bat file
if "x%FALCON_HOME%"=="x" (set "FALCON_HOME=%~dp0..\..") else echo Using
Falcon codebase: %FALCON_HOME%
if "x%FLEX_HOME%"=="x" (set "FLEX_HOME=%~dp0..\..") else echo Using Flex
SDK: %FLEX_HOME%
"C:\ProgramData\Oracle\Java\javapath\java.exe" -Dsun.io.useCanonCaches=false
-Xms32m -Xmx512m -Dflexcompiler="%FALCON_HOME%" -Dflexlib="%FLEX_HOME%\frameworks"
-jar
"%FALCON_HOME%\js\lib\mxmlc.jar" -js-output-type=FLEXJS -sdk-js-lib="%FLEX_HOME%\frameworks\js\FlexJS\src"
%*
Thanks,
Lane.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Re: FlexJS Popup
Posted by Alex Harui <ah...@adobe.com>.
On 7/25/16, 5:42 PM, "xenia1234" <mw...@healthpi.com.au> wrote:
>Hey Guys,
>
>I am working on converting an existing flex project to flexjs. I am using
>the latest sdk0.6.0. The problem I am facing right now is how to create
>custom component popup through the popupmanager. it seems like there were
>no
>equivalent in the sdk. any suggestion?
>
Correct. There is no PopUpManager because in theory a PopUpManager is
really only needed when there are more than one popup visible at the same
time, like a floating spell checker or find/replace dialog and then some
other dialog has to popup. So far none of our examples have needed it.
If you need it, we can put one together.
Instead, displaying a PopUp is as simple as calling addElement on the main
view if you have a reference to it. If you don't have a reference to the
view, you can find a suitable parent via UIUtils.findPopUpHost.
HTH,
-Alex