Re: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread eka

Hello :)

i you want.. you can show the source code of my last opensource project
"AST'r" : http://code.google.com/p/astr/

This project is a laboratory to implements application templates based on
VEGAS :) This project can help you to use VEGAS in your commercial project ?
:)

EKA+ :)

2007/5/7, Ken Rogers <[EMAIL PROTECTED]>:


Thanks for the info.  I will keep you posted on my progress via google
code so you can show commercial work being done with VEGAS. Also let me know
when you would like the AS3 version tested out in any way :)

Keep up the super() work,
Ken


-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 9:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and
Delegatecallback

Hello :)

VEGAS is full open.. with a MPL licence you can do commercial project with
VEGAS, no problemo :)

The AS3 version of VEGAS is in alpha version for the moment.. i have
implements a VEGAS implementation in AS3 but i think do a big refactoring
this summer over the AS3 version :) For the moment i finish the final
version of the AS2 library.

EKA+ :)

2007/5/7, Ken Rogers <[EMAIL PROTECTED]>:
>
> Hi Eka!
>
> I have been secretly becoming addicted to VEGAS.  I guess It isn't
secret
> anymore :P
> I wanted to ask you if it was alright to use VEGAS for a commercial
> project I am starting this week. It is a kids/parent community site
(8-12yrs
> old or tweens).
>
> I will also take advantage of this note to say hi to Nicolas, Daniel,
Ian
> !  I have been so busy lately I have not had any time to work with
OpenGL /
> SDL(puke) / Haxe.
>
> And big congratulations Nicolas. It sounds as though the good life has
> scooped you up and started you on a nice trip!I have a 2 and 4 yr old
little
> girls and wouldn't trade it for anything. all starts with getting
> hitched!(which I thought I would NEVER EVER do)
>
> :)
>
> Thanks for the awesome work on VEGAS Eka. Also is there something that
> explains the differences in the AS2 and AS3 versions?  Are they only in
how
> the view is handled?  Is it not wise to do a project initially in AS2
then
> move it to the AS3 version?
>
> Thanks,
> Ken Rogers
>
> (howdy Hank Williams! you spider man geek :P)
>
> -Original Message-----
> From: [EMAIL PROTECTED] on behalf of eka
> Sent: Mon 5/7/2007 6:00 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Question on removeEventListener and
> Delegatecallback
>
> Hello :)
>
> use a variable to register your virtual proxy function :
>
> var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text
'
> ,
> url) ;
>
> this.currentDisplayObject.addEventListener('onContentCleared' , listener
)
> ;
>
> //removing it
>
> this.currentDisplayObject.removeEventListener('onContentCleared' ,
> listener
> ) ;
>
> Now you can keep the variable in memory ;)
>
> PS : if you want use a better event model, you can try my event model in
> my
> opensource framework VEGAS : http://code.google.com/p/vegas
>
> Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
> Read the tutorials about the W3C event model :
> http://code.google.com/p/vegas/wiki/VegasTutorialsEvents
>
> For me .. it's more easy with this implementation.
>
> eKA+ :)
>
>
>
> 2007/5/7, Jiri Heitlager | dadata.org <[EMAIL PROTECTED]>:
> >
> > I was wondering if I am doing something correctly when adding
listeners
> > to objects. My question is, if I remove the listener is the code below
> > then the right way. Do I use the Proxy class (or mx.utils.Delegate)
also
> > when I remove the listener??
> >
> > //adding a listener
> > this.currentDisplayObject.addEventListener('onContentCleared' ,
> > utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))
> >
> > //removing it
> > this.currentDisplayObject.removeEventListener('onContentCleared' ,
> > utils.Proxy.create(this ,  onBlockContentDestoyed))
> >
> > Thank you
> >
> > Jiri
> >
> >
> > John Trentini wrote:
> > > Hi guys,
> > >
> > >
> > > I want to create as many text fields (which eventually I would like
to
> > > turn into buttons) as the length of an array. I also want to use the
> > > content of the array to populate the text of the fields created
> > > dynamically. I have tried everything I know but all I seem to
get
> is
> > > one filed with the lasat item in the array, sheesh!
> > >
> > > I've gone absolutely mad on this one (newish to actionScript, I am!)
&

RE: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread Ken Rogers
Thanks for the info.  I will keep you posted on my progress via google code so 
you can show commercial work being done with VEGAS. Also let me know when you 
would like the AS3 version tested out in any way :)

Keep up the super() work,
Ken


-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 9:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and Delegatecallback
 
Hello :)

VEGAS is full open.. with a MPL licence you can do commercial project with
VEGAS, no problemo :)

The AS3 version of VEGAS is in alpha version for the moment.. i have
implements a VEGAS implementation in AS3 but i think do a big refactoring
this summer over the AS3 version :) For the moment i finish the final
version of the AS2 library.

EKA+ :)

2007/5/7, Ken Rogers <[EMAIL PROTECTED]>:
>
> Hi Eka!
>
> I have been secretly becoming addicted to VEGAS.  I guess It isn't secret
> anymore :P
> I wanted to ask you if it was alright to use VEGAS for a commercial
> project I am starting this week. It is a kids/parent community site (8-12yrs
> old or tweens).
>
> I will also take advantage of this note to say hi to Nicolas, Daniel, Ian
> !  I have been so busy lately I have not had any time to work with OpenGL /
> SDL(puke) / Haxe.
>
> And big congratulations Nicolas. It sounds as though the good life has
> scooped you up and started you on a nice trip!I have a 2 and 4 yr old little
> girls and wouldn't trade it for anything. all starts with getting
> hitched!(which I thought I would NEVER EVER do)
>
> :)
>
> Thanks for the awesome work on VEGAS Eka. Also is there something that
> explains the differences in the AS2 and AS3 versions?  Are they only in how
> the view is handled?  Is it not wise to do a project initially in AS2 then
> move it to the AS3 version?
>
> Thanks,
> Ken Rogers
>
> (howdy Hank Williams! you spider man geek :P)
>
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of eka
> Sent: Mon 5/7/2007 6:00 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Question on removeEventListener and
> Delegatecallback
>
> Hello :)
>
> use a variable to register your virtual proxy function :
>
> var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text '
> ,
> url) ;
>
> this.currentDisplayObject.addEventListener('onContentCleared' , listener )
> ;
>
> //removing it
>
> this.currentDisplayObject.removeEventListener('onContentCleared' ,
> listener
> ) ;
>
> Now you can keep the variable in memory ;)
>
> PS : if you want use a better event model, you can try my event model in
> my
> opensource framework VEGAS : http://code.google.com/p/vegas
>
> Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
> Read the tutorials about the W3C event model :
> http://code.google.com/p/vegas/wiki/VegasTutorialsEvents
>
> For me .. it's more easy with this implementation.
>
> eKA+ :)
>
>
>
> 2007/5/7, Jiri Heitlager | dadata.org <[EMAIL PROTECTED]>:
> >
> > I was wondering if I am doing something correctly when adding listeners
> > to objects. My question is, if I remove the listener is the code below
> > then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
> > when I remove the listener??
> >
> > //adding a listener
> > this.currentDisplayObject.addEventListener('onContentCleared' ,
> > utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))
> >
> > //removing it
> > this.currentDisplayObject.removeEventListener('onContentCleared' ,
> > utils.Proxy.create(this ,  onBlockContentDestoyed))
> >
> > Thank you
> >
> > Jiri
> >
> >
> > John Trentini wrote:
> > > Hi guys,
> > >
> > >
> > > I want to create as many text fields (which eventually I would like to
> > > turn into buttons) as the length of an array. I also want to use the
> > > content of the array to populate the text of the fields created
> > > dynamically. I have tried everything I know but all I seem to get
> is
> > > one filed with the lasat item in the array, sheesh!
> > >
> > > I've gone absolutely mad on this one (newish to actionScript, I am!)
> but
> > > can anyone tell me what  I am doing wrong here? I could do with a
> > > helping hand or seven =:-)
> > >
> > >
> > >
> > > var myTxt:Array = new Array("branding", "news", "about us", "print",
> > > "marks", "contact&q

Re: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread eka

Hello :)

VEGAS is full open.. with a MPL licence you can do commercial project with
VEGAS, no problemo :)

The AS3 version of VEGAS is in alpha version for the moment.. i have
implements a VEGAS implementation in AS3 but i think do a big refactoring
this summer over the AS3 version :) For the moment i finish the final
version of the AS2 library.

EKA+ :)

2007/5/7, Ken Rogers <[EMAIL PROTECTED]>:


Hi Eka!

I have been secretly becoming addicted to VEGAS.  I guess It isn't secret
anymore :P
I wanted to ask you if it was alright to use VEGAS for a commercial
project I am starting this week. It is a kids/parent community site (8-12yrs
old or tweens).

I will also take advantage of this note to say hi to Nicolas, Daniel, Ian
!  I have been so busy lately I have not had any time to work with OpenGL /
SDL(puke) / Haxe.

And big congratulations Nicolas. It sounds as though the good life has
scooped you up and started you on a nice trip!I have a 2 and 4 yr old little
girls and wouldn't trade it for anything. all starts with getting
hitched!(which I thought I would NEVER EVER do)

:)

Thanks for the awesome work on VEGAS Eka. Also is there something that
explains the differences in the AS2 and AS3 versions?  Are they only in how
the view is handled?  Is it not wise to do a project initially in AS2 then
move it to the AS3 version?

Thanks,
Ken Rogers

(howdy Hank Williams! you spider man geek :P)

-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 6:00 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and
Delegatecallback

Hello :)

use a variable to register your virtual proxy function :

var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text '
,
url) ;

this.currentDisplayObject.addEventListener('onContentCleared' , listener )
;

//removing it

this.currentDisplayObject.removeEventListener('onContentCleared' ,
listener
) ;

Now you can keep the variable in memory ;)

PS : if you want use a better event model, you can try my event model in
my
opensource framework VEGAS : http://code.google.com/p/vegas

Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
Read the tutorials about the W3C event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me .. it's more easy with this implementation.

eKA+ :)



2007/5/7, Jiri Heitlager | dadata.org <[EMAIL PROTECTED]>:
>
> I was wondering if I am doing something correctly when adding listeners
> to objects. My question is, if I remove the listener is the code below
> then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
> when I remove the listener??
>
> //adding a listener
> this.currentDisplayObject.addEventListener('onContentCleared' ,
> utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))
>
> //removing it
> this.currentDisplayObject.removeEventListener('onContentCleared' ,
> utils.Proxy.create(this ,  onBlockContentDestoyed))
>
> Thank you
>
> Jiri
>
>
> John Trentini wrote:
> > Hi guys,
> >
> >
> > I want to create as many text fields (which eventually I would like to
> > turn into buttons) as the length of an array. I also want to use the
> > content of the array to populate the text of the fields created
> > dynamically. I have tried everything I know but all I seem to get
is
> > one filed with the lasat item in the array, sheesh!
> >
> > I've gone absolutely mad on this one (newish to actionScript, I am!)
but
> > can anyone tell me what  I am doing wrong here? I could do with a
> > helping hand or seven =:-)
> >
> >
> >
> > var myTxt:Array = new Array("branding", "news", "about us", "print",
> > "marks", "contact");
> > var myX = 430;
> > var menuArray:Array = new Array();
> > var ySpacing:Number = 90;
> > //
> >
> > /*create  textFields**/
> > //
> > //
> >
> > for(i=0; i >_root.createTextField("mytext"+[i], 1, myX, 0, 100, 30);
> >myId = _root["mytext"+[i]];
> >myId._y = ySpacing;
> >ySpacing += 40;
> >//  trace(myTxt[i]);//the trace works, it list
> > all tyhe lements in the array but
> >myId.text = myTxt[i];  // this one in not producing the appropriate
> > results
> >//
> >myId.border = false;
> >myformat = new TextFormat();
> >myformat.font = "Verdana";
> >myformat.size = 14;
> >myformat.bold = true;
> >myformat.color = 0x55;
> >myformat.align = "right";
> >

RE: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread Ken Rogers
Hi Eka!

I have been secretly becoming addicted to VEGAS.  I guess It isn't secret 
anymore :P
I wanted to ask you if it was alright to use VEGAS for a commercial project I 
am starting this week. It is a kids/parent community site (8-12yrs old or 
tweens).

I will also take advantage of this note to say hi to Nicolas, Daniel, Ian !  I 
have been so busy lately I have not had any time to work with OpenGL / 
SDL(puke) / Haxe. 

And big congratulations Nicolas. It sounds as though the good life has scooped 
you up and started you on a nice trip!I have a 2 and 4 yr old little girls and 
wouldn't trade it for anything. all starts with getting hitched!(which I 
thought I would NEVER EVER do)

:)

Thanks for the awesome work on VEGAS Eka. Also is there something that explains 
the differences in the AS2 and AS3 versions?  Are they only in how the view is 
handled?  Is it not wise to do a project initially in AS2 then move it to the 
AS3 version?

Thanks,
Ken Rogers

(howdy Hank Williams! you spider man geek :P)

-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 6:00 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and Delegatecallback
 
Hello :)

use a variable to register your virtual proxy function :

var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' ,
url) ;

this.currentDisplayObject.addEventListener('onContentCleared' , listener ) ;

//removing it

this.currentDisplayObject.removeEventListener('onContentCleared' , listener
) ;

Now you can keep the variable in memory ;)

PS : if you want use a better event model, you can try my event model in my
opensource framework VEGAS : http://code.google.com/p/vegas

Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
Read the tutorials about the W3C event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me .. it's more easy with this implementation.

eKA+ :)



2007/5/7, Jiri Heitlager | dadata.org <[EMAIL PROTECTED]>:
>
> I was wondering if I am doing something correctly when adding listeners
> to objects. My question is, if I remove the listener is the code below
> then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
> when I remove the listener??
>
> //adding a listener
> this.currentDisplayObject.addEventListener('onContentCleared' ,
> utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))
>
> //removing it
> this.currentDisplayObject.removeEventListener('onContentCleared' ,
> utils.Proxy.create(this ,  onBlockContentDestoyed))
>
> Thank you
>
> Jiri
>
>
> John Trentini wrote:
> > Hi guys,
> >
> >
> > I want to create as many text fields (which eventually I would like to
> > turn into buttons) as the length of an array. I also want to use the
> > content of the array to populate the text of the fields created
> > dynamically. I have tried everything I know but all I seem to get is
> > one filed with the lasat item in the array, sheesh!
> >
> > I've gone absolutely mad on this one (newish to actionScript, I am!) but
> > can anyone tell me what  I am doing wrong here? I could do with a
> > helping hand or seven =:-)
> >
> >
> >
> > var myTxt:Array = new Array("branding", "news", "about us", "print",
> > "marks", "contact");
> > var myX = 430;
> > var menuArray:Array = new Array();
> > var ySpacing:Number = 90;
> > //
> >
> > /*create  textFields**/
> > //
> > //
> >
> > for(i=0; i >_root.createTextField("mytext"+[i], 1, myX, 0, 100, 30);
> >myId = _root["mytext"+[i]];
> >myId._y = ySpacing;
> >ySpacing += 40;
> >//  trace(myTxt[i]);//the trace works, it list
> > all tyhe lements in the array but
> >myId.text = myTxt[i];  // this one in not producing the appropriate
> > results
> >//
> >myId.border = false;
> >myformat = new TextFormat();
> >myformat.font = "Verdana";
> >myformat.size = 14;
> >myformat.bold = true;
> >myformat.color = 0x55;
> >myformat.align = "right";
> >//
> >myId.selectable = false;
> >myId.setTextFormat(myformat);
> >//myId.text = myTxt[i];  //tried putting it at the end but no dah!
> >//
> > }
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://ch