Actually i just need to get/set properties from super.super (which refers to
Sprite in this case).

Extending the grandparent (Sprite) would mean I would have to rewrite
FLVPlayback (approximately 5K lines of code) just to get access to a
particular Sprite property.

An example of what I am doing is creating a component called
"SpecialFLVPlayback" that does everything FLVPlackback does, but adds some
functionality that is particular to the way the stream is handled.

To do this I need to do a few things, one of which is overriding certain
methods.  I want to preserve all of the functionality in a method, and
simply add functionality.  A given method might refer to "super.visible" or
"super.width" in FLVPlayback, so when I override that method in
"SpecialFLVPlayback" if I still want access to the value reffered to as
"super.visible" in FLVPlayback I have no way of refering to it in
SpecialFLVPlayback.

Unless there is a way that I haven't come across...

in either case, thanks for the link and the tips.

Iman

On Wed, Nov 19, 2008 at 11:39 AM, Glen Pike <[EMAIL PROTECTED]>wrote:

>  Hi,
>
>     http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
>
>     If you are extending a class I am not sure I understand why you would
> want to call super.super - because you can guarantee a parent class, but not
> necessarily a grandparent.  If you are overridding methods in the super
> class, but retaining functionality of super.super, would you not be better
> extending the parent class in this aspect, or refactoring your code?
>
>     Maybe you have an example of this because it's not clear why you would
> be wanting to call super.super.method(), but not super.method()
>
>     Glen
>
>
> Iman Khabazian wrote:
>
> Hello Guys,
>
> I just did some work that included extending the fl.video.FLVPlayback
> component.  Not only did the architecture make it very difficult to extend,
> but I also learned that actionscript does not support super.super, so it is
> not possible to override a function that uses super if you want to make the
> same reference in the extending function.
>
> I was wondering if anyone knew how I could best share this feedback with
> the adobe Flash team.
>
> Thanks,
> Iman
>
> ------------------------------
>
> _______________________________________________
> osflash mailing [EMAIL 
> PROTECTED]://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> --
>
> Glen Pike
> 01326 218440
> www.glenpike.co.uk
>
> _______________________________________________
> osflash mailing list
> osflash@osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
_______________________________________________
osflash mailing list
osflash@osflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to