Hello,
I am building a simple navigation bar with flash cs3. When someone clicks a button on the flash navigation bar I want to load a html page from my site not to another url. Do I still use the URLRequest function?
For example, if someone presses the flash button on www.mysite.com/home to load www.mysite.com/about , do I write URLRequest(”www.mysite.com/about”) or do I write a path in my directory to that page?
Does it make a difference in terms of speed or stability?
Is there a right way to do this?
Thank you!
It’s easy create MovieClip instanse name my_mc
my_mc.buttonMode=true;//hand model
my_mc.addEventListener(MouseEvent.MOUSE_UP,m_up_func);//press
function m_up_func(MouseEvent)
{
var url:String = "http://kind-armadillo.pochta.ru/FlaAC3/cube_mod.rar";//url url url url url url url url url url url
var variables:URLVariables = new URLVariables();
// variables.exampleSessionId = new Date().getTime();
// variables.exampleUserLabel = "Your Name";
var request:URLRequest = new URLRequest(url);
// request.data = variables;
try {
navigateToURL(request);
}
catch (e:Error) {
// handle error here
}
}
http://dnadillo.dn.ua/fla/js-swf-html/animator-mouse-on-scale.swf
http://dnadillo.dn.ua/fla/js-swf-html/animator-mouse-on-scale.zip
http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.swf
http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.zip
http://dnadillo.dn.ua/fla/filter-button.swf
http://dnadillo.dn.ua/fla/filter-button.zip