Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Muzak

Works fine here:

package amlak.ui {

import flash.display.MovieClip;

public class APanel extends MovieClip {
 
 public function APanel() {

  trace(APanel ::: CONSTRUCTOR);
 }

}
}

package amlak.ui {

import flash.display.MovieClip;
import amlak.ui.APanel;

public class RegistrationPanel extends APanel {
 
 public function RegistrationPanel() {

  trace(RegistrationPanel ::: CONSTRUCTOR);
 }

}
}

Linkage properties for RegistrationPanel in library:

class: amlak.ui.RegistrationPanel
base class: flash.display.MovieClip

regards,
Muzak

- Original Message - 
From: Omar Fouad [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Saturday, March 22, 2008 2:09 AM
Subject: Re: [Flashcoders] Custom MovieClip Classes



Nope look at this.

package amlak.ui
{
   import flash.text.*;
   import flash.display.MovieClip;

   public class RegistrationPanel extends APanel {

   public function RegistrationPanel(){

   }

   }
}

5000: The class 'amlak.ui.RegistrationPanel' must subclass '
flash.display.MovieClip' since it is linked to a library symbol of that
type.

I thought that RegistrationPanel would inherit also MovieClip since APanal
does. But same Error.



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread jonathan howe
Seems like the most important part is when Muzak wrote this:

Linkage properties for RegistrationPanel in library:
class: amlak.ui.RegistrationPanel
base class: flash.display.MovieClip

I have found these two settings a little confusing.
For example, creating a simple code behind class, when I first started
working with Flash, I stumbled into this format:

class RegistrationPanel
base class: amlak.ui.RegistrationPanel

This actually seemed to work. What is the difference behind-the-scenes? In
hindsight, this must be creating a duplicate class RegistrationPanel in the
global namespace that inherits from the subclass of the same name, right?


On Sat, Mar 22, 2008 at 6:23 AM, Muzak [EMAIL PROTECTED] wrote:

 Works fine here:

 package amlak.ui {

  import flash.display.MovieClip;

  public class APanel extends MovieClip {

  public function APanel() {
   trace(APanel ::: CONSTRUCTOR);
  }

  }
 }

 package amlak.ui {

  import flash.display.MovieClip;
  import amlak.ui.APanel;

  public class RegistrationPanel extends APanel {

  public function RegistrationPanel() {
trace(RegistrationPanel ::: CONSTRUCTOR);
  }

  }
 }

 Linkage properties for RegistrationPanel in library:

 class: amlak.ui.RegistrationPanel
 base class: flash.display.MovieClip

 regards,
 Muzak

 - Original Message -
 From: Omar Fouad [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Saturday, March 22, 2008 2:09 AM
 Subject: Re: [Flashcoders] Custom MovieClip Classes


  Nope look at this.
 
  package amlak.ui
  {
 import flash.text.*;
 import flash.display.MovieClip;
 
 public class RegistrationPanel extends APanel {
 
 public function RegistrationPanel(){
 
 }
 
 }
  }
 
  5000: The class 'amlak.ui.RegistrationPanel' must subclass '
  flash.display.MovieClip' since it is linked to a library symbol of that
  type.
 
  I thought that RegistrationPanel would inherit also MovieClip since
 APanal
  does. But same Error.
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
Hey!!! It worked Now I can Extend the APanel Class.. But how come? I
changed Nothing(??)

On Sat, Mar 22, 2008 at 12:52 PM, jonathan howe [EMAIL PROTECTED]
wrote:

 Seems like the most important part is when Muzak wrote this:

 Linkage properties for RegistrationPanel in library:
 class: amlak.ui.RegistrationPanel
 base class: flash.display.MovieClip

 I have found these two settings a little confusing.
 For example, creating a simple code behind class, when I first started
 working with Flash, I stumbled into this format:

 class RegistrationPanel
 base class: amlak.ui.RegistrationPanel

 This actually seemed to work. What is the difference behind-the-scenes? In
 hindsight, this must be creating a duplicate class RegistrationPanel in
 the
 global namespace that inherits from the subclass of the same name, right?


 On Sat, Mar 22, 2008 at 6:23 AM, Muzak [EMAIL PROTECTED] wrote:

  Works fine here:
 
  package amlak.ui {
 
   import flash.display.MovieClip;
 
   public class APanel extends MovieClip {
 
   public function APanel() {
trace(APanel ::: CONSTRUCTOR);
   }
 
   }
  }
 
  package amlak.ui {
 
   import flash.display.MovieClip;
   import amlak.ui.APanel;
 
   public class RegistrationPanel extends APanel {
 
   public function RegistrationPanel() {
 trace(RegistrationPanel ::: CONSTRUCTOR);
   }
 
   }
  }
 
  Linkage properties for RegistrationPanel in library:
 
  class: amlak.ui.RegistrationPanel
  base class: flash.display.MovieClip
 
  regards,
  Muzak
 
  - Original Message -
  From: Omar Fouad [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Saturday, March 22, 2008 2:09 AM
  Subject: Re: [Flashcoders] Custom MovieClip Classes
 
 
   Nope look at this.
  
   package amlak.ui
   {
  import flash.text.*;
  import flash.display.MovieClip;
  
  public class RegistrationPanel extends APanel {
  
  public function RegistrationPanel(){
  
  }
  
  }
   }
  
   5000: The class 'amlak.ui.RegistrationPanel' must subclass '
   flash.display.MovieClip' since it is linked to a library symbol of
 that
   type.
  
   I thought that RegistrationPanel would inherit also MovieClip since
  APanal
   does. But same Error.
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Cor
Cleared the cash?? 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Omar Fouad
Verzonden: zaterdag 22 maart 2008 14:56
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Custom MovieClip Classes

Hey!!! It worked Now I can Extend the APanel Class.. But how come? I
changed Nothing(??)

On Sat, Mar 22, 2008 at 12:52 PM, jonathan howe [EMAIL PROTECTED]
wrote:

 Seems like the most important part is when Muzak wrote this:

 Linkage properties for RegistrationPanel in library:
 class: amlak.ui.RegistrationPanel
 base class: flash.display.MovieClip

 I have found these two settings a little confusing.
 For example, creating a simple code behind class, when I first 
 started working with Flash, I stumbled into this format:

 class RegistrationPanel
 base class: amlak.ui.RegistrationPanel

 This actually seemed to work. What is the difference 
 behind-the-scenes? In hindsight, this must be creating a duplicate 
 class RegistrationPanel in the global namespace that inherits from the 
 subclass of the same name, right?


 On Sat, Mar 22, 2008 at 6:23 AM, Muzak [EMAIL PROTECTED] wrote:

  Works fine here:
 
  package amlak.ui {
 
   import flash.display.MovieClip;
 
   public class APanel extends MovieClip {
 
   public function APanel() {
trace(APanel ::: CONSTRUCTOR);
   }
 
   }
  }
 
  package amlak.ui {
 
   import flash.display.MovieClip;
   import amlak.ui.APanel;
 
   public class RegistrationPanel extends APanel {
 
   public function RegistrationPanel() {
 trace(RegistrationPanel ::: CONSTRUCTOR);  }
 
   }
  }
 
  Linkage properties for RegistrationPanel in library:
 
  class: amlak.ui.RegistrationPanel
  base class: flash.display.MovieClip
 
  regards,
  Muzak
 
  - Original Message -
  From: Omar Fouad [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Saturday, March 22, 2008 2:09 AM
  Subject: Re: [Flashcoders] Custom MovieClip Classes
 
 
   Nope look at this.
  
   package amlak.ui
   {
  import flash.text.*;
  import flash.display.MovieClip;
  
  public class RegistrationPanel extends APanel {
  
  public function RegistrationPanel(){
  
  }
  
  }
   }
  
   5000: The class 'amlak.ui.RegistrationPanel' must subclass '
   flash.display.MovieClip' since it is linked to a library symbol of
 that
   type.
  
   I thought that RegistrationPanel would inherit also MovieClip 
   since
  APanal
   does. But same Error.
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 
 04101 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
17:52

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
17:52
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
17:52
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Design pattern for conditional Interfaces ?

2008-03-22 Thread Jeroen Beckers
Hi list!

Situation: I have a class that analyzes stuff. There are different analyzing
classes, such as HeightAnalyzer, WeightAnalyzer, LevelAnalyzer, etc.
You can add an analyzer to the class by using
'myClass.addAnalyzer(newAnalyzer:IAnalyzer)'.
As you can see, there is an IAnalyzer interface which all Analyzer's
implement. Every time you add an analyzer, it is added to the list using the
Decorator pattern. (Every analyzer must analyze a list and pass it to the
next analyzing test)

Now, the analyzer's analyze certain items. Every analyzer requires the
analyzed item to have a certain set of methods. The HeightAnalyzer requires
a getHeight(), the LevelAnaylzer requires a getLevel(), etc. I want to have
a different interface for each analyzer, so that I can easily add analyzers
(+interfaces).

If I want to analyze a list of items, those items must implement the correct
interface, according to which analyzers you have added to the class. Fe:

var myClass:AnalyzerBundle = new AnalyzerBundle();
myClass.addAnalyzer(new HeightAnalyzer());
myClass.addAnalyzer(new LevelAnalyzer());
myClass.analyze(new Array(item1, item2, item3));

What I am looking for now, is a way to make sure that item1, item2 and item3
all implement the IHeightItem and ILevelItem interfaces.

I've found a couple of ways to do this, but none of them seemed really good
to me. One of them was to have every Analyzer keep track of the interface
associated with it, and check if they implement the correct interface, once
the analyzer is called. But this would give ugly runtime errors...
I'm pretty sure that it can't be done at compile time, but if anyone happens
to know some way (hack), or a better way for the runtime errors, please tell
me :-). All ideas are welcome

Ps: I've just made up all these names, my question is about the technique to
be used, not about the project :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
Note: I am working with Flash and Document Class. Classes are written in
Flex (Actionscript Project). Flash AS Editor Is not that good.

On Sat, Mar 22, 2008 at 5:14 PM, Omar Fouad [EMAIL PROTECTED] wrote:

 Nope. Just Restarted Flash.

 On Sat, Mar 22, 2008 at 4:13 PM, Cor [EMAIL PROTECTED] wrote:

  Cleared the cash??
 
  -Oorspronkelijk bericht-
  Van: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Namens Omar Fouad
  Verzonden: zaterdag 22 maart 2008 14:56
  Aan: Flash Coders List
  Onderwerp: Re: [Flashcoders] Custom MovieClip Classes
 
  Hey!!! It worked Now I can Extend the APanel Class.. But how come? I
  changed Nothing(??)
 
  On Sat, Mar 22, 2008 at 12:52 PM, jonathan howe [EMAIL PROTECTED]
  
  wrote:
 
   Seems like the most important part is when Muzak wrote this:
  
   Linkage properties for RegistrationPanel in library:
   class: amlak.ui.RegistrationPanel
   base class: flash.display.MovieClip
  
   I have found these two settings a little confusing.
   For example, creating a simple code behind class, when I first
   started working with Flash, I stumbled into this format:
  
   class RegistrationPanel
   base class: amlak.ui.RegistrationPanel
  
   This actually seemed to work. What is the difference
   behind-the-scenes? In hindsight, this must be creating a duplicate
   class RegistrationPanel in the global namespace that inherits from the
   subclass of the same name, right?
  
  
   On Sat, Mar 22, 2008 at 6:23 AM, Muzak [EMAIL PROTECTED]
  wrote:
  
Works fine here:
   
package amlak.ui {
   
 import flash.display.MovieClip;
   
 public class APanel extends MovieClip {
   
 public function APanel() {
  trace(APanel ::: CONSTRUCTOR);
 }
   
 }
}
   
package amlak.ui {
   
 import flash.display.MovieClip;
 import amlak.ui.APanel;
   
 public class RegistrationPanel extends APanel {
   
 public function RegistrationPanel() {
   trace(RegistrationPanel ::: CONSTRUCTOR);  }
   
 }
}
   
Linkage properties for RegistrationPanel in library:
   
class: amlak.ui.RegistrationPanel
base class: flash.display.MovieClip
   
regards,
Muzak
   
- Original Message -
From: Omar Fouad [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Saturday, March 22, 2008 2:09 AM
Subject: Re: [Flashcoders] Custom MovieClip Classes
   
   
 Nope look at this.

 package amlak.ui
 {
import flash.text.*;
import flash.display.MovieClip;

public class RegistrationPanel extends APanel {

public function RegistrationPanel(){

}

}
 }

 5000: The class 'amlak.ui.RegistrationPanel' must subclass '
 flash.display.MovieClip' since it is linked to a library symbol of
   that
 type.

 I thought that RegistrationPanel would inherit also MovieClip
 since
APanal
 does. But same Error.

   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
  
  
  
   --
   -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME
   04101 ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  Omar M. Fouad - Digital Emotions
  http://www.omarfouad.net
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
  copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  --
  No virus found in this incoming message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date:
  21-3-2008
  17:52
 
  No virus found in this incoming message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date:
  21-3-2008
  17:52
 
 
  No virus found in this outgoing message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date:
  21-3-2008
  17:52
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
Nope. Just Restarted Flash.

On Sat, Mar 22, 2008 at 4:13 PM, Cor [EMAIL PROTECTED] wrote:

 Cleared the cash??

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens Omar Fouad
 Verzonden: zaterdag 22 maart 2008 14:56
 Aan: Flash Coders List
 Onderwerp: Re: [Flashcoders] Custom MovieClip Classes

 Hey!!! It worked Now I can Extend the APanel Class.. But how come? I
 changed Nothing(??)

 On Sat, Mar 22, 2008 at 12:52 PM, jonathan howe [EMAIL PROTECTED]
 wrote:

  Seems like the most important part is when Muzak wrote this:
 
  Linkage properties for RegistrationPanel in library:
  class: amlak.ui.RegistrationPanel
  base class: flash.display.MovieClip
 
  I have found these two settings a little confusing.
  For example, creating a simple code behind class, when I first
  started working with Flash, I stumbled into this format:
 
  class RegistrationPanel
  base class: amlak.ui.RegistrationPanel
 
  This actually seemed to work. What is the difference
  behind-the-scenes? In hindsight, this must be creating a duplicate
  class RegistrationPanel in the global namespace that inherits from the
  subclass of the same name, right?
 
 
  On Sat, Mar 22, 2008 at 6:23 AM, Muzak [EMAIL PROTECTED] wrote:
 
   Works fine here:
  
   package amlak.ui {
  
import flash.display.MovieClip;
  
public class APanel extends MovieClip {
  
public function APanel() {
 trace(APanel ::: CONSTRUCTOR);
}
  
}
   }
  
   package amlak.ui {
  
import flash.display.MovieClip;
import amlak.ui.APanel;
  
public class RegistrationPanel extends APanel {
  
public function RegistrationPanel() {
  trace(RegistrationPanel ::: CONSTRUCTOR);  }
  
}
   }
  
   Linkage properties for RegistrationPanel in library:
  
   class: amlak.ui.RegistrationPanel
   base class: flash.display.MovieClip
  
   regards,
   Muzak
  
   - Original Message -
   From: Omar Fouad [EMAIL PROTECTED]
   To: Flash Coders List flashcoders@chattyfig.figleaf.com
   Sent: Saturday, March 22, 2008 2:09 AM
   Subject: Re: [Flashcoders] Custom MovieClip Classes
  
  
Nope look at this.
   
package amlak.ui
{
   import flash.text.*;
   import flash.display.MovieClip;
   
   public class RegistrationPanel extends APanel {
   
   public function RegistrationPanel(){
   
   }
   
   }
}
   
5000: The class 'amlak.ui.RegistrationPanel' must subclass '
flash.display.MovieClip' since it is linked to a library symbol of
  that
type.
   
I thought that RegistrationPanel would inherit also MovieClip
since
   APanal
does. But same Error.
   
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME
  04101 ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 --
 No virus found in this incoming message.
 Checked by AVG.
 Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
 17:52

 No virus found in this incoming message.
 Checked by AVG.
 Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
 17:52


 No virus found in this outgoing message.
 Checked by AVG.
 Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 21-3-2008
 17:52


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS3 Classes and FLA not working together

2008-03-22 Thread Omar Fouad
and this

-- Forwarded message --
From: Andrei Thomaz [EMAIL PROTECTED]
Date: Mon, Mar 17, 2008 at 3:42 PM
Subject: Re: [Flashcoders] AS3 Classes and FLA not working together
To: [EMAIL PROTECTED]
Cc: Flash Coders List flashcoders@chattyfig.figleaf.com


Kenneth, you're right, sorry. I had some strange problems after uninstalling
the last AIR beta and installing the release version. One of these things
was that, when I published an app without a stop(), it acted as a movieclip
flashing on the screen. It works fine now (I cleaned and updated all AIR
pieces in last week).

best,
andrei


On Mon, Mar 17, 2008 at 10:32 AM, Kenneth Kawamoto 
[EMAIL PROTECTED] wrote:

 No, what I meant was if you're extending MovieClip and placing stop(),
 then you can just extent Sprite and forget about messy stop().

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Andrei Thomaz wrote:
  Yes, you can put stop() in the first frame and still extend Sprite. I
  just think that this is a bit contradictory with the definition of
  Sprite class:
 
  A Sprite object is similar to a movie clip, but does not have a
 timeline. 
 
  And, in the Sprite documentation, stop() doesn't exist. Although that,
  the stop() in the first frame will work, independently on the document
  class extending Sprite or MovieClip.
 
 
  []'s
  andrei
 
 
 
  On Mon, Mar 17, 2008 at 6:00 AM, Kenneth Kawamoto
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Then why don't you extend Sprite???
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Andrei Thomaz wrote:
The only problem I had was that I had to
make it extend MovieClip, and put a stop() in its first frame.
 
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Tweening Engines for AS3

2008-03-22 Thread Jesse Warden
What are people using nowadays besides Flash CS3's built-in ones and Flex
3's built in ones?  Looking for something lightweight and that has no Flash
or Flex dependencies.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tweening Engines for AS3

2008-03-22 Thread Jeroen Beckers
I heard a lot of people used http://blog.greensock.com/tweenliteas3/ . Not
sure if it's dependent on Flex / Flash, but I don't really think so.

On Sat, Mar 22, 2008 at 9:57 PM, Jesse Warden [EMAIL PROTECTED]
wrote:

 What are people using nowadays besides Flash CS3's built-in ones and Flex
 3's built in ones?  Looking for something lightweight and that has no
 Flash
 or Flex dependencies.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tweening Engines for AS3

2008-03-22 Thread Steven Sacks
TweenLite and TweenFilterLite are the undisputed kings of Tween 
engines.  They're the most efficient, best performing and most 
lightweight.  I distribute them with my Gaia framework.  Jack Doyle is 
actually working on an improved version of TweenFilterLite right now 
which should be released soon.


http://blog.greensock.com/tweenliteas3/
http://blog.greensock.com/tweenfilterliteas3/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] masapi - Massive Loading API

2008-03-22 Thread Cédric Tabin
Hello :)

I just want to promote my little Massive Loading API called masapi :
http://masapi.googlecode.com ! It has been for now huge tested and works
very well.
Eventually if some of you can give me some feedback, it would be great :)

I'm currently working on some more advanced tutorials, so if there are any
problem within the understanding of the API, let me know !

Regards,
Cedric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tweening Engines for AS3

2008-03-22 Thread Jesse Warden
Exactly what I was looking for, thanks a bunch!

On Sat, Mar 22, 2008 at 5:12 PM, Jeroen Beckers [EMAIL PROTECTED]
wrote:

 I heard a lot of people used http://blog.greensock.com/tweenliteas3/ . Not
 sure if it's dependent on Flex / Flash, but I don't really think so.

 On Sat, Mar 22, 2008 at 9:57 PM, Jesse Warden [EMAIL PROTECTED]
 wrote:

  What are people using nowadays besides Flash CS3's built-in ones and
 Flex
  3's built in ones?  Looking for something lightweight and that has no
  Flash
  or Flex dependencies.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tweening Engines for AS3

2008-03-22 Thread richard carr
Hey Jeese,

Zeh 's Tweener
http://code.google.com/p/tweener/



On Sat, Mar 22, 2008 at 3:12 PM, Jeroen Beckers [EMAIL PROTECTED]
wrote:

 I heard a lot of people used http://blog.greensock.com/tweenliteas3/ . Not
 sure if it's dependent on Flex / Flash, but I don't really think so.

 On Sat, Mar 22, 2008 at 9:57 PM, Jesse Warden [EMAIL PROTECTED]
 wrote:

  What are people using nowadays besides Flash CS3's built-in ones and
 Flex
  3's built in ones?  Looking for something lightweight and that has no
  Flash
  or Flex dependencies.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Design pattern for conditional Interfaces ?

2008-03-22 Thread Andrei Thomaz
and if each IAnalyzer implements a function called getAnalyzedProperty(),
returning a string, and if each item (using an IItem interface, for example)
implements a function called hasProperty(), receiving a string as parameter?
So, you could check if the item has the getProperty() function the
analyzer requires, at runtime, without having runtine errors... You could
also have some getProperty( strProperty:String ):Object function, defined at
IItem interface.

interface IAnalyzer
{
  getAnalyzedProperty():String;
}

interface IItem
{
  hasProperty( strProperty:String ):Boolean;
  getProperty( strProperty:String ):Object;
}


just a guess,
andrei



On Sat, Mar 22, 2008 at 11:39 AM, Jeroen Beckers [EMAIL PROTECTED]
wrote:

 Hi list!

 Situation: I have a class that analyzes stuff. There are different
 analyzing
 classes, such as HeightAnalyzer, WeightAnalyzer, LevelAnalyzer, etc.
 You can add an analyzer to the class by using
 'myClass.addAnalyzer(newAnalyzer:IAnalyzer)'.
 As you can see, there is an IAnalyzer interface which all Analyzer's
 implement. Every time you add an analyzer, it is added to the list using
 the
 Decorator pattern. (Every analyzer must analyze a list and pass it to the
 next analyzing test)

 Now, the analyzer's analyze certain items. Every analyzer requires the
 analyzed item to have a certain set of methods. The HeightAnalyzer
 requires
 a getHeight(), the LevelAnaylzer requires a getLevel(), etc. I want to
 have
 a different interface for each analyzer, so that I can easily add
 analyzers
 (+interfaces).

 If I want to analyze a list of items, those items must implement the
 correct
 interface, according to which analyzers you have added to the class. Fe:

 var myClass:AnalyzerBundle = new AnalyzerBundle();
 myClass.addAnalyzer(new HeightAnalyzer());
 myClass.addAnalyzer(new LevelAnalyzer());
 myClass.analyze(new Array(item1, item2, item3));

 What I am looking for now, is a way to make sure that item1, item2 and
 item3
 all implement the IHeightItem and ILevelItem interfaces.

 I've found a couple of ways to do this, but none of them seemed really
 good
 to me. One of them was to have every Analyzer keep track of the interface
 associated with it, and check if they implement the correct interface,
 once
 the analyzer is called. But this would give ugly runtime errors...
 I'm pretty sure that it can't be done at compile time, but if anyone
 happens
 to know some way (hack), or a better way for the runtime errors, please
 tell
 me :-). All ideas are welcome

 Ps: I've just made up all these names, my question is about the technique
 to
 be used, not about the project :)
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders