Re: [flexcoders] Re: Why does this effect not work?

2005-12-10 Thread Ralf Rottmann
Title: Re: [flexcoders] Re: Why does this effect not work?








Jester,

I do use this.lbl where lbl is the id'ed Label. Still does not work...

I never access _ properties. My private own created vars with local scope all start with _ !

So, do you know why my initital code does not work?

Thanks for all your help.

Best regards
RR
--
mobile: +49-(0)170-914-5495
email: [EMAIL PROTECTED]




-Original Message-
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Sat Dec 10 05:51:46 2005
Subject: Re: [flexcoders] Re: Why does this effect not work?

You port code? I've found in the Flash world, it's just quicker and better
to re-write. Perhaps one day I'll get put on these famed large, succesful
projects I keep hearing about.

BTW, what's DP? I can talk about Flash for hours... days...weeks...years
even... even longer with free beer.

- Original Message -
From: Darin Kohles [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 09, 2005 10:37 PM
Subject: [flexcoders] Re: Why does this effect not work?


Ralf,

Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)

Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).

I've had similar code that I've changed the effect type one several
times until I was satisfied with the effect. My take is - be explicit
on what your target is. Give your target an id, and use that as your
target. In this case I think that 'this' refers to ?? the newly
created instance of a Fade object that as yet is not tied to anything.

A sample:

var fadeIn:Fade = new Fade(lgImage);
fadeIn.alphaTo = 1;
fadeIn.playEffect();
fadeIn.addEventListener(EffectEvent.EFFECT_END,
function():Void{
detailText.visible=false;
});

The same can be appied in reverse (use a Bool in an if/else structure
that changes on each effect (alpha change). You'll notice that the
target is an id'ed component, not a 'this'. The event listener is just
a clean-up call (for a Wipe effect, that I've found to be buggy).

This code works for event.target as well - stay away from 'this'
unless you know what 'this' is.

On a side note, I've ntice that you tend to use a lot of _somethings
and __somethings in your code (as do others) - some of these are
prototype based and I would not count on having access to them in the
future. The closer you can fit your code within the top level
structure, the better luck you'll have porting apps in the future.

Just some thoughts

--- In flexcoders@yahoogroups.com, Ralf Rottmann
[EMAIL PROTECTED] wrote:

 Hi there,

 Following up on the recent posting related to Flex effects, can
anybody comment on why the following very simple code excerpt does not
work? All I want to do is on click of the button fade the label from 0
to 1.

 private function FadeIn():Void {
 var fx:Fade = new Fade(this.lbl);
 fx.fromAlpha = 0;
 fx.toAlpha = 1.0;
 fx.duration = 2000;
 fx.playEffect();
 }

 mx:Label id=lbl text=some text /
 mx:Button label=Start Effect click=FadeIn()/

 What it should do:
 Render the label.
 Render the button.
 Wait.
 User clicks.
 Label hides (alpha = 0).
 Label slowly fades alpha to 1.

 However: No fade at all happens.

 Why?
 Isn't this exactly how effects are supposed to work conceptually?

 (Talking about Flex 2 Alpha 1 here.)

 Best regards
 RR
 --
 mobile: +49-(0)170-914-5495
 email: [EMAIL PROTECTED]








--
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







 Yahoo! Groups Sponsor ~--
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-

--
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/

* 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/












--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Why does this effect not work?

2005-12-10 Thread Ralf Rottmann
Title: Re: [flexcoders] Re: Why does this effect not work?








Ups, thought this was Jesters post. Sorry for confusion...




-Original Message-
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Sat Dec 10 04:37:21 2005
Subject: [flexcoders] Re: Why does this effect not work?

Ralf,

Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)

Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).

I've had similar code that I've changed the effect type one several
times until I was satisfied with the effect. My take is - be explicit
on what your target is. Give your target an id, and use that as your
target. In this case I think that 'this' refers to ?? the newly
created instance of a Fade object that as yet is not tied to anything.

A sample:

var fadeIn:Fade = new Fade(lgImage);
 fadeIn.alphaTo = 1;
 fadeIn.playEffect();
 fadeIn.addEventListener(EffectEvent.EFFECT_END,
  function():Void{
   detailText.visible=false;
 });

The same can be appied in reverse (use a Bool in an if/else structure
that changes on each effect (alpha change). You'll notice that the
target is an id'ed component, not a 'this'. The event listener is just
a clean-up call (for a Wipe effect, that I've found to be buggy).

This code works for event.target as well - stay away from 'this'
unless you know what 'this' is.

On a side note, I've ntice that you tend to use a lot of _somethings
and __somethings in your code (as do others) - some of these are
prototype based and I would not count on having access to them in the
future. The closer you can fit your code within the top level
structure, the better luck you'll have porting apps in the future.

Just some thoughts

--- In flexcoders@yahoogroups.com, Ralf Rottmann
[EMAIL PROTECTED] wrote:

 Hi there,

 Following up on the recent posting related to Flex effects, can
anybody comment on why the following very simple code excerpt does not
work? All I want to do is on click of the button fade the label from 0
to 1.

 private function FadeIn():Void {
 var fx:Fade = new Fade(this.lbl);
 fx.fromAlpha = 0;
 fx.toAlpha = 1.0;
 fx.duration = 2000;
 fx.playEffect();
 }

 mx:Label id=lbl text=some text /
 mx:Button label=Start Effect click=FadeIn()/

 What it should do:
 Render the label.
 Render the button.
 Wait.
 User clicks.
 Label hides (alpha = 0).
 Label slowly fades alpha to 1.

 However: No fade at all happens.

 Why?
 Isn't this exactly how effects are supposed to work conceptually?

 (Talking about Flex 2 Alpha 1 here.)

 Best regards
 RR
 --
 mobile: +49-(0)170-914-5495
 email: [EMAIL PROTECTED]







 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~-

--
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/

* 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/












--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Why does this effect not work?

2005-12-10 Thread JesterXL
Haha, what the heck, Moe's code?

- Original Message - 
From: Darin Kohles [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, December 10, 2005 3:15 AM
Subject: [flexcoders] Re: Why does this effect not work?


Transed lots'a (of) code from many plats (platforms) ((and it sucks)).
 What you(I) assume in one, aint gonna work in t'other.  But sometimes
what does 'work' is better to work around than re-write ('smother
times it be aint). 'nuff said. ( if'n,... - If you can understand the
preceading, well mo powa to ya)

DP - it's where I'm going to start working on your Moe's code, and
hopefully get everyone up to speed.

D

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

 You port code?  I've found in the Flash world, it's just quicker and
better 
 to re-write.  Perhaps one day I'll get put on these famed large,
succesful 
 projects I keep hearing about.
 
 BTW, what's DP?  










--
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



 



 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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/
 




[flexcoders] Re: Why does this effect not work?

2005-12-09 Thread Darin Kohles
Ralf,

Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)

Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).

I've had similar code that I've changed the effect type one several
times until I was satisfied with the effect. My take is - be explicit
on what your target is. Give your target an id, and use that as your
target. In this case I think that 'this' refers to ?? the newly
created instance of a Fade object that as yet is not tied to anything.

A sample:

var fadeIn:Fade = new Fade(lgImage);
fadeIn.alphaTo = 1;
fadeIn.playEffect();
fadeIn.addEventListener(EffectEvent.EFFECT_END,
function():Void{
detailText.visible=false;
});

The same can be appied in reverse (use a Bool in an if/else structure
that changes on each effect (alpha change). You'll notice that the
target is an id'ed component, not a 'this'. The event listener is just
a clean-up call (for a Wipe effect, that I've found to be buggy).

This code works for event.target as well - stay away from 'this'
unless you know what 'this' is.

On a side note, I've ntice that you tend to use a lot of _somethings
and __somethings in your code (as do others) - some of these are
prototype based and I would not count on having access to them in the
future.  The closer you can fit your code within the top level
structure, the better luck you'll have porting apps in the future.

Just some thoughts

--- In flexcoders@yahoogroups.com, Ralf Rottmann
[EMAIL PROTECTED] wrote:

 Hi there,
 
 Following up on the recent posting related to Flex effects, can
anybody comment on why the following very simple code excerpt does not
work? All I want to do is on click of the button fade the label from 0
to 1.
 
 private function FadeIn():Void {
   var fx:Fade = new Fade(this.lbl);
   fx.fromAlpha = 0;
   fx.toAlpha = 1.0;
   fx.duration = 2000;
   fx.playEffect();
 } 
 
 mx:Label id=lbl text=some text /
 mx:Button label=Start Effect click=FadeIn()/
 
 What it should do:
 Render the label.
 Render the button.
 Wait.
 User clicks.
 Label hides (alpha = 0).
 Label slowly fades alpha to 1.
 
 However: No fade at all happens.
 
 Why?
 Isn't this exactly how effects are supposed to work conceptually?
 
 (Talking about Flex 2 Alpha 1 here.)
 
 Best regards
 RR
 --
 mobile: +49-(0)170-914-5495
 email:   [EMAIL PROTECTED]







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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: Why does this effect not work?

2005-12-09 Thread JesterXL
You port code?  I've found in the Flash world, it's just quicker and better 
to re-write.  Perhaps one day I'll get put on these famed large, succesful 
projects I keep hearing about.

BTW, what's DP?  I can talk about Flash for hours... days...weeks...years 
even... even longer with free beer.

- Original Message - 
From: Darin Kohles [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 09, 2005 10:37 PM
Subject: [flexcoders] Re: Why does this effect not work?


Ralf,

Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)

Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).

I've had similar code that I've changed the effect type one several
times until I was satisfied with the effect. My take is - be explicit
on what your target is. Give your target an id, and use that as your
target. In this case I think that 'this' refers to ?? the newly
created instance of a Fade object that as yet is not tied to anything.

A sample:

var fadeIn:Fade = new Fade(lgImage);
fadeIn.alphaTo = 1;
fadeIn.playEffect();
fadeIn.addEventListener(EffectEvent.EFFECT_END,
function():Void{
detailText.visible=false;
});

The same can be appied in reverse (use a Bool in an if/else structure
that changes on each effect (alpha change). You'll notice that the
target is an id'ed component, not a 'this'. The event listener is just
a clean-up call (for a Wipe effect, that I've found to be buggy).

This code works for event.target as well - stay away from 'this'
unless you know what 'this' is.

On a side note, I've ntice that you tend to use a lot of _somethings
and __somethings in your code (as do others) - some of these are
prototype based and I would not count on having access to them in the
future.  The closer you can fit your code within the top level
structure, the better luck you'll have porting apps in the future.

Just some thoughts

--- In flexcoders@yahoogroups.com, Ralf Rottmann
[EMAIL PROTECTED] wrote:

 Hi there,

 Following up on the recent posting related to Flex effects, can
anybody comment on why the following very simple code excerpt does not
work? All I want to do is on click of the button fade the label from 0
to 1.

 private function FadeIn():Void {
   var fx:Fade = new Fade(this.lbl);
   fx.fromAlpha = 0;
   fx.toAlpha = 1.0;
   fx.duration = 2000;
   fx.playEffect();
 }

 mx:Label id=lbl text=some text /
 mx:Button label=Start Effect click=FadeIn()/

 What it should do:
 Render the label.
 Render the button.
 Wait.
 User clicks.
 Label hides (alpha = 0).
 Label slowly fades alpha to 1.

 However: No fade at all happens.

 Why?
 Isn't this exactly how effects are supposed to work conceptually?

 (Talking about Flex 2 Alpha 1 here.)

 Best regards
 RR
 --
 mobile: +49-(0)170-914-5495
 email:   [EMAIL PROTECTED]








--
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







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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/