X3 Photo Gallery Support Forums
I'm waiting in anticipationmjau-mjau wrote:Good question. Currently no, but maybe something I can add ..
[dutch]tekst[/dutch][english]text[/english]
Great!mjau-mjau wrote:Don't worry, we thought about this. In the admin labels and the html version, it will simply use the FIRST language item defined.
Hi Artur,philip100 wrote:If I understand correctly, I don't need duplicate the "content" folder to make my site multilingual?
Hi Philip,philip100 wrote:Now works fine
Yes, but still some issues there, and I can't figure out what is wrong. When You access my site using link: http://phillip.com.pl, then works fine, but problem is when you access with the "www": http://www.phillip.com.pl.mabro wrote:(...)It's great to see you new creative changes!(...)
It's simple .swf file. Just big black square and few buttons . I setup this as third background with "TR" alignment.mabro wrote:(...)I really like the light-switch(...)
stop();
getURL("javascript:window.document.myMovieSwf.SetVariable(
'pageURL', document.location.href);");
intID = setInterval(this, "check_url", 250);
function check_url() {
if (pageURL == undefined) return;
clearInterval(intID); // Be sure to stop this when we've got an answer
theArgs = pageURL.split("?")[1]; // get second part of URL
if (theArgs.length > 0) {
// do whatever you want with the args
}
}
Maybe not the most elegant code, but did you try it? Looks like theArgs should return everything after the ?. Problem is, there is not necessarily a ? in Imagevue URLs at all. The question is, does it read what comes after the # char, because that is what actually changes per image/folder. Even if you find out that it does, you are going to have to parse this data and search for changes, or if it is an image or folder etc. Not sure it is a path you want to walk down ...philip100 wrote:If we speak about .swf modules, I would like to know one thing- it's possible that my .swf files (embedded into imagevue app) can read actual document url?
I found script:What I trying to do, is turning on/off light (blackSquare._alpha), depending on the current url (light is off automatically when somebody watching photos). But I don't know how can I make this code to work - I'm not javascript coder at all, and only a bit AS2 coder .Codestop(); getURL("javascript:window.document.myMovieSwf.SetVariable( 'pageURL', document.location.href);"); intID = setInterval(this, "check_url", 250); function check_url() { if (pageURL == undefined) return; clearInterval(intID); // Be sure to stop this when we've got an answer theArgs = pageURL.split("?")[1]; // get second part of URL if (theArgs.length > 0) { // do whatever you want with the args } }
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, yourFunctionName);
function yourFunctionName(e:SWFAddressEvent) { ... }
Thank You. You directed me in the right waymjau-mjau wrote:(...)Even better would be to hook into the SWFAddress system itself.(...)
import SWFAddressEvent;
import com.asual.swfaddress.SWFAddress;
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, light_OFF);
function light_OFF(e:SWFAddressEvent) {
SWFAddress.text = SWFAddress.getValue();
if (SWFAddress.text.indexOf(".jpg") == -1){
var myTween:Tween = new Tween(black_square, "_alpha", Strong.easeOut, black_square._alpha, 0, 1, true);
} else{
var myTween:Tween = new Tween(black_square, "_alpha", Strong.easeOut, black_square._alpha, 80, 1, true);
}
}
EN_btn.onRelease = function () {
SWFAddress.text = SWFAddress.getValue();
output.text = "ready"
getURL ("http://phillip.com.pl/?language=english#" + SWFAddress.text, "_self");
}
It is really great to see the light turning off when viewing an image!philip100 wrote:Added also little future - when language button is pressed, then redirecting to current address with other language.