Re: Re: [Flashcoders] Mtasc Delegate

2006-08-05 Thread Hans Wichman

Hi,
are you compiling in mtasc with the -mx flag? If so, the delegate class will
not be compiled into your swf and it will not work.
When I work with Mtasc (through FlashDevelop) i find it the easiest to use
an injection swf, but i dont know if that is an option for you.
If so, create an swf in flash, with :
import mx.utils.Delegate;
var cls0:Delegate;
on the root and export it.

Now when you use this swf as injection swf with mtasc you will be able to
use the Delegate class.

HTH
JC



On 8/4/06, Chris Allen [EMAIL PROTECTED] wrote:


Another approach is to use Steve Webster's Delegate. It's polymorphic
with the MM version. Here it is anyway:

http://dynamicflash.com/2005/05/delegate-version-101/

You get additional functionality similar to Joey Lott's version too,
if you decide you need it.

Hope it helps.

-Chris

On 8/2/06, jcarlos [EMAIL PROTECTED] wrote:
 thanks Pål  I´will check that

 - Original Message -
 From: Pål Østerud [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, August 02, 2006 6:48 AM
 Subject: Re: [Flashcoders] Mtasc  Delegate


 Hi João,
 Mtasc is more strict with variable scope than MM's compiler.
 If you want to use mtasc on MM's Delegate method you can rename the
variable
 called func inside the dynamically created function in the
Delegate.create
 method (that is two places exactly, and don't touch the line
 arguments.callee.func). I can't quote MM's sourcecode here due to
 copyright. Hope that helps.

 Yours sincerely,
 Pål Østerud

  --
 
  From: jcarlos [EMAIL PROTECTED]
  hi All,
  I´m having problems using Delegate  with MTASC
  this works fine Flash compiler
   if (_actionRelease)
   {
container_mc.onRelease = Delegate.create (this, handleRelease);
   }
  but doesn´t work with MTASC
  Any help?  Directions ?
  Thanks in advance
  João Carlos

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

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

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

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

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

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


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

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


Re: Re: [Flashcoders] Mtasc Delegate

2006-08-05 Thread jcarlos

yes I was compiling with -mx flag ...

and I use an injection swf ..

I´ll give it a try

thanks

João Carlos

- Original Message - 
From: Hans Wichman [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, August 05, 2006 3:20 AM
Subject: Re: Re: [Flashcoders] Mtasc  Delegate


Hi,
are you compiling in mtasc with the -mx flag? If so, the delegate class will
not be compiled into your swf and it will not work.
When I work with Mtasc (through FlashDevelop) i find it the easiest to use
an injection swf, but i dont know if that is an option for you.
If so, create an swf in flash, with :
import mx.utils.Delegate;
var cls0:Delegate;
on the root and export it.

Now when you use this swf as injection swf with mtasc you will be able to
use the Delegate class.

HTH
JC



On 8/4/06, Chris Allen [EMAIL PROTECTED] wrote:


Another approach is to use Steve Webster's Delegate. It's polymorphic
with the MM version. Here it is anyway:

http://dynamicflash.com/2005/05/delegate-version-101/

You get additional functionality similar to Joey Lott's version too,
if you decide you need it.

Hope it helps.

-Chris

On 8/2/06, jcarlos [EMAIL PROTECTED] wrote:
 thanks Pål  I´will check that

 - Original Message -
 From: Pål Østerud [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, August 02, 2006 6:48 AM
 Subject: Re: [Flashcoders] Mtasc  Delegate


 Hi João,
 Mtasc is more strict with variable scope than MM's compiler.
 If you want to use mtasc on MM's Delegate method you can rename the
variable
 called func inside the dynamically created function in the
Delegate.create
 method (that is two places exactly, and don't touch the line
 arguments.callee.func). I can't quote MM's sourcecode here due to
 copyright. Hope that helps.

 Yours sincerely,
 Pål Østerud

  --
 
  From: jcarlos [EMAIL PROTECTED]
  hi All,
  I´m having problems using Delegate  with MTASC
  this works fine Flash compiler
   if (_actionRelease)
   {
container_mc.onRelease = Delegate.create (this, handleRelease);
   }
  but doesn´t work with MTASC
  Any help?  Directions ?
  Thanks in advance
  João Carlos

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

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

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

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

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

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


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

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


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

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


Re: Re: [Flashcoders] Mtasc Delegate

2006-08-04 Thread Chris Allen

Another approach is to use Steve Webster's Delegate. It's polymorphic
with the MM version. Here it is anyway:

http://dynamicflash.com/2005/05/delegate-version-101/

You get additional functionality similar to Joey Lott's version too,
if you decide you need it.

Hope it helps.

-Chris

On 8/2/06, jcarlos [EMAIL PROTECTED] wrote:

thanks Pål  I´will check that

- Original Message -
From: Pål Østerud [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 02, 2006 6:48 AM
Subject: Re: [Flashcoders] Mtasc  Delegate


Hi João,
Mtasc is more strict with variable scope than MM's compiler.
If you want to use mtasc on MM's Delegate method you can rename the variable
called func inside the dynamically created function in the Delegate.create
method (that is two places exactly, and don't touch the line
arguments.callee.func). I can't quote MM's sourcecode here due to
copyright. Hope that helps.

Yours sincerely,
Pål Østerud

 --

 From: jcarlos [EMAIL PROTECTED]
 hi All,
 I´m having problems using Delegate  with MTASC
 this works fine Flash compiler
  if (_actionRelease)
  {
   container_mc.onRelease = Delegate.create (this, handleRelease);
  }
 but doesn´t work with MTASC
 Any help?  Directions ?
 Thanks in advance
 João Carlos

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

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

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

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


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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-02 Thread Pål Østerud
Hi João,
Mtasc is more strict with variable scope than MM's compiler. 
If you want to use mtasc on MM's Delegate method you can rename the variable 
called func inside the dynamically created function in the Delegate.create 
method (that is two places exactly, and don't touch the line 
arguments.callee.func). I can't quote MM's sourcecode here due to copyright. 
Hope that helps.

Yours sincerely,
Pål Østerud

 --
 
 From: jcarlos [EMAIL PROTECTED]
 hi All,
 I´m having problems using Delegate  with MTASC
 this works fine Flash compiler
  if (_actionRelease)
  {
   container_mc.onRelease = Delegate.create (this, handleRelease);
  }
 but doesn´t work with MTASC
 Any help?  Directions ?
 Thanks in advance
 João Carlos 

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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-02 Thread jcarlos

it doesn´t work


- Original Message - 
From: John Grden [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 02, 2006 12:30 AM
Subject: Re: [Flashcoders] Mtasc  Delegate


what's the error you get? or does it just simply not work?

JPG

On 8/1/06, jcarlos [EMAIL PROTECTED] wrote:


hi All,

I´m having problems using Delegate  with MTASC

this works fine Flash compiler

  if (_actionRelease)
  {
   container_mc.onRelease = Delegate.create (this, handleRelease);
  }

but doesn´t work with MTASC

Any help?  Directions ?

Thanks in advance

João Carlos

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

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





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

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


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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-02 Thread jcarlos

thanks Pål  I´will check that

- Original Message - 
From: Pål Østerud [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 02, 2006 6:48 AM
Subject: Re: [Flashcoders] Mtasc  Delegate


Hi João,
Mtasc is more strict with variable scope than MM's compiler.
If you want to use mtasc on MM's Delegate method you can rename the variable 
called func inside the dynamically created function in the Delegate.create 
method (that is two places exactly, and don't touch the line 
arguments.callee.func). I can't quote MM's sourcecode here due to 
copyright. Hope that helps.


Yours sincerely,
Pål Østerud


--

From: jcarlos [EMAIL PROTECTED]
hi All,
I´m having problems using Delegate  with MTASC
this works fine Flash compiler
 if (_actionRelease)
 {
  container_mc.onRelease = Delegate.create (this, handleRelease);
 }
but doesn´t work with MTASC
Any help?  Directions ?
Thanks in advance
João Carlos


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

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


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

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


[Flashcoders] Mtasc Delegate

2006-08-01 Thread jcarlos

hi All,

I´m having problems using Delegate  with MTASC

this works fine Flash compiler

 if (_actionRelease)
 {
  container_mc.onRelease = Delegate.create (this, handleRelease);
 }

but doesn´t work with MTASC

Any help?  Directions ?

Thanks in advance

João Carlos 


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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-01 Thread John Grden

what's the error you get? or does it just simply not work?

JPG

On 8/1/06, jcarlos [EMAIL PROTECTED] wrote:


hi All,

I´m having problems using Delegate  with MTASC

this works fine Flash compiler

  if (_actionRelease)
  {
   container_mc.onRelease = Delegate.create (this, handleRelease);
  }

but doesn´t work with MTASC

Any help?  Directions ?

Thanks in advance

João Carlos

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

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





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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-01 Thread Adam Pasztory

Use this instead.  It will make you happy.
http://www.person13.com/articles/proxy/Proxy.htm

-Adam

On 8/1/06, John Grden [EMAIL PROTECTED] wrote:


what's the error you get? or does it just simply not work?

JPG

On 8/1/06, jcarlos [EMAIL PROTECTED] wrote:

 hi All,

 I´m having problems using Delegate  with MTASC

 this works fine Flash compiler

   if (_actionRelease)
   {
container_mc.onRelease = Delegate.create (this, handleRelease);
   }

 but doesn´t work with MTASC

 Any help?  Directions ?

 Thanks in advance

 João Carlos

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

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




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

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


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

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