|
-
[RESOLVED] help on creating website link
Hi everyone,
I use to make buttons to link to other pages of my site using getURL in Actionscript 2 how do I do it in Actionscript 3, here is my code and its not working. Any help would be very much appreciated. Thanks.
homeBtn.addEventListener(MouseEvent.CLICK, fncHome);
function fncHome(e:Event):void{
trace("home");
getURL("index.php");
}
Thanks,
Literain
-
trace("AKA: Biro Barna");
Try something like this:
PHP Code:
var urlTarget:URLRequest = new URLRequest("http://www.motors-san.com/");
btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void { navigateToURL(urlTarget, "_self"); }
btn si the instance name of your movie clip.

| Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro | WebLog: http://blog.wisebisoft.com/ |
| Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
| Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/ | By perseverance the snail reached the ark. |
-
thanks again.its working. More power to you.
Literain
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|