Yes. Beer. See you then.

Peter


On 8/23/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
yeah, i think i agree with peter that the problem is then that you do not
extend movieclip. we can get semantic about this tonight, but only once we
have a beer in hand...

;)

On 8/23/06, Chris Allen <[EMAIL PROTECTED]> wrote:
>
> On 8/23/06, Peter Hall <[EMAIL PROTECTED]> wrote:
> > Perhaps you have a class associated with the symbol, which does not
> > extend MovieClip?
> >
> Well the instance of MovieClip, or whatever it is in this case, is a
> part of a class that doesn't extend MovieClip (MovieAsset). MovieAsset
> implemts and Asset interface and extends an AbstractAsset class that
> does much of the general leg work. The MovieAsset class has a method
> getResource() that returns an Object, in this particular case it's the
> MovieClip in question. So when accessing this MovieClip using this
> class you must call getResource() and cast it to MovieClip:
>
> var movie:MovieClip = MovieClip(asset.getResource());
> movie._visible = true;
>
> You can take a look at what we are working on here:
>
> 
http://svn1.cvsdude.com/osflash/fling/DEV_Source/classes/org/osflash/fling/util/assets/
>
> To replicate the problem you have to set
> MovieAsset.setHideWhenLoaded(true); then once the loadComplete event
> is triggered you try to set the MovieClip to visible:
> MovieClip(asset.getResource())._visible = true;
>
> You should then see that it doesn't work.
>
> Thanks for your help!
>
> -Chris
> _______________________________________________
> [email protected]
> 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
>



--
j:pn
http://www.lennel.org
_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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

Reply via email to