Skip to main content
Participant
April 28, 2009
Question

Links in my heading with AS2

  • April 28, 2009
  • 1 reply
  • 407 views

Hi,

I am somewhat new to flash.

i am creating links in my flash Header. they are working in Flash preview, but when i am publishing them to HTML they are not working!

here is the code i am using

on (rollOver) {
    gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
}
on (release) {
    if(_root.url6==""||_root.url6==undefined){
        getURL("javascript:alert('NO URL6!')")
        }
        else{
            getURL(_root.url6,"_self")
            }
}

The Urls are in a sperate text file loaded at the first fram of my heading

this.loadVariables("_urls.txt")
Stage.showMenu=false;
stop();

anyone know what my problem might be?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 28, 2009

the path to the text file is relative to the html file's location when you loaded an embedded swf.