Carl,
.callMedia isn't a method of MovieClip.
You need to cast it (using the 'as' operator) to whatever class you
are defining callMedia in. Possibly your document class? (Don't know
your setup.)
(I'd also suggest you take a look at dispatching events rather than
directly referencing the parent as you're doing here - AS3 is very
event-based, and once you get into using events, the whole framework
will make a lot more sense...)
Ian
On Wed, Dec 10, 2008 at 9:49 PM, Carl Welch <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I am trying to call a function to a parent of a movieclip. I've tried these
> two items that I found but to no avail:
>
> (this.parent.parent as MovieClip).callMedia(String("audio"));
>
> AND:
>
> MovieClip(parent.parent).callMedia(String("audio"));
>
>
> Am I missing something? I'm finding that everything I took for granted in
> AS2 is now convoluted in AS3... I'm so frustrated.
>
>
> --
> Carl Welch
> http://www.carlwelch.com
> http://www.jointjam.com
> [EMAIL PROTECTED]
> 805.403.4819
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders