I don't but let's say Ant does something that AIR doesn't. You can call
just that one behavior. Get download or unzip file. You would have a single
function target.
I don't think it has to be installed. So you can bundle ant with the app.
Just put it in a subdirectory and then call ant /path/to/bu
On 2/18/16, 11:30 AM, "jude" wrote:
>it's possible to call ant using native process though. so you could fall
>back on those few cases that ant is required.'
Sure, that's possible, but I thought you didn't want to use Ant syntax in
the first place. And even if you do, you have to deal with ma
it's possible to call ant using native process though. so you could fall
back on those few cases that ant is required.
On Feb 17, 2016 10:50 PM, "Alex Harui" wrote:
>
>
> On 2/17/16, 10:34 PM, "Justin Mclean" wrote:
>
> >Hi,
> >
> >> But Windows doesn't even have native processes for grep and se
On 2/17/16, 10:34 PM, "Justin Mclean" wrote:
>Hi,
>
>> But Windows doesn't even have native processes for grep and sed and
>> requiring CygWin or GitBash doesn't seem like a good idea.
>
>ActionScript has RegExp support [1] so an AIR grep wouldn’t be too hard
>to create. Remind me what do the b
Hi,
> But Windows doesn't even have native processes for grep and sed and
> requiring CygWin or GitBash doesn't seem like a good idea.
ActionScript has RegExp support [1] so an AIR grep wouldn’t be too hard to
create. Remind me what do the build scripts use grep for?
Thanks,
Justin
1.
http://
On 2/17/16, 5:47 PM, "jude" wrote:
>If AIR has a comparable API use that, if it doesn't then use native
>process. And instead of environment variables use GUI and save those
>values
>to a shared object.
But Windows doesn't even have native processes for grep and sed and
requiring CygWin or Git
If AIR has a comparable API use that, if it doesn't then use native
process. And instead of environment variables use GUI and save those values
to a shared object.
On 2/15/16, 5:17 PM, "jude" wrote:
>some ideas: the first time I used ant I loved it but as soon as i asked it
>to do anything comp
Thank you, Alex. I am able to build flex-falcon successfully using only
env.properties. I was able to remove the unittest.properties files, and my
env.properties file now only defines these three values: env.AIR_HOME,
env.FLASHPLAYER_DEBUGGER, and env.PLAYERGLOBAL_HOME.
This is an Ant build that p
The error definitely makes sense because I don’t see Window and Console defined
anywhere. I’m having trouble finding what created the constant files. I tried
removing the externs folder from the js folder in the hope that it would be
re-created (hopefully in a better fashion), but I get an error
It looks improved to me. I still needed to add the unittest.properties file,
but that’s fine.
I now seem to be getting stuck on externs. I’m trying to figure out what’s not
set up properly on my machine, but if anyone has pointers please pipe up.
externc.js.swc:
[java] Feb 16, 2016 11:05:2
On 2/16/16, 12:29 AM, "Harbs" wrote:
>Point taken.
>
>I’ll spend some time today and see if I can figure it out. If I have
>trouble, I might come back and ask you for help… ;-)
Well, try the latest changes in the post I just sent.
You and others are always welcome to ask for help, but please
Thanks for that. I’ll give it a go. If it does not work, I’ll try and figure
out why without “complaining” first… ;-)
On Feb 16, 2016, at 10:32 AM, Alex Harui wrote:
>
>
> On 2/15/16, 2:38 PM, "Alex Harui" wrote:
>
>> I have not seen anyone offer to make a fix. I am mostly done with a
>> c
On 2/15/16, 2:38 PM, "Alex Harui" wrote:
>I have not seen anyone offer to make a fix. I am mostly done with a
>change. Hopefully it will go in tonight.
>
OK, I pushed changes to flex-falcon and flex-asjs.
In each of flex-falcon, flex-sdk and flex-asjs, set up an env.properties
file by copyin
Point taken.
I’ll spend some time today and see if I can figure it out. If I have trouble, I
might come back and ask you for help… ;-)
On Feb 16, 2016, at 10:16 AM, Alex Harui wrote:
>
>
> On 2/15/16, 11:44 PM, "Harbs" wrote:
>
>> I would definitely work on this if I knew how. My level of
On 2/15/16, 5:17 PM, "jude" wrote:
>some ideas: the first time I used ant I loved it but as soon as i asked it
>to do anything complex it became a major pain, imo.
>
>when I was helping harbs with TLF it took me a week and a lot of patience
>to get it setup.
>
>I understand why there are build
On 2/15/16, 11:44 PM, "Harbs" wrote:
>I would definitely work on this if I knew how. My level of expertise
>using ant is about good enough to look at a build file and get a general
>idea of how it works.
Before Flex came to Apache, I didn't know much about Ant either. We had
folks who did tha
Date: Mon, Feb 15, 2016 1:55 PM
>
> To: dev@flex.apache.org;
>
> Subject:Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
>
>
> Alex,
>
> The way I am reading this thread, I don't think folks are asking you to
> make the changes. They are g
On 2/15/16, 1:54 PM, "Michael Schmalle" wrote:
>On Mon, Feb 15, 2016 at 4:36 PM, Alex Harui wrote:
>
>>
>>
>> On 2/15/16, 1:32 PM, "Michael Schmalle"
>>wrote:
>>
>> >Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
>> >exactly why I set that template file up.
>>
>> Well
>
>
> Sent from my LG G3, an AT&T 4G LTE smartphone
>
>
> -- Original message--
>
> From: OmPrakash Muppirala
>
> Date: Mon, Feb 15, 2016 1:55 PM
>
> To: dev@flex.apache.org;
>
> Subject:Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
>
>
t:Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
Alex,
The way I am reading this thread, I don't think folks are asking you to
make the changes. They are generally asking if it is okay to make these
kind of changes. It would be good if you are okay with the changes since
you are o
Alex,
The way I am reading this thread, I don't think folks are asking you to
make the changes. They are generally asking if it is okay to make these
kind of changes. It would be good if you are okay with the changes since
you are one of the affected parties.
Thanks,
Om
On Mon, Feb 15, 2016 at
On Mon, Feb 15, 2016 at 4:36 PM, Alex Harui wrote:
>
>
> On 2/15/16, 1:32 PM, "Michael Schmalle" wrote:
>
> >Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
> >exactly why I set that template file up.
>
> Well, I'm glad it worked for you, and it worked for me, but now I a
On 2/15/16, 1:32 PM, "Michael Schmalle" wrote:
>Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
>exactly why I set that template file up.
Well, I'm glad it worked for you, and it worked for me, but now I am
spending time trying to implement something else to make others
Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
exactly why I set that template file up.
I have never had a problem getting things going, so people that are having
problems are missing a step or two.
It seems like a youtube video showing exactly the steps would help hehehe
And there is a template-unittest.properties file in compiler.tests which
explains the options.
The README supposedly contains sufficient information to build from
sources since several PMC members have successfully done so and voted to
release.
I don't know how much time to devote to make the bui
This all came back to the beginning. The tests(Falcon, etal) were a
nightmare, I'm talking 2012.
When I started writing the FalconJX compiler and created falcon.jx and
falcon.jx.tests Eclipse projects, I needed something that worked, so I
created the template file so it would work in the two proje
I think I found that you need to add unittest.properties in both compiler
and compiler.jx. The readme file has details about what properties should
be defined. It's near the bottom, as I recall, which means it's easy to
miss.
I agree with Harbs that we should probably make this simpler. Instead of
I would vote to have a single file which contains settings for all environment
variables for all projects.
Can we adjust ALL the builds in all projects to look in
../properties/env.properties for environment variables? (i.e. in a folder on
the same level as the repo)
It would require manually
Yes I did have an env.properties file. But the paths seem to be right, and
removing it did not make a difference.
It’s good to know it’s not needed though…
On Feb 15, 2016, at 5:01 PM, Alex Harui wrote:
> This implies you still have environment variables set somehow. The
> defaults would use
Where do I need to set the unittest.properties file?
I’m happy to do so, but I think it would be great if we could at least get some
instructions on everything needed to build from source.
Every time I come back to this, I have trouble. Maybe it’s just me, but it
seems like it raises the bar ne
On 2/14/16, 11:52 PM, "Harbs" wrote:
>Cleaning the repo seemed to have helped somewhat, but I still could not
>compile, and I’m assuming because I need to build falcon:
>Buildfile:
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
>xml
>
>clean:
>
>check-falcon-home:
Cleaning the repo seemed to have helped somewhat, but I still could not
compile, and I’m assuming because I need to build falcon:
Buildfile:
/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.xml
clean:
check-falcon-home:
[echo] FALCON_HOME is
/Users/harbs/Documents
OK. I’ll try to clean my repos and try again.
On Feb 15, 2016, at 8:30 AM, Alex Harui wrote:
>
>
> On 2/14/16, 7:51 AM, "Harbs" wrote:
>
>> The main build.xml is not working either. I can’t seem to get anything to
>> build.
>>
>> I just checked out the latest source from all repos.
>>
>> W
On 2/14/16, 7:51 AM, "Harbs" wrote:
>The main build.xml is not working either. I can’t seem to get anything to
>build.
>
>I just checked out the latest source from all repos.
>
>When I try to build falcon, I get an error in junit. It cannot seem to
>find TLF_HOME, AIR_HOME or FLASHPLAYER_DEBUGG
The main build.xml is not working either. I can’t seem to get anything to build.
I just checked out the latest source from all repos.
When I try to build falcon, I get an error in junit. It cannot seem to find
TLF_HOME, AIR_HOME or FLASHPLAYER_DEBUGGER.
When trying to build flex-asjs, I get the
Did you try my suggestions about picking up default FALCON/FALCONJX_HOME
selection from the main build.xml?
I think the downloads.xml in flex-sdk is not up to date. Maybe it didn't
sync flex-sdk properly.
HTH,
-Alex
On 2/14/16, 4:23 AM, "Harbs" wrote:
>Thanks. The file location was indeed a p
Thanks. The file location was indeed a problem.
I’m really suffering from not really understanding the whole process.
Running ant on flex-asjs results in the following error:
/Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following error
occurred while executing this line:
/User
On 2/12/16, 2:03 AM, "Harbs" wrote:
>
>How do we simplify setting environment variables?
I think the problem is that some of the default setting logic in the main
flex-asjs/build.xml needs to be propagated to each individual project's.
It is hard to know what configurations folks will use. Try
> I’m not exactly sure what the variables are supposed to point to
Check the READme file at the root of the repository. Be sure to read
through all of the numbered steps after the list of environment variables.
The steps explain in more detail what paths you should be using. For
instance, it says
I had already done pretty close to this (using outdated files, so I just
updated it).
I’m running into environment variable issues again and I tried to set up a
env.properties file to set them, but that’s not working. (I’m not exactly sure
what the variables are supposed to point to)
Here’s th
IIRC, you are trying to get the build to work in a new XML folder?
In theory, you can copy any build.xml from, say Binding into the root of
XML. Open it and search for Binding and replace with XML.
Next, copy the src/main/resources folder from Binding. Open
compile-config.xml and search and rep
OK. I merged and copied the new folder structure. Unfortunately I have no idea
how to set up the compilation. I just copied the folder structure like a
monkey, but I have no idea how it’s supposed to work.
Can someone help me set up the scripts so it can actually compile something?
Once I under
OK. I’m up to #2. I know of a number of problems/holes in the implementation as
it stands and there’s probably a lot of problems I’m not aware of, but I’m
going to try to get to the point where this compiles and actually does
something to make the problems more visible.
Maybe some other folks c
I’m working on toXMLString, and I need to write new lines. Is there a
recommended way of writing new lines in a platform agnostic manner?
On 2/10/16, 3:23 AM, "Harbs" wrote:
>I missed an issue here:
>
>Taking an example from the spec:
>e.employee.(name == "Jim").setChildren(John + 35);
>
>or:
>var employeedata = Fred + 28 +
>skiing;
>
>We need a method to concatenate two or more XML objects into an XML
>object. I see two ways to
I missed an issue here:
Taking an example from the spec:
e.employee.(name == "Jim").setChildren(John + 35);
or:
var employeedata = Fred + 28 + skiing;
We need a method to concatenate two or more XML objects into an XML object. I
see two ways to do this:
1. Add a concat method to XML which retu
On 2/9/16, 12:55 PM, "Harbs" wrote:
>> Are you
>> implementing XMLList as an Array or dynamic class with numeric property
>> names?
>
>I am using Object.defineProperty to assign the numeric property names.
>There’s always length+1 numeric properties assigned.
>
>I was planning on adding a “0" p
> Are you
> implementing XMLList as an Array or dynamic class with numeric property
> names?
I am using Object.defineProperty to assign the numeric property names. There’s
always length+1 numeric properties assigned.
I was planning on adding a “0" property to XML as well.
> I don't think this i
On 2/9/16, 1:39 AM, "Harbs" wrote:
>Thanks for this. It’s really good to have someone else go through this
>and give me a sanity check. Most of this is very much in line with what
>I’ve already done.
>
>Some comments:
>
>> [[get]]
>someXML[x] is only valid when x is 0 and that returns someXML a
Thanks for this. It’s really good to have someone else go through this and give
me a sanity check. Most of this is very much in line with what I’ve already
done.
Some comments:
> [[get]]
someXML[x] is only valid when x is 0 and that returns someXML and not a child
of someXML.
> [[put]]
Yes.
OK, I looked at what is coded up so far on the compiler side and looked at
the spec some more. We've taken the approach so far of making up public
method names that have a pretty close mapping to the internal methods. It
seems to me that we should not try to obfuscate the method names. So what
i
On 2/8/16, 1:00 AM, "Harbs" wrote:
>However the spec does not specify bracket notation internally, so that’s
>not very clear. It could just be I’m not very experienced at reading
>specification documentation… ;-)
I'm not good at reading specs, probably because I find it boring. This
spec [1] s
Yes.
The internal methods are definitely different than the public APIs. For
example, there is both a [[Replace]] internal method as well as a replace()
API. The two do very different things. I also just realized that there is both
[[InScopeNamespaces]] and inScopeNamespaces().
You are right t
Harbs,
Is it possible you are being tricked by the difference between the XML
length() method and the Object length property? The following outputs 1
for me:
var xml:XML = ;
trace(xml.length());
AFAICT, the spec is recommending an internal implementation that is not
quite a 1:1
Yeah. Except an XML object always has a length of 0… AFAIK, xmlObj[1] always
returns undefined. The only valid index on an XML object is 0 which returns the
XML object (to blur the distinction between XMLList and XML). I think
xmlList[0] is the same as xmlList[0][0][0][0]...
I think I’m just go
The insert code looks fine to me, assuming children of XML are stored as
properties "0", "1", "2", ...
It's shifting all children with index >= i and saving P starting at child
index i.
[[Put]] is overwriting a child at a given index, and
insertChildBefore/insertChildAfter/prependChild should be d
Here’s another issue I’m struggling with:
The ECMA spec has an [[Insert]] and [[Replace]] internal method defined for XML.
Here’s the semantics for [[Insert]]:
Semantics
When the [[Insert]] method of an XML object x is called with property name P
and value V, the following steps are taken:
1.
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 appl
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.
>
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
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
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 ha
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
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
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",
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 != unde
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
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 exce
On 1/5/16, 7:07 AM, "Harbs" wrote:
>Yes. I’m using DOMParser.parseFromString() to parse the XML. After the
>XML is parsed into DOM elements, I’m walking that to create the XML
>structure.
>
>Although, I’m beginning to wonder if it makes more sense to just write my
>own state machine to walk the
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?
On Jan 5, 2016, at 5:07 PM, Harbs wrote:
> Yes. I’m using DOMParse
Yes. I’m using DOMParser.parseFromString() to parse the XML. After the XML is
parsed into DOM elements, I’m walking that to create the XML structure.
Although, I’m beginning to wonder if it makes more sense to just write my own
state machine to walk the XML and build the structure on my own.
On
On Tue, Jan 5, 2016 at 9:37 AM, Harbs wrote:
> That’s not going to work if you need to implement toXMLString().
>
> Imagine an mxml file where all the CDATA becomes escaped text. It’s not
> going to work very well… ;-) The same goes for lots of other XML file uses.
>
> Apparently this recommendat
That’s not going to work if you need to implement toXMLString().
Imagine an mxml file where all the CDATA becomes escaped text. It’s not going
to work very well… ;-) The same goes for lots of other XML file uses.
Apparently this recommendation for DOM4 is not gonna happen, so we’re good.[1]
[1]
On Tue, Jan 5, 2016 at 7:10 AM, Harbs wrote:
> I cannot find a recommended way to handle CDATA in the DOM4 spec.[3]
>
> Does anyone have a recommendation o how to handle this?
>
In place of a CDATA text section you can just escape the text using xml
escaping.
Next issue:
I think some people in W3C should have their heads examined. Why in the world
are they removing useful features???
The only way I can find to access CDATA in Document is with CDataSections[1]
and the nodeType: Node.CDATA_SECTION_NODE[2]
I cannot find a recommended way to handle CDA
Here’s all the details from the E4X spec:
Expressions may be used to compute parts of an XML initialiser. Expressions are
delimited by curly braces and may appear inside tags or element content. Inside
a tag, expressions may be used to compute a tag name, attribute name, or
attribute value. Ins
On 1/4/16, 8:17 AM, "Harbs" wrote:
>For literals, yes, we’d for the most part just pass the whole thing as a
>string to the constructor. The only exception I can think of is bracket
>notation:
>
>var foo:XML = foo;
>would have to become:
>var foo:XML = new XML('attr="‘+myAttr+’">foo’);
Wow, di
On Mon, Jan 4, 2016 at 11:17 AM, Harbs wrote:
> For literals, yes, we’d for the most part just pass the whole thing as a
> string to the constructor. The only exception I can think of is bracket
> notation:
>
> var foo:XML = foo;
> would have to become:
> var foo:XML = new XML(' attr="‘+myAttr+’"
For literals, yes, we’d for the most part just pass the whole thing as a string
to the constructor. The only exception I can think of is bracket notation:
var foo:XML = foo;
would have to become:
var foo:XML = new XML('foo’);
Wrapping the xml in a dummy node is a good idea. I like that. Thanks!
Looks like there currently isn't any XML Literal handling for AS -> JS.
For AS code like:
var foo:XML = foo;
What do you want the output to be? Shouldn't we just pass the whole thing
to the XML() function?
var foo = new XML('foo');
Or do you want something else?
For XMLList literals, can y
Here’s an implementation question:
Apparently, it’s possible to pass a string into an XMLList constructor to
create an XMLList of multiple XML objects. I’m not sure of the best way to
handle this.
I can walk the contents of the string and split the string into multiple XML
strings and create s
Another issue:
XML literals and angle brackets.
Is the compiler handling xml literals at all now? I think angle bracket
notation need to be converted to string concatenation as well.
On Dec 31, 2015, at 5:21 PM, Alex Harui wrote:
> Sounds reasonable. Do you want to try to make the changes to
On 1/1/16, 2:18 AM, "Harbs" wrote:
>Looking at the code, it looks to me like
>((JSFlexJSEmitter)getEmitter()).isXMLList() returns true if it’s either
>XML OR XMLList. Is that right?
Yes. I think that method probably should be renamed.
-Alex
Looking at the code, it looks to me like
((JSFlexJSEmitter)getEmitter()).isXMLList() returns true if it’s either XML OR
XMLList. Is that right?
On Dec 31, 2015, at 6:45 PM, Harbs wrote:
> OK. Sounds like a fun challenge. I guess it’s not a bad idea to get my feet
> wet… ;-)
>
> On Dec 31, 20
OK. Sounds like a fun challenge. I guess it’s not a bad idea to get my feet
wet… ;-)
On Dec 31, 2015, at 5:21 PM, Alex Harui wrote:
> Sounds reasonable. Do you want to try to make the changes to the compiler
> yourself?
>
> I think you can just copy the pattern in this commit:
> 22fa6defa3ed2
Sounds reasonable. Do you want to try to make the changes to the compiler
yourself?
I think you can just copy the pattern in this commit:
22fa6defa3ed2896de4eba1a5a1b316e1e3c2b0f
In these files: BinaryOperatorEmitter.java and TestFlexJSGlobalClasses.java
-Alex
On 12/31/15, 1:02 AM, "Harbs" wro
Another question:
How should we handle equality? According to the E4X spec, if regular equality
is used, it returns true if the structure of the XML matches even if the
objects are different objects. So:
var xml1 = ;
var xml2 = ;
xml1 == xml2 // true
xml1 === xml2 // false
xml1 === xml1 // true
On 12/30/15, 11:59 AM, "Harbs" wrote:
>So, myXML.dim:baz = foo:
>while compile to myXML.setChild(“dim:baz”,foo)
>
>Right?
>
>If so, I can handle that.
I haven't tried namespaces, but I would expect that to be the desired
result.
-Alex
If possible, try to break up things into "beads" that are replaceable, so
folks can swap in different behaviors if needed. A flag ends up bringing
in code for all behaviors, "just in case".
-Alex
On 12/30/15, 3:45 PM, "Harbs" wrote:
>DOMParser allows for more graceful handling of XML parsing e
DOMParser allows for more graceful handling of XML parsing errors than we’re
used to in Flash (or classic E4X).
I’m not sure the best way to handle this on the JS side. I see three ways to
handle errors:
1. I could just do what the Flash runtime does and just throw an error if
there’s any kind
So, myXML.dim:baz = foo:
while compile to myXML.setChild(“dim:baz”,foo)
Right?
If so, I can handle that.
On Dec 30, 2015, at 8:02 PM, Alex Harui wrote:
>
>
> On 12/30/15, 9:16 AM, "Harbs" wrote:
>
>> And I’m assuming the signature will be something like this:
>> setChild(nameOrQualifiedNam
On 12/30/15, 9:16 AM, "Harbs" wrote:
>And I’m assuming the signature will be something like this:
>setChild(nameOrQualifiedName:String,xmlOrXmlList:Object)
AS: myXML.someChild = someXMLorXMLList;
JS: myXML.setChild('someChild', someXMLorXMLList);
No idea of that actually is the case or not,
And I’m assuming the signature will be something like this:
setChild(nameOrQualifiedName:String,xmlOrXmlList:Object)
On Dec 30, 2015, at 6:13 PM, Harbs wrote:
> OK. I think we discussed this, but it’s been a few weeks… ;-)
>
> The method will accept either an XML or XMLList object.
>
> On Dec
OK. I think we discussed this, but it’s been a few weeks… ;-)
The method will accept either an XML or XMLList object.
On Dec 30, 2015, at 5:20 PM, Alex Harui wrote:
> For assignment, there will be a call to setChild().
>
> On 12/30/15, 3:09 AM, "Harbs" wrote:
>
>> The past month or so, I’ve
For assignment, there will be a call to setChild().
On 12/30/15, 3:09 AM, "Harbs" wrote:
>The past month or so, I’ve been side-tracked with lots of things, but I’m
>finally back on this.
>
>I’m not sure what we decided in terms of assignment. AFAIK, there’s no
>assignment method in XML for repla
The past month or so, I’ve been side-tracked with lots of things, but I’m
finally back on this.
I’m not sure what we decided in terms of assignment. AFAIK, there’s no
assignment method in XML for replacing XML with a specific name with an
XMLList. The closest we have is replace() which takes an
OK, I've pushed changes that handle basic for loops and setting
properties. And even += on XMLLists.
You can get a sense of what works by looking at the unit tests in
compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/T
estFlexJSGlobalClasses.java
I'm sure there are lots
I pushed changes to not use _as3_ on XML function calls and use child()
for "." access.
I'm going to look into:
-for and foreach
-setting properties on XML/XMLList
-Alex
On 11/16/15, 11:47 AM, "Alex Harui" wrote:
>
>
>On 11/16/15, 11:43 AM, "Harbs" wrote:
>
>>
>>On Nov 16, 2015, at 9:40 PM, H
On 11/16/15, 11:43 AM, "Harbs" wrote:
>
>On Nov 16, 2015, at 9:40 PM, Harbs wrote:
>
>>
>> On Nov 16, 2015, at 9:14 PM, Alex Harui wrote:
>>
>>> Hmm. I wonder what other operators work. Like “-=“.
>>
>> It looks like -= does not work.
>>
>>> And does xmlList1 + xmlList2 concatenate them
On Nov 16, 2015, at 9:40 PM, Harbs wrote:
>
> On Nov 16, 2015, at 9:14 PM, Alex Harui wrote:
>
>> Hmm. I wonder what other operators work. Like “-=“.
>
> It looks like -= does not work.
>
>> And does xmlList1 + xmlList2 concatenate them?
>
> Yes.
+= also works for this.
1 - 100 of 160 matches
Mail list logo