Re: [Flashcoders] Delegate.create() not working in flash develop.....

2007-04-12 Thread Hans Wichman

Omar,
have you tried what I suggested?
greetz
JC


On 4/11/07, Omar Fouad [EMAIL PROTECTED] wrote:


D. ache i tried it but unfortunately it didn't work. More ideas???

On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:

 scope problem. try to create the Delegate before applying it to the
 onEnterFrame function like that:
 function new() {
 var del:Funtion = Delegate.create(this,traceIt);
 _root.onEnterFrame = del;
 }

 problem arises because you are in _root.onEnterFrame.
 your this will point to _root, not on your class instance.

 try it out!
 
  Note: I had set the USEMX option in flash develop to true...
 
  import mx.utils.Delegate;
  class New {
 
 function New() {
 _root.onEnterFrame = Delegate.create(this, traceIt);
 }
 private function traceIt() {
 trace(tracing);
 }
  }
 
  well this should trace tracing on frame rate, but it doesn't... even
  if i
  don't use delegate and i i do:

 ___
 [EMAIL PROTECTED]
 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




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[EMAIL PROTECTED]
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


___
[EMAIL PROTECTED]
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] Delegate.create() not working in flash develop.....

2007-04-12 Thread Omar Fouad

Yes dude, it was an idea... but i think is more convenient having a modified
Delegate class than using injection, as in injecting swf's doesn't support
assets... thanks Hans for your reply and thanks to all the list!

Flash Coders ROCKS


On 4/12/07, Hans Wichman [EMAIL PROTECTED] wrote:


Omar,
have you tried what I suggested?
greetz
JC


On 4/11/07, Omar Fouad [EMAIL PROTECTED] wrote:

 D. ache i tried it but unfortunately it didn't work. More ideas???

 On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:
 
  scope problem. try to create the Delegate before applying it to the
  onEnterFrame function like that:
  function new() {
  var del:Funtion = Delegate.create(this,traceIt);
  _root.onEnterFrame = del;
  }
 
  problem arises because you are in _root.onEnterFrame.
  your this will point to _root, not on your class instance.
 
  try it out!
  
   Note: I had set the USEMX option in flash develop to true...
  
   import mx.utils.Delegate;
   class New {
  
  function New() {
  _root.onEnterFrame = Delegate.create(this, traceIt);
  }
  private function traceIt() {
  trace(tracing);
  }
   }
  
   well this should trace tracing on frame rate, but it doesn't...
even
   if i
   don't use delegate and i i do:
 
  ___
  [EMAIL PROTECTED]
  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
 



 --
 Omar Fouad - Digital Emotions...

 Love is always patient and kind. It is never jealous. Love is never
 boastful
 nor conceited It is never rude or selfish. It does not take offense and
is
 not resentful. Love takes no pleasure in other people's sins...but
 delights
 in the truth. It is always ready to excuse, to trust, to hope... and to
 endure... whatever comes.
 ___
 [EMAIL PROTECTED]
 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

___
[EMAIL PROTECTED]
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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[EMAIL PROTECTED]
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] Delegate.create() not working in flash develop.....

2007-04-12 Thread Hans Wichman

Hi,
ok np. Im using a custom delegate as well most of the time, but injecting
swf's do support assets btw.

greetz
JC


On 4/12/07, Omar Fouad [EMAIL PROTECTED] wrote:


Yes dude, it was an idea... but i think is more convenient having a
modified
Delegate class than using injection, as in injecting swf's doesn't support
assets... thanks Hans for your reply and thanks to all the list!

Flash Coders ROCKS


On 4/12/07, Hans Wichman [EMAIL PROTECTED] wrote:

 Omar,
 have you tried what I suggested?
 greetz
 JC


 On 4/11/07, Omar Fouad [EMAIL PROTECTED] wrote:
 
  D. ache i tried it but unfortunately it didn't work. More ideas???
 
  On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:
  
   scope problem. try to create the Delegate before applying it to the
   onEnterFrame function like that:
   function new() {
   var del:Funtion = Delegate.create(this,traceIt);
   _root.onEnterFrame = del;
   }
  
   problem arises because you are in _root.onEnterFrame.
   your this will point to _root, not on your class instance.
  
   try it out!
   
Note: I had set the USEMX option in flash develop to true...
   
import mx.utils.Delegate;
class New {
   
   function New() {
   _root.onEnterFrame = Delegate.create(this, traceIt);
   }
   private function traceIt() {
   trace(tracing);
   }
}
   
well this should trace tracing on frame rate, but it doesn't...
 even
if i
don't use delegate and i i do:
  
   ___
   [EMAIL PROTECTED]
   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
  
 
 
 
  --
  Omar Fouad - Digital Emotions...
 
  Love is always patient and kind. It is never jealous. Love is never
  boastful
  nor conceited It is never rude or selfish. It does not take offense
and
 is
  not resentful. Love takes no pleasure in other people's sins...but
  delights
  in the truth. It is always ready to excuse, to trust, to hope... and
to
  endure... whatever comes.
  ___
  [EMAIL PROTECTED]
  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
 
 ___
 [EMAIL PROTECTED]
 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




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[EMAIL PROTECTED]
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


___
[EMAIL PROTECTED]
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] Delegate.create() not working in flash develop.....

2007-04-12 Thread Omar Fouad

Ah really!!! I didnt try it as flash develop says i cant
Sounds COOL

On 4/12/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
ok np. Im using a custom delegate as well most of the time, but injecting
swf's do support assets btw.

greetz
JC


On 4/12/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Yes dude, it was an idea... but i think is more convenient having a
 modified
 Delegate class than using injection, as in injecting swf's doesn't
support
 assets... thanks Hans for your reply and thanks to all the list!

 Flash Coders ROCKS


 On 4/12/07, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Omar,
  have you tried what I suggested?
  greetz
  JC
 
 
  On 4/11/07, Omar Fouad [EMAIL PROTECTED] wrote:
  
   D. ache i tried it but unfortunately it didn't work. More
ideas???
  
   On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:
   
scope problem. try to create the Delegate before applying it to
the
onEnterFrame function like that:
function new() {
var del:Funtion = Delegate.create(this,traceIt);
_root.onEnterFrame = del;
}
   
problem arises because you are in _root.onEnterFrame.
your this will point to _root, not on your class instance.
   
try it out!

 Note: I had set the USEMX option in flash develop to true...

 import mx.utils.Delegate;
 class New {

function New() {
_root.onEnterFrame = Delegate.create(this, traceIt);
}
private function traceIt() {
trace(tracing);
}
 }

 well this should trace tracing on frame rate, but it
doesn't...
  even
 if i
 don't use delegate and i i do:
   
___
[EMAIL PROTECTED]
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
   
  
  
  
   --
   Omar Fouad - Digital Emotions...
  
   Love is always patient and kind. It is never jealous. Love is never
   boastful
   nor conceited It is never rude or selfish. It does not take offense
 and
  is
   not resentful. Love takes no pleasure in other people's sins...but
   delights
   in the truth. It is always ready to excuse, to trust, to hope... and
 to
   endure... whatever comes.
   ___
   [EMAIL PROTECTED]
   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
  
  ___
  [EMAIL PROTECTED]
  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
 



 --
 Omar Fouad - Digital Emotions...

 Love is always patient and kind. It is never jealous. Love is never
 boastful
 nor conceited It is never rude or selfish. It does not take offense and
is
 not resentful. Love takes no pleasure in other people's sins...but
 delights
 in the truth. It is always ready to excuse, to trust, to hope... and to
 endure... whatever comes.
 ___
 [EMAIL PROTECTED]
 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

___
[EMAIL PROTECTED]
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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[EMAIL PROTECTED]
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] Delegate.create() not working in flash develop.....

2007-04-11 Thread Omar Fouad

D. ache i tried it but unfortunately it didn't work. More ideas???

On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:


scope problem. try to create the Delegate before applying it to the
onEnterFrame function like that:
function new() {
var del:Funtion = Delegate.create(this,traceIt);
_root.onEnterFrame = del;
}

problem arises because you are in _root.onEnterFrame.
your this will point to _root, not on your class instance.

try it out!

 Note: I had set the USEMX option in flash develop to true...

 import mx.utils.Delegate;
 class New {

function New() {
_root.onEnterFrame = Delegate.create(this, traceIt);
}
private function traceIt() {
trace(tracing);
}
 }

 well this should trace tracing on frame rate, but it doesn't... even
 if i
 don't use delegate and i i do:

___
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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Delegate.create() not working in flash develop.....

2007-04-11 Thread Hans Wichman

Hi,

the problem is Note: I had set the USEMX option in flash develop to
true...
Setting the option to true, means mtasc is passed a flag -mx which means: do
NOT use the mx classes.

So you are not compiling the delegate class into your project. If you want
to use the -mx flag, simply create an injection swf, that contains:
import mx.utils.Delegate;
var cls0:Delegate;

greetz
JC




On 4/11/07, dr.ache [EMAIL PROTECTED] wrote:


scope problem. try to create the Delegate before applying it to the
onEnterFrame function like that:
function new() {
var del:Funtion = Delegate.create(this,traceIt);
_root.onEnterFrame = del;
}

problem arises because you are in _root.onEnterFrame.
your this will point to _root, not on your class instance.

try it out!

 Note: I had set the USEMX option in flash develop to true...

 import mx.utils.Delegate;
 class New {

function New() {
_root.onEnterFrame = Delegate.create(this, traceIt);
}
private function traceIt() {
trace(tracing);
}
 }

 well this should trace tracing on frame rate, but it doesn't... even
 if i
 don't use delegate and i i do:

___
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] Delegate.create() not working in flash develop.....

2007-04-10 Thread Omar Fouad

Hi list,
I was working in a project using Flash develop and mtasc, and i realized
that Delegate isn't working properly, as in The function specified into the
create() method in Delegate doesn't fire.
so i decided to create simple class just to test the Delegate.create Method
to know whether the problem is within  my project or not
i got a Main class that calls another class called New.as

Note: I had set the USEMX option in flash develop to true...

import mx.utils.Delegate;
class New {

   function New() {
   _root.onEnterFrame = Delegate.create(this, traceIt);
   }
   private function traceIt() {
   trace(tracing);
   }
}

well this should trace tracing on frame rate, but it doesn't... even if i
don't use delegate and i i do:



import mx.utils.Delegate;
class New {

   function New() {
   _root.onEnterFrame = function () {
  traceIt();//of course this wont work but i thought that trying won't
hurt.
 };
   }
   private function traceIt() {
   trace(tracing);
   }
}

same result is someone aware why is this happening?

thanks in advance
--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Delegate.create() not working in flash develop.....

2007-04-10 Thread eka

Hello :)

Can you test my personal vegas.events.Delegate class ? This class is
MTASC/Flash/FDT compatible :

- Project in RIAForge : http://vegas.riaforge.org/
- Project in Google Code : http://code.google.com/p/vegas/

- installation of VEGAS :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

- Tutorials about event model with VEGAS :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

- Tutorial about the vegas.events.Delegate class in VEGAS :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents_delegate

EKA+ :)


2007/4/10, Omar Fouad [EMAIL PROTECTED]:


Hi list,
I was working in a project using Flash develop and mtasc, and i realized
that Delegate isn't working properly, as in The function specified into
the
create() method in Delegate doesn't fire.
so i decided to create simple class just to test the Delegate.createMethod
to know whether the problem is within  my project or not
i got a Main class that calls another class called New.as

Note: I had set the USEMX option in flash develop to true...

import mx.utils.Delegate;
class New {

function New() {
_root.onEnterFrame = Delegate.create(this, traceIt);
}
private function traceIt() {
trace(tracing);
}
}

well this should trace tracing on frame rate, but it doesn't... even if
i
don't use delegate and i i do:



import mx.utils.Delegate;
class New {

function New() {
_root.onEnterFrame = function () {
   traceIt();//of course this wont work but i thought that trying
won't
hurt.
  };
}
private function traceIt() {
trace(tracing);
}
}

same result is someone aware why is this happening?

thanks in advance
--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Delegate.create() not working in flash develop.....

2007-04-10 Thread dr.ache

scope problem. try to create the Delegate before applying it to the
onEnterFrame function like that:
function new() {
var del:Funtion = Delegate.create(this,traceIt);
_root.onEnterFrame = del;
}

problem arises because you are in _root.onEnterFrame.
your this will point to _root, not on your class instance.

try it out!


Note: I had set the USEMX option in flash develop to true...

import mx.utils.Delegate;
class New {

   function New() {
   _root.onEnterFrame = Delegate.create(this, traceIt);
   }
   private function traceIt() {
   trace(tracing);
   }
}

well this should trace tracing on frame rate, but it doesn't... even 
if i

don't use delegate and i i do:


___
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