SWF ActionScripts in Photoline

Here everybody can post his problems with PhotoLine
edurovs
Mitglied
Beiträge: 3
Registriert: Do 19 Apr 2012 12:15

SWF ActionScripts in Photoline

Beitrag von edurovs »

I've made some SWF banners with Photoline, but webpage administrators ask me to add some ActionScript code (clickTAG button with code

Code: Alles auswählen

on (release)
{getURL(_root.clickTAG, "_blank");}
) to my banners. Is there any way to add such ActionScript code in Photoline.
Martin Huber
Entwickler
Entwickler
Beiträge: 4298
Registriert: Di 19 Nov 2002 15:49

Re: SWF ActionScripts in Photoline

Beitrag von Martin Huber »

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

Code: Alles auswählen

on (release)
{getURL(_root.clickTAG, "_blank");}
) to my banners. Is there any way to add such ActionScript code in Photoline.
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
edurovs
Mitglied
Beiträge: 3
Registriert: Do 19 Apr 2012 12:15

Re: SWF ActionScripts in Photoline

Beitrag von edurovs »

Martin 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
It doesn't work :( Photoline generates quotation marks in the code, see Photoline's generated example:

Code: Alles auswählen

on (release) {
    geturl ("_root.clickTAG", "_blank");
    stop();
}
"_root.clickTAG" must be without quotation marks.
Martin Huber
Entwickler
Entwickler
Beiträge: 4298
Registriert: Di 19 Nov 2002 15:49

Re: SWF ActionScripts in Photoline

Beitrag von Martin Huber »

edurovs hat geschrieben:It doesn't work :( Photoline generates quotation marks in the code, see Photoline's generated example:

Code: Alles auswählen

on (release) {
    geturl ("_root.clickTAG", "_blank");
    stop();
}
"_root.clickTAG" must be without quotation marks.
In PhotoLine you can only access direct URLs. Accessing variables doesn't work.

Martin
Benutzeravatar
greenmorpher
Mitglied
Beiträge: 943
Registriert: Di 29 Mai 2007 14:42
Wohnort: Rabaul, Papua New Guinea

Re: SWF ActionScripts in Photoline

Beitrag von greenmorpher »

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. :?

tnanks in anticipation of elucidation! :D

Cheers, geoff

Geoffrey Heard
The Ad-Doctor-Online
http://www.ad-doctor-online.com
edurovs
Mitglied
Beiträge: 3
Registriert: Do 19 Apr 2012 12:15

Re: SWF ActionScripts in Photoline

Beitrag von edurovs »

Martin Huber hat geschrieben: In PhotoLine you can only access direct URLs. Accessing variables doesn't work.
Hope to see new features in this field in next Photoline versions :D
God bless you guys!
bkh
Beta Tester
Beiträge: 3687
Registriert: Do 26 Nov 2009 22:59

Re: SWF ActionScripts in Photoline

Beitrag von bkh »

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. :?
First of all, this isn't HTML but some script language. Anyway,

Code: Alles auswählen

    geturl ("_root.clickTAG", "_blank");
tries to open the URL http://_root.clickTAG, while

Code: Alles auswählen

    geturl (_root.clickTAG, "_blank");
looks up the URL stored in the variable _root.clickTAG and opens that URL.

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.

Cheers

Burkhard.
Benutzeravatar
greenmorpher
Mitglied
Beiträge: 943
Registriert: Di 29 Mai 2007 14:42
Wohnort: Rabaul, Papua New Guinea

Re: SWF ActionScripts in Photoline

Beitrag von greenmorpher »

bkh hat geschrieben:
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. :?
First of all, this isn't HTML but some script language. Anyway,

Code: Alles auswählen

    geturl ("_root.clickTAG", "_blank");
tries to open the URL http://_root.clickTAG, while

Code: Alles auswählen

    geturl (_root.clickTAG, "_blank");
looks up the URL stored in the variable _root.clickTAG and opens that URL.
of course -- Java script presumably?
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.
Right, got that -- many thanks, Burkhardt.

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?

Cheers, geoff
bkh
Beta Tester
Beiträge: 3687
Registriert: Do 26 Nov 2009 22:59

Re: SWF ActionScripts in Photoline

Beitrag von bkh »

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?
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).

Cheers

Burkhard.
Benutzeravatar
greenmorpher
Mitglied
Beiträge: 943
Registriert: Di 29 Mai 2007 14:42
Wohnort: Rabaul, Papua New Guinea

Re: SWF ActionScripts in Photoline

Beitrag von greenmorpher »

Many thanks, Burkhardt. :D

Cheers, geoff