Flash Actionscript issue: I have a flash menu, with a series of links dynamically assigned using
They work fine in flashplayer 7, but not at all in flashplayer 6. [a lot m.i.]
It is a modular menu maker, in which each menu topic is loaded like so:
onClipEvent (load) {
var title = "CULTURA GRÁFICA ";
var items = new Array("Reseña Histórica ", "La imprenta en Chile y América Latina ", "¿Cómo nace un impreso?", "Nuevas tecnologías", "Diccionario Morgan", "Colaboración Permanente");
_root.populate(this, title, items);
}
where 'title' is the section text and each element of 'items' is a sub-section. and the 'populate' funtion includes the following:
item.link = title.split(" ")[0]+i+".htm";
item.onRelease = function(link) {getURL(this.link);};
which creates a URL of the form title0.htm, title1.htm, etc.
In the
test file, mouse over "Acerca de Morgan" and click on "Resena" or "Ubicacion / Contactenos". They should both open a different page.
This works alright in Flashplayer 7, not at all in 6. I assume there's some issue with getURL, but have not been able to figure out why or how to fix it. Posted on various newsgropus, support sites, searched google, etc., to no avail.
The source is
here. Code
here, with the getURL part marked.
posted by banished at 5:11 PM on March 17, 2004