swf is slow

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
madmega
Forum Newbie
Posts: 10
Joined: Sat Dec 26, 2009 5:23 pm

swf is slow

Post by madmega »

i have this website

http://www.dirkwitte.nl

and made a lightbox that works perfectly, it runs OVER the little flash banner on the right, and that works in FF3.6 and IE8.
It works because i changed the wmode into opaque for the flash banner...the problem is that it slows down my flash banner in IE8.
I do not know why this is.
I though the flash banner only slows down when you use the transparant wmode.

Is there something i forgot ?
Here is the script for the right menu, where the flash banner is hidden in.

Code: Select all

<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3821.2800" name=GENERATOR></HEAD>
<body bgcolor=#E2E965 link=#E2E965 vlink=#E2E965 alink=#E2E965 text=black>
 
<SCRIPT language=JavaScript>
 
 
<!--
 
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
{
       button1off = new Image;
       button1off.src = "overdirkwitte1.jpg";
       button2off = new Image;
       button2off.src = "contactamsterdam1.jpg";
       button3off = new Image;
       button3off.src = "contactutrecht1.jpg";
       button4off = new Image;
       button4off.src = "faq1.jpg";
       button5off = new Image;
       button5off.src = "folder1.jpg";
 
       button1on = new Image;
       button1on.src = "overdirkwitte2.jpg";
       button2on = new Image;
       button2on.src = "contactamsterdam2.jpg";
       button3on = new Image;
       button3on.src = "contactutrecht2.jpg";
       button4on = new Image;
       button4on.src = "faq2.jpg";
       button5on = new Image;
       button5on.src = "folder2.jpg";
 
 
 
       }
 
function img_act(imgName) {
       imgOn = eval(imgName + "on.src");
       document [imgName].src = imgOn;
}
 
function img_inact(imgName) {
       imgOff = eval(imgName + "off.src");
       document [imgName].src = imgOff;
}
 
 
//-->
 
</SCRIPT>
 
<CENTER>
<TABLE border=0 cellSpacing=0 cellpading="0" align=top>
  <TBODY>
  <TR>
    <TD align=left vAlign=top width=200>
<center>
<p style="margin:7px;"><A
      href="over.php"onmouseout="img_inact('button1')"
      onmouseover="img_act('button1')" target=midden><IMG border=0 name=button1
      src="overdirkwitte1.jpg"></A>&nbsp; <A
      href="over.php"
      onmouseout="img_inact('button1')" onmouseover="img_act('button1')"
      target=midden></A>
 
<p style="margin:7px;"><A
      href="contact.php" onmouseout="img_inact('button2')"
      onmouseover="img_act('button2')" target=midden><IMG border=0 name=button2
      src="contactamsterdam1.jpg"></A>&nbsp; <A
      href="contact.php" onmouseout="img_inact('button2')"
      onmouseover="img_act('button2')" target=midden></A>
      
<p style="margin:7px;"><A href="2contact.php"
      onmouseout="img_inact('button3')" onmouseover="img_act('button3')"
      target=midden><IMG border=0 name=button3
      src="contactutrecht1.jpg"></A>&nbsp; <A
      href="2contact.php" onmouseout="img_inact('button3')"
      onmouseover="img_act('button2')" target=midden></A>
      
<p style="margin:7px;"><A href="faq.php"
      onmouseout="img_inact('button4')" onmouseover="img_act('button4')"
      target=midden><IMG border=0 name=button4
      src="faq1.jpg"></A>&nbsp; <A href="faq.php"
      onmouseout="img_inact('button4')" onmouseover="img_act('button4')"
      target=midden></A>
     
<p style="margin:7px;"><A href="folder.pdf"
      onmouseout="img_inact('button5')" onmouseover="img_act('button5')"
      target=_blank><IMG border=0 name=button5
      src="folder1.jpg"></A>&nbsp; <A href="folder.pdf"
      onmouseout="img_inact('button5')" onmouseover="img_act('button5')"
      target=_blank></A>
<p style="margin:7px;">
<OBJECT id="slideshow" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="220" HEIGHT="100"  id="test" align="middle">
<PARAM NAME=movie VALUE="banner.swf">
<PARAM name=wmode value="opaque">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=allowScriptAccess VALUE=sameDomain>
<PARAM NAME=bgcolor VALUE=#E2E965 >
<EMBED Name="slideshow" src="banner.swf" wmode="opaque" quality=high bgcolor=#E2E965 WIDTH="220" HEIGHT="100" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</br></TD></TR></TBODY></TABLE></CENTER></BODY>
</HTML>
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: swf is slow

Post by Jade »

Framerates in flash banners are due to a lot of different things. Try making the flash smaller by reducing the number of extra/unnecessary symbols you have in the library.
Post Reply