Re: Showcase for IOs and Android skins?

2014-08-05 Thread Deepak MS
Android skinning is in progress currently.

You can look into this thread for details:
http://apache-flex-development.247.n4.nabble.com/Re-IOS-7-and-Android-4-3-Skinning-td37835.html

Source:
https://github.com/apache/flex-sdk/tree/new_android_skins/frameworks/projects/mobiletheme/src/spark/skins/android4




On Mon, Aug 4, 2014 at 7:10 PM, Christofer Dutz christofer.d...@c-ware.de
wrote:

 Hi,


 I started working for my new employer 1 day ago and I might already have a
 chance to do a project using Apache Flex. I already did the convincing that
 using flex we'll be able to ship a cross-platform solution with individual
 skinning for IOs and Android, but unfortunately I couldn't find an example
 of the current state of these skin types.


 Is there some tourdemobile available that demonstrates this? Or is it even
 included in our tourdeflex and all I have to do, is to build the
 application?


 Chris



DataGrid DataProvider Excel export in iPad

2014-08-05 Thread Deepak MS
Hello,
We are trying to export data to excel and open the excel in iPad. We were
able to give a 'Open with..' option, but when user selects 'Excel' app to
open the document, it needs xlsx format and not xls. We used AS3XLS and it
doesn't have xlsx support.

Came across this link, which supports xlsx but there isn't usage example.
It has another library which is FZip, which isn't there in the source:
https://github.com/flexmonster/fl2xls/tree/master/com/flexmonster/xls


Has anybody used that library or any other library which can give xlsx
exported file?


Re: Showcase for IOs and Android skins?

2014-08-05 Thread piotrz
Hi Chris!

Fantastic and Good luck in your new job! 

Piotr



-
Apache Flex Committer
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Showcase-for-IOs-and-Android-skins-tp7456p7474.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


AW: Showcase for IOs and Android skins?

2014-08-05 Thread Christofer Dutz
Hi,

Yeah, I already saw that, but is there any work put into IOs or will this be 
started as soon as the Android stuff is finished?

Well as the customer wants Android now and IOs later I think I could whip up a 
rapid prototype using the android skins and hopefully show off how fast you can 
do stuff like this with Flex ans simply use the older IOs skins that are 
already available as a start.

Chris

Von: Deepak MS megharajdee...@gmail.com
Gesendet: Dienstag, 5. August 2014 08:39
An: users@flex.apache.org
Betreff: Re: Showcase for IOs and Android skins?

Android skinning is in progress currently.

You can look into this thread for details:
http://apache-flex-development.247.n4.nabble.com/Re-IOS-7-and-Android-4-3-Skinning-td37835.html

Source:
https://github.com/apache/flex-sdk/tree/new_android_skins/frameworks/projects/mobiletheme/src/spark/skins/android4




On Mon, Aug 4, 2014 at 7:10 PM, Christofer Dutz christofer.d...@c-ware.de
wrote:

 Hi,


 I started working for my new employer 1 day ago and I might already have a
 chance to do a project using Apache Flex. I already did the convincing that
 using flex we'll be able to ship a cross-platform solution with individual
 skinning for IOs and Android, but unfortunately I couldn't find an example
 of the current state of these skin types.


 Is there some tourdemobile available that demonstrates this? Or is it even
 included in our tourdeflex and all I have to do, is to build the
 application?


 Chris



Re: FocusManager bug in 4.13.0 on iOS

2014-08-05 Thread Fréderic Cox
Anyone? Someone who worked on this change?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/FocusManager-bug-in-4-13-0-on-iOS-tp7422p7476.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: AW: Showcase for IOs and Android skins?

2014-08-05 Thread OmPrakash Muppirala
On Aug 5, 2014 1:20 AM, Christofer Dutz christofer.d...@c-ware.de wrote:

 Hi,

 Yeah, I already saw that, but is there any work put into IOs or will this
be started as soon as the Android stuff is finished?

Yes Chris, that is my plan.  I am very close to merging the new Android
skins into the develop branch.  So, that should almost certainly go out
with the next release.  I plan to start with the iOS 7 skins soon after
that.


 Well as the customer wants Android now and IOs later I think I could whip
up a rapid prototype using the android skins and hopefully show off how
fast you can do stuff like this with Flex ans simply use the older IOs
skins that are already available as a start.

Sounds like a good plan.  You could perhaps use the TourDeFlexMobile code
available in the flex-examples git repo as a starting point for your
prototype.

All the best for your new gig!

Thanks,
Om


 Chris
 
 Von: Deepak MS megharajdee...@gmail.com
 Gesendet: Dienstag, 5. August 2014 08:39
 An: users@flex.apache.org
 Betreff: Re: Showcase for IOs and Android skins?

 Android skinning is in progress currently.

 You can look into this thread for details:

http://apache-flex-development.247.n4.nabble.com/Re-IOS-7-and-Android-4-3-Skinning-td37835.html

 Source:

https://github.com/apache/flex-sdk/tree/new_android_skins/frameworks/projects/mobiletheme/src/spark/skins/android4




 On Mon, Aug 4, 2014 at 7:10 PM, Christofer Dutz christofer.d...@c-ware.de

 wrote:

  Hi,
 
 
  I started working for my new employer 1 day ago and I might already
have a
  chance to do a project using Apache Flex. I already did the convincing
that
  using flex we'll be able to ship a cross-platform solution with
individual
  skinning for IOs and Android, but unfortunately I couldn't find an
example
  of the current state of these skin types.
 
 
  Is there some tourdemobile available that demonstrates this? Or is it
even
  included in our tourdeflex and all I have to do, is to build the
  application?
 
 
  Chris
 


Debuggin AIR Application

2014-08-05 Thread Devesh Mishra(NABFS00)
Hi,

I am trying to debug an AIR application which is on production server. But it 
seems, flashlog.txt files doesn't updates. It only updates when I debug it at 
my local machine using Flash Builder.
In mm.cfg file, I have written,

ErrorReportingEnable=1
MaxWarnings=1000
SuppressDebuggerExceptionDialogs=1
TraceOutputFileEnable=true

Am I missing something here ?

--
Thanks  Regards,
Devesh Mishra

~~Disclaimer~~~
Information contained and transmitted by this e-mail is confidential and 
proprietary to IGATE and its affiliates and is intended for use only by the 
recipient. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution, copying or use of this e-mail is strictly 
prohibited and you are requested to delete this e-mail immediately and notify 
the originator or mailad...@igate.com mailto:mailad...@igate.com. IGATE does 
not enter into any agreement with any party by e-mail. Any views expressed by 
an individual do not necessarily reflect the view of IGATE. IGATE is not 
responsible for the consequences of any actions taken on the basis of 
information provided, through this email. The contents of an attachment to this 
e-mail may contain software viruses, which could damage your own computer 
system. While IGATE has taken every reasonable precaution to minimise this 
risk, we cannot accept liability for any damage which you sustain as a result 
of software viruses. You should carry out your own virus checks before opening 
an attachment. To know more about IGATE please visit www.igate.com 
http://www.igate.com.



Re: Debuggin AIR Application

2014-08-05 Thread Alex Harui
Are you using adl on the production machine?

On 8/5/14 7:56 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Hi,

I am trying to debug an AIR application which is on production server.
But it seems, flashlog.txt files doesn't updates. It only updates when I
debug it at my local machine using Flash Builder.
In mm.cfg file, I have written,

ErrorReportingEnable=1
MaxWarnings=1000
SuppressDebuggerExceptionDialogs=1
TraceOutputFileEnable=true

Am I missing something here ?

--
Thanks  Regards,
Devesh Mishra

~~Disclaimer~~
~
Information contained and transmitted by this e-mail is confidential and
proprietary to IGATE and its affiliates and is intended for use only by
the recipient. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution, copying or use of this
e-mail is strictly prohibited and you are requested to delete this e-mail
immediately and notify the originator or mailad...@igate.com
mailto:mailad...@igate.com. IGATE does not enter into any agreement
with any party by e-mail. Any views expressed by an individual do not
necessarily reflect the view of IGATE. IGATE is not responsible for the
consequences of any actions taken on the basis of information provided,
through this email. The contents of an attachment to this e-mail may
contain software viruses, which could damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this risk,
we cannot accept liability for any damage which you sustain as a result
of software viruses. You should carry out your own virus checks before
opening an attachment. To know more about IGATE please visit
www.igate.com http://www.igate.com.
~~
~~



RE: Debuggin AIR Application

2014-08-05 Thread Devesh Mishra(NABFS00)
Actually, I have a build which is pointing my QA Server. That build I am 
running on my local windows machine using AIR installer file.

--
Thanks  Regards,
Devesh Mishra

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com] 
Sent: Tuesday, August 05, 2014 8:55 PM
To: users@flex.apache.org
Subject: Re: Debuggin AIR Application

Are you using adl on the production machine?

On 8/5/14 7:56 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Hi,

I am trying to debug an AIR application which is on production server.
But it seems, flashlog.txt files doesn't updates. It only updates when 
I debug it at my local machine using Flash Builder.
In mm.cfg file, I have written,

ErrorReportingEnable=1
MaxWarnings=1000
SuppressDebuggerExceptionDialogs=1
TraceOutputFileEnable=true

Am I missing something here ?

--
Thanks  Regards,
Devesh Mishra

~~Disclaimer~~~
~~~ ~
Information contained and transmitted by this e-mail is confidential 
and proprietary to IGATE and its affiliates and is intended for use 
only by the recipient. If you are not the intended recipient, you are 
hereby notified that any dissemination, distribution, copying or use of 
this e-mail is strictly prohibited and you are requested to delete this 
e-mail immediately and notify the originator or mailad...@igate.com 
mailto:mailad...@igate.com. IGATE does not enter into any agreement 
with any party by e-mail. Any views expressed by an individual do not 
necessarily reflect the view of IGATE. IGATE is not responsible for the 
consequences of any actions taken on the basis of information provided, 
through this email. The contents of an attachment to this e-mail may 
contain software viruses, which could damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this 
risk, we cannot accept liability for any damage which you sustain as a 
result of software viruses. You should carry out your own virus checks 
before opening an attachment. To know more about IGATE please visit 
www.igate.com http://www.igate.com.
~~~
~~~ ~~


~~Disclaimer~~~
Information contained and transmitted by this e-mail is confidential and 
proprietary to IGATE and its affiliates and is intended for use only by the 
recipient. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution, copying or use of this e-mail is strictly 
prohibited and you are requested to delete this e-mail immediately and notify 
the originator or mailad...@igate.com mailto:mailad...@igate.com. IGATE does 
not enter into any agreement with any party by e-mail. Any views expressed by 
an individual do not necessarily reflect the view of IGATE. IGATE is not 
responsible for the consequences of any actions taken on the basis of 
information provided, through this email. The contents of an attachment to this 
e-mail may contain software viruses, which could damage your own computer 
system. While IGATE has taken every reasonable precaution to minimise this 
risk, we cannot accept liability for any damage which you sustain as a result 
of software viruses. You should carry out your own virus checks before opening 
an attachment. To know more about IGATE please visit www.igate.com 
http://www.igate.com.




Re: Debuggin AIR Application

2014-08-05 Thread Alex Harui
I don't understand.  Maybe show command-lines you are using.

On 8/5/14 8:54 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Actually, I have a build which is pointing my QA Server. That build I am
running on my local windows machine using AIR installer file.

--
Thanks  Regards,
Devesh Mishra

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com]
Sent: Tuesday, August 05, 2014 8:55 PM
To: users@flex.apache.org
Subject: Re: Debuggin AIR Application

Are you using adl on the production machine?

On 8/5/14 7:56 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Hi,

I am trying to debug an AIR application which is on production server.
But it seems, flashlog.txt files doesn't updates. It only updates when
I debug it at my local machine using Flash Builder.
In mm.cfg file, I have written,

ErrorReportingEnable=1
MaxWarnings=1000
SuppressDebuggerExceptionDialogs=1
TraceOutputFileEnable=true

Am I missing something here ?

--
Thanks  Regards,
Devesh Mishra

~~Disclaimer~~~
~~~ ~
Information contained and transmitted by this e-mail is confidential
and proprietary to IGATE and its affiliates and is intended for use
only by the recipient. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, copying or use of
this e-mail is strictly prohibited and you are requested to delete this
e-mail immediately and notify the originator or mailad...@igate.com
mailto:mailad...@igate.com. IGATE does not enter into any agreement
with any party by e-mail. Any views expressed by an individual do not
necessarily reflect the view of IGATE. IGATE is not responsible for the
consequences of any actions taken on the basis of information provided,
through this email. The contents of an attachment to this e-mail may
contain software viruses, which could damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this
risk, we cannot accept liability for any damage which you sustain as a
result of software viruses. You should carry out your own virus checks
before opening an attachment. To know more about IGATE please visit
www.igate.com http://www.igate.com.
~~~
~~~ ~~


~~Disclaimer~~
~
Information contained and transmitted by this e-mail is confidential and
proprietary to IGATE and its affiliates and is intended for use only by
the recipient. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution, copying or use of this
e-mail is strictly prohibited and you are requested to delete this e-mail
immediately and notify the originator or mailad...@igate.com
mailto:mailad...@igate.com. IGATE does not enter into any agreement
with any party by e-mail. Any views expressed by an individual do not
necessarily reflect the view of IGATE. IGATE is not responsible for the
consequences of any actions taken on the basis of information provided,
through this email. The contents of an attachment to this e-mail may
contain software viruses, which could damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this risk,
we cannot accept liability for any damage which you sustain as a result
of software viruses. You should carry out your own virus checks before
opening an attachment. To know more about IGATE please visit
www.igate.com http://www.igate.com.
~~
~~




Re: Debuggin AIR Application

2014-08-05 Thread Alex Harui
I don't know how Flash Builder launches AIR apps.  I've always assumed it
uses adl and specifies the -app.xml file.  I'm not sure it uses an .AIR
file.  You might be able to set up a custom run/debug config.

-Alex

On 8/5/14 10:17 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

I am not using any command line. I have an .air file installed at my
local machine which is pointing to QA Environment.
I want to debug the air application, that is why I need flash player log
file for debugging.

--
Thanks  Regards,
Devesh Mishra


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com]
Sent: Tuesday, August 05, 2014 9:59 PM
To: users@flex.apache.org
Subject: Re: Debuggin AIR Application

I don't understand.  Maybe show command-lines you are using.

On 8/5/14 8:54 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Actually, I have a build which is pointing my QA Server. That build I
am running on my local windows machine using AIR installer file.

--
Thanks  Regards,
Devesh Mishra

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com]
Sent: Tuesday, August 05, 2014 8:55 PM
To: users@flex.apache.org
Subject: Re: Debuggin AIR Application

Are you using adl on the production machine?

On 8/5/14 7:56 AM, Devesh Mishra(NABFS00) devesh.dmis...@igate.com
wrote:

Hi,

I am trying to debug an AIR application which is on production server.
But it seems, flashlog.txt files doesn't updates. It only updates when
I debug it at my local machine using Flash Builder.
In mm.cfg file, I have written,

ErrorReportingEnable=1
MaxWarnings=1000
SuppressDebuggerExceptionDialogs=1
TraceOutputFileEnable=true

Am I missing something here ?

--
Thanks  Regards,
Devesh Mishra

~~Disclaimer~~
~ ~~~ ~
Information contained and transmitted by this e-mail is confidential
and proprietary to IGATE and its affiliates and is intended for use
only by the recipient. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, copying or use
of this e-mail is strictly prohibited and you are requested to delete
this e-mail immediately and notify the originator or
mailad...@igate.com mailto:mailad...@igate.com. IGATE does not enter
into any agreement with any party by e-mail. Any views expressed by an
individual do not necessarily reflect the view of IGATE. IGATE is not
responsible for the consequences of any actions taken on the basis of
information provided, through this email. The contents of an
attachment to this e-mail may contain software viruses, which could
damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this
risk, we cannot accept liability for any damage which you sustain as a
result of software viruses. You should carry out your own virus checks
before opening an attachment. To know more about IGATE please visit
www.igate.com http://www.igate.com.
~~
~ ~~~ ~~


~~Disclaimer~~~
~~~ ~
Information contained and transmitted by this e-mail is confidential
and proprietary to IGATE and its affiliates and is intended for use
only by the recipient. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, copying or use of
this e-mail is strictly prohibited and you are requested to delete this
e-mail immediately and notify the originator or mailad...@igate.com
mailto:mailad...@igate.com. IGATE does not enter into any agreement
with any party by e-mail. Any views expressed by an individual do not
necessarily reflect the view of IGATE. IGATE is not responsible for the
consequences of any actions taken on the basis of information provided,
through this email. The contents of an attachment to this e-mail may
contain software viruses, which could damage your own computer system.
While IGATE has taken every reasonable precaution to minimise this
risk, we cannot accept liability for any damage which you sustain as a
result of software viruses. You should carry out your own virus checks
before opening an attachment. To know more about IGATE please visit
www.igate.com http://www.igate.com.
~~~
~~~ ~~



~~Disclaimer~~
~
Information contained and transmitted by this e-mail is confidential and
proprietary to IGATE and its affiliates and is intended for use only by
the recipient. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution, copying or use of 

Re: FocusManager bug in 4.13.0 on iOS

2014-08-05 Thread Alex Harui
I don't have an IOS device.  Does this show up in the emulator as well?

On 8/5/14 2:19 AM, Fréderic Cox coxfrede...@gmail.com wrote:

Anyone? Someone who worked on this change?



--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/FocusManager-bug-in-4-13-0-
on-iOS-tp7422p7476.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.



ANE for adMob and Facebook integration in AIR android

2014-08-05 Thread vijendra sainy
Could someone please share the best ANE for adMob and for FB integration in
AIR for android.

I am trying to use AdMob and would like to integrate FB in a android mobile
app created using AIR.

Request you to please share link where I can find ANE with good example.

Help is very much appreciated.

-- 
Regards,
*Vijendra Sainy*

*http://www.riamagic.blogspot.com/* http://www.managementvj.blogspot.com/
*http://www.managementvj.blogspot.com/
http://www.managementvj.blogspot.com/*


RE: Design tools for creating Flex 4 skins

2014-08-05 Thread Jason Taylor
I have found inscape to be very good.  FXG is a broken format afaik as flash, 
illustrator, and flex seem to all do different things depending on the version. 
The route I then chose was to go with SVG.  Flex's native support of SVG 
initially was a bit lacking so we developed a component to better support that. 
 Once vector SVGs were handled well, it has been easy to make vector based 
skins in either Illustrator, or Inkscape (the only 2 I tried). When saving the 
svg from inkscape, as as Optimized SVG.

Following is the VectorImage I use for displaying SVG's in flex. Some of this 
code was borrowed from a stack overflow answer, and a lot was modified to make 
it work in our use cases. Good luck!

~ JT


import flash.display.DisplayObject;
import flash.geom.Rectangle;
import mx.core.UIComponent;
import spark.primitives.Rect;

public class VectorImage extends UIComponent
{
private var _scaleUniform:Boolean = true;

public function VectorImage(source:Class = null)
{
if(source){
this.source = source;
}
super();
}

private var _source : Class;
protected var sourceChanged :Boolean = true;


public function get source():Class
{
return _source;
}

public function set source(value:Class):void
{
_source = value;
sourceChanged = true;
this.commitProperties();
invalidateDisplayList();
}

protected var imageInstance : DisplayObject;


override protected function createChildren():void{
super.createChildren();

// if the source has changed we want to create, or recreate, 
the image instance
if(this.sourceChanged){
// if the instance has a value, then delete it
if(this.imageInstance){
this.removeChild(this.imageInstance);
this.imageInstance = null;
}

// if we have a source value; create the source
if(this.source){
this.imageInstance = new source();
this.addChild(this.imageInstance);
}
this.sourceChanged = false;

}
}

/**
 * @private
 */
override protected function commitProperties():void{
super.commitProperties();

if(this.sourceChanged){
// if the source changed re-created it; which is done 
in createChildren();
this.createChildren();
}
}

override protected function measure():void
{
if(imageInstance != null)
{
this.measuredWidth = imageInstance.width;
this.measuredHeight = imageInstance.height;
this.minWidth = 5;
this.minHeight = 5;
}
}

override public function setActualSize(width:Number, height:Number):void
{
this.width = width;
this.height = height;
ScaleImage(width, height);
}

/**
 * @private
 */
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth, unscaledHeight);

// size the element.
// I don't remember why I Wrote the code to check for 
unscaledHeight and unscaledWidth being 0

if(imageInstance != null)
{

//scale properly
ScaleImage(unscaledWidth, unscaledHeight);
}
}

protected function ScaleImage(width:Number, height:Number)
{
if(imageInstance != null)
{
if(_scaleUniform == true)
{
var scale:Number = 
Math.min(width/imageInstance.width, height/imageInstance.height);

var scaleWidth:Number = 
(int)(imageInstance.width * scale);
var scaleHeight:Number = 
(int)(imageInstance.height * scale);

imageInstance.width = scaleWidth;
imageInstance.height = scaleHeight;

imageInstance.x = (width - imageInstance.width) 
*.5;
imageInstance.y = (height- 
imageInstance.height) *.5;
}
else
{
imageInstance.width = width;

Debugging application with modules

2014-08-05 Thread mark goldin
Is there any problem debugging an application that uses modules? I can get
into code when I run main file, but a break point in the module code does
not seem to stop execution.

Thanks


Re: Debugging application with modules

2014-08-05 Thread Alex Harui
Number one reason is that the modules are not compiled with the -debug
flag.

Could that be your issue?
-Alex

On 8/5/14 1:51 PM, mark goldin markzolo...@gmail.com wrote:

Is there any problem debugging an application that uses modules? I can get
into code when I run main file, but a break point in the module code does
not seem to stop execution.

Thanks



Re: Design tools for creating Flex 4 skins

2014-08-05 Thread jude
How is FXG broken? Do you mean when you paste it into each of these
different places they all render differently? If that's true that's because
they are converting to their own internal representation. Flash Catalyst
was great at cleaning up the exported FXG from Illustrator. I would create
a vector in Illustrator, go to save (as FXG) and copy the FXG to the
clipboard, then in FC paste and it would pop open a dialog that let you
choose how to handle the import. For example, it would rasterize some
things if you didn't tell it not to.

But I agree that it would not always look the same as the original in
Illustrator. I think FXG is supposed to be better than SVG (at least 1.0
SVG).


On Tue, Aug 5, 2014 at 1:59 PM, Jason Taylor ja...@dedoose.com wrote:

 I have found inscape to be very good.  FXG is a broken format afaik as
 flash, illustrator, and flex seem to all do different things depending on
 the version. The route I then chose was to go with SVG.  Flex's native
 support of SVG initially was a bit lacking so we developed a component to
 better support that.  Once vector SVGs were handled well, it has been easy
 to make vector based skins in either Illustrator, or Inkscape (the only 2 I
 tried). When saving the svg from inkscape, as as Optimized SVG.

 Following is the VectorImage I use for displaying SVG's in flex. Some of
 this code was borrowed from a stack overflow answer, and a lot was modified
 to make it work in our use cases. Good luck!

 ~ JT


 import flash.display.DisplayObject;
 import flash.geom.Rectangle;
 import mx.core.UIComponent;
 import spark.primitives.Rect;

 public class VectorImage extends UIComponent
 {
 private var _scaleUniform:Boolean = true;

 public function VectorImage(source:Class = null)
 {
 if(source){
 this.source = source;
 }
 super();
 }

 private var _source : Class;
 protected var sourceChanged :Boolean = true;


 public function get source():Class
 {
 return _source;
 }

 public function set source(value:Class):void
 {
 _source = value;
 sourceChanged = true;
 this.commitProperties();
 invalidateDisplayList();
 }

 protected var imageInstance : DisplayObject;


 override protected function createChildren():void{
 super.createChildren();

 // if the source has changed we want to create, or
 recreate, the image instance
 if(this.sourceChanged){
 // if the instance has a value, then delete it
 if(this.imageInstance){
 this.removeChild(this.imageInstance);
 this.imageInstance = null;
 }

 // if we have a source value; create the source
 if(this.source){
 this.imageInstance = new source();
 this.addChild(this.imageInstance);
 }
 this.sourceChanged = false;

 }
 }

 /**
  * @private
  */
 override protected function commitProperties():void{
 super.commitProperties();

 if(this.sourceChanged){
 // if the source changed re-created it; which is
 done in createChildren();
 this.createChildren();
 }
 }

 override protected function measure():void
 {
 if(imageInstance != null)
 {
 this.measuredWidth = imageInstance.width;
 this.measuredHeight = imageInstance.height;
 this.minWidth = 5;
 this.minHeight = 5;
 }
 }

 override public function setActualSize(width:Number,
 height:Number):void
 {
 this.width = width;
 this.height = height;
 ScaleImage(width, height);
 }

 /**
  * @private
  */
 override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
 super.updateDisplayList(unscaledWidth, unscaledHeight);

 // size the element.
 // I don't remember why I Wrote the code to check for
 unscaledHeight and unscaledWidth being 0

 if(imageInstance != null)
 {

 //scale properly
 ScaleImage(unscaledWidth, unscaledHeight);
 }
 }

 protected function ScaleImage(width:Number, height:Number)
 {
 if(imageInstance != null)
 {

Re: Design tools for creating Flex 4 skins

2014-08-05 Thread jude
Use Flash Catalyst to clean up and optimize the FXG. There was actually a
command in the context menu to optimize the graphics. It was pretty good at
this for most of my cases.


On Wed, Mar 6, 2013 at 2:07 PM, Jonathan Campos jonbcam...@gmail.com
wrote:

 On Wed, Mar 6, 2013 at 11:44 AM, Scott Matheson smathe...@intralinks.com
 wrote:

  Anyone got a better idea


 I've become really really good with Illustrator to create FXG skins. Create
 the design in Illustrator. Export as  FXG. Then you will need to clean out
 some of the Illustrator added junk and you're ready to go.

 J


 --
 Jonathan Campos



Re: Design tools for creating Flex 4 skins

2014-08-05 Thread OmPrakash Muppirala
On Tue, Aug 5, 2014 at 3:45 PM, jude flexcapaci...@gmail.com wrote:

 How is FXG broken? Do you mean when you paste it into each of these
 different places they all render differently? If that's true that's because
 they are converting to their own internal representation. Flash Catalyst
 was great at cleaning up the exported FXG from Illustrator. I would create
 a vector in Illustrator, go to save (as FXG) and copy the FXG to the
 clipboard, then in FC paste and it would pop open a dialog that let you
 choose how to handle the import. For example, it would rasterize some
 things if you didn't tell it not to.

 But I agree that it would not always look the same as the original in
 Illustrator. I think FXG is supposed to be better than SVG (at least 1.0
 SVG).


I wrote this tool [1] that cleans up FXG created by Illustrator.  I have
been using it successfully for my personal projects and for the Android 4.x
skinning I have been working on for Apache Flex.

The tool does the following:

1.  For each Symbol in the Symbols library, creates a new .FXG file
2.  Removes all unnecessary AI related stuff
3.  Removes unnecessary nested Groups.

I hope others will find this tool useful as well.

Thanks,
Om

[1]
https://github.com/apache/flex-utilities/blob/develop/FXGTools/src/WriteFXG.mxml




 On Tue, Aug 5, 2014 at 1:59 PM, Jason Taylor ja...@dedoose.com wrote:

  I have found inscape to be very good.  FXG is a broken format afaik as
  flash, illustrator, and flex seem to all do different things depending on
  the version. The route I then chose was to go with SVG.  Flex's native
  support of SVG initially was a bit lacking so we developed a component to
  better support that.  Once vector SVGs were handled well, it has been
 easy
  to make vector based skins in either Illustrator, or Inkscape (the only
 2 I
  tried). When saving the svg from inkscape, as as Optimized SVG.
 
  Following is the VectorImage I use for displaying SVG's in flex. Some of
  this code was borrowed from a stack overflow answer, and a lot was
 modified
  to make it work in our use cases. Good luck!
 
  ~ JT
 
 
  import flash.display.DisplayObject;
  import flash.geom.Rectangle;
  import mx.core.UIComponent;
  import spark.primitives.Rect;
 
  public class VectorImage extends UIComponent
  {
  private var _scaleUniform:Boolean = true;
 
  public function VectorImage(source:Class = null)
  {
  if(source){
  this.source = source;
  }
  super();
  }
 
  private var _source : Class;
  protected var sourceChanged :Boolean = true;
 
 
  public function get source():Class
  {
  return _source;
  }
 
  public function set source(value:Class):void
  {
  _source = value;
  sourceChanged = true;
  this.commitProperties();
  invalidateDisplayList();
  }
 
  protected var imageInstance : DisplayObject;
 
 
  override protected function createChildren():void{
  super.createChildren();
 
  // if the source has changed we want to create, or
  recreate, the image instance
  if(this.sourceChanged){
  // if the instance has a value, then delete it
  if(this.imageInstance){
  this.removeChild(this.imageInstance);
  this.imageInstance = null;
  }
 
  // if we have a source value; create the source
  if(this.source){
  this.imageInstance = new source();
  this.addChild(this.imageInstance);
  }
  this.sourceChanged = false;
 
  }
  }
 
  /**
   * @private
   */
  override protected function commitProperties():void{
  super.commitProperties();
 
  if(this.sourceChanged){
  // if the source changed re-created it; which is
  done in createChildren();
  this.createChildren();
  }
  }
 
  override protected function measure():void
  {
  if(imageInstance != null)
  {
  this.measuredWidth = imageInstance.width;
  this.measuredHeight = imageInstance.height;
  this.minWidth = 5;
  this.minHeight = 5;
  }
  }
 
  override public function setActualSize(width:Number,
  height:Number):void
  {
  this.width = width;
  this.height = height;
  ScaleImage(width, height);
  }
 
  

Re: Design tools for creating Flex 4 skins

2014-08-05 Thread jude
Nice! I have had to manually remove all of that whenever I create a new
skin.


On Tue, Aug 5, 2014 at 5:53 PM, OmPrakash Muppirala bigosma...@gmail.com
wrote:

 On Tue, Aug 5, 2014 at 3:45 PM, jude flexcapaci...@gmail.com wrote:

  How is FXG broken? Do you mean when you paste it into each of these
  different places they all render differently? If that's true that's
 because
  they are converting to their own internal representation. Flash Catalyst
  was great at cleaning up the exported FXG from Illustrator. I would
 create
  a vector in Illustrator, go to save (as FXG) and copy the FXG to the
  clipboard, then in FC paste and it would pop open a dialog that let you
  choose how to handle the import. For example, it would rasterize some
  things if you didn't tell it not to.
 
  But I agree that it would not always look the same as the original in
  Illustrator. I think FXG is supposed to be better than SVG (at least 1.0
  SVG).
 
 
 I wrote this tool [1] that cleans up FXG created by Illustrator.  I have
 been using it successfully for my personal projects and for the Android 4.x
 skinning I have been working on for Apache Flex.

 The tool does the following:

 1.  For each Symbol in the Symbols library, creates a new .FXG file
 2.  Removes all unnecessary AI related stuff
 3.  Removes unnecessary nested Groups.

 I hope others will find this tool useful as well.

 Thanks,
 Om

 [1]

 https://github.com/apache/flex-utilities/blob/develop/FXGTools/src/WriteFXG.mxml



 
  On Tue, Aug 5, 2014 at 1:59 PM, Jason Taylor ja...@dedoose.com wrote:
 
   I have found inscape to be very good.  FXG is a broken format afaik as
   flash, illustrator, and flex seem to all do different things depending
 on
   the version. The route I then chose was to go with SVG.  Flex's native
   support of SVG initially was a bit lacking so we developed a component
 to
   better support that.  Once vector SVGs were handled well, it has been
  easy
   to make vector based skins in either Illustrator, or Inkscape (the only
  2 I
   tried). When saving the svg from inkscape, as as Optimized SVG.
  
   Following is the VectorImage I use for displaying SVG's in flex. Some
 of
   this code was borrowed from a stack overflow answer, and a lot was
  modified
   to make it work in our use cases. Good luck!
  
   ~ JT
  
  
   import flash.display.DisplayObject;
   import flash.geom.Rectangle;
   import mx.core.UIComponent;
   import spark.primitives.Rect;
  
   public class VectorImage extends UIComponent
   {
   private var _scaleUniform:Boolean = true;
  
   public function VectorImage(source:Class = null)
   {
   if(source){
   this.source = source;
   }
   super();
   }
  
   private var _source : Class;
   protected var sourceChanged :Boolean = true;
  
  
   public function get source():Class
   {
   return _source;
   }
  
   public function set source(value:Class):void
   {
   _source = value;
   sourceChanged = true;
   this.commitProperties();
   invalidateDisplayList();
   }
  
   protected var imageInstance : DisplayObject;
  
  
   override protected function createChildren():void{
   super.createChildren();
  
   // if the source has changed we want to create, or
   recreate, the image instance
   if(this.sourceChanged){
   // if the instance has a value, then delete it
   if(this.imageInstance){
   this.removeChild(this.imageInstance);
   this.imageInstance = null;
   }
  
   // if we have a source value; create the source
   if(this.source){
   this.imageInstance = new source();
   this.addChild(this.imageInstance);
   }
   this.sourceChanged = false;
  
   }
   }
  
   /**
* @private
*/
   override protected function commitProperties():void{
   super.commitProperties();
  
   if(this.sourceChanged){
   // if the source changed re-created it; which
 is
   done in createChildren();
   this.createChildren();
   }
   }
  
   override protected function measure():void
   {
   if(imageInstance != null)
   {
   this.measuredWidth = imageInstance.width;
   this.measuredHeight = imageInstance.height;
   this.minWidth = 5;
   

Re: Design tools for creating Flex 4 skins

2014-08-05 Thread jude
BTW There is an open source FXG tool online here,
http://fxgeditor.7jigen.net/. I was hoping to incorporate this into Radii8
to allow it to create skins. Basically, when you double click on a
component in Radii8 the jigen editor would open (in the app) and you could
modify the skin. When you were done editing, the editor would close and a
new skin would be available to choose from. The jigen editor also creates
the SVG and FXG so both an SVG and FXG skin would be created. Since Radii8
generates both HTML and MXML from whatever design you give it generating
both the SVG and FXG you would have custom skins for both targets.


On Tue, Aug 5, 2014 at 6:06 PM, jude flexcapaci...@gmail.com wrote:

 Nice! I have had to manually remove all of that whenever I create a new
 skin.


 On Tue, Aug 5, 2014 at 5:53 PM, OmPrakash Muppirala bigosma...@gmail.com
 wrote:

 On Tue, Aug 5, 2014 at 3:45 PM, jude flexcapaci...@gmail.com wrote:

  How is FXG broken? Do you mean when you paste it into each of these
  different places they all render differently? If that's true that's
 because
  they are converting to their own internal representation. Flash Catalyst
  was great at cleaning up the exported FXG from Illustrator. I would
 create
  a vector in Illustrator, go to save (as FXG) and copy the FXG to the
  clipboard, then in FC paste and it would pop open a dialog that let you
  choose how to handle the import. For example, it would rasterize some
  things if you didn't tell it not to.
 
  But I agree that it would not always look the same as the original in
  Illustrator. I think FXG is supposed to be better than SVG (at least 1.0
  SVG).
 
 
 I wrote this tool [1] that cleans up FXG created by Illustrator.  I have
 been using it successfully for my personal projects and for the Android
 4.x
 skinning I have been working on for Apache Flex.

 The tool does the following:

 1.  For each Symbol in the Symbols library, creates a new .FXG file
 2.  Removes all unnecessary AI related stuff
 3.  Removes unnecessary nested Groups.

 I hope others will find this tool useful as well.

 Thanks,
 Om

 [1]

 https://github.com/apache/flex-utilities/blob/develop/FXGTools/src/WriteFXG.mxml



 
  On Tue, Aug 5, 2014 at 1:59 PM, Jason Taylor ja...@dedoose.com wrote:
 
   I have found inscape to be very good.  FXG is a broken format afaik as
   flash, illustrator, and flex seem to all do different things
 depending on
   the version. The route I then chose was to go with SVG.  Flex's native
   support of SVG initially was a bit lacking so we developed a
 component to
   better support that.  Once vector SVGs were handled well, it has been
  easy
   to make vector based skins in either Illustrator, or Inkscape (the
 only
  2 I
   tried). When saving the svg from inkscape, as as Optimized SVG.
  
   Following is the VectorImage I use for displaying SVG's in flex. Some
 of
   this code was borrowed from a stack overflow answer, and a lot was
  modified
   to make it work in our use cases. Good luck!
  
   ~ JT
  
  
   import flash.display.DisplayObject;
   import flash.geom.Rectangle;
   import mx.core.UIComponent;
   import spark.primitives.Rect;
  
   public class VectorImage extends UIComponent
   {
   private var _scaleUniform:Boolean = true;
  
   public function VectorImage(source:Class = null)
   {
   if(source){
   this.source = source;
   }
   super();
   }
  
   private var _source : Class;
   protected var sourceChanged :Boolean = true;
  
  
   public function get source():Class
   {
   return _source;
   }
  
   public function set source(value:Class):void
   {
   _source = value;
   sourceChanged = true;
   this.commitProperties();
   invalidateDisplayList();
   }
  
   protected var imageInstance : DisplayObject;
  
  
   override protected function createChildren():void{
   super.createChildren();
  
   // if the source has changed we want to create, or
   recreate, the image instance
   if(this.sourceChanged){
   // if the instance has a value, then delete it
   if(this.imageInstance){
   this.removeChild(this.imageInstance);
   this.imageInstance = null;
   }
  
   // if we have a source value; create the
 source
   if(this.source){
   this.imageInstance = new source();
   this.addChild(this.imageInstance);
   }
   this.sourceChanged = false;
  
   }
   }
  
   /**
* @private
  

RE: Design tools for creating Flex 4 skins

2014-08-05 Thread Jason Taylor
why continue to use a format that requires you to jump through hoops and is 
only supported inside a few particular projects?  Save yourself the hassle and 
just use SVG (1.1+).  It makes it a heck of a lot easier to switch between html 
and flex development.  Now that SVG is working properly in Flex, I see no 
reason to continue forward with FXG.
Just my $.02
~ JT

-Original Message-
From: jude [mailto:flexcapaci...@gmail.com] 
Sent: Tuesday, August 05, 2014 3:46 PM
To: users@flex.apache.org
Subject: Re: Design tools for creating Flex 4 skins

How is FXG broken? Do you mean when you paste it into each of these different 
places they all render differently? If that's true that's because they are 
converting to their own internal representation. Flash Catalyst was great at 
cleaning up the exported FXG from Illustrator. I would create a vector in 
Illustrator, go to save (as FXG) and copy the FXG to the clipboard, then in FC 
paste and it would pop open a dialog that let you choose how to handle the 
import. For example, it would rasterize some things if you didn't tell it not 
to.

But I agree that it would not always look the same as the original in 
Illustrator. I think FXG is supposed to be better than SVG (at least 1.0 SVG).


On Tue, Aug 5, 2014 at 1:59 PM, Jason Taylor ja...@dedoose.com wrote:

 I have found inscape to be very good.  FXG is a broken format afaik as 
 flash, illustrator, and flex seem to all do different things depending 
 on the version. The route I then chose was to go with SVG.  Flex's 
 native support of SVG initially was a bit lacking so we developed a 
 component to better support that.  Once vector SVGs were handled well, 
 it has been easy to make vector based skins in either Illustrator, or 
 Inkscape (the only 2 I tried). When saving the svg from inkscape, as as 
 Optimized SVG.

 Following is the VectorImage I use for displaying SVG's in flex. Some 
 of this code was borrowed from a stack overflow answer, and a lot was 
 modified to make it work in our use cases. Good luck!

 ~ JT


 import flash.display.DisplayObject;
 import flash.geom.Rectangle;
 import mx.core.UIComponent;
 import spark.primitives.Rect;

 public class VectorImage extends UIComponent {
 private var _scaleUniform:Boolean = true;

 public function VectorImage(source:Class = null)
 {
 if(source){
 this.source = source;
 }
 super();
 }

 private var _source : Class;
 protected var sourceChanged :Boolean = true;


 public function get source():Class
 {
 return _source;
 }

 public function set source(value:Class):void
 {
 _source = value;
 sourceChanged = true;
 this.commitProperties();
 invalidateDisplayList();
 }

 protected var imageInstance : DisplayObject;


 override protected function createChildren():void{
 super.createChildren();

 // if the source has changed we want to create, or 
 recreate, the image instance
 if(this.sourceChanged){
 // if the instance has a value, then delete it
 if(this.imageInstance){
 this.removeChild(this.imageInstance);
 this.imageInstance = null;
 }

 // if we have a source value; create the source
 if(this.source){
 this.imageInstance = new source();
 this.addChild(this.imageInstance);
 }
 this.sourceChanged = false;

 }
 }

 /**
  * @private
  */
 override protected function commitProperties():void{
 super.commitProperties();

 if(this.sourceChanged){
 // if the source changed re-created it; which 
 is done in createChildren();
 this.createChildren();
 }
 }

 override protected function measure():void
 {
 if(imageInstance != null)
 {
 this.measuredWidth = imageInstance.width;
 this.measuredHeight = imageInstance.height;
 this.minWidth = 5;
 this.minHeight = 5;
 }
 }

 override public function setActualSize(width:Number, 
 height:Number):void
 {
 this.width = width;
 this.height = height;
 ScaleImage(width, height);
 }

 /**
  * @private
  */
 override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{

Re: Debugging application with modules

2014-08-05 Thread mark goldin
Yes, that might be an issue. Here is how a project is structured. It has
the main application file and a bunch of mxml files that are in fact
modules. So, it's one single project with a number of modules. Can I
specify whether each module is compiled with or without debugging info?


On Tue, Aug 5, 2014 at 5:11 PM, Alex Harui aha...@adobe.com wrote:

 Number one reason is that the modules are not compiled with the -debug
 flag.

 Could that be your issue?
 -Alex

 On 8/5/14 1:51 PM, mark goldin markzolo...@gmail.com wrote:

 Is there any problem debugging an application that uses modules? I can get
 into code when I run main file, but a break point in the module code does
 not seem to stop execution.
 
 Thanks




Re: Debugging application with modules

2014-08-05 Thread Alex Harui


On 8/5/14 6:02 PM, mark goldin markzolo...@gmail.com wrote:

Yes, that might be an issue. Here is how a project is structured. It has
the main application file and a bunch of mxml files that are in fact
modules. So, it's one single project with a number of modules. Can I
specify whether each module is compiled with or without debugging info?
I think Flash Builder should be building them all as debug version if they
are all ending up in bin-debug.

The second most common problem is that the classes you are trying to debug
were loaded before the module was loaded and the classes were not a debug
version.  I would turn off the use of RSLs while debugging.

Next most common problem is that the module gets unloaded because nothing
is keeping it in memory.  The debugger may try to force GC more often and
kick the module out sooner.

Another potential problem is that the module is old and doesn't match the
source code.

You can try debugging with fdb.  It will halt every time a debuggable
module loads.  That's how I know a module was not built with debug info in
it.

-Alex



On Tue, Aug 5, 2014 at 5:11 PM, Alex Harui aha...@adobe.com wrote:

 Number one reason is that the modules are not compiled with the -debug
 flag.

 Could that be your issue?
 -Alex

 On 8/5/14 1:51 PM, mark goldin markzolo...@gmail.com wrote:

 Is there any problem debugging an application that uses modules? I can
get
 into code when I run main file, but a break point in the module code
does
 not seem to stop execution.
 
 Thanks