all groups > flash actionscript > april 2006 >
You're in the

flash actionscript

group:

Re: geturl 2 frame, how do i write the actionscript?



Re: geturl 2 frame, how do i write the actionscript? hsheffer
4/9/2006 9:55:33 PM
flash actionscript: exactly!
I mean to make a link to swf file (in html file), but to get in and start in second frame, skip the first one.
any idea?
thanks
Re: geturl 2 frame, how do i write the actionscript? adrianTNT
4/9/2006 11:31:51 PM
You mean something like this?

http://adriantnt.com/temp/frame_to_go/frame_to_go.swf?frame_to_go=2


http://adriantnt.com/temp/frame_to_go/frame_to_go.fla

You can send the frame number by URL parameter (frame_to_go).
[quoted text, click to view]

stop();
if (frame_to_go != undefined) {
gotoAndPlay(frame_to_go);
}

This way it jumps directly to given frame, when movie loops it always jumps
the first frame, if you like it to jump few frames only once then use:

if (frame_to_go != undefined) {
gotoAndPlay(frame_to_go);
frame_to_go=undefined
}

AddThis Social Bookmark Button