Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

varsis

macrumors regular
Original poster
Nov 30, 2005
209
1
Hi,

I have a flash script using, several things, I didn't make it nor do I know how I would do something like this:
http://www.bram.us/projects/flashlightboxinjector/

Bellow is what the thing uses to add a link. but not sure how to make it work
if (mc._name.indexOf("reflection") == -1) {
mc.onPress = function():Void {
if ((getTimer()-this.pressTime<=doubleClickRegister && this.pressTime) || !doubleClickURL) {
if (infostruc[this.cid].urlToGet) {
getURL(infostruc[this.cid].urlToGet, "_"+infostruc[this.cid].urlAction);
}
}
this.pressTime = getTimer();
current = this.cid+1;
updateInfo();
};

Currently I have that setup to link to an outside link, when clicking on an image, but I would like it to load the large image in light box.

you can use any of these variables:
auth, album, httpType, urlToGet, urlAction

Can anyone help me add this into my flash app?

I tried doing: but no go.


if (mc._name.indexOf("reflection") == -1) {
ExternalInterface.call("myFlashLightBoxInjector.reset");
ExternalInterface.call("myFlashLightBoxInjector.appendElement", infostruc[this.cid].httpType + infostruc[this.cid].art + "", photoArray.auth + "", "photoFrame" + infostruc[this.cid].art + "", "mySetOfImages");
mc.onPress = function():Void {
if ((getTimer()-this.pressTime<=doubleClickRegister && this.pressTime) || !doubleClickURL) {
if (infostruc[this.cid].urlToGet) {
ExternalInterface.call("myFlashLightBoxInjector.start",infostruc[this.cid].httpType + infostruc[this.cid].art + "");

}
}

ExternalInterface.call("myFlashLightBoxInjector.updateImageList");
this.pressTime = getTimer();
current = this.cid+1;
updateInfo();
};
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.