1
macmend
Using macromedia flash in a theme
  • 2006/3/8 10:03

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


I am trying to use a flash menu in a theme, however, when I clcik on the flash menu to link me to another page, it goes to the page but the menu disappears, even though the space for it is left.

heres my code, the menu links may have some mistakes in them but the rest is fine!

head>
<
body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<{
$xoops_module_header}> 
<
div align="center">
<
table width="100%" border="0" cellspacing="0" cellpadding="0" id="bt">
<
table border="0" cellspacing="0" cellpadding="0">
      <
tr>
    <
td>
<
div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="63">
  <
param name="flash_component" value="apMenuBuy.swc">
  <
param name="movie" value="menu.swf">
  <
param name="quality" value="high">
  <
param name="FlashVars" value="flashlet={_STRIPEHEIGHT:19,_BUTTONWIDTH:100,_BUTTONHEIGHT:30,_inActivBColor:#D9D9D9,_TEXTSIZE:13,_defaultActiveBColor:#68A7F4,_activeBNum:3,__fontName:'Verdana',__bgColor:#FFFFFF,navigationTree:['Mainbut1:macmend; http://www.macmend.com/forum; _parent','_subbutton1: site map; http://www.macmend.com/forum/modules/sitemap; _parent; bColor5','_subbutton2: donate; http://www.macmend.com/forum/modules/xdonations; _parent','Mainbut2: links; http://www.macmend.com/forum/modules/mylinks; _parent; mColor1','_subbutton5: link to macmend; http://www.macmend.com/forum/modules/lien; _parent','_subbutton6: partners; http://www.macmend.com/forum/modules/xoopspartners; _parent','Mainbut3: forums; http://www.macmend.com/forums/newbb+index.htm; _parent; mColor4','_subbutton1: Classic; http://www.macmend.com/forum/newbb+viewforum.forum+4.htm; _parent','_subbutton2: OS X; http://www.macmend.com/forum/newbb+viewforum.forum+3.htm; _parent','_subbutton3: Hardware; http://www.macmend.com/forum/newbb+viewforum.forum+8.htm; _parent','_subbutton4: Software; http://www.macmend.com/forum/newbb+viewforum.forum+7.htm; _parent','_subbutton5: Internet; http://www.macmend.com/forum/newbb+viewforum.forum+5.htm; _parent','_subbutton6: Off Topic; http://www.macmend.com/forum/; _parent','Mainbut4: faq; http://www.macmend.com/modules/smartfaq; _parent; mColor1','_subbutton1: stats; http://www.macmend.com/forum/modules/statistics _parent','_subbutton2: getting help; http://www.macmend.com/forum/smartfaq+faq.faqid+10.htm; _parent','_subbutton3: board rules; http://www.macmend.com/forum/smartfaq+faq.faqid+25.htm; _parent','Mainbut5: contact; http://www.macmend.com/forum/modules/contact; _parent; mColor4','_subbutton1: personal messages; http://www.macmend.com/forum/modules/pm; _parent','_subbutton2: members; http://www.macmend.com/forum/modules/xoopsmemebers; _parent','_subbutton3: profile; http://www.macmend.com/forum/modules/profile; _parent','Mainbut6: news; http://www.macmend.com/forum/modules/news;_parent; mColor1','_subbutton1: newsfeeds; http://www.macmend.com/forum/modules/xhld0;_parent,','_subbutton2: newsletter; http://www.macmend.com/forum/modules/evennews;_parent','_subbutton3: polls; http://www.macmend/com/modules/xoopspoll;_parent,','Mainbut7: downloads; http://www.macmend.com/forum/modules/mydownloads;_parent; mColor4'],_subBTextSize:10,_activeBColor1:#A480F0,bg_Pic_URL:'bgPic.jpg',_HighlightSubText:true,_BUTTEXTCOLOR:#000000,_activeBColor2:#87B5BE,_SUBBUTTEXTCOLOR:#000000,_activeBColor3:#A480F0,_activeBColor4:#87B5BE,_activeBColor5:#A480F0}">
  <
embed src="menu.swf" quality="high" flashvars="flashlet={_STRIPEHEIGHT:19,_BUTTONWIDTH:100,_BUTTONHEIGHT:30,_inActivBColor:#D9D9D9,_TEXTSIZE:13,_defaultActiveBColor:#68A7F4,_activeBNum:3,__fontName:'Verdana',__bgColor:#FFFFFF,navigationTree:['Mainbut1:macmend; http://www.macmend.com/forum; _parent','_subbutton1: site map; http://www.macmend.com/forum/modules/sitemap; _parent; bColor5','_subbutton2: donate; http://www.macmend.com/forum/modules/xdonations; _parent','Mainbut2: links; http://www.macmend.com/forum/modules/mylinks; _parent; mColor1','_subbutton5: link to macmend; http://www.macmend.com/forum/modules/lien; _parent','_subbutton6: partners; http://www.macmend.com/forum/modules/xoopspartners; _parent','Mainbut3: forums; http://www.macmend.com/forums/newbb+index.htm; _parent; mColor4','_subbutton1: Classic; http://www.macmend.com/forum/newbb+viewforum.forum+4.htm; _parent','_subbutton2: OS X; http://www.macmend.com/forum/newbb+viewforum.forum+3.htm; _parent','_subbutton3: Hardware; http://www.macmend.com/forum/newbb+viewforum.forum+8.htm; _parent','_subbutton4: Software; http://www.macmend.com/forum/newbb+viewforum.forum+7.htm; _parent','_subbutton5: Internet; http://www.macmend.com/forum/newbb+viewforum.forum+5.htm; _parent','_subbutton6: Off Topic; http://www.macmend.com/forum/; _parent','Mainbut4: faq; http://www.macmend.com/modules/smartfaq; _parent; mColor1','_subbutton1: stats; http://www.macmend.com/forum/modules/statistics _parent','_subbutton2: getting help; http://www.macmend.com/forum/smartfaq+faq.faqid+10.htm; _parent','_subbutton3: board rules; http://www.macmend.com/forum/smartfaq+faq.faqid+25.htm; _parent','Mainbut5: contact; http://www.macmend.com/forum/modules/contact; _parent; mColor4','_subbutton1: personal messages; http://www.macmend.com/forum/modules/pm; _parent','_subbutton2: members; http://www.macmend.com/forum/modules/xoopsmemebers; _parent','_subbutton3: profile; http://www.macmend.com/forum/modules/profile; _parent','Mainbut6: news; http://www.macmend.com/forum/modules/news;_parent; mColor1','_subbutton1: newsfeeds; http://www.macmend.com/forum/modules/xhld0;_parent,','_subbutton2: newsletter; http://www.macmend.com/forum/modules/evennews;_parent','_subbutton3: polls; http://www.macmend/com/modules/xoopspoll;_parent,','Mainbut7: downloads; http://www.macmend.com/forum/modules/mydownloads;_parent; mColor4'],_subBTextSize:10,_activeBColor1:#A480F0,bg_Pic_URL:'bgPic.jpg',_HighlightSubText:true,_BUTTEXTCOLOR:#000000,_activeBColor2:#87B5BE,_SUBBUTTEXTCOLOR:#000000,_activeBColor3:#A480F0,_activeBColor4:#87B5BE,_activeBColor5:#A480F0}" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="63">embed>
object>div>
td>
  tr>
table>


can anyone tel me why it wont appear on all pages or have I misunderstood the way theme.html works?
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

2
Tobias
Re: Using macromedia flash in a theme
  • 2006/4/18 21:23

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


Well, just in case you're still looking for the answer: Your relative path breaks when you navigate away from the site root and into module directories. Try "/menu.swf". Or you reference the site root with smarty tag:

"<{$xoops_url}>/menu.swf"
on the assumption that the file is in XOOPS root.

BUT: With the last "security patch"/copyright infringement avoidance/whatever patch Microsoft has rolled out, you'd actually have to use another method to integrated your flash object, so that IE people don't have to click on it once to bleedin "activate this control" every time they load a new page. Here's the one I'm using:

http://blog.deconcept.com/flashobject/

Edit: Well, I see you've figured it out already, and the swf isn't in the root anyway, so you'd use a different smarty tag. The thing with the object embedding is still relevant, though. If you care at all about people who want to look at it with IE, that is

Login

Who's Online

325 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 325


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits