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

Really need help on linking a swf file to a html page

New Here ,
Apr 11, 2012 Apr 11, 2012

Copy link to clipboard

Copied

My class is using AS3 and they built a Flash Intro for their web site.  However, we are not able to link the button in flash to our local html pages. Right now both the swf and the home.html page are located on my desktop in a folder titled - fishcom. 

TOPICS
ActionScript

Views

449

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 ,
Apr 11, 2012 Apr 11, 2012

Copy link to clipboard

Copied

To link to an html page (in a browser) you use the navigateToURL() function.

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
New Here ,
Apr 11, 2012 Apr 11, 2012

Copy link to clipboard

Copied

LATEST

Ned,

This is the code I have been using. However, it does not work.  What am I doing wrong?

var url:String='file:///C:\Documents and Settings\eringll311\Desktop\fishcom\home.html';

          var request:URLRequest = new URLRequest(url);

          navigateToURL(request,'_target');

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