Inspironx
07-16-2008, 05:05 PM
www.creativeglobalmedia.com
Hi,
Strange problem here. When landing on any of the 5 pages in this website the flash menu doesn't not click through to the relevant linked pages. They all appear dead. BUT. When I manually change the URL in a browser to another page, the page loads and the flash works! I can even go back to the landing page and move around.
I am crap at flash and have been trying to figure this for days.
So for some reason the action script is only triggered when moving away from the original entry page.
Pages:
index.html
about.hml
web.html
print.html
contact.php
Script pasted into .html:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '713',
'height', '312',
'src', 'flash/CGMflash1a',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'CGMflash1',
'bgcolor', '#000',
'name', 'CGMflash1',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/CGMflash1a',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="713" height="312" id="CGMflash1a" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash/CGMflash1a.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000" /> <embed src="flash/CGMflash1a.swf" quality="high" bgcolor="#000" width="713" height="312" name="CGMflash1a" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
Actionscript:
HOME11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/index.html"), "_self");
}
);
WEB11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/web.html"), "_self");
}
);
PRINT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/print.html"), "_self");
}
);
ABOUT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/about.html"), "_self");
}
);
CONTACT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/contact.php"), "_self");
}
);
Hope someone can help me :)
Many thanks,
Fred
Hi,
Strange problem here. When landing on any of the 5 pages in this website the flash menu doesn't not click through to the relevant linked pages. They all appear dead. BUT. When I manually change the URL in a browser to another page, the page loads and the flash works! I can even go back to the landing page and move around.
I am crap at flash and have been trying to figure this for days.
So for some reason the action script is only triggered when moving away from the original entry page.
Pages:
index.html
about.hml
web.html
print.html
contact.php
Script pasted into .html:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '713',
'height', '312',
'src', 'flash/CGMflash1a',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'CGMflash1',
'bgcolor', '#000',
'name', 'CGMflash1',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/CGMflash1a',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="713" height="312" id="CGMflash1a" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash/CGMflash1a.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000" /> <embed src="flash/CGMflash1a.swf" quality="high" bgcolor="#000" width="713" height="312" name="CGMflash1a" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
Actionscript:
HOME11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/index.html"), "_self");
}
);
WEB11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/web.html"), "_self");
}
);
PRINT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/print.html"), "_self");
}
);
ABOUT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/about.html"), "_self");
}
);
CONTACT11111.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.creativeglobalmedia.com/contact.php"), "_self");
}
);
Hope someone can help me :)
Many thanks,
Fred