Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread Johannes Nel
XPath != *native* E4X
i realise this, correct xml parsing is still faster while xpath is a comfort
library to use when speed is not essential. xfactorstudio is the best and
most complient xpath. have not used MM xpath since 7.0, but its api is
extremely limited  the best sollution thus far without/minimil server side
code is xslt. e4x will mature with beta and release. currently (without
using much of it) i find it slow (since my only experience with it is
reading bout it and playing with it maybe) . the best sollution is to use
remoting and server code and if possible hire a contractor for 2 weeks to
backend
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] site carching when loading a particular xml file

2006-01-07 Thread Weyert de Boer

The buttons on the flash site itself!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Switching plugins on the mac

2006-01-07 Thread Weyert de Boer
On my Windows computers you can use a utility as Flash Plugin Switcher 
or do some magic in the registry. But is such thing also possible on the 
Mac? Because I don't want to use the Flashplayer 8.5 all the time. I 
only used Macs in my design course, since November I have my own 
Powerbook...

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Switching plugins on the mac

2006-01-07 Thread JesterXL
http://weblogs.macromedia.com/mesh/archives/2006/01/flash_player_sw.cfm


- Original Message - 
From: Weyert de Boer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 8:25 AM
Subject: [Flashcoders]  Switching plugins on the mac


On my Windows computers you can use a utility as Flash Plugin Switcher 
or do some magic in the registry. But is such thing also possible on the 
Mac? Because I don't want to use the Flashplayer 8.5 all the time. I 
only used Macs in my design course, since November I have my own 
Powerbook...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Switching plugins on the mac

2006-01-07 Thread Weyert de Boer

JesterXL wrote:


http://weblogs.macromedia.com/mesh/archives/2006/01/flash_player_sw.cfm
 


Hmm, I hope Mike can't read my mind! ;) Anyway thanks for your link.

Yours,
Weyert de Boer
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Preloading dynamic XML file using XMLConnector

2006-01-07 Thread Sajid Saiyed
Hi,
I am storing my data in MySql database and using PHP to generate XML
file on the fly which is then read by flash using XMLConnector.

Now as long as the XML file is small, or is generated quickly by PHP,
Flash displays the data in the datagrid properly.

When there is a slight delay in generating the file (fraction of a
second maybe) then the Datagrid remains empty.

I tried running just the PHP script alons in the browser, all the
results are coming fine.

I am using on(result) on the XMLConnector to make sure that the next
script is executed only after all the data has been loaded. But I dont
think on (result) is working.

My question is, is using on(result) {}  the right way to do what I am trying?
Is there any other way to check preloading of the XMLConnector content?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Increasing DisplacementMapFilter Precision

2006-01-07 Thread Spencer Markowski
Absolutely. You can add as many filters as you like... all effecting
different channels or components.

On 1/6/06, Alan Shaw [EMAIL PROTECTED] wrote:

 It's a shame that the displacement map only allots one byte each for its x
 and y components when there are four bytes available.  We can use images
 up
 to 2880 pixels high or wide, but applying displacement maps to big ones
 gives messy results.  I'm wondering if there is some way to compose or
 chain
 displacement maps to get more precision.  Failing that, maybe Adobe could
 make two bytes available for x and y in future...

 -A
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] recommended books on XML in Flash

2006-01-07 Thread Ben Deroo
Thanks Johan,
My hardcopy has not arrived yet, so I will certainly do a little
pre-reading in the PDF.

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes
Sent: vrijdag 6 januari 2006 23:33
To: Flashcoders mailing list
Subject: Re: [Flashcoders] recommended books on XML in Flash

Hi,

Just a note that you can download the Learning ActionScript 2.0 for
Macromedia Flash 8 as PDF from MM's site. Although, I myself prefer
to buy a hard copy if it's good.

Link is here:

http://download.macromedia.com/pub/documentation/en/flash/fl8/fl8_learning_a
s2.zip

/Johan

On 1/5/06, Ben Deroo [EMAIL PROTECTED] wrote:
 thanks for the book suggestions,
 I ended up ordering a couple of books:

 Foundation PHP 5 for Flash
 Foundation ASP.NET for Flash
 Foundation XML for Flash
 Learning ActionScript 2.0 for Macromedia Flash 8
 Using ActionScript 2.0 Components with Macromedia Flash 8

 should keep me busy for a while :-)

 Ben



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Potter
 Sent: dinsdag 3 januari 2006 21:49
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] recommended books on XML in Flash

 Can I third that?  Not to be mean, but I saw them speak at flash forward
 and Joey Lott had to keep answering questions they didn't know.  He
 (Joey) was really nice about it, but it was ugly.

 I would start in the docs and here:
 http://www.actionscript.org/tutorials.shtml
 http://www.oreilly.com/catalog/actscptckbk/index.html?CMP=IL7015
 http://www.oreilly.com/catalog/actscript2/





 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Lapasa
 Sent: Tuesday, January 03, 2006 1:14 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] recommended books on XML in Flash

 I heartily second this notion. Don't the get Jacobsen and Jacobsen book
 for
 all the same reasons. I just happened to gain a better insight from
 Flash's
 docs than the book.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Merrill,
 Jason
 Sent: Tuesday, January 03, 2006 11:14 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] recommended books on XML in Flash


 Whatever you do, don't buy Flash and XML: A Developers Guide by Dov
 Jacobsen and Jesse Jacobsen - Addison-Wesley Press - besides being Flash
 5, the book sucks.  You get the impression these guys are much more into
 XML than Flash.  If they even use Flash at all in their professional
 lives.  Apologies in advance if you're on thist list and one of the
 authors. There's some good stuff in it, but for someone new to Flash or
 doing basic stuff, it's not the book for you.  But even the advanced
 stuff lacks depth though.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Ben Deroo
 Sent: Saturday, December 31, 2005 4:29 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] recommended books on XML in Flash
 
 Hi,
 The title says it all I guess.
 Are there any good books out there on the subject of Flash 8 and XML?
 I found one called XML in Flash from Que publications, but as far as
 I can
 tell it is for Flash 5 and was written in 2001.
 
 Is that still current? I am assuming not.
 
 What books should I read when just getting into this subject, again,
 using
 Flash 8 or Flash MX2004?
 
 
 Thanks for your help,
 Ben
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 NOTICE:
 This message is for the designated recipient only and may contain
 privileged
 or confidential information. If you have received it in error, please
 notify
 the sender immediately and delete the original. Any other use of this
 e-mail
 by you is prohibited.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread Spencer Markowski
So then... does anyone know of any solutions to speed up the 'parsing'
process? Is there a way to pause the parser, do something else, and then
resume parsing? (It sure would be nice if we could do two things at once) Is
anyone really having trouble with the XML Object's parser or is it developer
defined traversal routine pulling from the DOM that is taking up time?

I'm also working with massive amounts of XML data and cannot find a way to
speed up my parsing routine. (For one set it takes 10+ seconds to release
it's grip on the processor. Not allowing the user to do anything, of course)


This will all move to a database in the near future, but the speed issue is
not in Macromedia's XML object parsing the data, it's in my traversal of it.
I've tried a few different techniques, yet, it's clearly not an issue of the
XML objects onLoad parse.

-sp

On 1/7/06, Johannes Nel [EMAIL PROTECTED] wrote:

 XPath != *native* E4X
 i realise this, correct xml parsing is still faster while xpath is a
 comfort
 library to use when speed is not essential. xfactorstudio is the best and
 most complient xpath. have not used MM xpath since 7.0, but its api is
 extremely limited  the best sollution thus far without/minimil server side
 code is xslt. e4x will mature with beta and release. currently (without
 using much of it) i find it slow (since my only experience with it is
 reading bout it and playing with it maybe) . the best sollution is to use
 remoting and server code and if possible hire a contractor for 2 weeks to
 backend
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread JesterXL
This has been discussed countless times, and everytime all reach the same 
conclusion; you cannot do anything when XML.parseXML is run.  The function 
has been improved in 3 releases (5, 6, and 7), but it's still 
single-threaded, and does not scale to meet larger XML datasets.  If during 
testing it doesn't work out, you'll have to throw smaller chunks of XML at 
it over time.

The typical scenario is:
- show loading bar Parsing...
- 1 frame later, parse
- 1 frame after parsed, hide loading bar

For optimizing your traversel search the archives, this has been discussed 
10 billion times.  However, to repeat:

- use attributes vs. nested nodes
- make references to everything.  Flash 7 is optimized for local registers 
(local variables inside of functions)
- additionally, those references prevent re-parsing, such as childNodes:
var nodes:Array = this.firstChild.childNodes;
Then use nodes throughout the rest of your code vs. re-declaring childNodes
- use backwards while loops
while(i--)
- where applicable use nextChild vs. childNodes


- Original Message - 
From: Spencer Markowski [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 9:42 AM
Subject: Re: [Flashcoders] Massive XML files and Flash


So then... does anyone know of any solutions to speed up the 'parsing'
process? Is there a way to pause the parser, do something else, and then
resume parsing? (It sure would be nice if we could do two things at once) Is
anyone really having trouble with the XML Object's parser or is it developer
defined traversal routine pulling from the DOM that is taking up time?

I'm also working with massive amounts of XML data and cannot find a way to
speed up my parsing routine. (For one set it takes 10+ seconds to release
it's grip on the processor. Not allowing the user to do anything, of course)


This will all move to a database in the near future, but the speed issue is
not in Macromedia's XML object parsing the data, it's in my traversal of it.
I've tried a few different techniques, yet, it's clearly not an issue of the
XML objects onLoad parse.

-sp

On 1/7/06, Johannes Nel [EMAIL PROTECTED] wrote:

 XPath != *native* E4X
 i realise this, correct xml parsing is still faster while xpath is a
 comfort
 library to use when speed is not essential. xfactorstudio is the best and
 most complient xpath. have not used MM xpath since 7.0, but its api is
 extremely limited  the best sollution thus far without/minimil server side
 code is xslt. e4x will mature with beta and release. currently (without
 using much of it) i find it slow (since my only experience with it is
 reading bout it and playing with it maybe) . the best sollution is to use
 remoting and server code and if possible hire a contractor for 2 weeks to
 backend
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Lite 2.0

2006-01-07 Thread Flavio Ramos
How's the speed, compared to J2ME and Python?


It should be great to create a database of device's performance, just like
www.jbenchmark.com .

What do you think?



On 1/6/06, Weyert de Boer [EMAIL PROTECTED] wrote:

 Flash Lite 2.0 just rocks! If you are dumb ass who doesn't really
 understand sh*t of Flash4/5 actionscript. Glad those setProperty()
 functions are deprecated.

 
 
 
 
 


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Lite 2.0

2006-01-07 Thread Weyert de Boer

Flavio Ramos wrote:


How's the speed, compared to J2ME and Python?
 

I haven't really played much with J2ME and Python myself, yet... If I 
find any information about it I will let you noW!




It should be great to create a database of device's performance, just like
www.jbenchmark.com .

What do you think?

Always nice too have indeed for Flash! This way you might be able to see 
which phones would be able to play your game or Flash Lite application 
in ease.


Yours,
Weyert de Boer

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Locale class problem

2006-01-07 Thread bryan.rice
You have to access static methods and properties via the full class  
path:
this.sizeTitle_txt.text = mx.lang.Locale.setXMLLang.loadString 
(IDS_SIZETITLE)


blue skies,
bryan

On Jan 7, 2006, at 11:19 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]  
wrote:



import mx.lang.Locale
var defLang:String = en;
Locale.setDefaultLang(defLang);
Locale.loadLanguageXML(Locale.getDefaultLang());

Everything works fine as long as I try to assign the content of my  
strings from the same level where I wrote the code above (root),  
but if I try to retrieve a value from a movieclip on a lower level  
like this:


this.sizeTitle_txt.text = this._parent.Locale.loadString 
(IDS_SIZETITLE)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Locale class problem

2006-01-07 Thread bryan.rice

Typo, it should read:

this.sizeTitle_txt.text = mx.lang.Locale.loadString(IDS_SIZETITLE)

blue skies,
bryan

On Jan 7, 2006, at 12:05 PM, bryan.rice wrote:

You have to access static methods and properties via the full class  
path:
this.sizeTitle_txt.text = mx.lang.Locale.setXMLLang.loadString 
(IDS_SIZETITLE)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Switching plugins on the mac

2006-01-07 Thread Sander

Weyert,

On my Windows computers you can use a utility as Flash Plugin  
Switcher or do some magic in the registry. But is such thing also  
possible on the Mac?


I have 3 zip archives on my Mac, in the Library/Internet Plugins  
folder: plugin 6,7,8 files. I quickly throw away all MM plugins and  
expand the one I wan to test. Perhaps that's quicker than modify  
Mike's script to include more than 8 / 8.5? You need a browser  
restart after the switch.


By the way: 8.5 MAC is just as fast / slow for bitmapData / filters /  
AS motion for me, hope it speeds up by the time it's released.


S
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread Tom Lee
I had a project recently where I was parsing huge XML datasets... To get the
speed and memory efficiency I needed, I ended up avoiding the XML object
altogether.  I loaded the XML as a String instead (using LoadVars), and
split it into page sized chunks that I could parse on-demand later.
String-splitting by node name is tricky, but doable.  It's not very
scalable: if the format of the xml changes, I'll probably have to rewrite my
parser.  But it got around a nasty problem where the XML object wasn't being
cleared from memory... as I recall, it was using over 40 MB of RAM for 1 MB
of XML data!!

I'll be glad when I can release an AS3 version and take advantage of E4X.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Saturday, January 07, 2006 9:52 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Massive XML files and Flash

This has been discussed countless times, and everytime all reach the same 
conclusion; you cannot do anything when XML.parseXML is run.  The function 
has been improved in 3 releases (5, 6, and 7), but it's still 
single-threaded, and does not scale to meet larger XML datasets.  If during 
testing it doesn't work out, you'll have to throw smaller chunks of XML at 
it over time.

The typical scenario is:
- show loading bar Parsing...
- 1 frame later, parse
- 1 frame after parsed, hide loading bar

For optimizing your traversel search the archives, this has been discussed 
10 billion times.  However, to repeat:

- use attributes vs. nested nodes
- make references to everything.  Flash 7 is optimized for local registers 
(local variables inside of functions)
- additionally, those references prevent re-parsing, such as childNodes:
var nodes:Array = this.firstChild.childNodes;
Then use nodes throughout the rest of your code vs. re-declaring childNodes
- use backwards while loops
while(i--)
- where applicable use nextChild vs. childNodes


- Original Message - 
From: Spencer Markowski [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 9:42 AM
Subject: Re: [Flashcoders] Massive XML files and Flash


So then... does anyone know of any solutions to speed up the 'parsing'
process? Is there a way to pause the parser, do something else, and then
resume parsing? (It sure would be nice if we could do two things at once) Is
anyone really having trouble with the XML Object's parser or is it developer
defined traversal routine pulling from the DOM that is taking up time?

I'm also working with massive amounts of XML data and cannot find a way to
speed up my parsing routine. (For one set it takes 10+ seconds to release
it's grip on the processor. Not allowing the user to do anything, of course)


This will all move to a database in the near future, but the speed issue is
not in Macromedia's XML object parsing the data, it's in my traversal of it.
I've tried a few different techniques, yet, it's clearly not an issue of the
XML objects onLoad parse.

-sp

On 1/7/06, Johannes Nel [EMAIL PROTECTED] wrote:

 XPath != *native* E4X
 i realise this, correct xml parsing is still faster while xpath is a
 comfort
 library to use when speed is not essential. xfactorstudio is the best and
 most complient xpath. have not used MM xpath since 7.0, but its api is
 extremely limited  the best sollution thus far without/minimil server side
 code is xslt. e4x will mature with beta and release. currently (without
 using much of it) i find it slow (since my only experience with it is
 reading bout it and playing with it maybe) . the best sollution is to use
 remoting and server code and if possible hire a contractor for 2 weeks to
 backend
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Detecting the dominating colour in a rectangle of a bitmap

2006-01-07 Thread Weyert de Boer
I would like to ask if anyone already have some sort method that 
calculates which colour in a rectangle is the dominating colou in a 
BitmapData instance. Because I would like to detect if some area of the 
image has a specific colour which is dominating - -for example black. 
Does anyone already know of such a method?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread ryanm

I'll be glad when I can release an AS3 version and take advantage of E4X.

   Even then you'll have issues with the amount of time it takes to parse 
large datasets. However, with native RegEx in 8.5 as well, you can write 
much more robust string splitting routines that are less dependant on the 
exact format and more tolerant to minor changes. Not to mention much easier 
to update if the format changes drastically.


ryanm 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread ryanm

I'm also working with massive amounts of XML data and cannot
find a way to speed up my parsing routine. (For one set it takes
10+ seconds to release it's grip on the processor. Not allowing
the user to do anything, of course)

   Like I said, break it up across frames and show a progress bar. 10 
seconds isn't a long time to wait if there is a progress bar and the rest of 
the app is working, but it's a loong time to wait if the whole app is 
locked up.


ryanm 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread blists

How would you break it up?

Brookd

At 12:05 PM 1/7/2006, you wrote:

I'm also working with massive amounts of XML data and cannot
find a way to speed up my parsing routine. (For one set it takes
10+ seconds to release it's grip on the processor. Not allowing
the user to do anything, of course)
   Like I said, break it up across frames and show a progress bar. 10 
seconds isn't a long time to wait if there is a progress bar and the rest 
of the app is working, but it's a loong time to wait if the whole app 
is locked up.


ryanm
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread ryanm

How would you break it up?

   Overwrite the onData event, take the data as a string and pass it off to 
a frame loop that parses x number of records per frame. You can teak the 
number of records per frame to fit the app, depending on how long parsing 
takes.


   The easiest way to do that is to not use XML at all, but use a format 
that is easier to parse, like comma delimited or fixed-width. Check the 
archives, it's been discussed at length before.


ryanm 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] IE on mac documentation

2006-01-07 Thread Ryan Luce
There were all kinds of problems with mac ie and flash. All kinds of stuff
would work with every browser except it. Very frustrating.

On 1/6/06, John Dowdell [EMAIL PROTECTED] wrote:

 Caleb E. Brown wrote:
  I'm trying to find out if there are any known differences between the
  video/audio quality in the plugin for IE and the safari/netscape plugin

 Hmm, for Will SWF a/v play comparably across browsers? then it usually
 will, but there can definitely be situations where something weird
 happens... for awhile Firefox/Mac would interfere with normal SWF
 performance, for instance:
 http://weblogs.macromedia.com/emmy/archives/2005/11/firefox_15_avai.cfm

 But assuming the browsers have the same amount of memory available, the
 same amount of windows open, the same number of background tasks going
 on and so on, then they're generally pretty close in supporting
 audio/video... small differences, for sure, but rarely controversial
 differences.

 Are you seeing any particular problem yourself? If so, is there some way
 that other people could make it happen too?

 jd





 --
 John Dowdell . Adobe Developer Support . San Francisco CA USA
 Weblog: http://weblogs.macromedia.com/jd
 Aggregator: http://weblogs.macromedia.com/mxna
 Technotes: http://www.macromedia.com/support/
 Spam killed my private email -- public record is best, thanks.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Classes being cached - deleting ASO does help (flash 8)

2006-01-07 Thread blists

I have a strange problem.

When I compile my project in the flash 8 IDE, one of my classes that I am 
editing does not get re-compiled. Testing in a browser does not show the 
changes. If I make a coding error in the class being compiled, the IDE 
complains and I have to change it before it will recompile. That makes me 
think its being compiled! But changes are not reflected. I've closed the 
browser, cleared the cache etc - and none of that works. If I close and 
re-open the IDE, the first time I compile it will work with the new changes.


WTF is going on here? Any body encountered this before?

Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Classes being cached - deleting ASO does help (flash8)

2006-01-07 Thread Frederic v. Bochmann
You might be able to clear the cached compiled classes by clearing your ASO
files.

In the Flash 8 IDE you can do this via the Control menu -- Delete ASO
Files.

Hope this helps!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of blists
Sent: January 7, 2006 5:57 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Classes being cached - deleting ASO does help
(flash8)

I have a strange problem.

When I compile my project in the flash 8 IDE, one of my classes that I am 
editing does not get re-compiled. Testing in a browser does not show the 
changes. If I make a coding error in the class being compiled, the IDE 
complains and I have to change it before it will recompile. That makes me 
think its being compiled! But changes are not reflected. I've closed the 
browser, cleared the cache etc - and none of that works. If I close and 
re-open the IDE, the first time I compile it will work with the new changes.

WTF is going on here? Any body encountered this before?

Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Classes being cached - deleting ASO does help (flash8)

2006-01-07 Thread blists
I should have been more clear sorry. Clearing the ASO files does not help 
in this case.


At 03:15 PM 1/7/2006, you wrote:

You might be able to clear the cached compiled classes by clearing your ASO
files.

In the Flash 8 IDE you can do this via the Control menu -- Delete ASO
Files.

Hope this helps!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of blists
Sent: January 7, 2006 5:57 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Classes being cached - deleting ASO does help
(flash8)

I have a strange problem.

When I compile my project in the flash 8 IDE, one of my classes that I am
editing does not get re-compiled. Testing in a browser does not show the
changes. If I make a coding error in the class being compiled, the IDE
complains and I have to change it before it will recompile. That makes me
think its being compiled! But changes are not reflected. I've closed the
browser, cleared the cache etc - and none of that works. If I close and
re-open the IDE, the first time I compile it will work with the new changes.

WTF is going on here? Any body encountered this before?

Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] is delegate the answer?

2006-01-07 Thread Matt Ganz
hi.

i'm having problems referencing a listener that is attached to my
media display component. i believe the answer lies in my using
delegate.

when my video plays thru, i can successfully remove my listener a la:

var completeListener = new Object();
completeListener.complete = function( eventObject:Object )
{
_level0.container_mc1.mediaDisplay1.removeEventListener( complete,
this ); // works great.
};
_level0.container_mc1.mediaDisplay1.addEventListener( complete,
completeListener );

the problem is that i have a navigation menu that allows you to jump
out of the section you're in (interrupting the video) and move to
another section. at this point i have to remove all listeners, and
i've been trying to do it by passing the scope along a la:

function jumpToNewSection( my Params )
_level0.[ container_mc + mediaNum ][ currentMediaDisplay
].removeEventListener( complete, completeScope);
}

where completeScope is a string: _level0.externalSwf_mc.completeListener;

but it's not working. would i be better off going with delegate in
this instance?

thanks for any helpful tips.

matt.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Classes being cached - deleting ASO does help (flash 8)

2006-01-07 Thread Ian Thomas
Is the movie you're having trouble with loaded into another containing
movie? And has that other containing movie got references to a version of
the class you're changing? In which case you need to recompile that
containing movie, too. Flash always uses the first version of the class that
it loads.

HTH,
   Ian

On 1/7/06, blists [EMAIL PROTECTED] wrote:

 I have a strange problem.

 When I compile my project in the flash 8 IDE, one of my classes that I am
 editing does not get re-compiled. Testing in a browser does not show the
 changes. If I make a coding error in the class being compiled, the IDE
 complains and I have to change it before it will recompile. That makes me
 think its being compiled! But changes are not reflected. I've closed the
 browser, cleared the cache etc - and none of that works. If I close and
 re-open the IDE, the first time I compile it will work with the new
 changes.

 WTF is going on here? Any body encountered this before?

 Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread MyName
In my current project, I need to be able to pause my traversal function in 
order to load another nested xml file, which may contain dependencies the 
current loaded parent xml file is depended on. This almost can't be done by 
multiple passes or by breaking up data. So what I did was as suggested by 
many folks on this list:


1. Have a class(TaskManager in my case) extends MovieClip, which can run a 
function assigned by client in onEnterFrame event handler on demand.
2. Break up traversal recursive loop into a chain of function calls by 
delegating each call to the TaskManager object.


I think this idea can apply to any time-consuming operation , for example, 
breaking up your parsing routines. The concept is to scatter heavy workload 
over frames instead of sticking on one frame.


Doug

- Original Message - 
From: Spencer Markowski [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 6:42 AM
Subject: Re: [Flashcoders] Massive XML files and Flash


So then... does anyone know of any solutions to speed up the 'parsing'
process? Is there a way to pause the parser, do something else, and then
resume parsing? (It sure would be nice if we could do two things at once) Is
anyone really having trouble with the XML Object's parser or is it developer
defined traversal routine pulling from the DOM that is taking up time?

I'm also working with massive amounts of XML data and cannot find a way to
speed up my parsing routine. (For one set it takes 10+ seconds to release
it's grip on the processor. Not allowing the user to do anything, of course)


This will all move to a database in the near future, but the speed issue is
not in Macromedia's XML object parsing the data, it's in my traversal of it.
I've tried a few different techniques, yet, it's clearly not an issue of the
XML objects onLoad parse.

-sp

On 1/7/06, Johannes Nel [EMAIL PROTECTED] wrote:


XPath != *native* E4X
i realise this, correct xml parsing is still faster while xpath is a
comfort
library to use when speed is not essential. xfactorstudio is the best and
most complient xpath. have not used MM xpath since 7.0, but its api is
extremely limited  the best sollution thus far without/minimil server side
code is xslt. e4x will mature with beta and release. currently (without
using much of it) i find it slow (since my only experience with it is
reading bout it and playing with it maybe) . the best sollution is to use
remoting and server code and if possible hire a contractor for 2 weeks to
backend
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Massive XML files and Flash

2006-01-07 Thread Tom Lee
I would suggest looking into setInterval as an architecturally cleaner way
of doing this... Has the advantage that the interval is not dependant on the
movie's framerate, and has less overhead than instantiating a movieclip.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MyName
Sent: Saturday, January 07, 2006 8:03 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Massive XML files and Flash

In my current project, I need to be able to pause my traversal function in 
order to load another nested xml file, which may contain dependencies the 
current loaded parent xml file is depended on. This almost can't be done by 
multiple passes or by breaking up data. So what I did was as suggested by 
many folks on this list:

1. Have a class(TaskManager in my case) extends MovieClip, which can run a 
function assigned by client in onEnterFrame event handler on demand.
2. Break up traversal recursive loop into a chain of function calls by 
delegating each call to the TaskManager object.

I think this idea can apply to any time-consuming operation , for example, 
breaking up your parsing routines. The concept is to scatter heavy workload 
over frames instead of sticking on one frame.

Doug

- Original Message - 
From: Spencer Markowski [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 6:42 AM
Subject: Re: [Flashcoders] Massive XML files and Flash


So then... does anyone know of any solutions to speed up the 'parsing'
process? Is there a way to pause the parser, do something else, and then
resume parsing? (It sure would be nice if we could do two things at once) Is
anyone really having trouble with the XML Object's parser or is it developer
defined traversal routine pulling from the DOM that is taking up time?

I'm also working with massive amounts of XML data and cannot find a way to
speed up my parsing routine. (For one set it takes 10+ seconds to release
it's grip on the processor. Not allowing the user to do anything, of course)


This will all move to a database in the near future, but the speed issue is
not in Macromedia's XML object parsing the data, it's in my traversal of it.
I've tried a few different techniques, yet, it's clearly not an issue of the
XML objects onLoad parse.

-sp

On 1/7/06, Johannes Nel [EMAIL PROTECTED] wrote:

 XPath != *native* E4X
 i realise this, correct xml parsing is still faster while xpath is a
 comfort
 library to use when speed is not essential. xfactorstudio is the best and
 most complient xpath. have not used MM xpath since 7.0, but its api is
 extremely limited  the best sollution thus far without/minimil server side
 code is xslt. e4x will mature with beta and release. currently (without
 using much of it) i find it slow (since my only experience with it is
 reading bout it and playing with it maybe) . the best sollution is to use
 remoting and server code and if possible hire a contractor for 2 weeks to
 backend
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Spencer Markowski
The Able Few
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Detecting the dominating colour in a rectangle of abitmap

2006-01-07 Thread Tom Lee
Interesting idea... I don't have a method written, but the first thing I
would do is try blurring the image until it is one uniform color (perhaps
with a Transform Matrix), and then get the RGB of that color.   

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert de
Boer
Sent: Saturday, January 07, 2006 3:04 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Detecting the dominating colour in a rectangle of
abitmap

I would like to ask if anyone already have some sort method that 
calculates which colour in a rectangle is the dominating colou in a 
BitmapData instance. Because I would like to detect if some area of the 
image has a specific colour which is dominating - -for example black. 
Does anyone already know of such a method?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] IE on mac documentation

2006-01-07 Thread JesterXL
Not anymore; IE for Mac is dead.

- Original Message - 
From: Ryan Luce [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 5:16 PM
Subject: Re: [Flashcoders] IE on mac documentation


There were all kinds of problems with mac ie and flash. All kinds of stuff
would work with every browser except it. Very frustrating.

On 1/6/06, John Dowdell [EMAIL PROTECTED] wrote:

 Caleb E. Brown wrote:
  I'm trying to find out if there are any known differences between the
  video/audio quality in the plugin for IE and the safari/netscape plugin

 Hmm, for Will SWF a/v play comparably across browsers? then it usually
 will, but there can definitely be situations where something weird
 happens... for awhile Firefox/Mac would interfere with normal SWF
 performance, for instance:
 http://weblogs.macromedia.com/emmy/archives/2005/11/firefox_15_avai.cfm

 But assuming the browsers have the same amount of memory available, the
 same amount of windows open, the same number of background tasks going
 on and so on, then they're generally pretty close in supporting
 audio/video... small differences, for sure, but rarely controversial
 differences.

 Are you seeing any particular problem yourself? If so, is there some way
 that other people could make it happen too?

 jd





 --
 John Dowdell . Adobe Developer Support . San Francisco CA USA
 Weblog: http://weblogs.macromedia.com/jd
 Aggregator: http://weblogs.macromedia.com/mxna
 Technotes: http://www.macromedia.com/support/
 Spam killed my private email -- public record is best, thanks.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Generating XML file from projector

2006-01-07 Thread dls
Other than SWF Studio from Northcode, does anyone know of any other 
flash to .exe software that allows your projector to create XML files?


Thanks in Advance,
Dan Sherman
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] is delegate the answer?

2006-01-07 Thread John Grden
Hey Matt, if completeScope is a string, eval it in your call:

removeEventListener( complete, eval(completeScope));

removeEventListener is looking for function or object in the second
argument:

function removeEventListener(event:String, handler):Void

As for using Delegate, I don't think that's the issue here, but then again,
I might be missing your question.

hth,

John

On 1/7/06, Matt Ganz [EMAIL PROTECTED] wrote:

 hi.

 i'm having problems referencing a listener that is attached to my
 media display component. i believe the answer lies in my using
 delegate.

 when my video plays thru, i can successfully remove my listener a la:

 var completeListener = new Object();
 completeListener.complete = function( eventObject:Object )
 {
 _level0.container_mc1.mediaDisplay1.removeEventListener(
 complete,
 this ); // works great.
 };
 _level0.container_mc1.mediaDisplay1.addEventListener( complete,
 completeListener );

 the problem is that i have a navigation menu that allows you to jump
 out of the section you're in (interrupting the video) and move to
 another section. at this point i have to remove all listeners, and
 i've been trying to do it by passing the scope along a la:

 function jumpToNewSection( my Params )
 _level0.[ container_mc + mediaNum ][ currentMediaDisplay
 ].removeEventListener( complete, completeScope);
 }

 where completeScope is a string: _level0.externalSwf_mc.completeListener;

 but it's not working. would i be better off going with delegate in
 this instance?

 thanks for any helpful tips.

 matt.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Generating XML file from projector

2006-01-07 Thread JesterXL
mProjector, Zinc, not sure about the OS version of Screenweaver.

- Original Message - 
From: dls [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 07, 2006 10:27 PM
Subject: [Flashcoders] Generating XML file from projector


Other than SWF Studio from Northcode, does anyone know of any other 
flash to .exe software that allows your projector to create XML files?

Thanks in Advance,
Dan Sherman
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] windows flash standalone able to export standalone file?

2006-01-07 Thread grimmwerks
Hey all  - I have to recreate a Director app/dvd I've done a few times
-- it's basically a presentation creation engine that allows one to
pick slides and video and create their own small presentation. The
client wants the ability to export standalone files, so I was
exporting quicktime moves from the app.

I'd prefer to use Flash only (for Flash 8) or if I had to Flash in a
Director shell -- but if I was considering a windows only application
done entirely in Flash, would there be any shell that can be used to
export either video ro another .swf?


Thanks all.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders