sc2girl
10-19-2011, 02:14 AM
I'm sorry if this has been covered, I'm not really sure what the exact terms would be so I figure if someone can point me to the right article link or can answer my question, it'd be great.
I'm trying to assign a specific link (products) in the flash site to offlink to the php page. From there, I need to assign the flash links back to the flash site.
I have links such as home, about, products, contact.
Actionscript:
onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
thepage =
text = "" + percent + "%";
gotoAndStop(percent);
if (loaded == total)
{
if(thepage=="home"||thepage==undefined){
_root.gotoAndPlay(2);
}
if(thepage=="about"){
_root.gotoAndPlay(141);
}
} // end if
}
Flash Script
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '',
'width', '900',
'height', '600',
'src', 'index-091611',
'quality', 'high',
'pluginspage', ',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index-091611',
'bgcolor', '#ffffff',
'name', 'index-091611',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index-091611',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="#version=6,0,0,0" width="900" height="600" id="index-091611" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="index-091611.swf?page=about" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="index-091611.swf?page=about" quality="high" bgcolor="#ffffff" width="900" height="600" name="index-091611" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="" />
When I input index.php?page=about, it will not load the about page, so I'm stuck at this point right now. Can anyone be able to help me out?
Thank you so much!
I'm trying to assign a specific link (products) in the flash site to offlink to the php page. From there, I need to assign the flash links back to the flash site.
I have links such as home, about, products, contact.
Actionscript:
onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
thepage =
text = "" + percent + "%";
gotoAndStop(percent);
if (loaded == total)
{
if(thepage=="home"||thepage==undefined){
_root.gotoAndPlay(2);
}
if(thepage=="about"){
_root.gotoAndPlay(141);
}
} // end if
}
Flash Script
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '',
'width', '900',
'height', '600',
'src', 'index-091611',
'quality', 'high',
'pluginspage', ',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index-091611',
'bgcolor', '#ffffff',
'name', 'index-091611',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index-091611',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="#version=6,0,0,0" width="900" height="600" id="index-091611" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="index-091611.swf?page=about" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="index-091611.swf?page=about" quality="high" bgcolor="#ffffff" width="900" height="600" name="index-091611" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="" />
When I input index.php?page=about, it will not load the about page, so I'm stuck at this point right now. Can anyone be able to help me out?
Thank you so much!