• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Actionscript for animate buttons

New Here ,
Aug 29, 2020 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

91

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
community guidelines
LEGEND ,
Aug 29, 2020 Aug 29, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines