Yet another Director problem Senocular

How do I get my flash movies that I import into Director to manipulate the director timeline? For example, when I click a flash button, it makes the director playhead move.

Thank you,

–EP

There are 3 basic ways to send actions to director from flash. All involve the use of getURL and are very similar to the way you use getURL to call javascript (same principle).

[size=3]method 1[/size]

getURL(“event: myLingoHandler”);
calls a handler you defined in director. When the above code is run, getURL sends the message to its host program, that being Director and tells it to run the event (handler) with the given name. This allows minimal programming in Flash letting you control all actions needed for that event within a handler in Director.

[size=3]method 2[/size]

getURL(“lingo: go to the frame + 1”);
Similar to the event example, only in this case, with the lingo: command, it tells Director to execute the included lingo code. This gives you a little more control in Flash if you feel like you want to do most of the programming there and minimize whats being done in Director.

[size=3]method 3[/size]

getURL(“string argument”);
If event: or lingo: is NOT specified, then getURL can be used solely as an event initiator that will envoke the getURL handler in Director. The paramater in Flash’s getURL will then be sent to Directors getURL handler as a string. Ex:


// flash
getURL("hello erf!");


[color="red"]-- Director[/color]
[color="blue"]on[/color] getURL [color="blue"]me[/color], str
  [color="blue"]put[/color] str [color="red"]-- displays "hello ref!" in the message window[/color]
[color="blue"]end[/color]

… I typically stick to event. If there’s a reason Im using Flash with Director, its for what Director can do and Flash cant so chances are the bulk of the work will be done in Director. Because of that, its nice to keep the Flash side of things basic and just evoke handlers defined in Director from Flash meaning less work in Flash itself leaving me just to deal with Director
:slight_smile:

Senocular, thank you so much. Lifesaver…

—EP