|
-
Thank you.
I thought i had it, but this doesn't seem to do anything, but compiles w/o errors.
import flash.net.LocalConnection;
import flash.external.ExternalInterface;
// create a new LocalConnection instance used to listen
// for calls from a LocalConnection instance from another movie
var incoming_lc:LocalConnection = new LocalConnection();
var componentLevel2 = "componentLevel2";
// create a local connection listening to a connection
// with the name "lc_example"
incoming_lc.connect("lc_component1");
// define an method which will be called when a message
// is sent from a LocalConnection instance from another movie
function playBenefitsText():void {
trace("Component 1 should received GREEN BENEFITS data");
gotoAndStop(11);
ExternalInterface.call("toggleLayer", componentLevel2);
}
function playLEEDText():void {
trace("Component 1 should received LEED data");
gotoAndStop(21);
}
function playStrategiesText():void {
trace("Component 1 should received LEED data");
gotoAndStop(35);
}
// set the client reference of the LocalConnection instance
// to the object containing the method needing to be called
incoming_lc.client = this;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|