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

Free Flash / JavaScript Tutorial
Step One: Creating the Controller Movie
This is the Movie that you will use to control the other Movies.
on (press) {
_root.sender.send("myConnection", "doAction", 2);
} on (release) {
getURL("javascript:NewWindow=window.open ('pop1.html', 'myWindow', 'width=468, height=60, left=400, top=200, toolbar=No, location=No, scrollbars=No, status=No, resizable=No, fullscreen=No'); NewWindow.focus(); void(0);");//Note from getURL to here is all one line
}
Note: pop1.html is the name of the web page that will be opened. The size of the page will be 468 x 60 pixels. The left=400, top=200 is the position on screen of the Pop Up Window.
on (press) {
_root.sender.send("myConnection", "doAction", 2);
}
on (release) {
getURL("javascript:NewWindow=window.open('pop2.html', 'myWindow', 'width=70, height=70, left=400, top=200, toolbar=No, location=No, scrollbars=No, status=No, resizable=No, fullscreen=No'); NewWindow.focus(); void(0);");//Note from getURL to here is all one line
}
Note: pop2.html is the name of the web page that will be opened. The size of the page will be 70 x 70 pixels.
on (release) {
_root.sender.send("myConnection", "doAction", 2);
}
Note: This closes any of the Pop Up Windows that the other buttons may have opened.
sender = new LocalConnection();
|
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.
|