# 3d Carousel SWF loads fine but wont show online

**URL:** <https://forum.kirupa.com/t/3d-carousel-swf-loads-fine-but-wont-show-online/247098>\
**Category:** Uncategorized\
**Created:** [December 18, 2007, 3:56pm UTC](https://forum.kirupa.com/t/3d-carousel-swf-loads-fine-but-wont-show-online/247098 "2007-12-18T15:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulcybulski](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@paulcybulski](https://forum.kirupa.com/u/paulcybulski)\
**Post date:** [December 18, 2007, 3:56pm UTC](https://forum.kirupa.com/t/3d-carousel-swf-loads-fine-but-wont-show-online/247098/1 "2007-12-18T15:56:18Z")

</div>

Hi,

I have made a 3d carousel based on the tutorial at [gotoandlearn.com](http://gotoandlearn.com) and it looks awesome…however when I try to put the swf in html it does not show up…any ideas???

[AS]  
import mx.utils.Delegate;

var numOfItems:Number;  
var radiusX:Number = 500;  
var radiusY:Number = 125;  
var centerX:Number = Stage.width/2;  
var centerY:Number = Stage.height/2;  
var speed:Number = 0.05;  
var perspective:Number = 0;  
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie(“tooltip”, “tooltip”, 10000);  
tooltip.\_alpha = 0;

var xml:XML = new XML();  
xml.ignoreWhite = true;

xml.onLoad = function()  
{  
var nodes = this.firstChild.childNodes;  
numOfItems = nodes.length;  
for(var i=0; i\<numOfItems; i++)  
{  
var t = home.attachMovie(“item”, “item”+i, i+1);  
t.angle = i \* ((Math.PI_2)/numOfItems);  
t.onEnterFrame = mover;  
t.toolText = nodes_.attributes.tooltip;  
t.show.inner.loadMovie(nodes\*.attributes.image);  
t.ref.inner.loadMovie(nodes\*.attributes.image);  
t.show.onRollOver = over;  
t.show.onRollOut = out;  
t.show.onRelease = released;  
}  
}

function over()  
{  
home.tooltip.tipText.text = this.\_parent.toolText;  
home.tooltip.\_x = this.\_parent.\_x;  
home.tooltip.\_y = this.\_parent.\_y - this.\_parent.\_height/2;  
home.tooltip.onEnterFrame = Delegate.create(this, moveTip);  
home.tooltip.\_alpha = 100;  
}

function out()  
{  
delete home.tooltip.onEnterFrame;  
home.tooltip.\_alpha = 0;  
}

function released()  
{  
trace(this.\_parent.toolText);  
}

function moveTip()  
{  
home.tooltip.\_x = this.\_parent.\_x;  
home.tooltip.\_y = this.\_parent.\_y - this.\_parent.\_height/2;  
}

xml.load(“shows.xml”);

function mover()  
{  
this.\_x = Math.cos(this.angle) \* radiusX + centerX;  
this.\_y = Math.sin(this.angle) \* radiusY + centerY;  
var s:Number = (this.\_y) / (centerY + radiusY);  
this.\_xscale = this.\_yscale = s \* 100;  
this.angle += this.\_parent.speed;  
this.swapDepths(Math.round(this.\_xscale) + 100);  
}

this.onMouseMove = function()  
{  
speed = (this.\_xmouse - centerX)/10000;  
}  
[/AS]

```auto

<HTML>
    <HEAD>
        <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
        <TITLE>Expo BLING</TITLE>
    </HEAD>
    <BODY bgcolor="#000000">
        <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="100%" id="Expo BLING" ALIGN="">
            <PARAM NAME=movie VALUE="shows.swf">
            <PARAM NAME=quality VALUE=high> 
            <PARAM NAME=bgcolor VALUE=#FFFFFF> 
            <EMBED src="shows.swf" quality=high bgcolor=#000000 WIDTH="100%" HEIGHT="100%" NAME="Expo BLING" ALIGN="center" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
        </OBJECT>
    </BODY>
</HTML>

```

I tried to publish the fla as html and the same stuff happens when I post the html file on the server…(and my xml file is online…)

try it… [www.expocadvr.com/temp/shows.html](http://www.expocadvr.com/temp/shows.html)
