Hi Alessandra
First have a look at director's online help dictionary under
'flash' which gives all the flash related lingo commands. The
one you're looking for is 'gotoFrame' which has the syntax:
sprite(whichFlashSprite).goToFrame(frameNumber)
or
goToFrame(sprite whichFlashSprite, frameNumber)
or
sprite(whichFlashSprite).goToFrame(labelNameString)
or
goToFrame(sprite whichFlashSprite, labelNameString)
This is fine if you're trying only to control the main flash
timeline. If you want to control nested movieclips you have to
be a bit more tricky. The basic idea is to set a variable within
your flash movie that is checked in a 2 frame loop (i.e. the
playback head loops over 2 frames, the first frame has a script
which checks the value of the variable, the 2nd frame has a script
which sends the playback head to back to the first frame)
Then in director you write a script which sets the variable within
the flash movie using the setVariable() command, syntax:
setVariable(sprite flashSpriteNum, "variableName", newValue)
or in dot syntax:
e.g. sprite(spriteNum).setVariable("currentFrame","close")
the checking script in flash then has a conditional statement
which sends the playback head of the nested movie to the desired
frame, something like:
if (currentFrame ne "static") {
tellTarget("/myNestedClip") {
gotoAndPlay(/:currentFrame);
}
}
There a couple of articles about this at www.director-online.com,
do a search for 'Flash'
HTH
Jon
>--- Original Message ---
>From: "apellicciari"<[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: 11/21/00 7:23:34 PM
>
>Hi all
>
>Is it possible to controll the position
>of the flash movie? For example, when
>clicking in one button into director,
>this action would tell the flash movie
>to go to a certain keyframe(inside this
>flash movie) and play.
>
>thanks in advance
>
>Alessandra
------
Geek.com WebBox - http://www.geek.com
A free service provided by WebBox - http://webbox.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]