the _root of some evil [buttons]
Thing is that it differs from for buttons to movie clips.
So the FM guide was following closely the Adobe one and using a button with the sample code:
on( release ){
if (clickTAG.substr(0,5) == "http:") {
getURL( clickTAG, "_blank" );
}
}
And my beloved mantra of not using buttons unless in a life threatening situation bit me mercilessly because when using the above code on a movie clip we need to put _root explicitly when referencing the clickTAG property as in:
on( release ){
if (_root.clickTAG.substr(0,5) == "http:") {
getURL( _root.clickTAG, "_blank" );
}
}
Well it's things like these that give the adrenaline rush in a flasher's flashy day. No doubt about it :D
0 Comments:
Post a Comment
<< Home