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:
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
___
: 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
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
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){
//
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)?
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
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
8 matches
Mail list logo