[ SM3117 ] - [ Class 12 ] - Flash

Class 12 - Image Tracking Workshop - Flash and Director

 

1

You can import a Flash (swf) movie into Director as a cast member.

 

2

Both Flash and Director can pass information between the two movies.

 

3

An example. You can type in the input text fields in both Flash and Director

 

4

In Flash MX, a getURL command can send information to Director. And in Director, we have written a function 'fromFlash' in a movie script to capture the information.

getURL("event:fromFlash" + ",\"" + input + "\"");

 

5

In Director MX, we use the setVariable command to modify the value of a variable in the Flash movie in sprite 1.

sprite(1).setVariable("output",member("input").text);