Re: deactivate KeyboardEvent on a Spark Button

2020-01-24 Thread kamcknig
It's also worth nothing that in some circumstances you migth also want to use
stopImmediatePropagation().

You can read about the differences on the doc page for the Event class
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/Event.html



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: deactivate KeyboardEvent on a Spark Button

2020-01-24 Thread kamcknig
You can add a keyDown listener and invoke event.stopPropagation();

You can also check the key being pressed if you only want certain key
presses stopped

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: How to implement complex mouse focus in ItemRenderer with a list which has a children ItemRenderers which has a list with children ItemRenderers and so on,,,,?

2019-11-15 Thread kamcknig
Implementation might depend on things like if the parents can ever/never be
selected. 

But you can do things like handle the changing event on the parent items and
prevent default on the event in certain instances or all the time.

Here is a pastebin https://pastebin.com/jpRc0U1s



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Flattening a nested array of asymetrical depth

2019-10-10 Thread kamcknig
So my example will still work though because your 'nodes' don't have
consistent naming, you'll probably have to add some data to the levels that
you want to extract into the flattened array and then where I'm checking for
"division" you would check for the new data that indicates it's at the level
you want to extract.

As for JS to AS, technically I did it in TypeScript. But it should be
directly portable aside from the types being used (just translate to as
types) and then the Array.isArray is specific to JS



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Flattening a nested array of asymetrical depth

2019-10-10 Thread kamcknig
Done in JS and def could be optimized. I have no idea on your data structure
or what you want the final structure to be.

https://pastebin.com/p0j2uTnp

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Camera issue on desktop (Win10)

2019-05-04 Thread kamcknig
Hi, I never saw this post or I would have responded, this has to do with the
specific camera and driver you are using I will bet. I ran into this issue
at my job and it took us weeks to figure out when clients told us this was
happening. We ended up finding out that with the camera model they were
using, one set of drivers would cause this to happen, but another set of
drivers would work fine. It also depended on the camera model. I can't
recall what models though. I believe it happened to be a Logitech one,
though I'm sure it would happen with other models as well. For us it was
exactly 72 activations every single time. It was utterly consistent in that
regard.

The only advice I can give is to try differnt camera models or different
drivers for the camera you had. In our case the "generic" windows ones I
think didn't work and we also tried two different drivers provided by
Logitech themselves and only one ended up working.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Set Focus at TextInput Inside Spark List ItemRenderer

2019-05-03 Thread kamcknig
Forgot a step

//somehwere else in your code to trigger focus on one of the text inputs'
var element = currentFacture.getElementAt();

After that you have to set the focused property on element before updating

element.focused = true/false;





--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Set Focus at TextInput Inside Spark List ItemRenderer

2019-05-03 Thread kamcknig
You'll have to do something similar to this as far as I know

https://pastebin.com/9LZbiasQ



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Set Focus at TextInput Inside Spark List ItemRenderer

2019-05-03 Thread kamcknig
If I'm understanding what you mean, you would need to control it via data.
The collection you pass into the dataProvider could have a property that
indicates whether the TextInput associated with that piece of data should
have focus. Then in the script for the ItemRenderer you override the set
data method and set focus based on the data passed in. There is no good way
to access individual item renderers within an ItemRendererOwner as far as I
know, nor is it good practice to try to do so. Item renderers should be
controlled through the data they are given.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error with flex-tool-api-jar in modules/downloads.xml

2019-04-24 Thread kamcknig
It looks like I got it working, at least it compiled, I haven't yet tried to
use the resultant libraries.

Though I still had problems and this is what I had to do:

1. I reset the branch so that my local repo matches tag 4.15.0 as it is in
the remote repo.
2. Updated env.properties in the base Flex SDK source folder to point to the
Java 8 64-bit JDK
3. I compiled and ran into this issue https://pastebin.com/dKnF08Ti which I
solved by removing the 'target' and 'source' attributes from the compile
target of modules/xerces-patch/build.xml file.
4. I compiled again and ran into a problem with the velocity jars. I noticed
in the output that the velocity build wasn't using the right JDK  (it was
still pointed at the Amazon Corretto one). I couldn't figure out why that
was so I just had to set the actual environment variable JAVA_HOME to the
right JDK rather than being able to use the env.properties file in the base
Flex SDK folder.

After that the build was reported successful

Thanks for all your help. If you have any insight into #4 as to why ti
wouldn't pick up the right JDK it'd be appreciated. I built with verbose on
as well just to see but when it got to that build step it just said that it
was ignoring the java.home override. So I'm not quite sure why it was using
the environment variable and not inheriting from the env.properties file.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error with flex-tool-api-jar in modules/downloads.xml

2019-04-23 Thread kamcknig
I downloaded the oracle 32 and 64 bit versions of 8 and the 64 bit version of
12. But none of them seem to  work as well. Looks like 6 and 7 are harder to
get now

KYle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error with flex-tool-api-jar in modules/downloads.xml

2019-04-21 Thread kamcknig
I should wait a few before posting :) 

So after paying closer attention to the difference between 4.15.0 and
4.16.1, a "/" was as well in the target to download the jars. I removed that
"/" from 4.15.0 modules/downloads.xml and was able to download the jars from
the maven repository.

However, I then ran into a problem compiling the thirdparty xerces library
(and then subsequently many others) that had the following error:

https://pastebin.com/j3eLTR6c

I tried changing the javac.src property to 1.6 but that didn't work, so I
just tried removing the 'source' and 'target' attributes from each of the
javac tasks for those targets that failed. Not sure if that was the best
solution, but it seemed to have worked.

Lastly... I'm stuck again and this time I haven't found the answer yet. I'm
getting an error with compiling the debugger it looks like and I don't know
enough about java compilation and these files to determine what is going on

https://pastebin.com/DFFvERRb

Thanks,
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Error with flex-tool-api-jar in modules/downloads.xml

2019-04-21 Thread kamcknig
Hello,

So building 4.15.0 gives me errors with the flex-tool-api-jar target in
modules/downloads.xml with the following error

https://pastebin.com/Kcs0SwX5

I looked at the latest 4.16.1 tag and the URLs themselves look like they
don't changed, just the way in which errors are handled. I'm not sure how to
fix this in this case.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Style on custom component isn't being inherited by labels

2019-04-19 Thread kamcknig
Setting styleName to "{this}" on Labels within the BottomControlBar did
indeed set the proper styles on the Label!

And you were also right it looks like about inheriting, if I remove the
selector for the spark Label in my css file and do /not/ use styleName on
the Labels, then the Labels do inherit from BottomControlBar

Thank you for your help,
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error deleting batik lib contents during build

2019-04-19 Thread kamcknig
Hi there, Piotr!

The project I'm working on is using it and they don't want to update yet
(we're even still using AIR 20.0 instead of 32.0 ). I'd like to make some
changes to the source and didn't want to just copy the class over to our own
project and change it there. I also like to tinker/play/learn so was doing
it for my own edification as well.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error deleting batik lib contents during build

2019-04-19 Thread kamcknig
For Java I am using Amazon's Corretto 11.

I did get it to work just by removing  the ** so I'm OK not finding the
answer to this at this point since I was able to get it to work. 

I did have another problem downloading some of the files during the build
now but I'll start another thread for that after researching if those URLs
have been updated since the 4.15.0 tag and maybe it's just the old tag that
has bad URLs

Thanks!
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Style on custom component isn't being inherited by labels

2019-04-19 Thread kamcknig
Ah good idea on pastebin *slaps forehead.

Here it is in pastebin,

https://pastebin.com/1y9yJvxu

So are you saying that the Label within BottomControlBar would be something
like:



Thank you for taking the time,
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Style on custom component isn't being inherited by labels

2019-04-18 Thread kamcknig
So after more research it appears that using getStyle within the skin is the
accepted way actually, according to  the old 4.6 using flex documentation
https://help.adobe.com/archive/en_US/flex/using/flex_4.6_help.pdf.

However, I still am not sure why my Labels within BottomControlBar are not
inheriting the styles from BottomControlBar. Is this because they are within
Groups?

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Style on custom component isn't being inherited by labels

2019-04-18 Thread kamcknig
Wow. I wrote that as HTML and the preview was fine. Here is an image of what
I originally wrote hah! As further information: IF within my custom skin for
the custom component I bind fontFamily/fontSize to
hostComponent.getStyle('fontFamily/fontStyle')  the Labels do update there,
though I feel this should not be necessary. 

However, the Labels that are children of the BottomControlBar still don't
have the style so my overall problem is still not solved


 



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error deleting batik lib contents during build

2019-04-18 Thread kamcknig
Hello,

I am using the latest Ant from the Apache site: 1.10.5

Thanks,
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Style on custom component isn't being inherited by labels

2019-04-18 Thread kamcknig
I'm not very good with styles in flex but I'm attempting to add a style to a
component and have the labels as children inherit the style.
In my external style sheet I have the following.
@namespace s "library://ns.adobe.com/flex/spark";@namespace controlbars
"com.accesso.views.controlbars.*";controlbars|BottomControlBar{color:
#424242;font-family: openSansRegular;fontSize: 10;}s|Label{
fontFamily: openSansRegular;fontSize: 14;   textAlign: "left";  
lineHeight:
"125%"; color: #212121;}
BottomControlBar inherits from Group and has a style defined in its Metadata
tag. Its content contains multiple labels (which are themselves children of
other component such as other Groups). Below is a simplified example of the
structure. The custom component itself has a custom skin class made up of
two Labels. In this example both the Group->HGroup->Label and the
Group->HGroup->custom:Component Labels do not have the styling that I've
declared in my CSS. They do however, have the styling that was applied as
the base Label style via the s|Label selector
s:Group xmlns:fx="http://ns.adobe.com/mxml/2009;
xmlns:s="library://ns.adobe.com/flex/spark"fx:Metadata   
[Style(name="fontFamily", type="String", inherit="yes")]   
/fx:Metadatas:Groups:HGroup   
s:Label /custom:Component /   
/s:HGroup/s:Group/s:Group
I have added an override in BottomControlBar and the getStyle method returns
the correct 'openSansRegular' fontFamily and 10 for fontSize so the style is
getting applied to BottomControlBar, it's just not being inherited by it's
children from what I can tell
override public function stylesInitialized():void{   
super.stylesInitialized();trace("BottomControlBar", "stylesInitialized",
getStyle('fontFamily'));trace("BottomControlBar", "stylesInitialized",
getStyle('fontSize'));}
I'm unsure how to debug this, could anyone help point me in the right
direction?Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Error deleting batik lib contents during build

2019-04-17 Thread kamcknig
For additional info as well I am building from the 4.15.0 tag

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Error deleting batik lib contents during build

2019-04-17 Thread kamcknig
Building the SDK appears to fail in the batik-jars target of the
modules/downloads.xml build file.

unzip-file:
[unzip] Expanding: D:\apache\flex\flex-sdk\in\batik-src-1.7.zip into
D:\apache\flex\flex-sdk\in

copy-downloaded-jar:

BUILD FAILED
D:\apache\flex\flex-sdk\build.xml:158: The following error occurred while
executing this line:
D:\apache\flex\flex-sdk\modules\build.xml:64: The following error occurred
while executing this line:
D:\apache\flex\flex-sdk\modules\downloads.xml:265:
java.nio.file.InvalidPathException: Illegal char <*> at index 53:
D:\apache\flex\flex-sdk\modules\thirdparty\batik\lib\**
at
java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at
java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at
java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at
java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2290)
at
org.apache.tools.ant.taskdefs.Delete.isDanglingSymlink(Delete.java:879)
at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:642)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
...
...

It appears ** is not valid in the dir attribute of delete maybe? 

I think I can just change the value to "${basedir}/${batik.dir}/lib" but
wanted to post here to be sure of the intention of that target and if this
is an error on other systems?

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Flex SDK installer doesn't seem to install

2019-04-17 Thread kamcknig
Hi, 

This was on a Windows 10 Pro machine.

I downloaded the file using this link
http://www.apache.org/dyn/closer.lua/flex/installer/3.3.2/binaries/apache-flex-sdk-installer-3.3.2-bin.exe
from this page http://flex.apache.org/installer.html

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: How does mxmlc.jar get created?

2019-04-17 Thread kamcknig
I had checked both the README and the main build.xml for references of it
specifically before posting but hadn't seen any, maybe I missed it or it's
elsewhere. I will attempt to build and report back at that point if I have
any problems, thank you!

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


How does mxmlc.jar get created?

2019-04-16 Thread kamcknig
I have clone the SDK repo but the mxmlc.jar is not included it appears. How
does that get built? I don't see a reference to it in the build files of the
SDK either.

Thanks!
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Flex SDK installer doesn't seem to install

2019-04-16 Thread kamcknig
I'm attempting to install the SDK installer version 3.3.2. A dialog opens
with progress saying it installs. It makes it all the way but then gives no
error or success and the SDK installer is nowhere on my computer that I can
find.


 

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Auto-Correct Oddities

2019-03-12 Thread kamcknig
Again, I haven't themed much so I'm guessing, and I don't currently have
4.16.1, but in Flex 4.15 if you check the /frameworks/flex-config.xml I see that it looks like it's using the
Spark theme. I have no idea if there is anything internally that changes
that when compiling/packaging for mobile though.



   
   themes/Spark/spark.css


Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Auto-Correct Oddities

2019-03-11 Thread kamcknig
Here is the documentation I referenced mentioning that autoCorrect does not
work for the Spark theme

https://flex.apache.org/asdoc/spark/components/supportClasses/SkinnableTextBase.html#autoCorrect

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Auto-Correct Oddities

2019-03-11 Thread kamcknig
I don't know much about this at all but are you using the spark theme? The
apache docs say that this is not supported on the spark theme.

I also saw a bug report that said something about autoCorrect wasn't
working properly  with custom skins (though I think it was a different
issue, but maybe related if you're using one).

That's all the insight I can offer as I haven't really done any mobile
Flex/AIR development.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


How do I see trace messages from Flex framework classes

2019-01-03 Thread kamcknig
How can I set up a logger or trace target that shows the trace messages from
the Flex framework itself?

Thanks
Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: simple one

2018-12-14 Thread kamcknig
You can use encoded ampersands like this:

visible="{data.accountType != 1  data.aPage  }"



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: New install of 4.16.1 and air 31 missing things for build

2018-11-16 Thread kamcknig
The solution is that you cannot use the installer as it uses the binary
packages. You must use the source code if you are trying to build the SDK
yourself.

The installer itself at that time I had the issue was working fine, it was
just building from the SDK from the installer files did not work.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Detecting window resize complete on AIR native desktop

2018-10-15 Thread kamcknig
As far as I know there isn't a way, a stackoverflow user asked the same 

https://stackoverflow.com/questions/11014968/detect-when-the-resize-event-has-finished

I can't think of any way to do so.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: New install of 4.16.1 and air 31 missing things for build

2018-10-12 Thread kamcknig
I was able to compile from the source, thank you!

I did however have to update the build.xml file to set more SWF versions
because it stops version 35



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: New install of 4.16.1 and air 31 missing things for build

2018-10-10 Thread kamcknig
I have included two log files, the normal one, and one with verbose logging=


I also noticed that playerglobal.version, playerglobal.swfversion and
air.version aren't updated in the build.properties of the root folder of
the SDK when using the apache installer to install the latest versions of
the AIR and Flex framework so the ant build fails with this error until
those are set properly

check-playerglobal-home:
 [echo] PLAYERGLOBAL_HOME is
C:\development\libraries\apache\flex_air\flex_4.16.1_air_31\frameworks\libs=
\player
 [echo] playerglobal.version is 27.0

Kyle

flex_logging_without_verbose.txt

  
flex_build_log.txt
  




--
Sent from: http://apache-flex-users.246.n4.nabble.com/


New install of 4.16.1 and air 31 missing things for build

2018-10-03 Thread kamcknig
On a fresh install using the installer of the Flex SDK 4.16.1 and AIR 31,
when I run the ant main target from the base folder, it fails on the
thirdparty-downloads target on line 158 because the modules folder doesn't
exist.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Flex Installer missing crosspromotion.swc

2018-10-02 Thread kamcknig
I only just now saw this reply, apologies!

I downloaded both the SDK with and without the new compiler and neither
appear to have it in it.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Spark globalization and localization packages

2018-10-02 Thread kamcknig
I'm in the latest Flex and AIR trying to use the
spark.formatters.CurrencyFormatter. The documentation says that it's a
wrapper for the flash.globalization.CurrencyFormatter which uses system
locale settings to display and format data.

This seems to work generally. If i create a formatter with an fr_FR locale
and format a currency I get the proper format and symbol placement. However,
if I got into my Windows 10 region settings and update the french settings
to display currency symbol to the left rather than the right, AIR doesn't
not then display it that way, it continues displaying it in the default way.
I tested other settings too such as changing the decimal symbol, but that
was also not reflected within AIR. How does one change the system settings
and have it then reflected in AIR using the globalization package classes?

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: setStyle on a Label

2018-09-20 Thread kamcknig
Your label needs a width. If you leave it at the default width, it resizes to
the length of the text. So you are centering it, you just can' tell. 

At least that is my guess, without knowing the layout of the Label component
within the parent.



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Flex Installer missing crosspromotion.swc

2018-09-06 Thread kamcknig
When I use the Flex installer and install Flex/AIR, if I then attempt to
build my application using IntelliJ, I get an error that crosspromotion.swc
is missing. I have tried multiple combinations, but it is always missing and
I have to go back to a very old version of my SDKs (that I can't recall
where I installed from since I've had them forever) and copy over the
crosspromotion.swc from frameworks/libs/air to the new SDK in order for it
to work.

Kyle



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: unable to transcode font

2017-06-19 Thread kamcknig
Downloading manually was my next step. I noticed the cache variable and was
thinking of just adding it to my environment variables during the session I
run it. I don't have the latest java but I do have java 8.

Thanks! I'll download manually and see if I can transcode afterwards.


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Mon, Jun 19, 2017 at 7:17 PM, Alex Harui-2 [via Apache Flex Users] <
ml+s246n15344...@n4.nabble.com> wrote:

> OSMF is for video.  My email munges links.  It should be:
>
> https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/
> frameworks/libs/
> OSMF2_0.swc?format=raw
>
>
> For fonts there is:
> https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/
> lib/afe.jar?form
> at=raw
> https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/
> lib/aglj40.jar?f
> ormat=raw
> http://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/
> lib/rideau.jar?fo
> rmat=raw
> http://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib/flex-fontkit.
>
> jar?format=raw
>
>
>
>
>
> Some folks are having problems downloading via Ant from source forge.  If
> you are getting an SSL handshake problem, you may need to upgrade to the
> latest Java 8, or try one of the workaround for the JCE issues here:
>
> http://stackoverflow.com/questions/38203971/javax-net-
> ssl-sslhandshakeexcep
> tion-received-fatal-alert-handshake-failure/38264878#38264878
>
>
> If you are still having trouble, I think you can try having a local cache
> of these downloads.  In the Installer, right-click, turn on the download
> cache, and choose a folder.  I've chosen on my Mac, $HOME/InstallerCache
>
> Manually download the files at the links and place them in:
>
> $HOME/InstallerCache/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs/OSM
>
> F.swc
> $HOME/InstallerCache/adobe/flexsdk/code/HEAD/tree/trunk/lib/afe.jar
> $HOME/InstallerCache/adobe/flexsdk/code/HEAD/tree/trunk/lib/aglj40.jar
> $HOME/InstallerCache/adobe/flexsdk/code/HEAD/tree/trunk/lib/rideau.jar
> $HOME/InstallerCache/adobe/flexsdk/code/HEAD/tree/trunk/lib/flex-fontkit.ja
>
> r
>
>
>
>
>
> In theory the Installer will pick up files from the cache instead of
> SourceForge.
>
> HTH,
> -Alex
>
>
> On 6/19/17, 3:57 PM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node=15344=0>> wrote:
>
> >Are these the jars downloaded mentioned on the Apache download page that
> >can be obtained via the thirdparty-downloads ant target? If so this fails
> >for me when it tries to download "
> >https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fsourcefor
> >ge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>
> >2FOSMF2_0.swc%3Fformat%3Draw=02%7C01%7C%7Cdead57c6301c4289ff8308d4b76
>
> >8f445%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636335108780701140
>
> >a=HG768S7W2BpKAAsgWyOUlp4p1G76g2brdx1xkO54a8I%3D=0".
> >It says it cannot be downloaded but if I put the URL in the browser it
> >downloads just fine.
> >
> >Kyle
> >
> >
> >Kyle McKnight
> >Senior UI Engineer - Accesso
> >602.515.1444 <(602)%20515-1444> (M)
> >
> >On Sun, Jun 18, 2017 at 11:08 AM, Josh Tynjala [via Apache Flex Users] <
> >[hidden email] <http:///user/SendEmail.jtp?type=node=15344=1>>
> wrote:
> >
> >> The font encoding features come from files that are downloaded from
> >>Adobe.
> >> I don't think anything changed on their end. Maybe something went wrong
> >> with the download. I'd try reinstalling 4.16 to see if you still have
> >>the
> >> problem with a fresh copy.
> >>
> >> - Josh
> >>
> >> On Jun 17, 2017 12:06 PM, "Kyle McKnight" <[hidden email]
> >> <http:///user/SendEmail.jtp?type=node=15336=0>> wrote:
> >>
> >> After updating from flex 4.15 to Flex 4.16, I can no longer transcode
> >> fonts
> >> that I was previously able to. They are OTF fonts and still work when
> >> compiled with the 4.15 SDK.
> >>
> >> I get the following errors for each font
> >>
> >> C:\\ExpressCSS.css: exception during transcoding:
> >> src:url("../../fonts/MyriadPro-Semibold.otf");
> >>
> >> C:\\ExpressCSS.css: unable to build font 'mpSemiBold'
> >> src:url("../../fonts/MyriadPro-Semibold.otf");
> >>
> >> C:\\ExpressCSS.css: Unable to transcode
> >> C://MyriadPro-Semibold.otf.
> >> src:url("../../fonts/MyriadPro-Semibold.otf");
> >>
> >

Re: unable to transcode font

2017-06-19 Thread kamcknig
Are these the jars downloaded mentioned on the Apache download page that
can be obtained via the thirdparty-downloads ant target? If so this fails
for me when it tries to download "
https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs/OSMF2_0.swc?format=raw;.
It says it cannot be downloaded but if I put the URL in the browser it
downloads just fine.

Kyle


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Sun, Jun 18, 2017 at 11:08 AM, Josh Tynjala [via Apache Flex Users] <
ml+s246n15336...@n4.nabble.com> wrote:

> The font encoding features come from files that are downloaded from Adobe.
> I don't think anything changed on their end. Maybe something went wrong
> with the download. I'd try reinstalling 4.16 to see if you still have the
> problem with a fresh copy.
>
> - Josh
>
> On Jun 17, 2017 12:06 PM, "Kyle McKnight" <[hidden email]
> > wrote:
>
> After updating from flex 4.15 to Flex 4.16, I can no longer transcode
> fonts
> that I was previously able to. They are OTF fonts and still work when
> compiled with the 4.15 SDK.
>
> I get the following errors for each font
>
> C:\\ExpressCSS.css: exception during transcoding:
> src:url("../../fonts/MyriadPro-Semibold.otf");
>
> C:\\ExpressCSS.css: unable to build font 'mpSemiBold'
> src:url("../../fonts/MyriadPro-Semibold.otf");
>
> C:\\ExpressCSS.css: Unable to transcode
> C://MyriadPro-Semibold.otf.
> src:url("../../fonts/MyriadPro-Semibold.otf");
>
> Anyone else get this while upgrading? Or at all with 4.16? Anyone know
> what
> I might be able to do to get it working again?
>
> Kyle McKnight
> Senior UI Engineer - Accesso
> 602.515.1444 <(602)%20515-1444> (M)
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/unable-
> to-transcode-font-after-updating-to-SDK-4-16-tp15333p15336.html
> To unsubscribe from unable to transcode font after updating to SDK 4.16, click
> here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/unable-to-transcode-font-after-updating-to-SDK-4-16-tp15333p15342.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Modal background is not centered if modal is shown while minimized

2017-06-06 Thread kamcknig

 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Modal-background-is-not-centered-if-modal-is-shown-while-minimized-tp15286p15287.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: TextInput in a DataGrid

2017-01-31 Thread kamcknig
I solved it by binding the TextInput's text property to a property of the
ItemRenderer's data Object and setting that data in a change handler on the
TextInput and then calling dataProvider.itemUpdated(). 

I feel this is a bit hacky, so please, if anyone else has a way to do it,
let me know? :)

Thanks!
Kyle



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


TextInput in a DataGrid

2017-01-31 Thread kamcknig
Hey everyone, 

I'm using a spark DataGrid that has an inline ItemRenderer which has a
TextInput inside of it. Whenever the data provider for the DataGrid changes
the amount of ItemRenderers change based on the length of the dataProvider
properly, but the TextInput's text doesnt empty back out. Any renderer's
used previously still have their values filled in.

I have set useVirtualLayout to false on the VerticalLayout I've given it.
I've tried adding an initialText property to the data items and then setting
text="{ data.initialText }" and that clears out the field, but then when the
user puts the cursor in the text area and types the first key they press
doesn't seem to be registered, only on the second key does text actually get
entered.

Following is the DataGrid in MXML the denominationCount TextInput is the one
that I would like cleared when the dataProvider is refreshed.





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


Re: Trying to compile runtime resource modules

2017-01-01 Thread kamcknig
I went ahead and changed PostCodeValidator's BUNDLENAME static const to
"apache" and recompiled it and put it in the apache bundle. So the only way
I've gotten it to work is to load the module and then immediately
initialize any validators. I'm unsure what causes the getString() to return
null later on considering it seems by looking at the debugger everything
should still be intact. I'm never updating the locale in any other spot.


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Mon, Jan 2, 2017 at 12:51 AM, Alex Harui [via Apache Flex Users] <
ml-node+s246n14397...@n4.nabble.com> wrote:

> You mentioned in another thread that PostCodeValidator is looking in a
> different bundle.  Which bundle did you put your custom error messages in?
>
> -Alex
>
> On 1/1/17, 1:33 PM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node=14397=0>> wrote:
>
> >I also found out that if I create an instance of hte PostCodeValidator
> >right after I set the resourceManager's locale chain and use it then it
> >works. It's only when the PostCodeValidator is instantiated at a later
> >time.
> >
> >
> >Kyle McKnight
> >Senior UI Engineer - Accesso
> >602.515.1444 <(602)%20515-1444> (M)
> >
> >On Sun, Jan 1, 2017 at 3:55 PM, kamcknig [via Apache Flex Users] <
> >[hidden email] <http:///user/SendEmail.jtp?type=node=14397=1>>
> wrote:
> >
> >> I've done some more investigating, it seems that actually my SWFs might
> >>be
> >> OK. I used the debugger and put a break point when the resource module
> >>SWF
> >> is loaded and a used the getString() method to pull out the string I
> >> wanted. The first two pictures show ID of the resource manager and the
> >> value of the string I retrieved from the loaded module.
> >>
> >>
> >>
> >>
> >> Later on when the PostCodeValidator is used you can see where the
> >>setters
> >> are called to set the error messages. The first screenshot shows the ID
> >>of
> >> the resourceManager and it's the same as the ID from previously. So
> it's
> >> the same instance. Yet the second screenshot shows that the value is
> >>null
> >> when it's retrieved. BUNDLENAME = "apache" (like it is when I'm
> >>retrieving
> >> it when it works, but this is part of the framework so they used the
> >> constant.
> >>
> >>
> >>
> >>
> >> --
> >> If you reply to this email, your message will be added to the
> discussion
> >> below:
> >> http://apache-flex-users.246.n4.nabble.com/Trying-
> >> to-compile-runtime-resource-modules-tp14391p14395.html
> >> To unsubscribe from Trying to compile runtime resource modules, click
> >>here
> >>
> >><http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?
>
> >>macro=unsubscribe_by_code=14391=a2FtY2tuaWdAZ21haWwuY29tfDE0Mzk
>
> >>xfC0xNTg3MjQ1NTM4>
> >> .
> >> NAML
> >>
> >><http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?
>
> >>macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml
>
> >>.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl
>
> >>e.view.web.template.NodeNamespace=notify_subscribers%21nabble
>
> >>%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21n
>
> >>abble%3Aemail.naml>
> >>
> >
> >
> >
> >
> >--
> >View this message in context:
> >http://apache-flex-users.246.n4.nabble.com/Trying-
> to-compile-runtime-r
> >esource-modules-tp14391p14396.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/Trying-
> to-compile-runtime-resource-modules-tp14391p14397.html
> To unsubscribe from Trying to compile runtime resource modules, click here
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=14391=a2FtY2tuaWdAZ21haWwuY29tfDE0MzkxfC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-compile-runtime-resource-modules-tp14391p14398.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Trying to compile runtime resource modules

2017-01-01 Thread kamcknig
I also found out that if I create an instance of hte PostCodeValidator
right after I set the resourceManager's locale chain and use it then it
works. It's only when the PostCodeValidator is instantiated at a later time.


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Sun, Jan 1, 2017 at 3:55 PM, kamcknig [via Apache Flex Users] <
ml-node+s246n14395...@n4.nabble.com> wrote:

> I've done some more investigating, it seems that actually my SWFs might be
> OK. I used the debugger and put a break point when the resource module SWF
> is loaded and a used the getString() method to pull out the string I
> wanted. The first two pictures show ID of the resource manager and the
> value of the string I retrieved from the loaded module.
>
>
>
>
> Later on when the PostCodeValidator is used you can see where the setters
> are called to set the error messages. The first screenshot shows the ID of
> the resourceManager and it's the same as the ID from previously. So it's
> the same instance. Yet the second screenshot shows that the value is null
> when it's retrieved. BUNDLENAME = "apache" (like it is when I'm retrieving
> it when it works, but this is part of the framework so they used the
> constant.
>
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Trying-
> to-compile-runtime-resource-modules-tp14391p14395.html
> To unsubscribe from Trying to compile runtime resource modules, click here
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=14391=a2FtY2tuaWdAZ21haWwuY29tfDE0MzkxfC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-compile-runtime-resource-modules-tp14391p14396.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Trying to compile runtime resource modules

2017-01-01 Thread kamcknig
I've done some more investigating, it seems that actually my SWFs might be
OK. I used the debugger and put a break point when the resource module SWF
is loaded and a used the getString() method to pull out the string I wanted.
The first two pictures show ID of the resource manager and the value of the
string I retrieved from the loaded module.

 
 

Later on when the PostCodeValidator is used you can see where the setters
are called to set the error messages. The first screenshot shows the ID of
the resourceManager and it's the same as the ID from previously. So it's the
same instance. Yet the second screenshot shows that the value is null when
it's retrieved. BUNDLENAME = "apache" (like it is when I'm retrieving it
when it works, but this is part of the framework so they used the constant.

 
 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-compile-runtime-resource-modules-tp14391p14395.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Trying to compile runtime resource modules

2017-01-01 Thread kamcknig
I guess I could also show my ant build script. I have two source paths in
there, one commented out. One points to the folder that has the compiled
locale SWCs that I know work when compiled into the app (it's the commented
out one right now), the other points to the folder that contains the
*.properties files that the SWCs were compiled with.



































--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-compile-runtime-resource-modules-tp14391p14394.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-26 Thread kamcknig
Awesome thanks! I'll consider this answered. If I do play with it more and
get it figured out I'll post the solution though.




Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Wed, Oct 26, 2016 at 2:54 PM, Alex Harui [via Apache Flex Users] <
ml-node+s246n13956...@n4.nabble.com> wrote:

>
>
> On 10/26/16, 11:59 AM, "Kyle McKnight" <[hidden email]
> > wrote:
>
> >Apologies I meant longest text.
> >
> >It definitely works with useVirtualLayout set to false, I have already
> >tried that and it works just fine. And technically I don't have enough
> >renderers at once that that would actually be fine. I just was trying to
> >figure this out as more of a learning experience since general practice
> is
> >to use virtual layouts.
>
> If you want to keep playing with it, you can see if a call to
> TileLayout.clearVirtualLayoutCache also brings you more stability.  You
> might need to make a custom version of TileLayout that calls
> clearVirtualLayoutCache() at the beginning of measure()
>
> HTH,
> -Alex
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Do-
> ItemRenderer-s-get-reused-across-different-components-tp13928p13956.html
> To unsubscribe from Do ItemRenderer's get reused across different
> components?, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13957.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-26 Thread kamcknig
Lol. Gnarly.Good word for it :)



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13952.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-26 Thread kamcknig
Test project attached. If you just click each of the buttons multiple times,
as in "set 1" two or three times, then set 2 two or three times, you'll see
it keeps resetting the width. The width should auto fit to the shortest text
each time.

test.zip
  



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13945.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-26 Thread kamcknig
Ill attempt to break that part out into its own project sometime today

On Oct 26, 2016 1:39 AM, "Alex Harui [via Apache Flex Users]" <
ml-node+s246n13942...@n4.nabble.com> wrote:

>
>
> On 10/25/16, 6:41 PM, "Kyle McKnight" <[hidden email]
> > wrote:
>
> >I only set the explicitWidth.
> >
> >Where would I store the columnWidth once it's attained? Since the parents
> >of the child are also reused, if I stored them in the parent renderer
> then
> >those values might not be right for the next time they are reused. Lol.
> >What a mess! :)
>
> IMO, storing the values is a caching problem.  You will have to know when
> to invalidate the values in the cache.
>
> Let's go back to the renderer.  Can you post the renderer code?  Maybe it
> will be easy to see why the measurements get sticky.
>
> -Alex
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Do-
> ItemRenderer-s-get-reused-across-different-components-tp13928p13942.html
> To unsubscribe from Do ItemRenderer's get reused across different
> components?, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13944.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread kamcknig
I'll try that out, is there an event I can listen for when a layout has
completed all of it's measurements and positionings?

Thanks!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Oct 25, 2016 at 4:40 PM, Alex Harui [via Apache Flex Users] <
ml-node+s246n13933...@n4.nabble.com> wrote:

>
>
> On 10/25/16, 11:43 AM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node=13933=0>> wrote:
>
> >I am not because I would like them to be dynamically sized. The only
> width
> >I believe I have set is on the renderer itself I set the minWidth to 150.
>
> Yeah, that sounds like a scenario we hit often.  I often really only want
> a renderer to be dynamically sized at startup or when the app is resized,
> but not on every update.  The solution is to make sure your renderers do
> not change their measured size based on content.  That can be hard if
> sub-components have scrollbars or are otherwise flexible.  Another trick
> I've used is to wait until the layout has run once (and hopefully chosen
> good sizes) then go and run code to set the renderer's size explicitly.
> Even something as simple as
>
>renderer.explicitWidth = renderer.width;
>
> can be sufficient.
>
> HTH,
> -Alex
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Do-
> ItemRenderer-s-get-reused-across-different-components-tp13928p13933.html
> To unsubscribe from Do ItemRenderer's get reused across different
> components?, click here
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=13928=a2FtY2tuaWdAZ21haWwuY29tfDEzOTI4fC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13934.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread kamcknig
I am not because I would like them to be dynamically sized. The only width
I believe I have set is on the renderer itself I set the minWidth to 150.


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Oct 25, 2016 at 2:22 PM, Alex Harui [via Apache Flex Users] <
ml-node+s246n13929...@n4.nabble.com> wrote:

> Are you setting columnWidth?  If not it could get recalculated and if a
> renderer reports a different size now that it is full of content, you
> might get different results.
>
> -Alex
>
> On 10/25/16, 11:04 AM, "Kyle McKnight" <[hidden email]
> > wrote:
>
> >I have a List, ParentList, that has a VerticalLayout. Within ParentList
> is
> >another List, ChildList with a TileLayout.
> >
> >During points in my application, ParentList gets updated which then also
> >means ChildList gets updated. What is weird is that the same ChildList
> >will
> >show different sizes of the children randomly when I leave and come back
> >to
> >the the page.
> >
> >So let's say I set the selected index on ParentList to index 5. ChildList
> >gets updated with a subset of data, arbitrarily DataA...DataN. Each
> >renderer in ChildList will be width X. But then I set ParentList to index
> >6
> >and then later back to 5. So viewing the same set of data, DataA...DataN,
> >yet this time the TileLayout will have the children be width Z instead of
> >the same width X it was before.
> >
> >Sorry if that's confusing lol. Basically the same TileLayout with the
> same
> >data will size taht data differently.
> >
> >So this leads me to wonder if renderers are reused even if they are
> >contained withing different components as long as they use the same Class
> >of renderer? Is this happening because when the data is set on the
> >ChildList renderer's I'm not resetting everything to some default state?
> >
> >Kyle McKnight
> >Senior UI Engineer - Accesso
> >602.515.1444 (M)
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Do-
> ItemRenderer-s-get-reused-across-different-components-tp13928p13929.html
> To unsubscribe from Do ItemRenderer's get reused across different
> components?, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Do-ItemRenderer-s-get-reused-across-different-components-tp13928p13931.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread kamcknig
Your solution works though it feels a bit hacky. I also get a flicker when I
do it. So a lot of the items will blink out and back in for a split second.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Updating-data-for-List-refreshes-entire-List-and-scrolls-to-the-top-tp13907p13922.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread kamcknig
OK it appears that I got that error becuse I was passing the index of the
item in the "source" array. But on my data provider I had a filter on the
array so not all items were there. I have now instead dispatched the change
with the Object that was changed (FYI, I'm using Signals, not that it
matters). This fixes the issue with the index out of bounds error. But now
when the list updates, the item renderer in question seems to just
completely shrink and the content of it seems to be all messed up.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Updating-data-for-List-refreshes-entire-List-and-scrolls-to-the-top-tp13907p13921.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Not all items in TileLayout are visible

2016-10-21 Thread kamcknig
I was able to create a simplified test project that shows what is happening
and have attached it.

test.zip
  



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Not-all-items-in-TileLayout-are-visible-tp13894p13896.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Not all items in TileLayout are visible

2016-10-21 Thread kamcknig
I've attached two images that show what I mean. You can see in the first one
there are seven items, but there should be 13. The second image is just
after scrolling the list down some so you can see the bottom of the first
renderer. The height of that first renderer is set correctly but the last
six items in the child List within that first renderer don't show up.

 

 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Not-all-items-in-TileLayout-are-visible-tp13894p13895.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get custom component to size down properly

2016-10-19 Thread kamcknig
Oh my! You did it! Thanks so much!

Sorry though, how would I set the width and height of the Rect to the width
and height a user might set on the component? I tried setting
_fillRect.width/height within the updateDisplayList() override method
instead of setting the top/right/bottom/left in the createChildren() method
but that breaks it.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-custom-component-to-size-down-properly-tp13841p13857.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get custom component to size down properly

2016-10-18 Thread kamcknig
I think it has something to do with the fact that I'm setting the
measuredMinWidth in the measure() method. So when sizing down, it's looking
at the measuredMinWidth and it can't size it down below that. But if I take
that out then my app runs forever. And continues to grow in width/height
non-stop and i have to end the process to get it to stop updating



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-custom-component-to-size-down-properly-tp13841p13842.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Can't get custom component to size down properly

2016-10-18 Thread kamcknig
Hey everyone,

I'm porting a project over to RobotLegs and I had a huge issue of the
components not properly resizing. It has taken me almost two weeks but I've
finally narrowed it down to one (hopefully) component causing all of the
issues.

I have boiled it down to a simple test project.

In my test I have an App class and a MainView class. MainView is a child of
App. I have ResizeEvent.RESIZE listeners on both App and MainView. With just
this, I get trace statements from the resize handlers BOTH when sizing up
and when sizing down.  This is expected. If I add my custom component as a
child of MainView, then I will get the resize handlers traced out when
sizing UP but not when sizing DOWN. So the custom component will grow but
will never shrink. I'm not great when it comes to custom components as I was
a pure AS3 person. 

I have attached the project as a zip file. The problem component is called
BackgroundFill. It's a Group that contains a Rect that gets created and
resized. I noticed that when sizing up both updateDisplayList() and
measure() get called, but when sizing down, neither of them do.

test.zip
  

Thanks for any help!



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-custom-component-to-size-down-properly-tp13841.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get selectionAnchorPosition to work

2016-10-04 Thread kamcknig
How would I be able to get the selection before then? Is there an event
fired when a selection occurs?

Oh jeez. As I'm typing this I looked it up and there is a SelectionEvent.
Not sure how I missed that. Thank you much!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Oct 4, 2016 at 3:12 PM, Josh Tynjala [via Apache Flex Users] <
ml-node+s246n13732...@n4.nabble.com> wrote:

> It should be different before your hit backspace, but after, no characters
> will be selected, so they'll be equal.
>
> - Josh
>
> On Oct 4, 2016 12:02 PM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node=13732=0>> wrote:
>
> > Maybe I'm misunderstanding what it's supposed to do, but if i select a
> > block
> > of text with the mouse with the following code and then hit the
> backspace
> > key, the selectionActiveIndex is always equal to the
> selectionAnchorIndex.
> > I
> > also tried the change event with the same results, and the textInput
> event
> > but that doesn't get fired with backspace
> >
> >
> >
> >
> >
> > --
> > View this message in context: http://apache-flex-users.
> > 246.n4.nabble.com/Can-t-get-selectionAnchorPosition-
> > to-work-tp13731.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/Can-t-
> get-selectionAnchorPosition-to-work-tp13731p13732.html
> To unsubscribe from Can't get selectionAnchorPosition to work, click here
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=13731=a2FtY2tuaWdAZ21haWwuY29tfDEzNzMxfC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-selectionAnchorPosition-to-work-tp13731p13733.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Can't get selectionAnchorPosition to work

2016-10-04 Thread kamcknig
Maybe I'm misunderstanding what it's supposed to do, but if i select a block
of text with the mouse with the following code and then hit the backspace
key, the selectionActiveIndex is always equal to the selectionAnchorIndex. I
also tried the change event with the same results, and the textInput event
but that doesn't get fired with backspace





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-selectionAnchorPosition-to-work-tp13731.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-16 Thread kamcknig
I'll check it out soon!

On Sep 16, 2016 1:09 AM, "OK [via Apache Flex Users]" <
ml-node+s246n13551...@n4.nabble.com> wrote:

> HI,
> I've just accidentally stumbled over this [1]. It contains a styled
> rectangle component.
> Seems that this perfectly fit your needs.
>
> HTH,
> Olaf
>
>
> [1] http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0b
> f687e7-7ff6.html
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.246.n4.nabble.com/Can-t-
> get-Rect-to-draw-one-way-but-works-another-tp13544p13551.html
> To unsubscribe from Can't get Rect to draw one way, but works another, click
> here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Rect-to-draw-one-way-but-works-another-tp13544p13552.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: Downloading Large Amounts of Data from Database

2016-08-27 Thread kamcknig
I'm not sure how you are connecting to your DB, normally in the past I've
used PHP. So I connect to a PHP scriipt that I can send GET parameters to
and have the PHP handle the querying.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Downloading-Large-Amounts-of-Data-from-Database-tp13415p13427.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Trying to get simple HTTPService to work

2015-07-27 Thread kamcknig
The service definitely is working. I've since switched over to just using
URLLoader
On Jul 27, 2015 2:45 PM, OmPrakash Muppirala [via Apache Flex Users] 
ml-node+s246n10867...@n4.nabble.com wrote:

 Is the server working?
 Is the ServiceURLs.SEARCH a valid url string?

 It would be better if you shared your BaseService class as well.

 Thanks,
 Om

 On Sun, Jul 26, 2015 at 7:38 AM, kamcknig [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10867i=0 wrote:

  I feel like this should be pretty darn simple. But I can't seem to get
 it
  to
  work. Trying to hit a URL that will return xml. But I'm getting a
  FaultEvent:
 
  faultCode:InvokeFailed faultString:'[MessagingError message='Destination
  'null' either does not exist or the destination has no channels defined
  (and
  the application does not define any default channels.)']'
  faultDetail:'Couldn't establish a connection to 'null''
 
  I have a class SearchService that extends a BaseService class that
 extends
  HTTPService. BaseService doesn't do much right now but add some
 listeners
  for ResultEvent and FaultEvent and call some protected functions.
 
  Here is my SearchService class:
 
  package foo.bar
  {
  import mx.rpc.events.FaultEvent;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.http.HTTPService;
  import foo.bar.constants.ServiceURLs;
  /**
   * ...
   * @author
   */
  public class SearchService extends BaseService
  {
  public function SearchService(showName:String)
  {
  super();
 
  this.url = ServiceURLs.SEARCH;
  this.method = GET;
  this.request = {
  show:showName
  }
  this.resultFormat =
 HTTPService.RESULT_FORMAT_XML;
  this.showBusyCursor = true;
  this.send();
  }
 
  override protected function onResult(e:ResultEvent):void
  {
  super.onResult(e);
 
  trace(SearchService(e.target).lastResult);
  }
 
  override protected function onFault(e:FaultEvent):void
  {
  super.onFault(e);
 
  trace(e.fault.message);
  }
  }
  }
 
 
 
  --
  View this message in context:
 
 http://apache-flex-users.246.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861.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/Trying-to-get-simple-HTTPService-to-work-tp10861p10867.html
  To unsubscribe from Trying to get simple HTTPService to work, click here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10861code=a2FtY2tuaWdAZ21haWwuY29tfDEwODYxfC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861p10868.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Trying to get simple HTTPService to work

2015-07-27 Thread kamcknig
I'm not using destination since I'm not using a proxy. I'm only using url
so destination is null by default. Why would HTTPService try to use it when
I've never set it? I've alsy tried setting destination to the location of
the service but that didnt work either.


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Mon, Jul 27, 2015 at 3:42 PM, Alex Harui [via Apache Flex Users] 
ml-node+s246n10869...@n4.nabble.com wrote:

 Sounds like some code is setting destination=null;

 On 7/27/15, 12:21 PM, kamcknig [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10869i=0 wrote:

 The service definitely is working. I've since switched over to just using
 URLLoader
 On Jul 27, 2015 2:45 PM, OmPrakash Muppirala [via Apache Flex Users] 
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=10869i=1
 wrote:
 
  Is the server working?
  Is the ServiceURLs.SEARCH a valid url string?
 
  It would be better if you shared your BaseService class as well.
 
  Thanks,
  Om
 
  On Sun, Jul 26, 2015 at 7:38 AM, kamcknig [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=10867i=0 wrote:
 
   I feel like this should be pretty darn simple. But I can't seem to
 get
  it
   to
   work. Trying to hit a URL that will return xml. But I'm getting a
   FaultEvent:
  
   faultCode:InvokeFailed faultString:'[MessagingError
 message='Destination
   'null' either does not exist or the destination has no channels
 defined
   (and
   the application does not define any default channels.)']'
   faultDetail:'Couldn't establish a connection to 'null''
  
   I have a class SearchService that extends a BaseService class that
  extends
   HTTPService. BaseService doesn't do much right now but add some
  listeners
   for ResultEvent and FaultEvent and call some protected functions.
  
   Here is my SearchService class:
  
   package foo.bar
   {
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import mx.rpc.http.HTTPService;
   import foo.bar.constants.ServiceURLs;
   /**
* ...
* @author
*/
   public class SearchService extends BaseService
   {
   public function SearchService(showName:String)
   {
   super();
  
   this.url = ServiceURLs.SEARCH;
   this.method = GET;
   this.request = {
   show:showName
   }
   this.resultFormat =
  HTTPService.RESULT_FORMAT_XML;
   this.showBusyCursor = true;
   this.send();
   }
  
   override protected function
 onResult(e:ResultEvent):void
   {
   super.onResult(e);
  
   trace(SearchService(e.target).lastResult);
   }
  
   override protected function
 onFault(e:FaultEvent):void
   {
   super.onFault(e);
  
   trace(e.fault.message);
   }
   }
   }
  
  
  
   --
   View this message in context:
  
 
 
 http://apache-flex-users.246.n4.nabble.com/Trying-to-get-simple-HTTPS
 ervice-to-work-tp10861.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/Trying-to-get-simple-HTTPS
 ervice-to-work-tp10861p10867.html
   To unsubscribe from Trying to get simple HTTPService to work, click
 here
 
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=unsubscribe_by_codenode=10861code=a2FtY2tuaWdAZ21haWwuY29tfDEwODY

 xfC0xNTg3MjQ1NTM4
  .
  NAML
 
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml

 .namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl

 e.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble

 %3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21n

 abble%3Aemail.naml
 
 
 
 
 
 --
 View this message in context:
 
 http://apache-flex-users.246.n4.nabble.com/Trying-to-get-simple-HTTPSe
 rvice-to-work-tp10861p10868.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/Trying-to-get-simple-HTTPService-to-work-tp10861p10869.html
  To unsubscribe from Trying to get simple HTTPService to work, click here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10861code

Trying to get simple HTTPService to work

2015-07-26 Thread kamcknig
I feel like this should be pretty darn simple. But I can't seem to get it to
work. Trying to hit a URL that will return xml. But I'm getting a
FaultEvent:

faultCode:InvokeFailed faultString:'[MessagingError message='Destination
'null' either does not exist or the destination has no channels defined (and
the application does not define any default channels.)']'
faultDetail:'Couldn't establish a connection to 'null''

I have a class SearchService that extends a BaseService class that extends
HTTPService. BaseService doesn't do much right now but add some listeners
for ResultEvent and FaultEvent and call some protected functions.

Here is my SearchService class:

package foo.bar
{
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
import foo.bar.constants.ServiceURLs;
/**
 * ...
 * @author 
 */
public class SearchService extends BaseService
{
public function SearchService(showName:String)
{
super();

this.url = ServiceURLs.SEARCH;
this.method = GET;
this.request = {
show:showName
}
this.resultFormat = HTTPService.RESULT_FORMAT_XML;
this.showBusyCursor = true;
this.send();
}

override protected function onResult(e:ResultEvent):void
{
super.onResult(e);

trace(SearchService(e.target).lastResult);
}

override protected function onFault(e:FaultEvent):void
{
super.onFault(e);

trace(e.fault.message);
}
}
}



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex - Getting values from custom item renderers in DataGridColumns

2015-07-21 Thread kamcknig
Gah! listItems. I couldn't find any property to iterate over the items.
Thanks!



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Getting-values-from-custom-item-renderers-in-DataGridColumns-tp10831p10835.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex - Getting values from custom item renderers in DataGridColumns

2015-07-21 Thread kamcknig
I have a DataGrid set up like so:

mx:DataGrid id=ticketListDataGrid
dataProvider={_ticketList}
mx:columns
mx:DataGridColumn width=220
dataField=@package_name
headerText=Package Name
sortable=false /

mx:DataGridColumn width=166
dataField=@barcode
headerText=Ticket Barcode
sortable=false /

mx:DataGridColumn width=100
headerText=Ticket Blocked
sortable=false
itemRenderer=foo.bar.CustomCheckBox /

mx:DataGridColumn width=210
headerText=Reason
sortable=false
itemRenderer=foo.bar.CustomComboBox /
/mx:columns
/mx:DataGrid

On submit I'd like to read the values of each CustomCheckBox and
CustomComboBox. What is the easiest way to get those values? 

Thanks!



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Getting-values-from-custom-item-renderers-in-DataGridColumns-tp10831.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
That worked, thanks!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Jul 14, 2015 at 11:35 PM, pkumar.flex [via Apache Flex Users] 
ml-node+s246n10759...@n4.nabble.com wrote:

 Use proper type casting of repeater current item as (deRep.currentItem as
 XML)

 On Wed, Jul 15, 2015 at 12:43 AM, kamcknig [via Apache Flex Users] [hidden
 email] http:///user/SendEmail.jtp?type=nodenode=10759i=0 wrote:

 I'm trying to get some databinding working and it keeps throwing
 warnings.

 I have the following MXML (PSEUDO CODE):

 Repeater id=deRep dataProvider={dependantXML}
 
 Text ... text={deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}
 ... /
 
 TextArea ... text={deRep.currentItem.ADDRESS.@street} ... /
 
 /Repeater

 Where dependantXML is an XMLListCollection.

 I keep getting the warnings:
 Warning: Data binding will not be able to detect assignments to
 RELATIONSHIP.
 Warning: Data binding will not be able to detect assignments to
 ADDRESS.

 I've tried making deRep Bindable but that doesn't work.

 Not sure what else to try.

 Thanks for any help!
 Kyle

 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754.html
  To unsubscribe from Apache Flex Users, click here.
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




 --
 *Regards,*
 Prashant Kumar* | *Mob.: +91 8408811225


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10759.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10769.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
That got rid of the warnings! Hopefully it still works correctly, I'll have
to test it out. Thanks so much!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Jul 14, 2015 at 6:54 PM, Alex Harui [via Apache Flex Users] 
ml-node+s246n10757...@n4.nabble.com wrote:

 Try:

 {XMLList(deRep.currentItem)..RELATIONSHIP.@dep_cust_rel_type}


 And

 {XMLList(deRep.currentItem).ADDRESS.@street}


 -Alex

 On 7/14/15, 12:13 PM, kamcknig [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10757i=0 wrote:

 I'm trying to get some databinding working and it keeps throwing
 warnings.
 
 I have the following MXML (PSEUDO CODE):
 
 Repeater id=deRep dataProvider={dependantXML}
 
 Text ...
 text=quot;{deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}quot;
 ...
 /
 
 TextArea ... text=quot;{deRep.currentItem.ADDRESS.@street}quot;
 ...
 /
 
 /Repeater
 
 Where dependantXML is an XMLListCollection.
 
 I keep getting the warnings:
 Warning: Data binding will not be able to detect assignments to
 RELATIONSHIP.
 Warning: Data binding will not be able to detect assignments to
 ADDRESS.
 
 I've tried making deRep Bindable but that doesn't work.
 
 Not sure what else to try.
 
 Thanks for any help!
 Kyle
 
 
 
 --
 View this message in context:
 
 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-w
 ork-without-warnings-tp10754.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/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10757.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10768.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
Thanks for the explanation!

Kyle


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Wed, Jul 15, 2015 at 11:41 AM, Alex Harui [via Apache Flex Users] 
ml-node+s246n1077...@n4.nabble.com wrote:

 The principle is that the compiler always assumes the binding expression
 is an object/property chain, but tries to use type information when
 possible.  Repeater.currentItem is typed as Object, so the binding
 subsystem will look for change events that Objects use.  But if you know
 the type is not an Object, you can specify the type via the “casting”.

 -Alex

 On 7/15/15, 4:43 AM, kamcknig [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10779i=0 wrote:

 That got rid of the warnings! Hopefully it still works correctly, I'll
 have
 to test it out. Thanks so much!
 
 
 Kyle McKnight
 Senior UI Engineer - Accesso
 602.515.1444 (M)
 
 On Tue, Jul 14, 2015 at 6:54 PM, Alex Harui [via Apache Flex Users] 
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=10779i=1
 wrote:
 
  Try:
 
  {XMLList(deRep.currentItem)..RELATIONSHIP.@dep_cust_rel_type}
 
 
  And
 
  {XMLList(deRep.currentItem).ADDRESS.@street}
 
 
  -Alex
 
  On 7/14/15, 12:13 PM, kamcknig [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=10757i=0 wrote:
 
  I'm trying to get some databinding working and it keeps throwing
  warnings.
  
  I have the following MXML (PSEUDO CODE):
  
  Repeater id=deRep dataProvider={dependantXML}
  
  Text ...
  text=quot;{deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}quot;
  ...
  /
  
  TextArea ... text=quot;{deRep.currentItem.ADDRESS.@street}quot;

  ...
  /
  
  /Repeater
  
  Where dependantXML is an XMLListCollection.
  
  I keep getting the warnings:
  Warning: Data binding will not be able to detect assignments to
  RELATIONSHIP.
  Warning: Data binding will not be able to detect assignments to
  ADDRESS.
  
  I've tried making deRep Bindable but that doesn't work.
  
  Not sure what else to try.
  
  Thanks for any help!
  Kyle
  
  
  
  --
  View this message in context:
  
 
 
 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-
 w
  ork-without-warnings-tp10754.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/Can-t-get-Flex-binding-to-
 work-without-warnings-tp10754p10757.html
   To unsubscribe from Can't get Flex binding to work without warnings,
 click
  here
 
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU

 0fC0xNTg3MjQ1NTM4
  .
  NAML
 
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml

 .namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl

 e.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble

 %3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21n

 abble%3Aemail.naml
 
 
 
 
 
 --
 View this message in context:
 
 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-w
 ork-without-warnings-tp10754p10768.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/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10779.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10780.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Can't get Flex binding to work without warnings

2015-07-14 Thread kamcknig
I'm trying to get some databinding working and it keeps throwing warnings.

I have the following MXML (PSEUDO CODE):

Repeater id=deRep dataProvider={dependantXML}

Text ...
text=quot;{deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}quot; ... /

TextArea ... text=quot;{deRep.currentItem.ADDRESS.@street}quot; ...
/

/Repeater

Where dependantXML is an XMLListCollection.

I keep getting the warnings:
Warning: Data binding will not be able to detect assignments to
RELATIONSHIP.
Warning: Data binding will not be able to detect assignments to ADDRESS.

I've tried making deRep Bindable but that doesn't work.

Not sure what else to try.

Thanks for any help!
Kyle



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


RE: Can't get Flex binding to work without warnings

2015-07-14 Thread kamcknig
Hi!

Yes its already set to be Bindable

Best
On Jul 14, 2015 3:58 PM, Kunal Jaura [via Apache Flex Users] 
ml-node+s246n10755...@n4.nabble.com wrote:

 Hi,

 Have tried making the dataProvider variable 'dependantXML' bindable? I've
 had that work for me.

 Cheers
 Kunal Jaura | Director of Architecture | www.CRMantra.com  | office +1
 (415)
 839 9672 | mobile +1 (415) 272 4868 | [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10755i=0



 -Original Message-
 From: kamcknig [mailto:[hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10755i=1]
 Sent: Tuesday, July 14, 2015 12:14 PM
 To: [hidden email] http:///user/SendEmail.jtp?type=nodenode=10755i=2
 Subject: Can't get Flex binding to work without warnings

 I'm trying to get some databinding working and it keeps throwing warnings.

 I have the following MXML (PSEUDO CODE):

 Repeater id=deRep dataProvider={dependantXML}
 
 Text ...
 text=quot;{deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}quot; ...
 /
 
 TextArea ... text=quot;{deRep.currentItem.ADDRESS.@street}quot;
 ...
 /
 
 /Repeater

 Where dependantXML is an XMLListCollection.

 I keep getting the warnings:
 Warning: Data binding will not be able to detect assignments to
 RELATIONSHIP.
 Warning: Data binding will not be able to detect assignments to ADDRESS.

 I've tried making deRep Bindable but that doesn't work.

 Not sure what else to try.

 Thanks for any help!
 Kyle



 --
 View this message in context:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-wor
 k-without-warnings-tp10754.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/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10755.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10756.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.