Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-18 Thread Alistair Colling
Thanks Danny, I think you're right, the XML Object is pretty fast and  
if it is going to take a while to load then storing the ID somewhere  
else and checking that file is probably the best way to approach this.

Cheers everyone!
Ali
On 15 May 2007, at 15:45, Danny Kodicek wrote:


Hi there, I am sure I remember coming across a way of reading
an XML file before it is fully loaded though I can't find it.
What I would like to do is load all the information from an
XML file but only if an attribute in the first node has
changed (this is like an ID that the Flash app can use to
decide whether or not to load all of the XML unless it is a
new version). Has anyone else heard of this of or is this
wishful thinking?


You could parse the initial text manually, but in fairness the XML  
object is
pretty fast and I'd imagine you're better off just letting it load.  
If you
want to have an ID for whether the xml has changed, why not just  
put one

into a different file?

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Alistair Colling
Hi there, I am sure I remember coming across a way of reading an XML  
file before it is fully loaded though I can't find it. What I would  
like to do is load all the information from an XML file but only if  
an attribute in the first node has changed (this is like an ID that  
the Flash app can use to decide whether or not to load all of the XML  
unless it is a new version). Has anyone else heard of this of or is  
this wishful thinking?

Thanks :)
Ali



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Ian Thomas

In AS2, you can certainly do some initial checking before it's
_parsed_ by overriding the onData function of the XML object. You
could do some very simple string-checking on the raw string (to check
your attribute) and then decide whether or not to pass it on for
parsing.

How much speed that'll gain you, I don't know.

I suspect there are ways to part-load objects in AS3.

The other fairly obvious way would be to do the work server-side,
proxying your true data source and sending only minimal data if
nothing has changed.

HTH,
  Ian

On 5/15/07, Alistair Colling [EMAIL PROTECTED] wrote:

Hi there, I am sure I remember coming across a way of reading an XML
file before it is fully loaded though I can't find it. What I would
like to do is load all the information from an XML file but only if
an attribute in the first node has changed (this is like an ID that
the Flash app can use to decide whether or not to load all of the XML
unless it is a new version). Has anyone else heard of this of or is
this wishful thinking?
Thanks :)
Ali



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Smeets, Ben
Try the onData event handler of the XML object. Needs some extra magic I
think though. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alistair
Colling
Sent: dinsdag 15 mei 2007 16:07
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can I read XML before it is loaded?

Hi there, I am sure I remember coming across a way of reading an XML
file before it is fully loaded though I can't find it. What I would like
to do is load all the information from an XML file but only if an
attribute in the first node has changed (this is like an ID that the
Flash app can use to decide whether or not to load all of the XML unless
it is a new version). Has anyone else heard of this of or is this
wishful thinking?
Thanks :)
Ali



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Danny Kodicek
  Hi there, I am sure I remember coming across a way of reading 
 an XML file before it is fully loaded though I can't find it. 
 What I would like to do is load all the information from an 
 XML file but only if an attribute in the first node has 
 changed (this is like an ID that the Flash app can use to 
 decide whether or not to load all of the XML unless it is a 
 new version). Has anyone else heard of this of or is this 
 wishful thinking?

You could parse the initial text manually, but in fairness the XML object is
pretty fast and I'd imagine you're better off just letting it load. If you
want to have an ID for whether the xml has changed, why not just put one
into a different file?

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread T. Michael Keesey

On 5/15/07, Danny Kodicek [EMAIL PROTECTED] wrote:

Hi there, I am sure I remember coming across a way of reading
an XML file before it is fully loaded though I can't find it.
What I would like to do is load all the information from an
XML file but only if an attribute in the first node has
changed (this is like an ID that the Flash app can use to
decide whether or not to load all of the XML unless it is a
new version). Has anyone else heard of this of or is this
wishful thinking?


Wishful thinking. Once Flash starts to download something, it doesn't
stop (streaming media excluded).

If you can, make an addition to the back-end: a script or web service
call that returns a Boolean, based on the same thing.

Am I right in assuming that the XML file is very large? (If not, what
would be the point?)

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Hairy Dog Digital
What about utilizing two separate XML files. The first files contains the
elements that predicate the loading of the second XML file.

Yes, it's more than one file, but may be a more practical approach as
opposed to overwriting the onLoad event handler.

...Rob


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Paul Chang
I don't have the original post for this thread, but if you're in AS3,  
perhaps the URLStream class would be what you want.


Paul

--
Paul Chang, Ph.D.
PCD.



On May 15, 2007, at 7:34 AM, Smeets, Ben wrote:

Try the onData event handler of the XML object. Needs some extra  
magic I

think though.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Alistair

Colling
Sent: dinsdag 15 mei 2007 16:07
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can I read XML before it is loaded?

Hi there, I am sure I remember coming across a way of reading an XML
file before it is fully loaded though I can't find it. What I would  
like

to do is load all the information from an XML file but only if an
attribute in the first node has changed (this is like an ID that the
Flash app can use to decide whether or not to load all of the XML  
unless

it is a new version). Has anyone else heard of this of or is this
wishful thinking?
Thanks :)
Ali



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http:// 
www.figleaf.com

http://training.figleaf.com


This e-mail and any attachment is for authorised use by the  
intended recipient(s) only. It may contain proprietary material,  
confidential information and/or be subject to legal privilege. It  
should not be copied, disclosed to, retained or used by, any other  
party. If you are not an intended recipient then please promptly  
delete this e-mail and any attachment and all copies and inform the  
sender. Thank you.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com