Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-10-09 Thread Angus Johnson



bumpI think there are a few of us looking to dynamically link framework swf's (as rsl's) into our work. Any further info?Is the RSL/linker guy back? :)ThanksAngus
On 29/09/06, Mike Morearty [EMAIL PROTECTED] wrote:













  



I don't think this is necessary.  I gave a pointer to how to 
recompile it because someone asked, but it is deliberate that we only 
ship a single swc: as I said, when you link that swc into your 
project, it strips out all the debug information.  There is no 
performance or size hit on your swf.  The Ant process is intended to 
be for people who really want to do some advanced stuff, like modify 
the flex framework, but for almost all users, it shouldn't be 
necessary.

The one use case where you might be right -- and I'm kind of unclear 
on this -- is the case where you want to dynamically link to the swc 
at runtime.

Does that make sense?  The expert on all this stuff is out on 
vacation right now -- I probably shouldn't have injected myself into 
this so deeply, because I'm the debugger guy, not the RSL/linker guy; 
I don't know all the subtle details of RSLs.  When the RSL/linker guy 
gets back, I'll ask him about this.

--- In flexcoders@yahoogroups.com, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

 Mike,
 It might make sense to have separate folder in SDK with all the 
libraries
 compiled without debugging for size/performance reasons. 
Realistically,
 every production application would like to benefit from that and 
subjecting
 everybody to Ant process  - especially given the additional libs 
like fds,
 rpc, etc that come without sources. Please let me know if I should 
file
 feature request or if it is already done.
 Sincerely,
 Anatole Tartakovsky
 
 
 
 On 9/28/06, Mike Morearty [EMAIL PROTECTED] wrote:
 
Are you changing them to be external, rather than statically 
linked
  into your app? Because if you're leaving them statically linked 
into
  your app (the default), then there is no need to recompile them 
with -
  debug=false; at link time, if linking the release swf, the linker 
will
  strip out all of the debug information.
 
  If you are changing them to be external, then... take a look at
  frameworks/build_framework.xml (an Ant script). I haven't tried 
it and
  don't know much about it.
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Anatole
  Tartakovsky
  anatole.tartakovsky@ wrote:
  
   Mike,
   Is there way to get standard libraries (framework, rpc, flex, 
etc)
  built
   with -debug=false
   Thank you,
   Anatole
 
  
 



  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-10-09 Thread Angus Johnson



Thanks Mike. Second option seems the way to go for this project. (Using the standard framework as an rsl triggers the prompt for debugger location the guys mentioned earlier in the thread).CheersAngus
On 10/10/06, Mike Morearty [EMAIL PROTECTED] wrote:













  



Thanks for the reminder :-)  Yes, the RSL/linker guy is back.

There are several options:

* Use the existing framework.swc as an RSL.

* You can compile your main app with the -include-libraries command-
line option, to entirely pull certain libraries into your main app.  
For example, if you don't want each swc to have its own statically 
linked copy of framework.swc, then then you can include all of it in 
your main app.  Then, build all your other libraries with external 
linking to that library.

* If you don't like that, I think you can rebuild framework.swc using 
the build_framework.xml Ant script that I mentioned earlier.  (I 
haven't tried this.)  I think you'll need to add -debug=false to 
the list of arguments passed to compc in that Ant script.  I'm not 
sure about the other standard swcs.

We'll consider publishing a tool to strip out the debug information 
from the swc, or ship two versions of it, or some other similar 
option.  But for now, those are the options.

Hope this helps.  -Mike

--- In flexcoders@yahoogroups.com, Angus Johnson [EMAIL PROTECTED] 

wrote:

 bump
 
 I think there are a few of us looking to dynamically link framework 
swf's
 (as rsl's) into our work. Any further info?
 
 Is the RSL/linker guy back? :)
 
 Thanks
 Angus
 
 
 
 On 29/09/06, Mike Morearty [EMAIL PROTECTED] wrote:
 
I don't think this is necessary. I gave a pointer to how to
  recompile it because someone asked, but it is deliberate that we 
only
  ship a single swc: as I said, when you link that swc into your
  project, it strips out all the debug information. There is no
  performance or size hit on your swf. The Ant process is intended 
to
  be for people who really want to do some advanced stuff, like 
modify
  the flex framework, but for almost all users, it shouldn't be
  necessary.
 
  The one use case where you might be right -- and I'm kind of 
unclear
  on this -- is the case where you want to dynamically link to the 
swc
  at runtime.
 
  Does that make sense? The expert on all this stuff is out on
  vacation right now -- I probably shouldn't have injected myself 
into
  this so deeply, because I'm the debugger guy, not the RSL/linker 
guy;
  I don't know all the subtle details of RSLs. When the RSL/linker 
guy
  gets back, I'll ask him about this.
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Anatole
  Tartakovsky
  anatole.tartakovsky@ wrote:
  
   Mike,
   It might make sense to have separate folder in SDK with all the
  libraries
   compiled without debugging for size/performance reasons.
  Realistically,
   every production application would like to benefit from that and
  subjecting
   everybody to Ant process - especially given the additional libs
  like fds,
   rpc, etc that come without sources. Please let me know if I 
should
  file
   feature request or if it is already done.
   Sincerely,
   Anatole Tartakovsky
  
  
  
   On 9/28/06, Mike Morearty mike.morearty@ wrote:
   
Are you changing them to be external, rather than statically
  linked
into your app? Because if you're leaving them statically 
linked
  into
your app (the default), then there is no need to recompile 
them
  with -
debug=false; at link time, if linking the release swf, the 
linker
  will
strip out all of the debug information.
   
If you are changing them to be external, then... take a look 
at
frameworks/build_framework.xml (an Ant script). I haven't 
tried
  it and
don't know much about it.
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.comflexcoders%
  40yahoogroups.com, Anatole
Tartakovsky
anatole.tartakovsky@ wrote:

 Mike,
 Is there way to get standard libraries (framework, rpc, 
flex,
  etc)
built
 with -debug=false
 Thank you,
 Anatole
   
   
   
  
 
   
 



  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily 

Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-09-28 Thread Carlos Rovira



Hi Mike,Maybe If I could set -debug=false for each RSL would avoid that problem?but, if so...how could I set that param for a RSL? I think I can only put that additional param for the main project. 
On 9/28/06, Mike Morearty [EMAIL PROTECTED] wrote:













  



The problem is with the way the player and the debugger initiate 
their communication.  Here's how it works when things are going well:

1. When you click Debug in Flex Builder, it starts listening on a 
TCP/IP socket, and it launches your browser.

2. When the Flash Player notices that the SWF was built with -debug, 
it tries to connect to the TCP/IP socket.

3. They are now connected, and debugging begins.

But what happens if, in step 2, the Flash Player's attempt to connect 
to the TCP/IP socket fails?  That is, what if no debugger is waiting 
for incoming connections?  The answer is, the Flash Player puts up 
that message asking where the debugger is.  That dialog was added 
long ago to support remote debugging in Flash Professional.

In this case, unfortunately, the Flash Player isn't doing the right 
thing.  When the RSL gets loaded, the player sees that it was 
compiled with -debug, so it tries to connect on the TCP/IP socket -- 
but since Flex Builder had no involvement in the loading of that RSL, 
Flex Builder didn't know to start listening on the socket.  So the 
Flash Player can't find a debugger, so it puts up the dialog.

For a future release, I hope to improve this so that you get a 
smoother workflow in scenarios such as the one you are describing.

- Mike Morearty
  Flex Builder team
  http://www.morearty.com/blog

--- In flexcoders@yahoogroups.com, Carlos Rovira 
[EMAIL PROTECTED] wrote:

 Anatole, that's exactly my config :)
 
 But...don't you think that's strange? If I use debug button in FB2 
I get it
 work in FF, but If I run application (not debug mode) I get that 
dialog. I
 don't understand why this happen when using RSLs and not when using 
an app
 without RSLs.
 
 Maybe I should compile RSLs with -debug=false but I think that's 
imposible
 in FB2 dialogs
 
 Maybe I'm wrong?
 
 Thanks for your response Anatole.
 
 C.
 
 
 On 9/27/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:
 
looks like you are using debugging plugin in firefox and 
production
  release of player in IE
 
  Regards,
  Anatole
 
 
 
  On 9/27/06, Carlos Rovira [EMAIL PROTECTED] wrote:
  
 Hi,
  
   I spend a few ours trying to find the cause of a weird 
behaviour. I was
   trying to use RSLs in a project and when I test it in my 
default browser
   (Firefox lastest version), a debug dialog comes. I found that 
launching the
   app in IE does not have this problem, so I asume that is a 
Firefox
   problem...someone knows how to avoid it?
  
   Thanks in advance.
  
   --
   ::| Carlos Rovira
   ::| http://www.carlosrovira.com
   ::| http://www.madeinflex.com
  
 
   
 
 
 
 
 -- 
 ::| Carlos Rovira
 ::| http://www.carlosrovira.com
 ::| http://www.madeinflex.com



  













-- ::| Carlos Rovira::| http://www.carlosrovira.com::| http://www.madeinflex.com

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-09-28 Thread Paul Spitzer
Thanks Mike. Is there a way to launch the debugger manually, from Flex 
Builder. For instance to wait for incoming requests from the player. I 
realize the command line debugger would likely work but the GUI would be 
much easier.


Mike Morearty wrote:
 The problem is with the way the player and the debugger initiate 
 their communication.  Here's how it works when things are going well:

 1. When you click Debug in Flex Builder, it starts listening on a 
 TCP/IP socket, and it launches your browser.

 2. When the Flash Player notices that the SWF was built with -debug, 
 it tries to connect to the TCP/IP socket.

 3. They are now connected, and debugging begins.

 But what happens if, in step 2, the Flash Player's attempt to connect 
 to the TCP/IP socket fails?  That is, what if no debugger is waiting 
 for incoming connections?  The answer is, the Flash Player puts up 
 that message asking where the debugger is.  That dialog was added 
 long ago to support remote debugging in Flash Professional.

 In this case, unfortunately, the Flash Player isn't doing the right 
 thing.  When the RSL gets loaded, the player sees that it was 
 compiled with -debug, so it tries to connect on the TCP/IP socket -- 
 but since Flex Builder had no involvement in the loading of that RSL, 
 Flex Builder didn't know to start listening on the socket.  So the 
 Flash Player can't find a debugger, so it puts up the dialog.

 For a future release, I hope to improve this so that you get a 
 smoother workflow in scenarios such as the one you are describing.

 - Mike Morearty
   Flex Builder team
   http://www.morearty.com/blog


 --- In flexcoders@yahoogroups.com, Carlos Rovira 
 [EMAIL PROTECTED] wrote:
   
 Anatole, that's exactly my config :)

 But...don't you think that's strange? If I use debug button in FB2 
 
 I get it
   
 work in FF, but If I run application (not debug mode) I get that 
 
 dialog. I
   
 don't understand why this happen when using RSLs and not when using 
 
 an app
   
 without RSLs.

 Maybe I should compile RSLs with -debug=false but I think that's 
 
 imposible
   
 in FB2 dialogs

 Maybe I'm wrong?

 Thanks for your response Anatole.

 C.


 On 9/27/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:
 
   looks like you are using debugging plugin in firefox and 
   
 production
   
 release of player in IE

 Regards,
 Anatole



 On 9/27/06, Carlos Rovira [EMAIL PROTECTED] wrote:
   
   Hi,

 I spend a few ours trying to find the cause of a weird 
 
 behaviour. I was
   
 trying to use RSLs in a project and when I test it in my 
 
 default browser
   
 (Firefox lastest version), a debug dialog comes. I found that 
 
 launching the
   
 app in IE does not have this problem, so I asume that is a 
 
 Firefox
   
 problem...someone knows how to avoid it?

 Thanks in advance.

 --
 ::| Carlos Rovira
 ::| http://www.carlosrovira.com
 ::| http://www.madeinflex.com

 
  

   

 -- 
 ::| Carlos Rovira
 ::| http://www.carlosrovira.com
 ::| http://www.madeinflex.com

 



   



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-09-28 Thread Anatole Tartakovsky



Mike,
 Is there way to get standard libraries (framework, rpc, flex, etc) built with -debug=false Thank you,
Anatole

On 9/28/06, Mike Morearty [EMAIL PROTECTED] wrote:





The problem is with the way the player and the debugger initiate their communication. Here's how it works when things are going well:1. When you click Debug in Flex Builder, it starts listening on a TCP/IP socket, and it launches your browser.
2. When the Flash Player notices that the SWF was built with -debug, it tries to connect to the TCP/IP socket.3. They are now connected, and debugging begins.But what happens if, in step 2, the Flash Player's attempt to connect 
to the TCP/IP socket fails? That is, what if no debugger is waiting for incoming connections? The answer is, the Flash Player puts up that message asking where the debugger is. That dialog was added long ago to support remote debugging in Flash Professional.
In this case, unfortunately, the Flash Player isn't doing the right thing. When the RSL gets loaded, the player sees that it was compiled with -debug, so it tries to connect on the TCP/IP socket -- but since Flex Builder had no involvement in the loading of that RSL, 
Flex Builder didn't know to start listening on the socket. So the Flash Player can't find a debugger, so it puts up the dialog.For a future release, I hope to improve this so that you get a smoother workflow in scenarios such as the one you are describing.
- Mike MoreartyFlex Builder teamhttp://www.morearty.com/blog--- In 
flexcoders@yahoogroups.com, Carlos Rovira [EMAIL PROTECTED] wrote: Anatole, that's exactly my config :)  But...don't you think that's strange? If I use debug button in FB2 
I get it work in FF, but If I run application (not debug mode) I get that dialog. I don't understand why this happen when using RSLs and not when using an app without RSLs. 
 Maybe I should compile RSLs with -debug=false but I think that's imposible in FB2 dialogs  Maybe I'm wrong?  Thanks for your response Anatole.  C. 
  On 9/27/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:   looks like you are using debugging plugin in firefox and production  release of player in IE
   Regards,  Anatole On 9/27/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi,
 I spend a few ours trying to find the cause of a weird behaviour. I was   trying to use RSLs in a project and when I test it in my default browser   (Firefox lastest version), a debug dialog comes. I found that 
launching the   app in IE does not have this problem, so I asume that is a Firefox   problem...someone knows how to avoid it? Thanks in advance.
 --   ::| Carlos Rovira   ::| http://www.carlosrovira.com
   ::| http://www.madeinflex.com  
--  ::| Carlos Rovira ::| http://www.carlosrovira.com
 ::| http://www.madeinflex.com 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-09-28 Thread Carlos Rovira



Ok, As Anatole brings to the light, I want to use framework.swc and flex.swc as RSLs, but I can't compile it with -debug=false since I haven't the project that generates the SWC...maybe someone at adobe could give us the project templates so we can set up in our enviroment. could it be possible?
On 9/28/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:













  



Mike,
 Is there way to get standard libraries (framework, rpc, flex, etc) built with -debug=false Thank you,
Anatole

On 9/28/06, Mike Morearty [EMAIL PROTECTED]
 wrote:





The problem is with the way the player and the debugger initiate their communication. Here's how it works when things are going well:1. When you click Debug in Flex Builder, it starts listening on a TCP/IP socket, and it launches your browser.
2. When the Flash Player notices that the SWF was built with -debug, it tries to connect to the TCP/IP socket.3. They are now connected, and debugging begins.But what happens if, in step 2, the Flash Player's attempt to connect 
to the TCP/IP socket fails? That is, what if no debugger is waiting for incoming connections? The answer is, the Flash Player puts up that message asking where the debugger is. That dialog was added long ago to support remote debugging in Flash Professional.
In this case, unfortunately, the Flash Player isn't doing the right thing. When the RSL gets loaded, the player sees that it was compiled with -debug, so it tries to connect on the TCP/IP socket -- but since Flex Builder had no involvement in the loading of that RSL, 
Flex Builder didn't know to start listening on the socket. So the Flash Player can't find a debugger, so it puts up the dialog.For a future release, I hope to improve this so that you get a smoother workflow in scenarios such as the one you are describing.
- Mike MoreartyFlex Builder teamhttp://www.morearty.com/blog--- In 

flexcoders@yahoogroups.com, Carlos Rovira [EMAIL PROTECTED] wrote: Anatole, that's exactly my config :)  But...don't you think that's strange? If I use debug button in FB2 
I get it work in FF, but If I run application (not debug mode) I get that dialog. I don't understand why this happen when using RSLs and not when using an app without RSLs. 

 Maybe I should compile RSLs with -debug=false but I think that's imposible in FB2 dialogs  Maybe I'm wrong?  Thanks for your response Anatole.  C. 

  On 9/27/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:   looks like you are using debugging plugin in firefox and production  release of player in IE
   Regards,  Anatole On 9/27/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi,
 I spend a few ours trying to find the cause of a weird behaviour. I was   trying to use RSLs in a project and when I test it in my default browser   (Firefox lastest version), a debug dialog comes. I found that 
launching the   app in IE does not have this problem, so I asume that is a Firefox   problem...someone knows how to avoid it? Thanks in advance.

 --   ::| Carlos Rovira   ::| http://www.carlosrovira.com
   ::| http://www.madeinflex.com  
--  ::| Carlos Rovira ::| http://www.carlosrovira.com

 ::| http://www.madeinflex.com
 

  













-- ::| Carlos Rovira::| http://www.carlosrovira.com::| http://www.madeinflex.com

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-09-28 Thread Anatole Tartakovsky



Mike,
It might make sense to have separatefolder in SDKwith all the libraries compiled without debugging for size/performance reasons. Realistically, every production application would like to benefit from that and subjecting everybody to Ant process - especially given the additional libs like fds, rpc, etc that come without sources. Please let me know if I should file feature request or if it is already done.

Sincerely,
Anatole Tartakovsky

On 9/28/06, Mike Morearty [EMAIL PROTECTED] wrote:





Are you changing them to be external, rather than statically linked into your app? Because if you're leaving them statically linked into your app (the default), then there is no need to recompile them with -
debug=false; at link time, if linking the release swf, the linker will strip out all of the debug information.If you are changing them to be external, then... take a look at frameworks/build_framework.xml (an Ant script). I haven't tried it and 
don't know much about it.--- In flexcoders@yahoogroups.com, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote: Mike, Is there way to get standard libraries (framework, rpc, flex, etc) built with -debug=false Thank you, Anatole
 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___