redirecting webpage to adobe flash anim. label on homepage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ecstasy
Forum Newbie
Posts: 1
Joined: Thu Aug 16, 2007 12:08 pm

redirecting webpage to adobe flash anim. label on homepage

Post by ecstasy »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


The following example represents what I'd like to do with 10+ different urls:

Users who go to https://ecstasylove.org/arts/music (/index.php) redirected to 

https://ecstasylove.org (/index.php) and specifically to the adobe flash animation music label 

embedded there.

Flashloaded (makers of fCMSPro, the flash content management system running on my site) said 

I'd need to research redirecting using PHP to achieve this.

fCMSPro is currently supports actionscript 2.


My https://ecstasylove.org/index.php currently looks like:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ecstasy</title>

<link rel="stylesheet" type="text/css" href="index.css" media="all">
<script type="text/javascript" src="swfobject.js"></script>


<?php
if (isset($_GET["doctype"]) or ($_GET ['skipflash']=="true")) {
echo "<meta name=\"robots\" content=\"noindex\">";
}
?>

</head>

<body>


<div id="flashdiv" class="div-for-flash">
<?php require "./fcms_html.php"; ?>
</div>

<script type="text/javascript">

// <![CDATA[


var so = new SWFObject (
// name of the fCMSPro enabled swf
'fCMSPro.swf', 
// object/embed id
'fCMSPro',
// width
'100%', 
// height
'100%', 
// required flash player version
'7', 
// background color
'#ffffff'
);
so.addParam ('scale', 'noscale');

<?php 
// add fCMS generated parameters
print_fCMS_parameters();

// replace flashdiv with html content
if (! $_GET ['skipflash'] == 'true')
print "so.write ('flashdiv');\n";
?>


// ]]>


</script>

</body>
</html>


my https://ecstasylove.org/arts/music/index.php looks like:

Code: Select all

<?
header("Location:https://ecstasylove.org/index.php?goto=music");
?>

and my flash Actionscript at frame 84 (the music label) looks like:

if (_root.framestart!=undefined) gotoAndPlay("music")

but it doesn't work. I should be seeing the arts > music text under the floating dropdown menus

at https://ecstasylove.org


I'm on a learning curve with flash and php.

I've tried this question in 2+ other forums but not had much luck.

http://www.experts-exchange.com/Web_..._22762574.html

http://www.adobe.com/cfusion/webforu...&enterthread=y



Can you tell me exactly what to change for this example and exactly where to write the changes?
e


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Post Reply