Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

asfunction in textlinks

26 Nov 2008, 02:39

Some users may be interested in the fact that you can access core gallery functions in text-links from your titles, descriptions and textpages. For example, you may want to create a link "Click here to go full screen!" in a textpage or on your photoblinds startpage ... Or you may want to add your own links on certain images for opening them in popup windows. There are many possibilities.

There are several options, and they can be added like this:
Code
<a href="asfunction:_root.nextfunc">goto next image/page</a>
<a href="asfunction:_root.previousfunc">Goto previous image/page</a>
<a href="asfunction:_root.popupfunc">Open image in popup</a>
<a href="asfunction:_root.windowfunc">Open image in new window</a>
<a href="asfunction:_root.downloadfunc">Download image</a>
<a href="asfunction:_root.zoominfunc">Zoom in(image)</a>
<a href="asfunction:_root.zoomoutfunc">Zoom out(image)</a>
<a href="asfunction:_root.togglethumbnailsfunc">Toggle thumbnails</a>
<a href="asfunction:_root.toggleplayfunc">Toggle slideshow play</a>
<a href="asfunction:_root.sendlinkfunc">Send image link</a>
<a href="asfunction:_root.copylocationfunc">Copy image location</a>
<a href="asfunction:_root.togglesfxfunc">Toggle sound FX</a>
<a href="asfunction:_root.togglefullscreenfunc">Toggle full-screen</a>
<a href="asfunction:_root.contactfunc">Contact</a>
More info on the asfunction, from Adobe:
http://kb.adobe.com/selfservice/viewCon ... d=tn_15639
 
nav786_te
Posts: 10
Joined: 08 Nov 2011, 10:02

Re: asfunction in textlinks

26 Nov 2011, 20:50

mjau-mjau wrote:Some users may be interested in the fact that you can access core gallery functions in text-links from your titles, descriptions and textpages. For example, you may want to create a link "Click here to go full screen!" in a textpage or on your photoblinds startpage ... Or you may want to add your own links on certain images for opening them in popup windows. There are many possibilities.

There are several options, and they can be added like this:
Code
<a href="asfunction:_root.nextfunc">goto next image/page</a>
<a href="asfunction:_root.previousfunc">Goto previous image/page</a>
<a href="asfunction:_root.popupfunc">Open image in popup</a>
<a href="asfunction:_root.windowfunc">Open image in new window</a>
<a href="asfunction:_root.downloadfunc">Download image</a>
<a href="asfunction:_root.zoominfunc">Zoom in(image)</a>
<a href="asfunction:_root.zoomoutfunc">Zoom out(image)</a>
<a href="asfunction:_root.togglethumbnailsfunc">Toggle thumbnails</a>
<a href="asfunction:_root.toggleplayfunc">Toggle slideshow play</a>
<a href="asfunction:_root.sendlinkfunc">Send image link</a>
<a href="asfunction:_root.copylocationfunc">Copy image location</a>
<a href="asfunction:_root.togglesfxfunc">Toggle sound FX</a>
<a href="asfunction:_root.togglefullscreenfunc">Toggle full-screen</a>
<a href="asfunction:_root.contactfunc">Contact</a>
More info on the asfunction, from Adobe:
http://kb.adobe.com/selfservice/viewCon ... d=tn_15639

Hi I want to disable music for certain folder. can I do this with folder parameter like this
audioplayer.enable=true
or
audioplayer.enable=false
I tried this, but audio player enabled OK but when I select other folder for which I disabled audio, its not working and keep loading mp3 from that folder.
is there any way to dynamically do this with parameters or some other way.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: asfunction in textlinks

28 Nov 2011, 02:33

Unfortunately, the audioplayer is a separate module that uses global values unrelated to the gallery folders. You cannot activate it from folder parameters ...

However, you could work around this by setting audioplayer -> "use_imagefolder" to true, and then simply only adding mp3 files to the folders where you want music to play. This will only work if you have mp3 files for each folder where you want music though, and will not allow you to have a "default" mp3 file, as the default mp3 folder must be empty to make sure folders where you dont want music, doesnt play music.
 
nav786_te
Posts: 10
Joined: 08 Nov 2011, 10:02

Re: asfunction in textlinks

29 Nov 2011, 05:14

mjau-mjau wrote: However, you could work around this by setting audioplayer -> "use_imagefolder" to true, and then simply only adding mp3 files to the folders where you want music to play. This will only work if you have mp3 files for each folder where you want music though, and will not allow you to have a "default" mp3 file, as the default mp3 folder must be empty to make sure folders where you dont want music, doesnt play music.
I have done this but when you select the other folder where you don't have mp3 it wont stop playing or it keep loading as seem to be looking for mp3 files. It should stop and should not try to keep loading files if there is nothing.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: asfunction in textlinks

29 Nov 2011, 23:12

Sorry, you might be right about this ... You may need to always use a default mp3 file in the default audiofolder ...
 
nav786_te
Posts: 10
Joined: 08 Nov 2011, 10:02

Re: asfunction in textlinks

30 Nov 2011, 03:34

mjau-mjau wrote:Sorry, you might be right about this ... You may need to always use a default mp3 file in the default audiofolder ...
Kindly update flash for this.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: asfunction in textlinks

30 Nov 2011, 22:22

I will look into it for next major release ...
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: asfunction in textlinks

10 Dec 2011, 12:53

For PowerPack users :P :
Code
<a href="asfunction:_root.shownews">News on Site</a>