Code: Alles auswählen
on (release)
{getURL(_root.clickTAG, "_blank");}Code: Alles auswählen
on (release)
{getURL(_root.clickTAG, "_blank");}
You can use "Web > Image Map > Assign Command" to define a destination URL for the active layer.edurovs hat geschrieben:I've made some SWF banners with Photoline, but webpage administrators ask me to add some ActionScript code (clickTAG button with code) to my banners. Is there any way to add such ActionScript code in Photoline.Code: Alles auswählen
on (release) {getURL(_root.clickTAG, "_blank");}
It doesn't workMartin Huber hat geschrieben: You can use "Web > Image Map > Assign Command" to define a destination URL for the active layer.
If you have a dynamic animation (created with "Web > Dynamic Animation"), you can use the Animation Info dialog to define a destination URL, too.
Martin
Code: Alles auswählen
on (release) {
geturl ("_root.clickTAG", "_blank");
stop();
}
In PhotoLine you can only access direct URLs. Accessing variables doesn't work.edurovs hat geschrieben:It doesn't workPhotoline generates quotation marks in the code, see Photoline's generated example:
"_root.clickTAG" must be without quotation marks.Code: Alles auswählen
on (release) { geturl ("_root.clickTAG", "_blank"); stop(); }
Hope to see new features in this field in next Photoline versionsMartin Huber hat geschrieben: In PhotoLine you can only access direct URLs. Accessing variables doesn't work.
First of all, this isn't HTML but some script language. Anyway,greenmorpher hat geschrieben:I would be most grateful if someone could expand on this a little to explain the meaning of the HTML, including fixed versus variable, the significance of the quotation marks, and the outcomes of it all.![]()
Code: Alles auswählen
geturl ("_root.clickTAG", "_blank");
Code: Alles auswählen
geturl (_root.clickTAG, "_blank");
bkh hat geschrieben:First of all, this isn't HTML but some script language. Anyway,greenmorpher hat geschrieben:I would be most grateful if someone could expand on this a little to explain the meaning of the HTML, including fixed versus variable, the significance of the quotation marks, and the outcomes of it all.
tries to open the URL http://_root.clickTAG, whileCode: Alles auswählen
geturl ("_root.clickTAG", "_blank");looks up the URL stored in the variable _root.clickTAG and opens that URL.Code: Alles auswählen
geturl (_root.clickTAG, "_blank");
of course -- Java script presumably?
Right, got that -- many thanks, Burkhardt.bkh hat geschrieben:Compare it to making a phone call. The URL corresponds to the phone number, say, 1-834-261-891, and the variable might be the phone book entry "Peter" in your phone. The first approach would be to directly dial 1-834-261-891, while the second would be to choose "Peter" in the phone book and press "dial". "Peter" is much easier to remember, is shorter, less error-prone, and you don't have to change your procedure if the phone number happens to change.
As far as I can see, this value is passed to the swf object by the surrounding HTML code (which, in turn, might use a script to get it elsewhere).greenmorpher hat geschrieben:[Now presumably, something has to replace the stuff between the quotation marks. Yes? How is that determined? Or is that automatic when the banner is placed within a site's URL and the site is saved then uploaded to the host site?