View Full Version : how can i do about goto frame with jsfl
HBB Alfred
03-31-2005, 02:29 AM
i can gotoAndStop or nextFrame or prevFrame in swf with as
but i cannt do that with jsfl?
MichaelxxOA
03-31-2005, 08:19 AM
if you can do it in as why are you trying to do it in jsfl? just kidding anyway I think you should be more specific as to the problem that you are having.
-Michael
HBB Alfred
03-31-2005, 08:51 AM
yes
actually, i want to mask a command which can go to custom frames in flash ide.
it is because of a lot of frames in my flash and it's too hard when i find a frame
i know use ">" or "<" keybroad shortcut can nextframe and prevframe,but may not go to frame~
hbb
hangalot
03-31-2005, 09:15 AM
in the hierachy of timeline-> layers -> frames , frames is an array.
then on the timeline object there is a property called currentframe this is how help describes it:
timeline.currentFrame
Availability
Flash MX 2004.
Usage
timeline.currentFrame
Description
Property; the zero-based index for the frame at the current playhead location.
Example
The following example sets the playhead of the current Timeline to Frame 10 (remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().currentFrame = 9;
The following example stores the value of the current playhead location in the curFrame variable:
var curFrame = fl.getDocumentDOM().getTimeline().currentFrame;
HBB Alfred
03-31-2005, 09:29 AM
hello,hangalot
i know how to get current frame count
so far i used fl.getDocumentDOM().getTimeline().setSelectedFrame s() to go to frame which is i want to go
i dont know is this a nice way but i donnt found out other ways
thanks for your reply
any else?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.