views:

27

answers:

1

hi. what possibly i am doing wrong or what i can do with this code that help me to render requested page in same window instead of new one every time i hit button which i have created using actionscript 3.0 . code is

import flash.events.MouseEvent;

var get_page:URLRequest = new URLRequest("C:/Documents and Settings/Administrator/Desktop/lifeline/healthtips.html");

tips_btn.addEventListener(MouseEvent.CLICK,tipsClick);

function tipsClick(event:MouseEvent):void{
navigateToURL(get_page);

 }
+2  A: 

Use: navigateToURL(get_page, "_self")

See: http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/package.html

John Drummond