Re: [Flashcoders] classes extending movie clip problem

2006-05-02 Thread August Gresens

doh! Thanks, August

On 5/2/06, Ian Thomas <[EMAIL PROTECTED]> wrote:


Looks to me like your Object.registerClass is registering the wrong
symbol ID - "menu_mc" instead of "videoPlayerEmpty_mc".

Ian

On 5/2/06, August Gresens <[EMAIL PROTECTED]> wrote:
> Hello
>
> I've got a class that extends movieclip. This class is being associated
with
> a movieClip in the Libary using the Object.RegisterClass method. When I
> attach this movieclip using attachMovie, the instance of the class does
not
> respond to method calls defined in the subclass.
>
> Here's the code:
>
> Object.registerClass("menu_mc", VideoPlayerWidgetMC);
> videoPlayer = screen_mc.attachMovie("videoPlayerEmpty_mc",
> "videoPlayer_mc", 10);
> videoPlayer._visible = false;
> videoPlayer._x = 500;;
> videoPlayer._y = 500;
> videoPlayer.init(); // does not respond to this custom method
call!!
>
> In the debugger, the instance name shows up, but there is nothing next
to it
> (the field is blank). The movieclip appears on the stage, however.
>
> I tried casting this clip as the custom object type (the sub-class), but
> this didn't work.
>
> I have a feeling this is a common occurance - does anyone know what I'm
> doing wrong?
>
> Thanks,
>
> August
>
___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] classes extending movie clip problem

2006-05-02 Thread Ian Thomas

Looks to me like your Object.registerClass is registering the wrong
symbol ID - "menu_mc" instead of "videoPlayerEmpty_mc".

Ian

On 5/2/06, August Gresens <[EMAIL PROTECTED]> wrote:

Hello

I've got a class that extends movieclip. This class is being associated with
a movieClip in the Libary using the Object.RegisterClass method. When I
attach this movieclip using attachMovie, the instance of the class does not
respond to method calls defined in the subclass.

Here's the code:

Object.registerClass("menu_mc", VideoPlayerWidgetMC);
videoPlayer = screen_mc.attachMovie("videoPlayerEmpty_mc",
"videoPlayer_mc", 10);
videoPlayer._visible = false;
videoPlayer._x = 500;;
videoPlayer._y = 500;
videoPlayer.init(); // does not respond to this custom method call!!

In the debugger, the instance name shows up, but there is nothing next to it
(the field is blank). The movieclip appears on the stage, however.

I tried casting this clip as the custom object type (the sub-class), but
this didn't work.

I have a feeling this is a common occurance - does anyone know what I'm
doing wrong?

Thanks,

August


___
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] classes extending movie clip problem

2006-05-02 Thread August Gresens

Hello

I've got a class that extends movieclip. This class is being associated with
a movieClip in the Libary using the Object.RegisterClass method. When I
attach this movieclip using attachMovie, the instance of the class does not
respond to method calls defined in the subclass.

Here's the code:

   Object.registerClass("menu_mc", VideoPlayerWidgetMC);
   videoPlayer = screen_mc.attachMovie("videoPlayerEmpty_mc",
"videoPlayer_mc", 10);
   videoPlayer._visible = false;
   videoPlayer._x = 500;;
   videoPlayer._y = 500;
   videoPlayer.init(); // does not respond to this custom method call!!

In the debugger, the instance name shows up, but there is nothing next to it
(the field is blank). The movieclip appears on the stage, however.

I tried casting this clip as the custom object type (the sub-class), but
this didn't work.

I have a feeling this is a common occurance - does anyone know what I'm
doing wrong?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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