Use getURL("event: flashNav \"markerName\"");
on the flash sprite
on flashNav me, wMarker
global nMarker
nMarker = wMarker
end
on the frame script
on exitFrame me
global nMarker
if nMarker <> 0 then go frame nMarker
go the frame
end
I just had this exact problem with Director leaving
Flash on the stage, and that is the best fix I could
find for that problem.
Some of the syntax might not be correct in the Flash
actionscript, but if you use Flash to do it, it will be.
HTH,
Steven
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Colin Holgate
> Sent: Tuesday, November 07, 2000 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> Flash animation in director 7 ?
>
>
> >i.e i have an animation flash with 4 bouton import in director and i
> >want to move the director head to a specific marker in the director
> >movie ?
>
> The usual solution is to use GetURL from the Flash movie. For
> historical reasons (it would crash Director 7), I would put the place
> you want to jump to into a variable, rather than jump there right
> away, because if you go from a frame where the flash sprite exists to
> one where it doesn't, D7 would crash.
>
> Anyway, in your Flash movie, use a GetURL that has a parameter which
> is the name of the marker in Director. Flash would send this:
>
> GetURL "the marker you want to go to"
>
>
> In Director you have a movie script like this:
>
>
> global somemarker
>
> on enterframe
> if somemarker <> "" then
> go somemarker
> set somemarker = ""
> end if
> end
>
> on geturl where
> set somemarker = where
> end
>
>
>
> Then when the user clicks on the button in Flash, Director traps the
> URL and puts it into the somemarker variable. The next enterframe (or
> exitframe if you prefer) would see the change, jump to the marker,
> and reset the variable.
>
>
> [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!]
>
>
[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!]