RE: [Flashcoders] onFrameReached {do something}

2006-12-04 Thread Steven Sacks | BLITZ
afaik there's no such thing. Not for long! Woot! :) http://www.flashguru.co.uk/undocumented-actionscript-3/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] onFrameReached {do something}

2006-12-04 Thread T. Michael Keesey
On 12/4/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: afaik there's no such thing. Not for long! Woot! :) http://www.flashguru.co.uk/undocumented-actionscript-3/ Nice! Why on Earth don't they document these things? -- T. Michael Keesey ___

Re: [Flashcoders] onFrameReached {do something}

2006-12-03 Thread Wendy Richardson
: Sun, 3 Dec 2006 01:28:24 +0200 From: Yehia Shouman [EMAIL PROTECTED] Subject: Re: [Flashcoders] onFrameReached {do something} To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed function

Re: [Flashcoders] onFrameReached {do something}

2006-12-02 Thread Seb L
why can't you just use this on the first frame : this.onEnterFrame = function(){ if(this._currentframe==30){ // do something } } cheers! Seb Lee-Delisle www.sebleedelisle.com On 02/12/06, Ray Chuan [EMAIL PROTECTED] wrote: Hi, afaik there's no such thing. If you want to, in

Re: [Flashcoders] onFrameReached {do something}

2006-12-02 Thread Yehia Shouman
function fireEventOnFrame(frameNumber:Number){ //backup older enterframe handler var oldEnterFrame=(this.onEnterFrame==undefined|this.onEnterFrame==null)? this.onEnterFrame : null; this.onEnterFrame = function(){ oldEnterFrame(); if(this._currentframe==30){ //

Re: [Flashcoders] onFrameReached {do something}

2006-12-02 Thread Yehia Shouman
this is better to ensure you're not overriding an old handler and also to delete it after its purpose is no longer needed function fireEventOnFrame(frameNumber:Number){ //backup older enterframe handler var oldEnterFrame=(this.onEnterFrame==undefined|this.onEnterFrame==null)?

Re: [Flashcoders] onFrameReached {do something}

2006-12-01 Thread Ray Chuan
Hi, afaik there's no such thing. If you want to, in the frame that you are looking for you can put a dispatch call, eg at frame 30: trace(frame reached); broadcaster.dispatch({type: onFrameReached}); I made that up, there's no event by the name onFrameReached. Even if you do that or use

[Flashcoders] onFrameReached {do something}

2006-11-30 Thread Wendy Richardson
Hi All, I'm looking for some suggestions for the best way to know when a certain frame has been reached or plays. Barring checking for that frame-by-frame on each onEnterFrame, is there a way to listen for a swf reaching or playing a certain frame? Some event to listen for? Code will be