|
||||||
|
||||||
Flash Tutorial - Communication between Flash Movies: Part 1

Free Flash Tutorial
Step One: Creating the Controller Movie
This is the Movie that you will use to control the other Movies.

on (release) {
_root.mySender.send("myConnections", "myAction", 2);
}
on (release) {
_root.mySender.send("myConnections", "myAction", 1);
}
Note: The only difference between the two bits of code is the number at the end of the second line. In one case it is a number: 1 and in the other it is a number: 2
The code above sends the number to a function in the other Movie. The number you send, will determine what the function will do. In this case either Play or Stop. It is possible to have additional buttons with additional numbers. Each individual command or set of 'Actions' would need its own unique number.
mySender = new LocalConnection();
Note: This sets up the variable: mySender
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|