Not sure if anyone has responded yet -- my thread sorting is all screwed up.
You cannot delete or terminate an onClipEvent(enterFrame) unless you
delete the movieclp to which you have applied it, either by terminating
it's existence on the timeline with an empty keyframe, or by swapping it
to a "dynamic" depth (zero or above) and using removeMovieClip().
An onClipEvent(enterFrame) is not synonymous with an onEnterFrame() function.
--
Byron "Barn" Canfield
> well, the preloader does display load status, then simply repeats, instead
> of deleting itself, it just repeats the loading ... any ideas??? i just
> want
> the swf it loads to not play or start until it is fully loaded, and the
> label_txt is deleted etc ...
>
>
>
> onClipEvent(load) {
> this.loadMovie("en.swf");
> }
>
> onClipEvent(enterFrame) {
> tBytes = this.getBytesTotal();
> bLoaded = this.getBytesLoaded();
> percent = Math.round((bLoaded/tBytes)*100)
> if (bLoaded<tBytes) {
> _root.bar_mc._xscale = (bLoaded/tBytes)*100;
> if (percent < 10) {
> _root.label_txt.text = "0" + percent + "%";
> }
> else {
> _root.label_txt.text = percent + "%";
> }
> } else {
> _root.bar_mc.removeMovieClip();
> _root.label_txt.removeTextField();
> target_mc.play();
> delete _root.target_mc.onEnterFrame;
> }
> }
> _______________________________________________
> [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