Re: Pass data from build to Flex web app

2016-09-14 Thread olegkon
I tried using Flashvars for it, worked fine for me.


Thank you,
Oleg.


On Tue, Sep 13, 2016 at 3:14 AM, Christofer Dutz [via Apache Flex Users] <
ml-node+s246n13538...@n4.nabble.com> wrote:

> Hi Oleg,
>
>
> I use Defines in the Maven build for exactly this. I am sure the Defines
> work the same way in an Ant build as the FlexJS build relies on these.
>
>
> I use them for feature toggles, injecting root-url's for local
> development/testing/production and it works just perfeclty. Have a look
> here [1]
>
>
> Chris
>
>
> [1] http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0b
> f69084-7abd.html#WS2db454920e96a9e51e63e3d11c0bf67670-7fe2
>
> 
> Von: olegkon <[hidden email]
> >
> Gesendet: Montag, 12. September 2016 16:38:33
> An: [hidden email] 
> Betreff: Pass data from build to Flex web app
>
> Hi,
>
> Is there a way to pass some variables from ANT build to the actual Flex
> web
> app?
>
> I have seen that old post regarding passing SVN build number:
> https://mampersat.wordpress.com/2009/03/31/display-
> versionrevision-number-in-flexactionscript/
>
> I need to pass an environment Type (DEV / UAT / PROD) from Ant.
> Is there a way to do it in Flex 4.6 ?
>
> Please help.
>
> TIA,
> Oleg.
>
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/Pass-data-from-build-to-Flex-web-app-tp13535.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Pass-
> data-from-build-to-Flex-web-app-tp13535p13538.html
> To unsubscribe from Pass data from build to Flex web app, click here
> 
> .
> NAML
> 
>



-- 
Thank you,
Oleg.




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Pass-data-from-build-to-Flex-web-app-tp13535p13548.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Rect to draw one way, but works another

2016-09-14 Thread Alex Harui
Without really digging into it, I think Group doesn't have a layout so no
code is around to re-compute sizes of children by evaluation %.  So I
think you will have to write code to resize the Rect.  Doing it in
updateDisplayList would then be the recommended way.

-Alex

On 9/14/16, 7:30 AM, "kamcknig"  wrote:

>I also then set the width and height of the Rect to equal the
>unscaledWidth/unscaledHeight in the updateDisplayList and that worked
>also.
>
>I'm unsure what the proper way to do things is.
>
>
>
>--
>View this message in context:
>http://apache-flex-users.246.n4.nabble.com/Can-t-get-Rect-to-draw-one-
>way-but-works-another-tp13544p13546.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: Can't get Rect to draw one way, but works another

2016-09-14 Thread kamcknig
I also then set the width and height of the Rect to equal the
unscaledWidth/unscaledHeight in the updateDisplayList and that worked also.

I'm unsure what the proper way to do things is.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Rect-to-draw-one-way-but-works-another-tp13544p13546.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Rect to draw one way, but works another

2016-09-14 Thread kamcknig
If I set the width and height of the _rect explicitly within the creation
complete of the group such as:



within the BackgroundFill component then it works. But setting percentWidth
and height apparently doesn't auto update the Rect when the size of the
parent changes?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Rect-to-draw-one-way-but-works-another-tp13544p13545.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Can't get Rect to draw one way, but works another

2016-09-14 Thread kamcknig
I'm attempting to get a Rect to draw within my code. I have wrapped it in a
group container so as to make it a component I can drop anywhere. I've also
tried creating an MXML class with the root being Rect and I get the same
results.

If I programatically draw the rect in my main class, like so, it works just
fine. i get my rectangle with a gradient that is half the screen width and
height.



However, if i use it as a class, like so, I get just a blank white screen.

Here is my main class:


And here is the BackgroundFill class (note this is a paired down version, I
actually have it set up so they can change more than the color attributes.






--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Rect-to-draw-one-way-but-works-another-tp13544.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Spark DataGrid editable problem

2016-09-14 Thread OK
npem wrote
> I have replaced the DataGrid with an appropriate Nº of
> textInput components, which works very nicely

You could also think about using the List component with an appropriate item
renderer.
Or let you be inspired by the experimental MobileGrid [1].

HTH,
Olaf

[1]:
https://flex.apache.org/asdoc/spark/components/MobileGrid.html




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Spark-DataGrid-editable-problem-tp13537p13543.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Spark DataGrid editable problem

2016-09-14 Thread OK
I never tried to use the spark datagrid on mobile but maybe this works [1]?

HTH,
Olaf


[1]: Set each column 'editable'
...







...







   


...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Spark-DataGrid-editable-problem-tp13537p13542.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Spark DataGrid editable problem

2016-09-14 Thread npem
I would still be interested in how to solve this,
but I have replaced the DataGrid with an appropriate Nº of
textInput components, which works very nicely

So, essentially this question is closed

Phil.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Spark-DataGrid-editable-problem-tp13537p13541.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: AIR 23

2016-09-14 Thread engorila
They have released it yesterday:

http://www.adobe.com/devnet/air/air-sdk-download.html



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/AIR-23-tp13539p13540.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


AIR 23

2016-09-14 Thread engorila
Can you update Apache Flex SDK Installer to be compatible with Adobe AIR 23?

Thanks so much!!!



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/AIR-23-tp13539.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.