Author Topic: External Link Issue  (Read 440 times)

SportEvent

  • Newbie
  • *
  • Posts: 4
External Link Issue
« on: September 01, 2010, 04:53:57 pm »
Hi.

I am new to Megazine and must say that I think it is a great product.
I added the following code to test:

Code: [Select]
<page>
   <img src="Issue1/page2.jpg"/>
      <nav align="center" color="#423e21" hover="#5e5934">
         <lnk url="http://www.google.com/" target="_blank"><![CDATA[<b>Google</b>]]></lnk>
      </nav>
</page>

My link shows on the page and the hover color works. But when clicking on it, nothing happens.
I am on IE8 and this is my book tag:

Code: [Select]
<book
     pagewidth="500"
     pageheight="600"
     plugins="anchors, options, navigationbar, gallery, keyboardnavigation, links, titles, help"
     bgcolor="0xbba978"
     lang="en"
     autodrag="false"
     bggradient="false"
     ignoresides="true">

Any help would be great.
Thanks.
« Last Edit: September 01, 2010, 06:50:57 pm by SportEvent »

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: External Link Issue
« Reply #1 on: September 02, 2010, 09:26:15 am »
You're missing the plugin "links" in the plugin list.
Without that plugin links will not work.
Everything else looks just right...

SportEvent

  • Newbie
  • *
  • Posts: 4
Re: External Link Issue
« Reply #2 on: September 02, 2010, 03:46:16 pm »
Hi.

I do have links in my plugin list.
What I have found was this:

While developing the magazine offline, none of my external links worked. I published my book today and all external links now works. Maybe a bug?

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: External Link Issue
« Reply #3 on: September 02, 2010, 05:03:45 pm »
OK, sorry I missed you already had added link to the list!

There is the "feature" of Flash to be very restrictive regarding cross domain links/access. For security issues, also know as the "sandbox problem".

FLASH does not allow to cross domains, so when building the megazine.exe or megazine.swf the decision has to be made if external access should be granted (the network mode) or if local access is the preference.
Since usually the books are published for use with the internet, the megazine.swf and megazine.exe are built with the network switch on.
So both the online and offline version should work with external links.

I tested it with the demo book in both version; the offline version (CD version, callable via the megazine.exe without the need of a browser) and the online version (callable via index.html and running in a browser). Both version worked with your code snippets and linked to Google.
To find out your problem I needed to have more information, but since it is working now you might be OK for the moment.
Otherwise please provide the megazine.mz3 adn what veriosn of MegaZine3 you are using. And where the files are located and if you did any FLASH security settings.

One thing to note and a FAQ: why do videos not work locally?

That is related with the same issues explained above. Videos work, if loaded via the internet from a server. As well as in the case you have a local server like WAMP.
Also NAS systems work (network accessible storage; networked disks), where local disks fail.

It also might depend on the kind of video (.flv or f4v or mp4) and even the browser. IE8 sometimes is more tolerant that all the others.
Safest really is: provide the book over the network; local network or internet.