Ho-hum,

this all worked yesterday, honest. but now it's just doing my
head in. Has anyone else had problems with 

sprite(whichFlashSprite).goToFrame(labelNameString)

I have the most incredibly simple animation, basically a small
panel which slides on or off stage. the sliding-on animation
has a label at the start "open", and the sliding-off animation
has a label "close". to get it to open I simply call

sprite(x).gotoFrame("open")

what could be simpler? but it don't work! I use the exact same
method elsewhere in my movie with a similarly constructed flash
animation and it's fine. It's one of those "am I going insane"
moments.

On a tangetial note, are there any signs that MM are ever going
to release a flash 5 xtra, it can't come soon enough for me.


>--- Original Message ---
>From: "jon rowe" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: 11/22/00 3:34:08 PM
>

>
>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!]
>
>
>
------
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!]

Reply via email to