Yep, I knew it was gonna be something dead-simple ;) . Thanks Taka!
.m
On Thu, Nov 4, 2010 at 2:27 PM, Taka Kojima wrote:
> You would do xml..product.(@prodCode == id);
>
> Yep, that simple.
>
> Taka
>
> On Thu, Nov 4, 2010 at 11:17 AM, Matt S. wrote:
>
>> I know this is easy, but I'm having tr
You would do xml..product.(@prodCode == id);
Yep, that simple.
Taka
On Thu, Nov 4, 2010 at 11:17 AM, Matt S. wrote:
> I know this is easy, but I'm having trouble finding the answer: if I'm
> iterating through XML like so:
>
> return xml.category.(@name == cat[0]).subcategory.subcategory2.(@nam
I know this is easy, but I'm having trouble finding the answer: if I'm
iterating through XML like so:
return xml.category.(@name == cat[0]).subcategory.subcategory2.(@name
== cat[1]).product.(@prodCode == String(id));
where "cat" is an array, eg cat = ["men","shirts"]
but what I want to do is se
- Original Message
> From: "Merrill, Jason"
> To: Flash Coders List
> Sent: Thu, May 6, 2010 11:08:04 AM
> Subject: RE: [Flashcoders] XML Question
>
> >> Jason Merrill says he sent an earlier reply concerning my
> question
about how to writ
>> Jason Merrill says he sent an earlier reply concerning my question
about how to write my switch statement.
>>No, I don't recall seeing it. I just resurrected it with Google, and
thank you! This works:
Well, THAT's annoying (not your fault though)- do you see this reply? I
hope I'm not being f
- Original Message
> From: "kennethkawam...@gmail.com"
> To: Flash Coders List
> Sent: Thu, May 6, 2010 9:08:22 AM
> Subject: Re: [Flashcoders] XML Question
>
> Wrap your text with XML character data
Wrap your text with XML character data, i.e.
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 6 May 2010 13:56, John Singleton wrote:
> Whoops. Now I have this in my XML:
>
> Senior Citizen Discount
> Delta Electric and Construction Co., Inc. finds its pricing to be fair
> and reason
http://www.w3schools.com/xml/xml_cdata.asp
On 6 May 2010 14:56, John Singleton wrote:
> Whoops. Now I have this in my XML:
>
>Senior Citizen Discount
> Delta Electric and Construction Co., Inc. finds its pricing to be
> fair and reasonable. Their prices are competitive and based on the loca
Whoops. Now I have this in my XML:
Senior Citizen Discount
Delta Electric and Construction Co., Inc. finds its pricing to be fair
and reasonable. Their prices are competitive and based on the local market
rates. Delta Electric offers a 10% discount to Senior Citizens living in the
Virgin Is
Jason Merrill says he sent an earlier reply concerning my question about how to
write my switch statement. No, I don't recall seeing it. I just resurrected it
with Google, and thank you! This works:
pageDetails = xmlData.PAGE.(@pg_name == "contact").DETAILS.text();
Meanwhile, Kenne
; http://www.materiaprima.co.uk/
>
> John Singleton wrote:
>
>> - Original Message
>>
>> From: "kennethkawam...@gmail.com"
>>> To: Flash Coders List
>>> Sent: Wed, May 5, 2010 12:48:28 PM
>>> Subject: Re: [Flashcoder
mail.com"
To: Flash Coders List
Sent: Wed, May 5, 2010 12:48:28 PM
Subject: Re: [Flashcoders] XML Question
Say for example you are in the home section and obtaining the data for
it,
you'd do:
var pageData:XML = xmlData.PAGE.(@pg_name ==
"index")[0];
Then build the page ba
ist
Subject: Re: [Flashcoders] XML Question
- Original Message
> From: "kennethkawam...@gmail.com"
> To: Flash Coders List
> Sent: Wed, May 5, 2010 12:48:28 PM
> Subject: Re: [Flashcoders] XML Question
>
> Say for example you are in the home section and obt
- Original Message
> From: "kennethkawam...@gmail.com"
> To: Flash Coders List
> Sent: Wed, May 5, 2010 12:48:28 PM
> Subject: Re: [Flashcoders] XML Question
>
> Say for example you are in the home section and obtaining the data for
it,
> you'd do
oders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Singleton
> Sent: Wednesday, May 05, 2010 11:03 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] XML Question
>
> - Original Message
>
>> From: jonathan h
lto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Singleton
Sent: Wednesday, May 05, 2010 11:03 AM
To: Flash Coders List
Subject: Re: [Flashcoders] XML Question
- Original Message
> From: jonathan howe
> To: Flash Coders List
> Sent: Wed, May 5, 2010 11:23:25 AM
> Subject
ingleton wrote:
>
>
> - Original Message
>
>> From: "kennethkawam...@gmail.com"
>> To: Flash Coders List
>> Sent: Wed, May 5, 2010 11:53:53 AM
>> Subject: Re: [Flashcoders] XML Question
>>
>> It's not just about missing "brea
- Original Message
> From: "kennethkawam...@gmail.com"
> To: Flash Coders List
> Sent: Wed, May 5, 2010 11:53:53 AM
> Subject: Re: [Flashcoders] XML Question
>
> It's not just about missing "break", your switch statement
fundamenta
- Original Message
> From: jonathan howe
> To: Flash Coders List
> Sent: Wed, May 5, 2010 11:23:25 AM
> Subject: Re: [Flashcoders] XML Question
>
> You forgot your break; statements, sir.
You're right, however it makes no difference in the outcome. It still d
It's not just about missing "break", your switch statement
fundamentally does not make sense (sorry ;)
switch (xmldata.pa...@pg_name.tostring())
... this evaluates to "indexcontact" as your trace shows, therefore
none of your cases will pass the test.
In order to make this work you have to iterat
: Wednesday, May 05, 2010 8:49 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] XML Question
Hi;
I have this in an external xml file:
This is some more of the home page.
My objective is to use a switch statement like this:
switch (xmlda...@page_name.tost
You forgot your break; statements, sir.
On Wed, May 5, 2010 at 11:12 AM, John Singleton
wrote:
> - Original Message
>
> > From: allandt bik-elliott (thefieldcomic.com)
> >
> > i'd also recommend having a root node and an xml type declaration at
> > the start
>
> Right. Ok, here's my rev
- Original Message
> From: allandt bik-elliott (thefieldcomic.com)
>
> i'd also recommend having a root node and an xml type declaration at
> the start
Right. Ok, here's my revised code:
This is some more of the home page.
This is some more of the contact page.
i'd also recommend having a root node and an xml type declaration at the
start
a
On 5 May 2010 14:05, Paul Andrews wrote:
> On 05/05/2010 13:49, John Singleton wrote:
>
>> Hi;
>> I have this in an external xml file:
>>
>>
>> This is some more of the home page.
>>
>>
>> My objective is to us
On 05/05/2010 13:49, John Singleton wrote:
Hi;
I have this in an external xml file:
This is some more of the home page.
My objective is to use a switch statement like this:
switch (xmlda...@page_name.tostring())
{
case "index":
Hi,
Your switch uses "page_name", but your XML says "pg_name".
Not sure about the other question at the moment, but it looks like you
are repeating your self in the switch statement - if all your pages have
DETAILS, do you need to switch? I am guessing you may have pages that
differ?
HTH a
Hi;
I have this in an external xml file:
This is some more of the home page.
My objective is to use a switch statement like this:
switch (xmlda...@page_name.tostring())
{
case "index":
pageDetails = xmlData.DETAILS.toString();
Thank you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I don't think so. I think that's precisely the reason why it returns an
empty list instead of null. So you can safely "chain" toghether diferent
node names in your query.
Cheers
Juan Pablo Califano
2010/2/6 Alexander Farber
> Thank you - I'll do, but
>
> On Sat, Feb 6, 2010 at 7:01 PM, Juan Pab
Thank you - I'll do, but
On Sat, Feb 6, 2010 at 7:01 PM, Juan Pablo Califano
wrote:
> Because your second query returns an empty list instead of null.
>
> So, instead of checking for null, just check the length of the result.
>
> trace(describeType(xml1.lobby)); trace(xml1.lobby.length()); // 1
>
It seems like from my testing that if you try to retrieve an XMLList from an
XML by using that notation it will always return a valid XMLList, but if the
node doesn't actually exist, the XMLList is simply empty. Check the length
of the returned XMLList:
if (xml2.lobby.length > 0) {
trace("2: i
Because your second query returns an empty list instead of null.
So, instead of checking for null, just check the length of the result.
trace(describeType(xml1.lobby)); trace(xml1.lobby.length()); // 1
trace(describeType(xml2.lobby)); trace(xml2.lobby.length()); // 0
The first time I noted this
Hello,
I've prepared a simple test case for my problem:
var xml1:XML =
;
var xml2:XML =
;
if (xml1.lobby)
trace('1: in the lobby');
if (xml2.lobby)
trace('2: in the lobby');
Why does this pr
Hi, does anyone knows an application for the xml rather than the
regular text list with images?, maybe the way to publish something that
looks like a menu or at least a list of items with images...
Something way better than the usual thing with new xml and the html
page with xml tags. This th
PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML question
> But I found out I can do a find and replace on the "empty lines" in
> Dreamwever so I`m gonna play with that!
>
If you have access to any decent text editor you should be able to get
rid of them. I use Ult
Yes,
He is trying to do that exactly :) I got a db and have to use the data in
Flash on a CD.
:)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ryanm
Sent: Thursday, August 24, 2006 7:53 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML
Here's one way:
myString.split("\r").join("");
myString.split("\n").join("");
It sounds to me like he's trying to take a database and turn it into
something that can be loaded directly by Flash, maybe for a distributed
standalone app (CD, web download, etc). Depending on the size of the dat
But I found out I can do a find and replace on the "empty lines" in
Dreamwever so I`m gonna play with that!
If you have access to any decent text editor you should be able to get
rid of them. I use UltraEdit for this, because it supports RegExp in the
replace dialog. Basically, you just want
Here's one way:
myString.split("\r").join("");
myString.split("\n").join("");
And if you use my XString class (search the archives):
myString.squeeze(" "); might do the trick, too.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription opt
sday, August 24, 2006 5:51 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] XML question
Did you try condenseWhite on your textfield?
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
whelp.htm?context=LiveDocs_Parts&file=2740.html
>From the help fil
Thursday, August 24, 2006 8:37 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] XML question
Thanx! But ignoreWhite = true
So that`s not it...any other ideas?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyn
any other ideas?
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Scott
> Hyndman
> Sent: Thursday, August 24, 2006 4:14 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] XML question
>
&
iginal Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: Thursday, August 24, 2006 4:14 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML question
Is your XML object set to ignoreWhite?
http://livedocs.macromedia.com/flash/mx2004/main_7_2/
Thanx! But ignoreWhite = true
So that`s not it...any other ideas?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: Thursday, August 24, 2006 4:14 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML question
Is your
Is your XML object set to ignoreWhite?
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1896.html
Scott
On 24/08/06, Wouter <[EMAIL PROTECTED]> wrote:
Hi list,
I got an MS Acces database with data, which I converted to
Hi list,
I got an MS Acces database with data, which I converted to XML (direct
export from Access) and I read that in flash.so far so good, but when I
display the text in a textfield there are a lot of empty lines between the
linesI found out that there are somehowe some "\r" in there t
thanks
On 6/17/06, Paul Evans <[EMAIL PROTECTED]> wrote:
On 16 Jun 2006, at 22:28, Flash guru wrote:
> I'm restricted to asp, but I'm a php native that is blind to the
> ways of asp
I'm trying to leave the way of ASP behind - the following notes might
be useful to you...
A good quick ASP refe
On 16 Jun 2006, at 22:28, Flash guru wrote:
I'm restricted to asp, but I'm a php native that is blind to the
ways of asp
I'm trying to leave the way of ASP behind - the following notes might
be useful to you...
A good quick ASP reference :- http://www.devguru.com/
In ActionScript, when yo
Solutions
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Flash guru
>>Sent: Friday, June 16, 2006 5:28 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] xml question
>>
&
From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Flash guru
>>Sent: Friday, June 16, 2006 5:12 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] xml question
>>
>>First off thanks to anyone who responds
>>
>>I have this
also true of
HTML - same concept.
Jason Merrill
Bank of America
Learning Technology Solutions
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Flash guru
>>Sent: Friday, June 16, 2006 5:12 PM
>>To
First off thanks to anyone who responds
I have this interactive peice that uses xml file that need to be
edited in an admin atmoshpere. My question is:
Can flash produce xml files?
What would be the best way to produce xml files on the fly, if flash
can't produce xml files?
Lastly I can't use
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flash guru
Sent: Wednesday, December 07, 2005 3:20 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] XML question
Hey all,
here's the code i'm working with:
var main:XML = new XML();
main.ignoreWhite =true;
main.onLoad
use Delegate
-
import mx.utils.Delegate;
var a:Array = new Array();
..
..
main.onLoad = Delegate.create(this, populateXML);
function populateXML():Void
{
trace(a);
}
Goodluck,
On 12/7/05, Flash guru <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> here's the code i'm working
Hey all,
here's the code i'm working with:
var main:XML = new XML();
main.ignoreWhite =true;
main.onLoad =function(success:Boolean){
if (success) {
var developers:Array = this.firstChild.childNodes;
var siteUrl:Array = new Array();
var stanceUrl:Array = new Array();
var introUrl
Hey all,
here's the code i'm working with:
var main:XML = new XML();
main.ignoreWhite =true;
main.onLoad =function(success:Boolean){
if (success) {
var developers:Array = this.firstChild.childNodes;
var siteUrl:Array = new Array();
var stanceUrl:Array = new Array();
var introUrl
Sajid,
I ran into the same issue. There are two main arrays in an ATOM 1.0
feed the LINK and the ENTRY array. For content I have always used the
ENTRY array. I have the same issue with the LINK node inside of ENTRY.
It says it's an array but I can not connect to any of the values. I
wil
currentItem.link.attributes.href
currentItem.link.attributes.rel
Muzak
- Original Message -
From: "Sajid Saiyed" <[EMAIL PROTECTED]>
To:
Sent: Friday, October 07, 2005 1:59 PM
Subject: [Flashcoders] XML question
> Hi,
> I am trying to read an Atom XML into a
Hi,
I am trying to read an Atom XML into a Flash file.
If you look at the XML, its like this:
Friends at Macromedia
http://www.ssdesigninteractive.com/blog/archives/2005/10/friends_at_macr.html";
/>
2005-10-05T07:58:51Z
.
Now, when I use XML Connector and set Schema, it shows 'link' a
59 matches
Mail list logo