try using "totalFrames" instead of "totalFrame"
Rob
On Fri, Oct 24, 2008 at 4:34 PM, mindmidday <[EMAIL PROTECTED]> wrote:
>
> I have an swf file and embeded into a plane like this
>
> swf = new swfMaterial() as MovieClip;
> var animeM:MovieMaterial = new MovieMaterial(swf)
> plane.material = animeM
>
> The plane can play movie clip but I want to detect end of movie
> I try to
>
> if(swf.currentFrame >= swf.totalFrame){
> do something
> }
>
> but didn't work
>
> How I can detect the end of the Movie Clip
>
> Thank you
>
>
--
Rob Bateman
Flash Development & Consultancy
[EMAIL PROTECTED]
www.infiniteturtles.co.uk
www.away3d.com