Skip to main content
Participant
August 29, 2020
Question

Actionscript for animate buttons

  • August 29, 2020
  • 1 reply
  • 141 views

Hi all, I'm really new to this and am building some flash buttons for a website and I need help with my actionscript. I never want the website to go live, I'm just organising a portfolio through it.

 

Right now it says: 


var _this = this;

_this.home('click', function(){

window.open('file:///Users/gemmac****/Desktop/website/home.html', '_blank');
});

 

All works fine with on my desktop, but when I go to open it on my laptop, because the user that I log into is gecre0 the links on the buttons don't work (on my laptop the filepath would need to read ('file:///Users/gecre0/Desktop/website/home.html', '_blank');  . 

 

How can I change the file path so that it can be opened on any computer, regardless of what account is logged in?

 

Note: everything right now is saved within the same folder on my desktop.

This topic has been closed for replies.

1 reply

Legend
August 30, 2020

You know all major browers are dropping support for Flash at the end of this year, right?