1 Reply Latest reply on Jul 21, 2007 9:49 AM by kglad

    SWF is blank?

    jeff spires
      Hi Guys and girls.

      I'm having a problem getting my swf file to show my action script.
      I have nothing on the stage, everything is being displayed using actionscript.

      When I test the movie everything works fine. However, when I open the swf file its blank?

      here is the website:
      [url]www.spirestest.com[/url] (it will be blank)

      I have set the linkage for all of my movie clips.

      Here is the code:
      [code]
      import mx.utils.Delegate;

      var numOfItems:Number;
      var radiusX:Number = 165;
      var radiusY:Number = 50;
      var centerX:Number = Stage.width/2;
      var centerY:Number = Stage.height/2;
      var speed:Number = 0.05;
      var prespective:Number = 110;
      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_MC","item_MC"+i, i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes .attributes.tooltip;
      t.icon.inner.loadMovie(nodes
      .attributes.image);
      t.r.inner.loadMovie(nodes .attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.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);
      homemtooltip._alpha = 0;
      }

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

      function released()
      {

      getURL(this._parent.toolText,"_self");
      }

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

      xml.load("icons.xml");
      function mover()
      {
      this._x = Math.cos(this.angle) * radiusX + centerX;
      this._y = Math.sin(this.angle) * radiusY + centerY;
      var s = (this._y - prespective) / (centerY+radiusY-prespective);
      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)/2500;
      }

      [/code]


      Thanks for any help.
      :-)