Highlighted

AC3 buttons in SWF loading content into iFrame. Works in Device preview in DW (19) but not as a native file.

Community Beginner ,
Mar 05, 2019

Copy link to clipboard

Copied

Sorry about the title.

I have a SWF with a couple of buttons with this code:

hot1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage(event:MouseEvent):void

{

  navigateToURL(new URLRequest("a1text.html") , "docFrame");

}

in DW I have:

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>Processes</title>

  <link rel="stylesheet" href="styles.css">

</head>

<body>

  <header>

      <a class="site-logo">

          <img class="logo" src="images/logoLines.png" alt="GRS Logo">

         </a>

   <nav class="site-nav">

  <ul>

  <li><a href="#">home</a></li>

  <li><a href="#">services</a></li>

  <li><a href="#">clients</a></li>

  <li><a href="#">news</a></li>

  <li><a href="#">offices</a></li>

  </ul>

  </nav>

  </header>

     <main>

      <section class="intro">

        <iframe src="swf/ipmsTest.swf" align="middle" width="960" height="640" frameborder="0"> </iframe>

     </section>

     <iframe src="pages/placeHolder.html" name="docFrame" width="100%" ></iframe>

     <p align="center">footer (c) 2019</p>

     </main>

  </body>

</html>

When I preview in DW it works as expected, loading a1text into docFrame when I press the button. But when I open index.html from outside DW (Finder), a1text doesn't load.

Any suggestions?

m

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

Flash is dead.

Adobe Flash Will Finally Die Off in 2020 | WIRED

Current Flash projects should be converted to HTML5 Canvas documents.

Create HTML5 Canvas documents in Animate CC .

Views

101

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

AC3 buttons in SWF loading content into iFrame. Works in Device preview in DW (19) but not as a native file.

Community Beginner ,
Mar 05, 2019

Copy link to clipboard

Copied

Sorry about the title.

I have a SWF with a couple of buttons with this code:

hot1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage(event:MouseEvent):void

{

  navigateToURL(new URLRequest("a1text.html") , "docFrame");

}

in DW I have:

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>Processes</title>

  <link rel="stylesheet" href="styles.css">

</head>

<body>

  <header>

      <a class="site-logo">

          <img class="logo" src="images/logoLines.png" alt="GRS Logo">

         </a>

   <nav class="site-nav">

  <ul>

  <li><a href="#">home</a></li>

  <li><a href="#">services</a></li>

  <li><a href="#">clients</a></li>

  <li><a href="#">news</a></li>

  <li><a href="#">offices</a></li>

  </ul>

  </nav>

  </header>

     <main>

      <section class="intro">

        <iframe src="swf/ipmsTest.swf" align="middle" width="960" height="640" frameborder="0"> </iframe>

     </section>

     <iframe src="pages/placeHolder.html" name="docFrame" width="100%" ></iframe>

     <p align="center">footer (c) 2019</p>

     </main>

  </body>

</html>

When I preview in DW it works as expected, loading a1text into docFrame when I press the button. But when I open index.html from outside DW (Finder), a1text doesn't load.

Any suggestions?

m

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

Flash is dead.

Adobe Flash Will Finally Die Off in 2020 | WIRED

Current Flash projects should be converted to HTML5 Canvas documents.

Create HTML5 Canvas documents in Animate CC .

Views

102

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
Mar 05, 2019 0
Adobe Community Professional ,
Mar 05, 2019

Copy link to clipboard

Copied

Flash is dead.

Adobe Flash Will Finally Die Off in 2020 | WIRED

Current Flash projects should be converted to HTML5 Canvas documents.

Create HTML5 Canvas documents in Animate CC .

Nancy O'Shea, ACP
Alt-Web.com

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...
Mar 05, 2019 1