Re: MobileGrid Skins

2017-04-12 Thread leswoolsey
The justification stuff worked OK.

I figured the simplest way to override LabelItemRenderer was to simply
duplicate your actionscript version and rename it. Then in MobileGrid.as I
changed the reference to point to the new one I created.
But no matter what I do in my new class, nothing seems to affect the row
height.  I even tried overriding the background color and that didn't seem
to have any effect.

I can't get a breakpoint to work in the itemRenderer either but I assume
that's because it's instantiated by a ClassFactory call.  I tried setting
breakpoints in your unmodified code with the same result.

Have I set something up wrong or am I missing how to modify the item
renderer.

Thanks
Les




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


Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

2017-04-12 Thread Alex Harui
Ah, sorry, I think I get it now.

The scripts in flex-asjs are meant to be used in a FlexJS SDK, where the
install script has combined flex-asjs and flex-falcon (and flex-typedefs)
under a single folder.

But when using just the repos, I don't use those scripts.  Most of what I
do is test the examples and each examples has its own Ant and Maven script.

When testing your own app against the repos, I believe it will just work
in Maven because the Maven build will put the compiler artifacts in the
local Maven repository.

There are Ant targets "compile", "compile-js" and "compile-js-release"
that I use when compiling a custom app.  To use "compile" you would use:

  ant compile -Dfile=

I believe other folks are using the Installer to install a nightly build
and then manually copy jars from the working copies to the right places.
On Linux, the Installer doesn't work, but you should be able to download a
nightly build from [1], expand it, and use:

  ant -f installer.xml

to create the FlexJS SDK and then copy in files from the working copies.

HTH,
-Alex

[1] 
http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/
artifact/out/apache-flex-flexjs-0.8.0-bin.tar.gz

On 4/12/17, 12:04 AM, "davide.pr...@lispa.it" 
wrote:

>Hi Alex, 
>
>Alex Harui ha scritto:
>
>> Did you run "ant all" instead of just "ant" in flex-falcon?
>
>No, I have run
>
>$ ant main
>$ ant jx
>
>not with
>$ ant all
>
>I have the .jar in the correct place.
>
>Thanks
>Davide



Re: PHP Service Efficiency

2017-04-12 Thread Tom Chiverton
If you really do need 10k simultaneous calls, you will be having a 
cluster of servers :-)


So the efficiency of a single one isn't as important.

And a better organised set of files in the service will help maintenance 
and bug fixing.


Tom


On 11/04/17 15:33, Jeffry Houser wrote:


 It is not really a Flex question, so I generally agree.

 My expectation is that PHP will be able to handle multiple threads / 
concurrent requests [just like most other server side software I've 
used].  At certain traffic limitations you may need to use a more 
powerful server, or even multiple servers to prevent things from 
getting overloaded.


 It seems unlikely to me that you'll have 10K users accessing the same 
service simultaneously, but it depends on the app your user base and 
the success of the venture.



On 4/11/2017 6:55 AM, Fréderic Cox wrote:

I think this is a question that is better suited for stackoverflow.

On Tue, Apr 11, 2017 at 3:21 AM, bilbosax  
wrote:



This is just a little theoretical question I have wondered about, so I
thought I would ask it here.  I am writing an app that I hope will 
have at
least 10k users daily.  When you set up your services, you can 
technically
put them all in a single PHP file if you want to, or spread them out 
across
several files that are more specific, however you want to do it.  
But I am
curious, if I have 10k users trying to access a single PHP file 
instead of

having the workload spread across several PHP files, will this cause a
bottleneck, and will I lose efficiency.

I have no idea how PHP handles multiple users.  Does anybody know if 
the
workload will be handled more efficiently if the PHP services are 
spread

across multiple files rather than one big one?

Thanks for any insight.



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







Re: MobileGrid Skins

2017-04-12 Thread quick6black
1. the text is center aligned because ButtonSkinBase has "protected var
useCenterAlignment:Boolean = true;"

if you add this line of code  "useCenterAlignment = false;"  into
ButtonBarButtonSkin after super(); it will align the text to the left. 

2. if you want to change the row height you will need to create a new
LabelItemRenderer and reference that in the MobileGridSkin.





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


Re: MobileGrid Skins

2017-04-12 Thread leswoolsey
For changing the row height, the suggestion earlier in the thread (height:
50; ) doesn't work.



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


Re: [FlexJs]: Error: Access of possibly undefined property JSON

2017-04-12 Thread piotrz
Davide,

Failing tests are for sure not good, but in order to move forward try to
skip them using:

-DskipTests 

Let me know how it goes.

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/FlexJs-Error-Access-of-possibly-undefined-property-JSON-tp15016p15035.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJs]: Error: Access of possibly undefined property JSON

2017-04-12 Thread davide . prina
Hi Piotrz,

piotrz ha scritto:

> There are two way of building flexjs framework: Maven[1] or Ant. I can help
> with Maven related build

Ok, I try Maven


I start all in a new directory.

I have write some NOTEs with thing that I think it is better to insert into the 
guide.

What I have done for now is:

1) I have downloaded/extracted fleshdebugger for Linux
https://fpdownload.macromedia.com/pub/flashplayer/updaters/25/flash_player_sa_linux_debug.x86_64.tar.gz

2) I have downloaded/extracted jdk1.8.0_121

3) maven was already installed on my Debian box

4) I have created a env.sh file:

---8<---8<---8<---8<---8<---8<---8<---8<---8<
#!/bin/bash

export JAVA_HOME=/home/flex/java/jdk1.8.0_121
export MAVEN_HOME=/usr/share/maven
export 
FLASHPLAYER_DEBUGGER=/home/flex/FlexJS_maven/librerie/flash_player_sa_linux_debug.x86_64/flashplayerdebugger
---8<---8<---8<---8<---8<---8<---8<---8<---8<

and executed it in the shell I use to run all command:
$ . ~/env.sh

NOTE: I think it is better to insert the set of the JAVA_HOME into the guide
NOTE: if you have a proxy with a password you must set the proxy configuration 
for Maven
  https://maven.apache.org/guides/mini/guide-proxies.html
  I have set it in the global settings.xml (/etc/maven/settings.xml)
  Setting it for the the local user don't work...

5) flex-falcon
git clone https://git-wip-us.apache.org/repos/asf/flex-falcon.git flex-falcon
cd flex-falcon
git checkout develop
mvn -s settings-template.xml clean install

I have got error on test. I copy below the log I can see in my shell and 
two file output.

Ciao
Davide

compiler/target/surefire-temp/MXMLVectorTagTests6678756087582125039.swf]
Generating test:
Compiling test:
-locale=en_US 
-external-library-path=/home/flex/.m2/repository/com/adobe/flash/framework/playerglobal/20.0/playerglobal-20.0.swc
 -library-path= 
-namespace=http://ns.adobe.com/mxml/2009,/home/flex/.m2/repository/org/apache/flex/framework/framework/4.15.0/configs_zip/mxml-2009-manifest.xml
 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests8783893186575730347.mxml
 

1312 bytes written to 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests8783893186575730347.swf
 in 0,478 seconds
Executing test:
[/home/flex/FlexJS_maven/librerie/flash_player_sa_linux_debug.x86_64/flashplayerdebugger,
 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests8783893186575730347.swf]
Generating test:
Compiling test:
-locale=en_US 
-external-library-path=/home/flex/.m2/repository/com/adobe/flash/framework/playerglobal/20.0/playerglobal-20.0.swc
 -library-path= 
-namespace=http://ns.adobe.com/mxml/2009,/home/flex/.m2/repository/org/apache/flex/framework/framework/4.15.0/configs_zip/mxml-2009-manifest.xml
 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests4578647946335853168.mxml
 

1359 bytes written to 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests4578647946335853168.swf
 in 0,449 seconds
Executing test:
[/home/flex/FlexJS_maven/librerie/flash_player_sa_linux_debug.x86_64/flashplayerdebugger,
 
/home/flex/FlexJS_maven/flex-falcon/compiler/target/surefire-temp/MXMLVectorTagTests4578647946335853168.swf]
Tests run: 7, Failures: 2, Errors: 0, Skipped: 3, Time elapsed: 4.134 sec <<< 
FAILURE! - in mxml.tags.MXMLVectorTagTests
MXMLVectorTag_instanceElements(mxml.tags.MXMLVectorTagTests)  Time elapsed: 
1.013 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is <0>
 got: <1>

at org.junit.Assert.assertThat(Assert.java:780)
at org.junit.Assert.assertThat(Assert.java:738)
at 
mxml.tags.MXMLFeatureTestsBase.compileAndRun(MXMLFeatureTestsBase.java:148)
at 
mxml.tags.MXMLFeatureTestsBase.compileAndRun(MXMLFeatureTestsBase.java:153)
at 
mxml.tags.MXMLVectorTagTests.MXMLVectorTag_instanceElements(MXMLVectorTagTests.java:206)

MXMLVectorTag_arrayElements(mxml.tags.MXMLVectorTagTests)  Time elapsed: 1.11 
sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is <0>
 got: <1>

at org.junit.Assert.assertThat(Assert.java:780)
at org.junit.Assert.assertThat(Assert.java:738)
at 
mxml.tags.MXMLFeatureTestsBase.compileAndRun(MXMLFeatureTestsBase.java:148)
at 
mxml.tags.MXMLFeatureTestsBase.compileAndRun(MXMLFeatureTestsBase.java:153)
at 
mxml.tags.MXMLVectorTagTests.MXMLVectorTag_arrayElements(MXMLVectorTagTests.java:133)

Running mxml.tags.MXMLWebServiceTagTests
Generating test:
Compiling test:
-locale=en_US 
-external-library-path=/home/flex/.m2/repository/com/adobe/flash/framework/playerglobal/20.0/playerglobal-20.0.swc
 

Re: [FlexJs]: Error: Access of possibly undefined property JSON

2017-04-12 Thread piotrz
Hi Davide,

You should switch for flexjs, falcon and typedefs repositories to develop
branch.

There are two way of building flexjs framework: Maven[1] or Ant. I can help
with Maven related build, but if you choose Ant maybe some other folks will
help you. 

[1]
https://cwiki.apache.org/confluence/display/FLEX/Building+FlexJS+with+Maven

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/FlexJs-Error-Access-of-possibly-undefined-property-JSON-tp15016p15033.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJs]: Error: Access of possibly undefined property JSON

2017-04-12 Thread davide . prina
Hi Alex,

On 11/04/2017 17:31, Alex Harui wrote:

> which version of the sources are you using?

I take all from git repositories, with "git clone".
I started few day ago (I think after April 3)

> I believe Justin
> recently fixed the nightly build for, but earlier releases didn't work.

do you know which file has been patched?

I have download and compile nearly all. These are the main directories:
flex-blazeds
flex-flexunit
jflex-1.6.1
flex-sdk
flex-typedefs
flex-asjs
flex-falcon
flexunit
jflex
flex-tlf

Ciao
Davide



Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

2017-04-12 Thread davide . prina
Hi Alex, 

Alex Harui ha scritto:

> Did you run "ant all" instead of just "ant" in flex-falcon?

No, I have run

$ ant main
$ ant jx

not with
$ ant all

I have the .jar in the correct place.

Thanks
Davide


Re: Crippling Lag - Windows 10 IE11 - FlashPlayer / IBM ILOG Elixir

2017-04-12 Thread Alex Harui

On 4/11/17, 9:43 AM, "DarrenEvans" 
wrote:
>Alex Harui wrote
>> There was also some performance issues related to line drawing.  If you
>> draw lines with different line-joins, some line-joins because really
>>slow.
>> 
>> In another case I saw, a bug kept a tiny Flash Authoring SWF they were
>> using for either a wait cursor or some advertising running.
>
>I don't think there is any manual line drawing stuff going on. Surely I'd
>see that in some ActionScript code being executed .

It doesn't take a lot of AS to make the player spend a lot of time on the
rendering.  You just have to make a few lineTo calls with the right
line-joins.

Did we eliminate GPU vs non-GPU rendering?

>
>We are now getting desperate. A few more clients are now reporting the
>problem. Is there an official Adobe paid support process we can get going
>to
>resolve this that anyone knows of. My entry in the bug-tracker system is
>still at "Needs Review". We'd probably pay for an Adobe consultant to look
>at this! 

I'm pretty sure you can still call Adobe Support and pay for support.


-Alex