[Flashcoders] editing and debugging tools for ActionScript 3.0 projects?

2010-05-02 Thread Jim Andrews
I'm not sure if this is typical, but the ActionScript editor and also the 
debugger in Flash CS4 Professional, on my machine, are almost unusably slow. 
Do other people find this to be the case?


On my machine, it might take ten seconds to step from one line to the next, 
even when there isn't much going on in the program, and editing the code 
takes five seconds for the cursor to appear in the code, and waiting to 
backspace takes several seconds, and the menus are very slow, and so on.


So I would actually like to code and debug in some other  environment than 
Flash CS4 Professional.


What are my options? What editors and debuggers do you use?

I'm using FlashDevelop for coding, and that seems good. Much much faster. 
But it's not integrated with a compiler/debugger. I see there is an Alpha 
version of flexdbg, which purports to be a debugger for FlashDevelop. 
Alpha?? How come all these Flash dev tools are all in Alpha??


ja?
http://vispo.com 


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


RE: [Flashcoders] editing and debugging tools for ActionScript 3.0 projects?

2010-05-02 Thread Cor
Try http://www.demonsterdebugger.com/features/howitworks

HTH
Cor


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim Andrews
Sent: zondag 2 mei 2010 10:10
To: Flash Coders List
Subject: [Flashcoders] editing and debugging tools for ActionScript 3.0
projects?

I'm not sure if this is typical, but the ActionScript editor and also the 
debugger in Flash CS4 Professional, on my machine, are almost unusably slow.

Do other people find this to be the case?

On my machine, it might take ten seconds to step from one line to the next, 
even when there isn't much going on in the program, and editing the code 
takes five seconds for the cursor to appear in the code, and waiting to 
backspace takes several seconds, and the menus are very slow, and so on.

So I would actually like to code and debug in some other  environment than 
Flash CS4 Professional.

What are my options? What editors and debuggers do you use?

I'm using FlashDevelop for coding, and that seems good. Much much faster. 
But it's not integrated with a compiler/debugger. I see there is an Alpha 
version of flexdbg, which purports to be a debugger for FlashDevelop. 
Alpha?? How come all these Flash dev tools are all in Alpha??

ja?
http://vispo.com 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.814 / Virusdatabase: 271.1.1/2847 - datum van uitgifte: 05/01/10
20:27:00

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


Re: [Flashcoders] Benchmarking

2010-05-02 Thread Beatrix Krümmer-Frau
When you debug in  Flash IDE, but that will always be local:
- click Debug  Begin Remote Debug Session  Actionscript 3.0
- Open up the swf in a browser.
- Traces appear in the trace window.

else/or:
- flash debugger for browser
-  Flashtracer Firefox add-on: http://www.sephiroth.it/firefox/flashtracer/
 - Firebug https://addons.mozilla.org/de/firefox/addon/1843 with
thunderbold:
http://www.websector.de/blog/2008/06/01/the-new-thunderbolt-as3-console-based-on-adobe-air/

*Beatrix Kruemmer-Frau*
Dipl. Ing. Designer|CEH-LPIG-1
Flash/Flex Developer
Network Security Administrator

Blog http://www.blog.dieanstalt.com
Twitter http://twitter.com/Birikini 
Xing http://www.xing.com/profile/Beatrix_KruemmerFrau 
LinkenID http://de.linkedin.com/in/beatrixkruemmerfrau


Am 02.05.2010 07:11, schrieb Karl DeSaulniers:
 Hello,
 Is there a website that can benchmark my sites for me?
 For example, a site you go to that you load your site in a window
 provided and it tells you
 how fast your site loaded, how many errors, how many things cached?
 Or would a site like this just be a big security violation?

 I am wanting to test how my sites load through a browser, but get a
 little deeper of info to how the AS is executing.
 Not sure if the Debuggers of browsers do that. They don't get into the
 swf like that.
 I think I remember something about being able to debug from the flash
 IDE like this, but not sure how to do that.
 I know how to test the swf locally, don't get me wrong,  just not on
 the server.
 TIA

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 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] Event Listener on MC with dynamic text field

2010-05-02 Thread natalia Vikhtinskaya
Hi
I convert some AS2 code to AS3 and found one thing that works well for
AS2 but I cannot find solution for AS3
For example:
There is mc btnAbout on the stage with dynamic text field
Code in frame

btnAbout.deepLink = 'about';
function btnClick(e:MouseEvent) {
trace(e.target.deepLink);
}
btnAbout.buttonMode= true;
btnAbout.addEventListener(MouseEvent.CLICK, btnClick);

trace(e.target.deepLink) show  “about” if text is static and gives
error if text is dynamic

Error #1069: Property deepLink not found on flash.text.TextField and
there is no default value.

Also buttonMode does not work for mc with dynamic text. If I
trace(e.target) it also gives error. So it looks like I can not add
Event Listener on mc that has dynamic text field inside.
How to do that correctly?
Thanks in advance.

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


Re: [Flashcoders] editing and debugging tools for ActionScript3.0 projects?

2010-05-02 Thread Jim Andrews
I had installed and uninstalled the DeMonster bugger already. The Demonster 
debugger is good if you already have an SWF. But it doesn't work for simply 
compiling the SWF. Is there an alternative debugger for both compilation and 
run-time debugging? Or do we do the compilation debugging in the IDE and the 
run-time debugging in Demonster?


Are other people experiencing the same incredible slowness of the Flash Pro 
CS4 IDE concerning script editing, script debugging, and even access to the 
menus in the IDE?


What are the key things I can do to speed the Flash Pro CS$ IDE up a bit??

ja??
http://vispo.com

- Original Message - 
From: Cor c...@chello.nl

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 02, 2010 1:34 AM
Subject: RE: [Flashcoders] editing and debugging tools for ActionScript3.0 
projects?




Try http://www.demonsterdebugger.com/features/howitworks

HTH
Cor


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim 
Andrews

Sent: zondag 2 mei 2010 10:10
To: Flash Coders List
Subject: [Flashcoders] editing and debugging tools for ActionScript 3.0
projects?

I'm not sure if this is typical, but the ActionScript editor and also the
debugger in Flash CS4 Professional, on my machine, are almost unusably 
slow.


Do other people find this to be the case?

On my machine, it might take ten seconds to step from one line to the 
next,

even when there isn't much going on in the program, and editing the code
takes five seconds for the cursor to appear in the code, and waiting to
backspace takes several seconds, and the menus are very slow, and so on.

So I would actually like to code and debug in some other  environment than
Flash CS4 Professional.

What are my options? What editors and debuggers do you use?

I'm using FlashDevelop for coding, and that seems good. Much much faster.
But it's not integrated with a compiler/debugger. I see there is an Alpha
version of flexdbg, which purports to be a debugger for FlashDevelop.
Alpha?? How come all these Flash dev tools are all in Alpha??


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


RE: [Flashcoders] editing and debugging tools for ActionScript3.0 projects?

2010-05-02 Thread Cor
The compilation can be done in many ways:
Flash IDE
Flexbuilder
FlashDevelop with Flash IDE or Flex3 SDK
And this list is nowhere complete!

For the debugging part I still recommend demonsterdebugger.
There is a tutorial video on the site.

HTH
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim Andrews
Sent: zondag 2 mei 2010 14:10
To: Flash Coders List
Subject: Re: [Flashcoders] editing and debugging tools for ActionScript3.0
projects?

I had installed and uninstalled the DeMonster bugger already. The Demonster 
debugger is good if you already have an SWF. But it doesn't work for simply 
compiling the SWF. Is there an alternative debugger for both compilation and

run-time debugging? Or do we do the compilation debugging in the IDE and the

run-time debugging in Demonster?

Are other people experiencing the same incredible slowness of the Flash Pro 
CS4 IDE concerning script editing, script debugging, and even access to the 
menus in the IDE?

What are the key things I can do to speed the Flash Pro CS$ IDE up a bit??

ja??
http://vispo.com

- Original Message - 
From: Cor c...@chello.nl
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 02, 2010 1:34 AM
Subject: RE: [Flashcoders] editing and debugging tools for ActionScript3.0 
projects?


 Try http://www.demonsterdebugger.com/features/howitworks

 HTH
 Cor


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim 
 Andrews
 Sent: zondag 2 mei 2010 10:10
 To: Flash Coders List
 Subject: [Flashcoders] editing and debugging tools for ActionScript 3.0
 projects?

 I'm not sure if this is typical, but the ActionScript editor and also the
 debugger in Flash CS4 Professional, on my machine, are almost unusably 
 slow.

 Do other people find this to be the case?

 On my machine, it might take ten seconds to step from one line to the 
 next,
 even when there isn't much going on in the program, and editing the code
 takes five seconds for the cursor to appear in the code, and waiting to
 backspace takes several seconds, and the menus are very slow, and so on.

 So I would actually like to code and debug in some other  environment than
 Flash CS4 Professional.

 What are my options? What editors and debuggers do you use?

 I'm using FlashDevelop for coding, and that seems good. Much much faster.
 But it's not integrated with a compiler/debugger. I see there is an Alpha
 version of flexdbg, which purports to be a debugger for FlashDevelop.
 Alpha?? How come all these Flash dev tools are all in Alpha??

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte: 05/01/10
20:27:00

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


RE: [Flashcoders] Event Listener on MC with dynamic text field

2010-05-02 Thread Cor
 btnAbout.mouseChildren = false;

HTH
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
Vikhtinskaya
Sent: zondag 2 mei 2010 14:03
To: Flash Coders List
Subject: [Flashcoders] Event Listener on MC with dynamic text field

Hi
I convert some AS2 code to AS3 and found one thing that works well for
AS2 but I cannot find solution for AS3
For example:
There is mc btnAbout on the stage with dynamic text field
Code in frame

btnAbout.deepLink = 'about';
function btnClick(e:MouseEvent) {
trace(e.target.deepLink);
}
btnAbout.buttonMode= true;
btnAbout.addEventListener(MouseEvent.CLICK, btnClick);

trace(e.target.deepLink) show  about if text is static and gives
error if text is dynamic

Error #1069: Property deepLink not found on flash.text.TextField and
there is no default value.

Also buttonMode does not work for mc with dynamic text. If I
trace(e.target) it also gives error. So it looks like I can not add
Event Listener on mc that has dynamic text field inside.
How to do that correctly?
Thanks in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte: 05/01/10
20:27:00

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


Re: [Flashcoders] Event Listener on MC with dynamic text field

2010-05-02 Thread natalia Vikhtinskaya
THANK YOU!!

2010/5/2 Cor c...@chello.nl:
  btnAbout.mouseChildren = false;

 HTH
 Cor

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
 Vikhtinskaya
 Sent: zondag 2 mei 2010 14:03
 To: Flash Coders List
 Subject: [Flashcoders] Event Listener on MC with dynamic text field

 Hi
 I convert some AS2 code to AS3 and found one thing that works well for
 AS2 but I cannot find solution for AS3
 For example:
 There is mc btnAbout on the stage with dynamic text field
 Code in frame

 btnAbout.deepLink = 'about';
 function btnClick(e:MouseEvent) {
        trace(e.target.deepLink);
 }
 btnAbout.buttonMode= true;
 btnAbout.addEventListener(MouseEvent.CLICK, btnClick);

 trace(e.target.deepLink) show  about if text is static and gives
 error if text is dynamic

 Error #1069: Property deepLink not found on flash.text.TextField and
 there is no default value.

 Also buttonMode does not work for mc with dynamic text. If I
 trace(e.target) it also gives error. So it looks like I can not add
 Event Listener on mc that has dynamic text field inside.
 How to do that correctly?
 Thanks in advance.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 Geen virus gevonden in het binnenkomende-bericht.
 Gecontroleerd door AVG - www.avg.com
 Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte: 05/01/10
 20:27:00

 ___
 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] Event Listener on MC with dynamic text field

2010-05-02 Thread Cor
You're welcome!!

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
Vikhtinskaya
Sent: zondag 2 mei 2010 14:55
To: Flash Coders List
Subject: Re: [Flashcoders] Event Listener on MC with dynamic text field

THANK YOU!!

2010/5/2 Cor c...@chello.nl:
  btnAbout.mouseChildren = false;

 HTH
 Cor

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
 Vikhtinskaya
 Sent: zondag 2 mei 2010 14:03
 To: Flash Coders List
 Subject: [Flashcoders] Event Listener on MC with dynamic text field

 Hi
 I convert some AS2 code to AS3 and found one thing that works well for
 AS2 but I cannot find solution for AS3
 For example:
 There is mc btnAbout on the stage with dynamic text field
 Code in frame

 btnAbout.deepLink = 'about';
 function btnClick(e:MouseEvent) {
        trace(e.target.deepLink);
 }
 btnAbout.buttonMode= true;
 btnAbout.addEventListener(MouseEvent.CLICK, btnClick);

 trace(e.target.deepLink) show  about if text is static and gives
 error if text is dynamic

 Error #1069: Property deepLink not found on flash.text.TextField and
 there is no default value.

 Also buttonMode does not work for mc with dynamic text. If I
 trace(e.target) it also gives error. So it looks like I can not add
 Event Listener on mc that has dynamic text field inside.
 How to do that correctly?
 Thanks in advance.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 Geen virus gevonden in het binnenkomende-bericht.
 Gecontroleerd door AVG - www.avg.com
 Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte:
05/01/10
 20:27:00

 ___
 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
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte: 05/01/10
20:27:00


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


Re: [Flashcoders] Benchmarking

2010-05-02 Thread Karl DeSaulniers

Thanks Beatrix,
I will take a look.

Best,

Karl


On May 2, 2010, at 3:39 AM, Beatrix Krümmer-Frau wrote:


When you debug in  Flash IDE, but that will always be local:
- click Debug  Begin Remote Debug Session  Actionscript 3.0
- Open up the swf in a browser.
- Traces appear in the trace window.

else/or:
- flash debugger for browser
-  Flashtracer Firefox add-on: http://www.sephiroth.it/firefox/ 
flashtracer/

 - Firebug https://addons.mozilla.org/de/firefox/addon/1843 with
thunderbold:
http://www.websector.de/blog/2008/06/01/the-new-thunderbolt-as3- 
console-based-on-adobe-air/


*Beatrix Kruemmer-Frau*
Dipl. Ing. Designer|CEH-LPIG-1
Flash/Flex Developer
Network Security Administrator

Blog http://www.blog.dieanstalt.com
Twitter http://twitter.com/Birikini
Xing http://www.xing.com/profile/Beatrix_KruemmerFrau
LinkenID http://de.linkedin.com/in/beatrixkruemmerfrau


Am 02.05.2010 07:11, schrieb Karl DeSaulniers:

Hello,
Is there a website that can benchmark my sites for me?
For example, a site you go to that you load your site in a window
provided and it tells you
how fast your site loaded, how many errors, how many things cached?
Or would a site like this just be a big security violation?

I am wanting to test how my sites load through a browser, but get a
little deeper of info to how the AS is executing.
Not sure if the Debuggers of browsers do that. They don't get into  
the

swf like that.
I think I remember something about being able to debug from the flash
IDE like this, but not sure how to do that.
I know how to test the swf locally, don't get me wrong,  just not on
the server.
TIA

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com


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


Re: [Flashcoders] Best Practices and optimization

2010-05-02 Thread Kerry Thompson
Karl DeSaulniers wrote:

 Is there a document or website or page on adobe that I can go to that has
 all the best practices for coding in AS2 and AS3?

There are a couple on the Adobe Web site. ActionScript 2 best
practices are at
http://www.adobe.com/devnet/flash/articles/as_bestpractices.html.
ActionScript 3 best practices are at
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1090.html.

If you Google ActionScript best practices you'll find a variety of
blogs and articles.

I can give you a couple that will speed up your code. First, use the
ActionScript classes as much as possible. They are compiled to native
code, and will run anywhere from 10 to 400 times as fast as any code
you can write, simply because the code your write gets compiled to
tokens, or bytecode, which then have to be interpreted at run time.
AS3 has a just-in-time compiler that helps, but there is still nothing
like native code.

In loops, always store the end condition in a register variable. For
example, instead of this:

for (var i:int = 0; imyArray.length; i++)
{
   do stuff;
}

do this:

var arrLen:int = myArray.length;

for (var i:int=0; iarrLen; i++)
{
   do stuff;
}

I know that runs faster in AS2. I haven't run tests in AS3, but I
would guess the JIT compiler would speed up either way of doing it,
but the second would still be faster.

Cordially,

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


Re: [Flashcoders] Best Practices and optimization

2010-05-02 Thread Karl DeSaulniers

Thanks for your response Kerry.

On May 2, 2010, at 4:44 PM, Kerry Thompson wrote:


Karl DeSaulniers wrote:

Is there a document or website or page on adobe that I can go to  
that has

all the best practices for coding in AS2 and AS3?


There are a couple on the Adobe Web site. ActionScript 2 best
practices are at
http://www.adobe.com/devnet/flash/articles/as_bestpractices.html.
ActionScript 3 best practices are at
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/ 
html/wwhelp.htm?context=LiveDocs_Partsfile=1090.html.


If you Google ActionScript best practices you'll find a variety of
blogs and articles.


Yes, I will be doing a lot of this. :)



I can give you a couple that will speed up your code. First, use the
ActionScript classes as much as possible. They are compiled to native
code, and will run anywhere from 10 to 400 times as fast as any code
you can write, simply because the code your write gets compiled to
tokens, or bytecode, which then have to be interpreted at run time.
AS3 has a just-in-time compiler that helps, but there is still nothing
like native code.


I See



In loops, always store the end condition in a register variable. For
example, instead of this:

for (var i:int = 0; imyArray.length; i++)
{
   do stuff;
}

do this:

var arrLen:int = myArray.length;

for (var i:int=0; iarrLen; i++)
{
   do stuff;
}


Perfect. I had been doing it the worng way in some of my files.
I will be making this change immediately. Thanks for the laymen eg.



I know that runs faster in AS2. I haven't run tests in AS3, but I
would guess the JIT compiler would speed up either way of doing it,
but the second would still be faster.


Every little bit helps. I plan on making a collection of the info I  
have found.

Putting up a page on my website to find stuff like this.

Thanks again,
Best,


Cordially,

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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