Highlighted

Actionscript for animate buttons

New Here ,
Aug 29, 2020

Copy link to clipboard

Copied

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.

TOPICS
ActionScript, How to

Views

20

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Actionscript for animate buttons

New Here ,
Aug 29, 2020

Copy link to clipboard

Copied

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.

TOPICS
ActionScript, How to

Views

21

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 29, 2020 0
ClayUUID LATEST
Adobe Community Professional ,
Aug 29, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 29, 2020 0