AW: Updated Flash player / AIR hashes

2016-01-10 Thread Christofer Dutz
Would it actually be possible to extend our xml file with the coordinates of 
the flashplayer executable archives for the different platforms? As soon as I 
get the time to do so I would like to add auto-download (Yes Alex: After 
confirming to accept the license :-) ) the players and not only the 
playerglobal. Currently I worked out the url scheme, but I think it would be 
cooler to have it in the xml.

Chris


Von: Justin Mclean 
Gesendet: Sonntag, 10. Januar 2016 02:31
An: dev@flex.apache.org
Betreff: Updated Flash player / AIR hashes

Hi,

Just updated the hash and a few paths in the Flex installer and I’m testing out 
on OS X that everything is working. Someone mind testing on windows for me? In 
particular FP/AIR version 18, 19 and 20.

Thanks,
Justin


Re: AW: Updated Flash player / AIR hashes

2016-01-10 Thread Alex Harui
Technically, you can extend the XML without breaking things, but I think
I'd better check with Adobe about downloading the runtimes without going
to the Adobe site.

-Alex

On 1/10/16, 2:34 AM, "Christofer Dutz"  wrote:

>Would it actually be possible to extend our xml file with the coordinates
>of the flashplayer executable archives for the different platforms? As
>soon as I get the time to do so I would like to add auto-download (Yes
>Alex: After confirming to accept the license :-) ) the players and not
>only the playerglobal. Currently I worked out the url scheme, but I think
>it would be cooler to have it in the xml.
>
>Chris
>
>
>Von: Justin Mclean 
>Gesendet: Sonntag, 10. Januar 2016 02:31
>An: dev@flex.apache.org
>Betreff: Updated Flash player / AIR hashes
>
>Hi,
>
>Just updated the hash and a few paths in the Flex installer and I’m
>testing out on OS X that everything is working. Someone mind testing on
>windows for me? In particular FP/AIR version 18, 19 and 20.
>
>Thanks,
>Justin



Re: AW: Updated Flash player / AIR hashes

2016-01-10 Thread Alex Harui


On 1/10/16, 7:21 AM, "Alex Harui"  wrote:

>Technically, you can extend the XML without breaking things, but I think
>I'd better check with Adobe about downloading the runtimes without going
>to the Adobe site.

Just to make sure I'm asking Adobe about the right thing: are you planning
to download just the standalone debugger, or also the browser plugins for
flash?  And what about AIR runtimes?  We might be able to get permission
more easily if it is just the standalone debugger player.

Thanks,
-Alex



Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Harbs
Here’s an item in the spec which I’m having trouble understanding:

When the [[AddInScopeNamespace]] method of an XML object x is called with a 
namespace N, the following steps are taken:
1. If x.[[Class]] ∈ {"text", "comment", "processing-instruction", “attribute”}, 
return
2. If N.prefix != undefined
  a. If N.prefix == "" and x.[[Name]].uri == "", return
  b. Let match be null
  c. For each ns in x.[[InScopeNamespaces]]
i. If N.prefix == ns.prefix, let match = ns
  d. If match is not null and match.uri is not equal to N.uri
i. Remove match from x.[[InScopeNamespaces]]
  e. Let x.[[InScopeNamespaces]] = x.[[InScopeNamespaces]] ∪ { N }
  f. If x.[[Name]].[[Prefix]] == N.prefix
i. Let x.[[Name]].prefix = undefined
  g. For each attr in x.[[Attributes]]
i. If attr.[[Name]].[[Prefix]] == N.prefix, let attr.[[Name]].prefix = 
undefined
3. Return

I do not understand e through g. It looks like the spec says you are supposed 
to remove the prefixes of the XML which has the namespace added to it if the 
prefix matches the added namespace. Why would you do that?

On Jan 7, 2016, at 11:53 PM, Harbs  wrote:

> Next item:
> 
> I’m working on namespaces and QNames.
> 
> E4X allows the specification of default namespaces like this:
> 
> default xml namespace = "http://ns.adobe.com/mxml/2009”;
> 
> This causes all elements created after this statement to act as if they were 
> declared like this:
> http://ns.adobe.com/mxml/2009”/> (notice, no prefix)
> 
> I’m not sure how commonly used this feature is, but we should probably map 
> this statement to some kind of static method. We can either attach it to XML, 
> or Namespace.
> 
> (I’ve learned more than I care to know about E4X in the past few weeks. I 
> have the E4X spec coming out of my ears…) ;-)
> 
> On Jan 5, 2016, at 7:12 PM, Alex Harui  wrote:
> 
>> 
>> 
>> On 1/5/16, 7:49 AM, "Harbs"  wrote:
>> 
>>> BTW, I’m not sure what we said about myXML.@foo = “baz” or myXML.@ba:foo
>>> = “baz”.
>>> 
>>> Are we mapping that to myXML.setChild(“@foo”,”baz”) and
>>> myXML.setChild(“@ba:foo”,”baz”), or are we creating a separate function
>>> for attributes?
>> 
>> I tried it and got an exception.  So I just pushed a fix for that where it
>> will call
>> 
>>   myXML.setAttribute(“foo”,”baz”)
>> 
>> 
>> I'm going to spend some time on XML and the compiler today.
>> 
>> -Alex
>> 
> 



Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Alex Harui
Hi folks,

The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
committer!  Andy has recently been contributing great bugs reports and
fixes for FlexJS and FalconJX which has earned him the merit to become a
committer (yes, you can become a committer the same way).

Please join us in welcoming him as a committer to the Apache Flex project.

Welcome Andy!
-Alex



Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Harbs
Welcome Andy!

It great to have you on board!

Harbs

On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:

> Hi folks,
> 
> The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> committer!  Andy has recently been contributing great bugs reports and
> fixes for FlexJS and FalconJX which has earned him the merit to become a
> committer (yes, you can become a committer the same way).
> 
> Please join us in welcoming him as a committer to the Apache Flex project.
> 
> Welcome Andy!
> -Alex
> 



Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Alex Harui


On 1/10/16, 7:35 AM, "Harbs"  wrote:

>Here’s an item in the spec which I’m having trouble understanding:
>
>When the [[AddInScopeNamespace]] method of an XML object x is called with
>a namespace N, the following steps are taken:
>1. If x.[[Class]] ∈ {"text", "comment", "processing-instruction",
>“attribute”}, return
>2. If N.prefix != undefined
>  a. If N.prefix == "" and x.[[Name]].uri == "", return
>  b. Let match be null
>  c. For each ns in x.[[InScopeNamespaces]]
>i. If N.prefix == ns.prefix, let match = ns
>  d. If match is not null and match.uri is not equal to N.uri
>i. Remove match from x.[[InScopeNamespaces]]
>  e. Let x.[[InScopeNamespaces]] = x.[[InScopeNamespaces]] ∪ { N }
>  f. If x.[[Name]].[[Prefix]] == N.prefix
>i. Let x.[[Name]].prefix = undefined
>  g. For each attr in x.[[Attributes]]
>i. If attr.[[Name]].[[Prefix]] == N.prefix, let attr.[[Name]].prefix
>= undefined
>3. Return
>
>I do not understand e through g. It looks like the spec says you are
>supposed to remove the prefixes of the XML which has the namespace added
>to it if the prefix matches the added namespace. Why would you do that?

I don't know for sure.  Maybe because they are now in scope, a prefix is
no longer needed?

-Alex



Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Carlos Rovira
Congrats Andy!

Thanks for joining us and your contributions!

Carlos

2016-01-10 16:40 GMT+01:00 Harbs :

> Welcome Andy!
>
> It great to have you on board!
>
> Harbs
>
> On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:
>
> > Hi folks,
> >
> > The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> > committer!  Andy has recently been contributing great bugs reports and
> > fixes for FlexJS and FalconJX which has earned him the merit to become a
> > committer (yes, you can become a committer the same way).
> >
> > Please join us in welcoming him as a committer to the Apache Flex
> project.
> >
> > Welcome Andy!
> > -Alex
> >
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Michael Schmalle
Heh, I noticed that last commit and it wasn't a pull request! Welcome Andy
and it's great you are working on the compiler.

Can you tell us a little about what you are aiming to do with your projects?

Mike

On Sun, Jan 10, 2016 at 10:40 AM, Harbs  wrote:

> Welcome Andy!
>
> It great to have you on board!
>
> Harbs
>
> On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:
>
> > Hi folks,
> >
> > The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> > committer!  Andy has recently been contributing great bugs reports and
> > fixes for FlexJS and FalconJX which has earned him the merit to become a
> > committer (yes, you can become a committer the same way).
> >
> > Please join us in welcoming him as a committer to the Apache Flex
> project.
> >
> > Welcome Andy!
> > -Alex
> >
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Harbs
But it only removes it for the element it’s added to — not the children 
elements. (I think…)

On Jan 10, 2016, at 5:42 PM, Alex Harui  wrote:

> 
> 
> On 1/10/16, 7:35 AM, "Harbs"  wrote:
> 
>> Here’s an item in the spec which I’m having trouble understanding:
>> 
>> When the [[AddInScopeNamespace]] method of an XML object x is called with
>> a namespace N, the following steps are taken:
>> 1. If x.[[Class]] ∈ {"text", "comment", "processing-instruction",
>> “attribute”}, return
>> 2. If N.prefix != undefined
>> a. If N.prefix == "" and x.[[Name]].uri == "", return
>> b. Let match be null
>> c. For each ns in x.[[InScopeNamespaces]]
>>   i. If N.prefix == ns.prefix, let match = ns
>> d. If match is not null and match.uri is not equal to N.uri
>>   i. Remove match from x.[[InScopeNamespaces]]
>> e. Let x.[[InScopeNamespaces]] = x.[[InScopeNamespaces]] ∪ { N }
>> f. If x.[[Name]].[[Prefix]] == N.prefix
>>   i. Let x.[[Name]].prefix = undefined
>> g. For each attr in x.[[Attributes]]
>>   i. If attr.[[Name]].[[Prefix]] == N.prefix, let attr.[[Name]].prefix
>> = undefined
>> 3. Return
>> 
>> I do not understand e through g. It looks like the spec says you are
>> supposed to remove the prefixes of the XML which has the namespace added
>> to it if the prefix matches the added namespace. Why would you do that?
> 
> I don't know for sure.  Maybe because they are now in scope, a prefix is
> no longer needed?
> 
> -Alex



Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Alex Harui


On 1/10/16, 8:17 AM, "Harbs"  wrote:

>But it only removes it for the element it’s added to — not the children
>elements. (I think…)

I haven't read up on Inscope namespaces, but maybe it only applies to an
element?  Looks like each node (x) has its own list of inscopenamespaces.

-Alex



Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Harbs
It’s kind of vague to me, but I’m assuming an InScopeNamespace means a 
namespace defined by an XML element, or one of its ancestors. I’m not entirely 
clear on all the nuances of namespace behavior in XML.

I’m not sure what happens when an element is moved from one XML object to 
another if it has a prefix, but no xmlns defined. I guess there needs to be 
some reference to the Namespace even though it’s not defined in the xml 
element? What happens if the prefix means one uri in one xml structure, but 
means another uri in another? Does it keep the prefix and have it redefined to 
a new uri, lose it, or does the same prefix mean different things in the same 
structure?

On Jan 10, 2016, at 6:21 PM, Alex Harui  wrote:

> 
> 
> On 1/10/16, 8:17 AM, "Harbs"  wrote:
> 
>> But it only removes it for the element it’s added to — not the children
>> elements. (I think…)
> 
> I haven't read up on Inscope namespaces, but maybe it only applies to an
> element?  Looks like each node (x) has its own list of inscopenamespaces.
> 
> -Alex
> 



Re: Trademark issue

2016-01-10 Thread Igor Costa
Hi there Folks

I've got in contact with the guy of the website and also alert the
authorities of NIC.br (Brazilian authority for .com.br domains ) about the
infringement of using the name and logo in their domain.

The owner got in contact with me and he said that he paid another company
to "produce" their logo for website and he said it will manage to remove
the logo and change the name of it's business.


I will let you guys know the follow up.


Igor Costa
twitter.com/igorcosta
www.igorcosta.com
www.igorcosta.org

On Fri, Jan 8, 2016 at 9:37 PM, Tom Chiverton  wrote:

> So it does.
>
> The PMC are looking into this now, good spot !
>
> Tom
>
>
> On 07/01/16 14:04, Josh Tynjala wrote:
>
>> If you remove the www, it should load properly. They seem to using a
>> modified version of the Apache Flex logo with the "Apache" text removed.
>>
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Harbs
I’m trying to figure out namespace behavior.

I’m probably tired, but can someone tell me why the  “catalog_item” var in this 
test (on line 70) does not get any results?

https://gist.github.com/Harbs/c24285b3af80eeed251d

On Jan 10, 2016, at 9:18 PM, Harbs  wrote:

> It’s kind of vague to me, but I’m assuming an InScopeNamespace means a 
> namespace defined by an XML element, or one of its ancestors. I’m not 
> entirely clear on all the nuances of namespace behavior in XML.
> 
> I’m not sure what happens when an element is moved from one XML object to 
> another if it has a prefix, but no xmlns defined. I guess there needs to be 
> some reference to the Namespace even though it’s not defined in the xml 
> element? What happens if the prefix means one uri in one xml structure, but 
> means another uri in another? Does it keep the prefix and have it redefined 
> to a new uri, lose it, or does the same prefix mean different things in the 
> same structure?
> 
> On Jan 10, 2016, at 6:21 PM, Alex Harui  wrote:
> 
>> 
>> 
>> On 1/10/16, 8:17 AM, "Harbs"  wrote:
>> 
>>> But it only removes it for the element it’s added to — not the children
>>> elements. (I think…)
>> 
>> I haven't read up on Inscope namespaces, but maybe it only applies to an
>> element?  Looks like each node (x) has its own list of inscopenamespaces.
>> 
>> -Alex
>> 
> 



Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Mark Kessler
Welcome and grats :)

-Mark

On Sun, Jan 10, 2016 at 10:39 AM, Alex Harui  wrote:

> Hi folks,
>
> The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> committer!  Andy has recently been contributing great bugs reports and
> fixes for FlexJS and FalconJX which has earned him the merit to become a
> committer (yes, you can become a committer the same way).
>
> Please join us in welcoming him as a committer to the Apache Flex project.
>
> Welcome Andy!
> -Alex
>
>


Re: [VOTE][RESULT] Release Apache Flex SDK 4.15 RC1

2016-01-10 Thread Mark Kessler
Sounds greats, thanks for getting this moving.

-Mark

On Sat, Jan 9, 2016 at 11:48 PM, Justin Mclean  wrote:

> Hi,
>
> And with 4 +1 binding votes and no other votes this is now an official
> release!
>
> +1 votes:
> Justin Mclean
> Mark Kessler
> Alex Harui
> OmPrakash Muppirala
>
> Thanks to everyone who helped out and contributed.
>
> Justin


Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Andy Dufilie
Thanks all for the warm welcome!

I'm using FlexJS to port the non-UI framework of
http://github.com/WeaveTeam/Weave so my company can build a new open-source
data visualization framework in HTML5.  It's a great test case for FlexJS
because of its size and how tightly coupled it is with the nuances of
ActionScript.  Alex has fixed many of the problems I've run into, and I'm
looking forward to fixing more myself.  I want to help make FlexJS a solid
alternative to TypeScript and other languages targeting JavaScript.

Andy

On Sun, Jan 10, 2016 at 11:17 AM, Michael Schmalle <
teotigraphix...@gmail.com> wrote:

> Heh, I noticed that last commit and it wasn't a pull request! Welcome Andy
> and it's great you are working on the compiler.
>
> Can you tell us a little about what you are aiming to do with your
> projects?
>
> Mike
>
> On Sun, Jan 10, 2016 at 10:40 AM, Harbs  wrote:
>
> > Welcome Andy!
> >
> > It great to have you on board!
> >
> > Harbs
> >
> > On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:
> >
> > > Hi folks,
> > >
> > > The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> > > committer!  Andy has recently been contributing great bugs reports and
> > > fixes for FlexJS and FalconJX which has earned him the merit to become
> a
> > > committer (yes, you can become a committer the same way).
> > >
> > > Please join us in welcoming him as a committer to the Apache Flex
> > project.
> > >
> > > Welcome Andy!
> > > -Alex
> > >
> >
> >
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Andy Dufilie
On Sun, Jan 10, 2016 at 4:53 PM, Harbs  wrote:

> I’m trying to figure out namespace behavior.
>
> I’m probably tired, but can someone tell me why the  “catalog_item” var in
> this test (on line 70) does not get any results?
>
> https://gist.github.com/Harbs/c24285b3af80eeed251d
>


I put your code in an .as file instead of an .mxml, and it won't compile
because of this line:

var catalog_item = xml..fx::catalog_item[0];
1120: Access of undefined property fx.

I think it's only a warning in MXML ("*possibly* undefined property")
because you've defined the fx namespace in the mxml tag at the top of the
file. To fix it, you either need to add the following to your code inside
CDATA:

namespace fx = 'http://ns.adobe.com/mxml/2009';

or use one of these forms:

var catalog_item = xml..('http://ns.adobe.com/mxml/2009')::catalog_item[0];
var catalog_item = xml.descendants(new QName('http://ns.adobe.com/mxml/2009',
'catalog_item'))[0];


Re: Anyone able to help with these tasks?

2016-01-10 Thread Nicholas Kwiatkowski
I can take these on.

On Sun, Jan 10, 2016 at 1:06 AM, Justin Mclean 
wrote:

> Hi,
>
> Once the release is announced is anyone able to help with these?
> • FLEX-34966 Update Web Site with new version info [1]
> • FLEX-34967 Update ASDocs on Website to reflect new version [2]
>
> Thanks,
> Justin
>
> 1. https://issues.apache.org/jira/browse/FLEX-34966
> 2. https://issues.apache.org/jira/browse/FLEX-34967


Re: draft blog post for 4.15 release

2016-01-10 Thread Nicholas Kwiatkowski
I've got this staged as soon as you are good for us to publish it.

-Nick

On Fri, Jan 8, 2016 at 11:28 PM, Justin Mclean 
wrote:

> Hi,
>
> Anyone care to put together a draft blog post for this release?
>
> https://issues.apache.org/jira/browse/FLEX-34969 <
> https://issues.apache.org/jira/browse/FLEX-34969>
>
> Thanks,
> Justin


RE: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Sugan Naicker
Hi,

Congrats Andy!

Rgs

Sugan
South Africa

-Original Message-
From: Mark Kessler [mailto:kesslerconsult...@gmail.com] 
Sent: Monday, January 11, 2016 4:01 AM
To: dev@flex.apache.org
Subject: Re: Welcome Andy Dufilie as Apache Flex Commiter

Welcome and grats :)

-Mark

On Sun, Jan 10, 2016 at 10:39 AM, Alex Harui  wrote:

> Hi folks,
>
> The Apache Flex PMC is excited to welcome Andy Dufilie as our newest 
> committer!  Andy has recently been contributing great bugs reports and 
> fixes for FlexJS and FalconJX which has earned him the merit to become 
> a committer (yes, you can become a committer the same way).
>
> Please join us in welcoming him as a committer to the Apache Flex project.
>
> Welcome Andy!
> -Alex
>
>




Re: draft blog post for 4.15 release

2016-01-10 Thread Justin Mclean
Hi,

> I've got this staged as soon as you are good for us to publish it.

Thanks for the help. I was planing on announcing (after checking the mirrors) 
in about 2 hours. That work for you?

Justin

Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Josh Tynjala
Welcome, Andy! ActionScript definitely deserves the opportunity to go head
to head with other languages that can transpile to JS. Looking forward to
working with you!

- Josh
On Jan 10, 2016 6:54 PM, "Andy Dufilie"  wrote:

> Thanks all for the warm welcome!
>
> I'm using FlexJS to port the non-UI framework of
> http://github.com/WeaveTeam/Weave so my company can build a new
> open-source
> data visualization framework in HTML5.  It's a great test case for FlexJS
> because of its size and how tightly coupled it is with the nuances of
> ActionScript.  Alex has fixed many of the problems I've run into, and I'm
> looking forward to fixing more myself.  I want to help make FlexJS a solid
> alternative to TypeScript and other languages targeting JavaScript.
>
> Andy
>
> On Sun, Jan 10, 2016 at 11:17 AM, Michael Schmalle <
> teotigraphix...@gmail.com> wrote:
>
> > Heh, I noticed that last commit and it wasn't a pull request! Welcome
> Andy
> > and it's great you are working on the compiler.
> >
> > Can you tell us a little about what you are aiming to do with your
> > projects?
> >
> > Mike
> >
> > On Sun, Jan 10, 2016 at 10:40 AM, Harbs  wrote:
> >
> > > Welcome Andy!
> > >
> > > It great to have you on board!
> > >
> > > Harbs
> > >
> > > On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:
> > >
> > > > Hi folks,
> > > >
> > > > The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> > > > committer!  Andy has recently been contributing great bugs reports
> and
> > > > fixes for FlexJS and FalconJX which has earned him the merit to
> become
> > a
> > > > committer (yes, you can become a committer the same way).
> > > >
> > > > Please join us in welcoming him as a committer to the Apache Flex
> > > project.
> > > >
> > > > Welcome Andy!
> > > > -Alex
> > > >
> > >
> > >
> >
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Alex Harui


On 1/10/16, 11:18 AM, "Harbs"  wrote:

>It’s kind of vague to me, but I’m assuming an InScopeNamespace means a
>namespace defined by an XML element, or one of its ancestors. I’m not
>entirely clear on all the nuances of namespace behavior in XML.

Neither am I.  Running some tests might help.

>
>I’m not sure what happens when an element is moved from one XML object to
>another if it has a prefix, but no xmlns defined. I guess there needs to
>be some reference to the Namespace even though it’s not defined in the
>xml element? What happens if the prefix means one uri in one xml
>structure, but means another uri in another? Does it keep the prefix and
>have it redefined to a new uri, lose it, or does the same prefix mean
>different things in the same structure?

I don't know for sure, but I had to implement E4X, each node would store a
qname.   The prefix would be used as a shortcut for a namespace if it had
been specified via xmlns.  If there wasn't a prefix, then I would write
out the URI for the namespace when printing via toXMLString().

-Alex



Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-01-10 Thread Harbs
Thanks for that.

So: It looks like all items in xml get the parent namespaces associated with 
them as XML objects, but the namespaces are not written when using 
toXMLString().

Transferring an element with a namespace to another xml element loses the 
prefix and has an un-prefixed namespace applied to it.
If the uri exists in the new element with a prefix, the element takes on the 
prefix of the new element.


On Jan 11, 2016, at 5:21 AM, Andy Dufilie  wrote:

> On Sun, Jan 10, 2016 at 4:53 PM, Harbs  wrote:
> 
>> I’m trying to figure out namespace behavior.
>> 
>> I’m probably tired, but can someone tell me why the  “catalog_item” var in
>> this test (on line 70) does not get any results?
>> 
>> https://gist.github.com/Harbs/c24285b3af80eeed251d
>> 
> 
> 
> I put your code in an .as file instead of an .mxml, and it won't compile
> because of this line:
> 
> var catalog_item = xml..fx::catalog_item[0];
> 1120: Access of undefined property fx.
> 
> I think it's only a warning in MXML ("*possibly* undefined property")
> because you've defined the fx namespace in the mxml tag at the top of the
> file. To fix it, you either need to add the following to your code inside
> CDATA:
> 
> namespace fx = 'http://ns.adobe.com/mxml/2009';
> 
> or use one of these forms:
> 
> var catalog_item = xml..('http://ns.adobe.com/mxml/2009')::catalog_item[0];
> var catalog_item = xml.descendants(new QName('http://ns.adobe.com/mxml/2009',
> 'catalog_item'))[0];