on a related note. If I have a sprite in my Library (exported with a class
name), and in that sprite some movieclips, in order to call the sprite into
my document class, in order to access things within that sprite, I have to
do this:

private var bSprite;
...
bSprite = new IDESprite();
bSprite.some_mc...

and NOT

private var bSprite:Sprite

because then when I try to access "some_mc" I get an error.

So in this case is it best to simply not type bSprite, or type it with a
wildcard?

- E

On Tue, Jul 1, 2008 at 11:32 AM, Merrill, Jason <
[EMAIL PROTECTED]> wrote:

> >>(even if you are
> >>only doing a wildcard cast).
>
> What I meant was, not "even if", but that casting to a wildcard will
> alieviate the compiler complaints since  you're casting to SOMETHING,
> even if it is a wildcard.
>
> Jason Merrill
> Bank of America
> Global Technology & Operations & Global Risk L&LD
> eTools & Multimedia
>
> Join the Bank of America Flash Platform Developer Community
>
> Are you a Bank of America associate interested in innovative learning
> ideas and technologies?
> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>
>
>
> >>-----Original Message-----
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] On Behalf
> >>Of Merrill, Jason
> >>Sent: Tuesday, July 01, 2008 10:58 AM
> >>To: Flash Coders List
> >>Subject: RE: [Flashcoders] Warning: 3596: Duplicate variable
> >>definition.
> >>
> >>>>That's what I suspected. What is the advantage, then, of using the
> >>>>wildcard, rather than an untyped variable?
> >>
> >>Gotta think outside the IDE :) because in the Flex world for
> >>example, depending on how you have the compiler set, it will
> >>complain if you don't typecast a variable (even if you are
> >>only doing a wildcard cast).
> >>
> >>
> >>Jason Merrill
> >>Bank of America
> >>Global Technology & Operations & Global Risk L&LD eTools & Multimedia
> >>
> >>Join the Bank of America Flash Platform Developer Community
> >>
> >>Are you a Bank of America associate interested in innovative
> >>learning ideas and technologies?
> >>Check out our internal  GT&O Innovative Learning Blog & subscribe.
> >>
> >>
> >>_______________________________________________
> >>Flashcoders mailing list
> >>[email protected]
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to