This content has been marked as final. Show 6 replies
what to return?
It doesn't really matter ... I have another function that moves on to the next line once this function has completed (when it returns) - I know the return is set to :Void, but the main question remains ... how do I STOP the return of this function until the loadClip has completed?
delete loadPic(); or delete loadPic;
don't remember really.
I dont think that'll work, I dont need to delete it, I just need to delay it until loadClip has completed.
well you could do it by churning up CPU cycles , but it doesn't make much sense to do that.
What do you want to have happen after its finished? If its more code on the same frame then bundle that inside a function (so it doesn't get executed now because it hasn't been called) and call it after the load - where you have : trace("finished loading");
I think I solved it ... because the function was completing before the onLoadInit was able to fire. SO I moved all the MovieClipLoader and Listener stuff outside of the function, and then just called the .loadClip from within the function.
That seems to work! :) Thx for replying.